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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 2304043002: Add mobile optimized to TouchEvent Timeout For Android WebView (Closed)
Patch Set: Add mobile optimized to TouchEvent Timeout For Android WebView Created 4 years, 3 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
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index f1cd1c8040cb894a027fb3e6e3fe2dc916f7ea68..1725e285a6ab409b255a3201a8ef87c827d4f58b 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -49,6 +49,7 @@
#include "content/browser/renderer_host/compositor_impl_android.h"
#include "content/browser/renderer_host/dip_util.h"
#include "content/browser/renderer_host/frame_metadata_util.h"
+#include "content/browser/renderer_host/input/input_router_impl.h"
#include "content/browser/renderer_host/input/synthetic_gesture_target_android.h"
#include "content/browser/renderer_host/input/web_input_event_builders_android.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
@@ -1027,6 +1028,13 @@ void RenderWidgetHostViewAndroid::SynchronousFrameMetadata(
if (!content_view_core_)
return;
+ bool is_mobile_optimized = IsMobileOptimizedFrame(frame_metadata);
+
+ if (host_ && host_->input_router()) {
+ host_->host_->input_router()->NotifySiteIsMobileOptimized(
aelias_OOO_until_Jul13 2016/09/09 03:06:07 Why double-host_ here but not in the if() statemen
+ is_mobile_optimized);
+ }
+
// This is a subset of OnSwapCompositorFrame() used in the synchronous
// compositor flow.
OnFrameMetadataUpdated(frame_metadata.Clone(), false);
@@ -1878,4 +1886,4 @@ void RenderWidgetHostViewAndroid::ComputeEventLatencyOSTouchHistograms(
}
}
-} // namespace content
+} // namespace content
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698