/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis *file,Youcanobtainoneathttp://mozilla.org/MPL/2.0/.
*/
/* Description of TouchManager class. *Incapsulatecoderelatedwithworkoftouchevents.
*/
// Perform hit test and setup the event targets for touchstart. Other touch // events are dispatched to the same target as touchstart. static nsIFrame* SetupTarget(WidgetTouchEvent* aEvent, nsIFrame* aFrame);
// This should be called after PostHandleEvent() is called. Note that this // cannot check touches outside this process. So, this should not be used for // actual user input handling. This is designed for a fallback path to // dispatch mouse events for touch events synthesized without APZ. staticbool IsSingleTapEndToDoDefault(const WidgetTouchEvent* aTouchEndEvent);
// Returns true if the preceding `pointerdown` was consumed by content of // the last active pointers of touches. staticbool IsPrecedingTouchPointerDownConsumedByContent();
static StaticAutoPtr<nsTHashMap<nsUint32HashKey, TouchInfo>>
sCaptureTouchList; static layers::LayersId sCaptureTouchLayersId; // The last start of a single tap. This will be set to "Null" if the tap is // consumed or becomes not a single tap. // NOTE: This is used for touches without APZ, i.e., if they are synthesized // in-process for tests. static TimeStamp sSingleTouchStartTimeStamp; // The last start point of the single tap tracked with // sSingleTouchStartTimeStamp. // NOTE: This is used for touches without APZ, i.e., if they are synthesized // in-process for tests. static LayoutDeviceIntPoint sSingleTouchStartPoint; // Whether the preceding `pointerdown` of the last active touches is consumed // by content or not. If APZ is enabled, same state is managed by // APZEventState. // NOTE: This is used for touches without APZ, i.e., if they are synthesized // in-process for tests. staticbool sPrecedingTouchPointerDownConsumedByContent;
};
} // namespace mozilla
#endif/* !defined(TouchManager_h_) */
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.26 Sekunden
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.