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

Unified Diff: content/browser/renderer_host/input/synthetic_gesture_target_base.cc

Issue 1408213002: Add hooks for flushing input from BeginFrame dispatch on Aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build for real Created 5 years, 2 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: content/browser/renderer_host/input/synthetic_gesture_target_base.cc
diff --git a/content/browser/renderer_host/input/synthetic_gesture_target_base.cc b/content/browser/renderer_host/input/synthetic_gesture_target_base.cc
index e1fd3b06f3136572db2eb024dcee478faa9f961e..ae48c3e16f02d93d3035766ea352bd261d56be4a 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_target_base.cc
+++ b/content/browser/renderer_host/input/synthetic_gesture_target_base.cc
@@ -104,7 +104,10 @@ void SyntheticGestureTargetBase::DispatchWebMouseEventToPlatform(
}
void SyntheticGestureTargetBase::SetNeedsFlush() {
- host_->SetNeedsFlush();
+ if (host_->GetView()) {
+ static_cast<RenderWidgetHostViewBase*>(host_->GetView())
+ ->OnSetNeedsFlushInput();
+ }
}
SyntheticGestureParams::GestureSourceType

Powered by Google App Engine
This is Rietveld 408576698