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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 jstring jurl, | 216 jstring jurl, |
217 jint delegate); | 217 jint delegate); |
218 jboolean IsShowingInterstitialPage(JNIEnv* env, jobject obj); | 218 jboolean IsShowingInterstitialPage(JNIEnv* env, jobject obj); |
219 | 219 |
220 void AttachExternalVideoSurface(JNIEnv* env, | 220 void AttachExternalVideoSurface(JNIEnv* env, |
221 jobject obj, | 221 jobject obj, |
222 jint player_id, | 222 jint player_id, |
223 jobject jsurface); | 223 jobject jsurface); |
224 void DetachExternalVideoSurface(JNIEnv* env, jobject obj, jint player_id); | 224 void DetachExternalVideoSurface(JNIEnv* env, jobject obj, jint player_id); |
225 void SetAccessibilityEnabled(JNIEnv* env, jobject obj, bool enabled); | 225 void SetAccessibilityEnabled(JNIEnv* env, jobject obj, bool enabled); |
| 226 void SendActionAfterDoubleTapUma(JNIEnv* env, |
| 227 jobject obj, |
| 228 jint type, |
| 229 jboolean has_delay, |
| 230 jint count); |
| 231 void SendSingleTapUma(JNIEnv* env, jobject obj, jint type, jint count); |
226 | 232 |
227 // -------------------------------------------------------------------------- | 233 // -------------------------------------------------------------------------- |
228 // Public methods that call to Java via JNI | 234 // Public methods that call to Java via JNI |
229 // -------------------------------------------------------------------------- | 235 // -------------------------------------------------------------------------- |
230 | 236 |
231 // Creates a popup menu with |items|. | 237 // Creates a popup menu with |items|. |
232 // |multiple| defines if it should support multi-select. | 238 // |multiple| defines if it should support multi-select. |
233 // If not |multiple|, |selected_item| sets the initially selected item. | 239 // If not |multiple|, |selected_item| sets the initially selected item. |
234 // Otherwise, item's "checked" flag selects it. | 240 // Otherwise, item's "checked" flag selects it. |
235 void ShowSelectPopupMenu(const std::vector<MenuItem>& items, | 241 void ShowSelectPopupMenu(const std::vector<MenuItem>& items, |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 int device_orientation_; | 396 int device_orientation_; |
391 | 397 |
392 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 398 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
393 }; | 399 }; |
394 | 400 |
395 bool RegisterContentViewCore(JNIEnv* env); | 401 bool RegisterContentViewCore(JNIEnv* env); |
396 | 402 |
397 } // namespace content | 403 } // namespace content |
398 | 404 |
399 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 405 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |