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

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: generate DragEvent JNI bindings and use the enums from JNI Created 4 years, 5 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 <memory> 10 #include <memory>
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 void ExtractSmartClipData(JNIEnv* env, 275 void ExtractSmartClipData(JNIEnv* env,
276 const base::android::JavaParamRef<jobject>& obj, 276 const base::android::JavaParamRef<jobject>& obj,
277 jint x, 277 jint x,
278 jint y, 278 jint y,
279 jint width, 279 jint width,
280 jint height); 280 jint height);
281 281
282 void SetBackgroundOpaque(JNIEnv* env, 282 void SetBackgroundOpaque(JNIEnv* env,
283 const base::android::JavaParamRef<jobject>& jobj, 283 const base::android::JavaParamRef<jobject>& jobj,
284 jboolean opaque); 284 jboolean opaque);
285 void OnDragEvent(JNIEnv* env,
286 const base::android::JavaParamRef<jobject>& jobj,
287 jint action,
288 jint x,
289 jint y,
290 jint screen_x,
291 jint screen_y,
292 const base::android::JavaParamRef<jobjectArray>& j_mimeTypes,
293 const base::android::JavaParamRef<jstring>& j_content);
285 294
286 jint GetCurrentRenderProcessId( 295 jint GetCurrentRenderProcessId(
287 JNIEnv* env, 296 JNIEnv* env,
288 const base::android::JavaParamRef<jobject>& obj); 297 const base::android::JavaParamRef<jobject>& obj);
289 298
290 // -------------------------------------------------------------------------- 299 // --------------------------------------------------------------------------
291 // Public methods that call to Java via JNI 300 // Public methods that call to Java via JNI
292 // -------------------------------------------------------------------------- 301 // --------------------------------------------------------------------------
293 302
294 void OnSmartClipDataExtracted(const base::string16& text, 303 void OnSmartClipDataExtracted(const base::string16& text,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; 480 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_;
472 481
473 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 482 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
474 }; 483 };
475 484
476 bool RegisterContentViewCore(JNIEnv* env); 485 bool RegisterContentViewCore(JNIEnv* env);
477 486
478 } // namespace content 487 } // namespace content
479 488
480 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 489 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698