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

Unified Diff: third_party/WebKit/Source/core/input/MouseEventManager.h

Issue 2956023004: Add a flag to update hover effect when a layout is changed (Closed)
Patch Set: hover layout Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/input/MouseEventManager.h
diff --git a/third_party/WebKit/Source/core/input/MouseEventManager.h b/third_party/WebKit/Source/core/input/MouseEventManager.h
index 0a1f7b406524bfee617a789b74c6b476c1897754..86538aff6b329e31ee2f8ac8026abfd4dd412e61 100644
--- a/third_party/WebKit/Source/core/input/MouseEventManager.h
+++ b/third_party/WebKit/Source/core/input/MouseEventManager.h
@@ -30,6 +30,8 @@ class ScrollManager;
enum class DragInitiator;
+enum class DispatchInterval { kDuringScroll, kPerFrame };
dtapuska 2017/06/28 19:15:18 Perhaps this can be scoped into the EventHandler c
lanwei 2017/07/04 18:37:15 Done.
+
// This class takes care of dispatching all mouse events and keeps track of
// positions and states of mouse.
class CORE_EXPORT MouseEventManager final
@@ -87,7 +89,7 @@ class CORE_EXPORT MouseEventManager final
void FakeMouseMoveEventTimerFired(TimerBase*);
void CancelFakeMouseMoveEvent();
- void DispatchFakeMouseMoveEventSoon();
+ void DispatchFakeMouseMoveEventSoon(DispatchInterval);
void DispatchFakeMouseMoveEventSoonInQuad(const FloatQuad&);
void SetLastKnownMousePosition(const WebMouseEvent&);
@@ -148,6 +150,8 @@ class CORE_EXPORT MouseEventManager final
bool MouseDownMayStartDrag();
+ bool FakeMouseMovePending();
dtapuska 2017/06/28 19:15:18 const?
lanwei 2017/07/04 18:37:15 Done.
+
private:
class MouseEventBoundaryEventDispatcher : public BoundaryEventDispatcher {
WTF_MAKE_NONCOPYABLE(MouseEventBoundaryEventDispatcher);

Powered by Google App Engine
This is Rietveld 408576698