OLD | NEW |
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 Loading... |
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 OnDragEvent(JNIEnv* env, |
| 282 const base::android::JavaParamRef<jobject>& jobj, |
| 283 int action, |
| 284 const base::android::JavaParamRef<jintArray>& j_locations, |
| 285 const base::android::JavaParamRef<jstring>& content); |
281 | 286 |
282 jint GetCurrentRenderProcessId( | 287 jint GetCurrentRenderProcessId( |
283 JNIEnv* env, | 288 JNIEnv* env, |
284 const base::android::JavaParamRef<jobject>& obj); | 289 const base::android::JavaParamRef<jobject>& obj); |
285 | 290 |
286 // -------------------------------------------------------------------------- | 291 // -------------------------------------------------------------------------- |
287 // Public methods that call to Java via JNI | 292 // Public methods that call to Java via JNI |
288 // -------------------------------------------------------------------------- | 293 // -------------------------------------------------------------------------- |
289 | 294 |
290 void OnSmartClipDataExtracted(const base::string16& text, | 295 void OnSmartClipDataExtracted(const base::string16& text, |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 471 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
467 | 472 |
468 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 473 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
469 }; | 474 }; |
470 | 475 |
471 bool RegisterContentViewCore(JNIEnv* env); | 476 bool RegisterContentViewCore(JNIEnv* env); |
472 | 477 |
473 } // namespace content | 478 } // namespace content |
474 | 479 |
475 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 480 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |