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

Unified Diff: android_webview/native/aw_contents.cc

Issue 2263043002: android_webview: Let AwContents manage TouchHandleDrawable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix build Created 4 years, 4 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 | « android_webview/native/aw_contents.h ('k') | android_webview/native/popup_touch_handle_drawable.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 21f5540f41e24d541112b6dbd02f51de4929bb88..a986e2bc56381e2e994f1f6443961e055f3755a9 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -1060,6 +1060,15 @@ void AwContents::DidOverscroll(const gfx::Vector2d& overscroll_delta,
overscroll_velocity.y());
}
+ui::TouchHandleDrawable* AwContents::CreateDrawable() {
+ JNIEnv* env = AttachCurrentThread();
+ const ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
+ if (obj.is_null())
+ return nullptr;
+ return reinterpret_cast<ui::TouchHandleDrawable*>(
+ Java_AwContents_onCreateTouchHandle(env, obj));
+}
+
void AwContents::SetDipScale(JNIEnv* env,
const JavaParamRef<jobject>& obj,
jfloat dip_scale) {
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | android_webview/native/popup_touch_handle_drawable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698