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

Unified Diff: android_webview/browser/renderer_host/aw_render_view_host_ext.h

Issue 475633002: Pass TouchMajor to HitTestResult (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use const ref Created 6 years, 1 month 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 | « no previous file | android_webview/browser/renderer_host/aw_render_view_host_ext.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/renderer_host/aw_render_view_host_ext.h
diff --git a/android_webview/browser/renderer_host/aw_render_view_host_ext.h b/android_webview/browser/renderer_host/aw_render_view_host_ext.h
index 4b6c7eb7ee3c8d262c34034099521cbdc91e30ff..0f9d3ce5194b3b06bb7a45cc0c0beac1eaa65a8b 100644
--- a/android_webview/browser/renderer_host/aw_render_view_host_ext.h
+++ b/android_webview/browser/renderer_host/aw_render_view_host_ext.h
@@ -11,6 +11,8 @@
#include "base/callback_forward.h"
#include "base/threading/non_thread_safe.h"
#include "third_party/skia/include/core/SkColor.h"
+#include "ui/gfx/geometry/point_f.h"
+#include "ui/gfx/geometry/size_f.h"
#include "ui/gfx/size.h"
class GURL;
@@ -53,9 +55,10 @@ class AwRenderViewHostExt : public content::WebContentsObserver,
void ClearCache();
// Do a hit test at the view port coordinates and asynchronously update
- // |last_hit_test_data_|. |view_x| and |view_y| are in density independent
- // pixels used by blink::WebView.
- void RequestNewHitTestDataAt(int view_x, int view_y);
+ // |last_hit_test_data_|. Width and height in |touch_area| are in density
+ // independent pixels used by blink::WebView.
+ void RequestNewHitTestDataAt(const gfx::PointF& touch_center,
+ const gfx::SizeF& touch_area);
// Optimization to avoid unnecessary Java object creation on hit test.
bool HasNewHitTestData() const;
« no previous file with comments | « no previous file | android_webview/browser/renderer_host/aw_render_view_host_ext.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698