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

Unified Diff: android_webview/native/aw_contents.cc

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 | « android_webview/native/aw_contents.h ('k') | android_webview/renderer/aw_render_view_ext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index 3d48f9c196de76d7d62efa3af0cc3816481ad5c0..159ccc0280ead191094869b2a91ff516ad5863e9 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -66,6 +66,7 @@
#include "net/cert/x509_certificate.h"
#include "third_party/skia/include/core/SkPicture.h"
#include "ui/gfx/android/java_bitmap.h"
+#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/size.h"
@@ -724,10 +725,15 @@ base::android::ScopedJavaLocalRef<jbyteArray>
reinterpret_cast<const uint8*>(der_string.data()), der_string.length());
}
-void AwContents::RequestNewHitTestDataAt(JNIEnv* env, jobject obj,
- jint x, jint y) {
+void AwContents::RequestNewHitTestDataAt(JNIEnv* env,
+ jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat touch_major) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- render_view_host_ext_->RequestNewHitTestDataAt(x, y);
+ gfx::PointF touch_center(x, y);
+ gfx::SizeF touch_area(touch_major, touch_major);
+ render_view_host_ext_->RequestNewHitTestDataAt(touch_center, touch_area);
}
void AwContents::UpdateLastHitTestData(JNIEnv* env, jobject obj) {
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | android_webview/renderer/aw_render_view_ext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698