| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 void ShowImeIfNeeded(JNIEnv* env, jobject obj); | 201 void ShowImeIfNeeded(JNIEnv* env, jobject obj); |
| 202 | 202 |
| 203 void ShowInterstitialPage(JNIEnv* env, | 203 void ShowInterstitialPage(JNIEnv* env, |
| 204 jobject obj, | 204 jobject obj, |
| 205 jstring jurl, | 205 jstring jurl, |
| 206 jint delegate); | 206 jint delegate); |
| 207 jboolean IsShowingInterstitialPage(JNIEnv* env, jobject obj); | 207 jboolean IsShowingInterstitialPage(JNIEnv* env, jobject obj); |
| 208 | 208 |
| 209 jboolean ConsumePendingRendererFrame(JNIEnv* env, jobject obj); | 209 jboolean ConsumePendingRendererFrame(JNIEnv* env, jobject obj); |
| 210 | 210 |
| 211 void SetExternalVideoSurfaceViewHolder(JNIEnv* env, jobject obj, |
| 212 jint native_holder); |
| 213 |
| 211 // -------------------------------------------------------------------------- | 214 // -------------------------------------------------------------------------- |
| 212 // Public methods that call to Java via JNI | 215 // Public methods that call to Java via JNI |
| 213 // -------------------------------------------------------------------------- | 216 // -------------------------------------------------------------------------- |
| 214 | 217 |
| 215 // Creates a popup menu with |items|. | 218 // Creates a popup menu with |items|. |
| 216 // |multiple| defines if it should support multi-select. | 219 // |multiple| defines if it should support multi-select. |
| 217 // If not |multiple|, |selected_item| sets the initially selected item. | 220 // If not |multiple|, |selected_item| sets the initially selected item. |
| 218 // Otherwise, item's "checked" flag selects it. | 221 // Otherwise, item's "checked" flag selects it. |
| 219 void ShowSelectPopupMenu(const std::vector<WebMenuItem>& items, | 222 void ShowSelectPopupMenu(const std::vector<WebMenuItem>& items, |
| 220 int selected_item, | 223 int selected_item, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 std::vector<UpdateFrameInfoCallback> update_frame_info_callbacks_; | 333 std::vector<UpdateFrameInfoCallback> update_frame_info_callbacks_; |
| 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 |