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

Side by Side Diff: content/browser/android/content_view_core_impl.h

Issue 1728193002: Support dragging texts into Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 void ExtractSmartClipData(JNIEnv* env, 271 void ExtractSmartClipData(JNIEnv* env,
272 const base::android::JavaParamRef<jobject>& obj, 272 const base::android::JavaParamRef<jobject>& obj,
273 jint x, 273 jint x,
274 jint y, 274 jint y,
275 jint width, 275 jint width,
276 jint height); 276 jint height);
277 277
278 void SetBackgroundOpaque(JNIEnv* env, 278 void SetBackgroundOpaque(JNIEnv* env,
279 const base::android::JavaParamRef<jobject>& jobj, 279 const base::android::JavaParamRef<jobject>& jobj,
280 jboolean opaque); 280 jboolean opaque);
281 void OnDragEntered(JNIEnv* env,
Ted C 2016/02/25 18:38:53 again to the api comment, onTouchEvent has a singl
hush (inactive) 2016/02/27 01:46:13 Yes, I will replace this bunch with OnDragEvent.
282 const base::android::JavaParamRef<jobject>& jobj,
283 int x,
284 int y,
285 int screen_x,
286 int screen_y);
287 void OnDragUpdated(JNIEnv* env,
288 const base::android::JavaParamRef<jobject>& jobj,
289 int x,
290 int y,
291 int screen_x,
292 int screen_y);
293 void OnPerformDrop(JNIEnv* env,
294 const base::android::JavaParamRef<jobject>& jobj,
295 int x,
296 int y,
297 int screen_x,
298 int screen_y,
299 const base::android::JavaParamRef<jstring>& content);
300 void OnDragExited(JNIEnv* env,
301 const base::android::JavaParamRef<jobject>& jobj);
281 302
282 jint GetCurrentRenderProcessId( 303 jint GetCurrentRenderProcessId(
283 JNIEnv* env, 304 JNIEnv* env,
284 const base::android::JavaParamRef<jobject>& obj); 305 const base::android::JavaParamRef<jobject>& obj);
285 306
286 // -------------------------------------------------------------------------- 307 // --------------------------------------------------------------------------
287 // Public methods that call to Java via JNI 308 // Public methods that call to Java via JNI
288 // -------------------------------------------------------------------------- 309 // --------------------------------------------------------------------------
289 310
290 void OnSmartClipDataExtracted(const base::string16& text, 311 void OnSmartClipDataExtracted(const base::string16& text,
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; 487 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_;
467 488
468 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 489 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
469 }; 490 };
470 491
471 bool RegisterContentViewCore(JNIEnv* env); 492 bool RegisterContentViewCore(JNIEnv* env);
472 493
473 } // namespace content 494 } // namespace content
474 495
475 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 496 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698