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

Unified Diff: ui/android/view_android.cc

Issue 2308103002: Disable WebView/Chrome's drag and drop feature on M and below. (Closed)
Patch Set: 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 | « ui/android/view_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/view_android.cc
diff --git a/ui/android/view_android.cc b/ui/android/view_android.cc
index c99f5b9807806d776fd9a2c0e8de35bba16daf99..f881b51e18c3ff62065e6bcd41a02941653a3d26 100644
--- a/ui/android/view_android.cc
+++ b/ui/android/view_android.cc
@@ -164,13 +164,14 @@ void ViewAndroid::SetLayer(scoped_refptr<cc::Layer> layer) {
layer_ = layer;
}
-void ViewAndroid::StartDragAndDrop(const JavaRef<jstring>& jtext,
+bool ViewAndroid::StartDragAndDrop(const JavaRef<jstring>& jtext,
const JavaRef<jobject>& jimage) {
ScopedJavaLocalRef<jobject> delegate(GetViewAndroidDelegate());
if (delegate.is_null())
- return;
+ return false;
JNIEnv* env = base::android::AttachCurrentThread();
- Java_ViewAndroidDelegate_startDragAndDrop(env, delegate, jtext, jimage);
+ return Java_ViewAndroidDelegate_startDragAndDrop(env, delegate, jtext,
+ jimage);
}
} // namespace ui
« no previous file with comments | « ui/android/view_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698