| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 jboolean has_delay, | 228 jboolean has_delay, |
| 229 jint count); | 229 jint count); |
| 230 void SendSingleTapUma(JNIEnv* env, jobject obj, jint type, jint count); | 230 void SendSingleTapUma(JNIEnv* env, jobject obj, jint type, jint count); |
| 231 | 231 |
| 232 void ExtractSmartClipData(JNIEnv* env, | 232 void ExtractSmartClipData(JNIEnv* env, |
| 233 jobject obj, | 233 jobject obj, |
| 234 jint x, | 234 jint x, |
| 235 jint y, | 235 jint y, |
| 236 jint width, | 236 jint width, |
| 237 jint height); | 237 jint height); |
| 238 |
| 239 jboolean CanLockContent(JNIEnv* env, jobject obj); |
| 240 void LockContent(JNIEnv* env, jobject obj); |
| 241 void UnlockContent(JNIEnv* env, jobject obj); |
| 238 // -------------------------------------------------------------------------- | 242 // -------------------------------------------------------------------------- |
| 239 // Public methods that call to Java via JNI | 243 // Public methods that call to Java via JNI |
| 240 // -------------------------------------------------------------------------- | 244 // -------------------------------------------------------------------------- |
| 241 | 245 |
| 242 void OnSmartClipDataExtracted(const base::string16& result); | 246 void OnSmartClipDataExtracted(const base::string16& result); |
| 243 | 247 |
| 244 // Creates a popup menu with |items|. | 248 // Creates a popup menu with |items|. |
| 245 // |multiple| defines if it should support multi-select. | 249 // |multiple| defines if it should support multi-select. |
| 246 // If not |multiple|, |selected_item| sets the initially selected item. | 250 // If not |multiple|, |selected_item| sets the initially selected item. |
| 247 // Otherwise, item's "checked" flag selects it. | 251 // Otherwise, item's "checked" flag selects it. |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 GestureEventPacket pending_gesture_packet_; | 412 GestureEventPacket pending_gesture_packet_; |
| 409 | 413 |
| 410 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 414 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 411 }; | 415 }; |
| 412 | 416 |
| 413 bool RegisterContentViewCore(JNIEnv* env); | 417 bool RegisterContentViewCore(JNIEnv* env); |
| 414 | 418 |
| 415 } // namespace content | 419 } // namespace content |
| 416 | 420 |
| 417 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 421 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |