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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

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/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 81d3157168d6a82a2af1152e80ba27723e293428..9a64d686dd1d55cb75ae877d1fe804d3b0a7a846 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -1884,16 +1884,22 @@ void EventHandler::ScheduleCursorUpdate() {
DCHECK_EQ(frame_, &frame_->LocalFrameRoot());
// TODO(https://crbug.com/668758): Use a normal BeginFrame update for this.
- if (!cursor_update_timer_.IsActive())
+ if (!cursor_update_timer_.IsActive()) {
dtapuska 2017/06/28 19:15:17 No need to add braces here; code isn't changed.
lanwei 2017/07/04 18:37:15 Done.
cursor_update_timer_.StartOneShot(kCursorUpdateInterval, BLINK_FROM_HERE);
+ }
}
bool EventHandler::CursorUpdatePending() {
return cursor_update_timer_.IsActive();
}
-void EventHandler::DispatchFakeMouseMoveEventSoon() {
- mouse_event_manager_->DispatchFakeMouseMoveEventSoon();
+bool EventHandler::FakeMouseMovePending() {
+ return mouse_event_manager_->FakeMouseMovePending();
+}
+
+void EventHandler::DispatchFakeMouseMoveEventSoon(
+ DispatchInterval dispatch_interval) {
+ mouse_event_manager_->DispatchFakeMouseMoveEventSoon(dispatch_interval);
}
void EventHandler::DispatchFakeMouseMoveEventSoonInQuad(const FloatQuad& quad) {

Powered by Google App Engine
This is Rietveld 408576698