| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_helper.h" | 10 #include "base/android/jni_helper.h" |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 void ShowImeIfNeeded(JNIEnv* env, jobject obj); | 197 void ShowImeIfNeeded(JNIEnv* env, jobject obj); |
| 198 | 198 |
| 199 void ShowInterstitialPage(JNIEnv* env, | 199 void ShowInterstitialPage(JNIEnv* env, |
| 200 jobject obj, | 200 jobject obj, |
| 201 jstring jurl, | 201 jstring jurl, |
| 202 jint delegate); | 202 jint delegate); |
| 203 jboolean IsShowingInterstitialPage(JNIEnv* env, jobject obj); | 203 jboolean IsShowingInterstitialPage(JNIEnv* env, jobject obj); |
| 204 | 204 |
| 205 jboolean ConsumePendingRendererFrame(JNIEnv* env, jobject obj); | 205 jboolean ConsumePendingRendererFrame(JNIEnv* env, jobject obj); |
| 206 | 206 |
| 207 void ExternalVideoSurfaceCreated(JNIEnv* env, jobject obj, jobject jsurface); |
| 208 void ExternalVideoSurfaceDestroyed(JNIEnv* env, jobject obj); |
| 209 |
| 207 // -------------------------------------------------------------------------- | 210 // -------------------------------------------------------------------------- |
| 208 // Public methods that call to Java via JNI | 211 // Public methods that call to Java via JNI |
| 209 // -------------------------------------------------------------------------- | 212 // -------------------------------------------------------------------------- |
| 210 | 213 |
| 211 // Creates a popup menu with |items|. | 214 // Creates a popup menu with |items|. |
| 212 // |multiple| defines if it should support multi-select. | 215 // |multiple| defines if it should support multi-select. |
| 213 // If not |multiple|, |selected_item| sets the initially selected item. | 216 // If not |multiple|, |selected_item| sets the initially selected item. |
| 214 // Otherwise, item's "checked" flag selects it. | 217 // Otherwise, item's "checked" flag selects it. |
| 215 void ShowSelectPopupMenu(const std::vector<WebMenuItem>& items, | 218 void ShowSelectPopupMenu(const std::vector<WebMenuItem>& items, |
| 216 int selected_item, | 219 int selected_item, |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 ui::WindowAndroid* window_android_; | 333 ui::WindowAndroid* window_android_; |
| 331 | 334 |
| 332 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 335 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 333 }; | 336 }; |
| 334 | 337 |
| 335 bool RegisterContentViewCore(JNIEnv* env); | 338 bool RegisterContentViewCore(JNIEnv* env); |
| 336 | 339 |
| 337 } // namespace content | 340 } // namespace content |
| 338 | 341 |
| 339 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 342 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |