| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 void SetAccessibilityEnabled(JNIEnv* env, jobject obj, bool enabled); | 173 void SetAccessibilityEnabled(JNIEnv* env, jobject obj, bool enabled); |
| 174 | 174 |
| 175 void ExtractSmartClipData(JNIEnv* env, | 175 void ExtractSmartClipData(JNIEnv* env, |
| 176 jobject obj, | 176 jobject obj, |
| 177 jint x, | 177 jint x, |
| 178 jint y, | 178 jint y, |
| 179 jint width, | 179 jint width, |
| 180 jint height); | 180 jint height); |
| 181 | 181 |
| 182 void SetBackgroundOpaque(JNIEnv* env, jobject jobj, jboolean opaque); | 182 void SetBackgroundOpaque(JNIEnv* env, jobject jobj, jboolean opaque); |
| 183 void SetDrawsContent(JNIEnv* env, jobject jobj, jboolean draws); |
| 183 | 184 |
| 184 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj); | 185 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj); |
| 185 | 186 |
| 186 // -------------------------------------------------------------------------- | 187 // -------------------------------------------------------------------------- |
| 187 // Public methods that call to Java via JNI | 188 // Public methods that call to Java via JNI |
| 188 // -------------------------------------------------------------------------- | 189 // -------------------------------------------------------------------------- |
| 189 | 190 |
| 190 void OnSmartClipDataExtracted(const base::string16& text, | 191 void OnSmartClipDataExtracted(const base::string16& text, |
| 191 const base::string16& html, | 192 const base::string16& html, |
| 192 const gfx::Rect& clip_rect); | 193 const gfx::Rect& clip_rect); |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 348 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
| 348 | 349 |
| 349 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 350 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 350 }; | 351 }; |
| 351 | 352 |
| 352 bool RegisterContentViewCore(JNIEnv* env); | 353 bool RegisterContentViewCore(JNIEnv* env); |
| 353 | 354 |
| 354 } // namespace content | 355 } // namespace content |
| 355 | 356 |
| 356 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 357 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |