Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.h

Issue 2147263003: Send got/lostpointercapture immediately if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make PointerEventManager a GC object Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 387
388 bool m_mousePositionIsUnknown; 388 bool m_mousePositionIsUnknown;
389 // The last mouse movement position this frame has seen in root frame coordi nates. 389 // The last mouse movement position this frame has seen in root frame coordi nates.
390 IntPoint m_lastKnownMousePosition; 390 IntPoint m_lastKnownMousePosition;
391 IntPoint m_lastKnownMouseGlobalPosition; 391 IntPoint m_lastKnownMouseGlobalPosition;
392 IntPoint m_mouseDownPos; // In our view's coords. 392 IntPoint m_mouseDownPos; // In our view's coords.
393 double m_mouseDownTimestamp; 393 double m_mouseDownTimestamp;
394 PlatformMouseEvent m_mouseDown; 394 PlatformMouseEvent m_mouseDown;
395 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken; 395 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken;
396 396
397 PointerEventManager m_pointerEventManager; 397 Member<PointerEventManager> m_pointerEventManager;
398 ScrollManager m_scrollManager; 398 ScrollManager m_scrollManager;
399 KeyboardEventManager m_keyboardEventManager; 399 KeyboardEventManager m_keyboardEventManager;
400 GestureManager m_gestureManager; 400 GestureManager m_gestureManager;
401 401
402 double m_maxMouseMovedDuration; 402 double m_maxMouseMovedDuration;
403 403
404 bool m_longTapShouldInvokeContextMenu; 404 bool m_longTapShouldInvokeContextMenu;
405 405
406 Timer<EventHandler> m_activeIntervalTimer; 406 Timer<EventHandler> m_activeIntervalTimer;
407 double m_lastShowPressTimestamp; 407 double m_lastShowPressTimestamp;
408 Member<Element> m_lastDeferredTapElement; 408 Member<Element> m_lastDeferredTapElement;
409 409
410 // Set on GestureTapDown if the |pointerdown| event corresponding to the 410 // Set on GestureTapDown if the |pointerdown| event corresponding to the
411 // triggering |touchstart| event was canceled. This suppresses mouse event 411 // triggering |touchstart| event was canceled. This suppresses mouse event
412 // firing for the current gesture sequence (i.e. until next GestureTapDown). 412 // firing for the current gesture sequence (i.e. until next GestureTapDown).
413 bool m_suppressMouseEventsFromGestures; 413 bool m_suppressMouseEventsFromGestures;
414 414
415 // TODO(nzolghadr): Temporary until further refactoring 415 // TODO(nzolghadr): Temporary until further refactoring
416 friend GestureManager; 416 friend GestureManager;
417 }; 417 };
418 418
419 } // namespace blink 419 } // namespace blink
420 420
421 #endif // EventHandler_h 421 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698