| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 222 |
| 223 void ExtractSmartClipData(JNIEnv* env, | 223 void ExtractSmartClipData(JNIEnv* env, |
| 224 jobject obj, | 224 jobject obj, |
| 225 jint x, | 225 jint x, |
| 226 jint y, | 226 jint y, |
| 227 jint width, | 227 jint width, |
| 228 jint height); | 228 jint height); |
| 229 | 229 |
| 230 void SetBackgroundOpaque(JNIEnv* env, jobject jobj, jboolean opaque); | 230 void SetBackgroundOpaque(JNIEnv* env, jobject jobj, jboolean opaque); |
| 231 | 231 |
| 232 // Notifies the main frame that it can continue navigation (if it was deferred |
| 233 // immediately at first response). |
| 234 void ResumeResponseDeferredAtStart(JNIEnv* env, jobject obj); |
| 235 |
| 236 void SetHasPendingNavigationTransitionForTesting(JNIEnv* env, jobject obj); |
| 237 |
| 232 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj); | 238 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj); |
| 233 | 239 |
| 234 // -------------------------------------------------------------------------- | 240 // -------------------------------------------------------------------------- |
| 235 // Public methods that call to Java via JNI | 241 // Public methods that call to Java via JNI |
| 236 // -------------------------------------------------------------------------- | 242 // -------------------------------------------------------------------------- |
| 237 | 243 |
| 244 // This method is invoked when the request is deferred immediately after |
| 245 // receiving response headers. |
| 246 void DidDeferAfterResponseStarted(); |
| 247 |
| 248 // This method is invoked when a navigation transition is detected, to |
| 249 // determine if the embedder intends to handle it. |
| 250 bool WillHandleDeferAfterResponseStarted(); |
| 251 |
| 238 void OnSmartClipDataExtracted(const base::string16& result); | 252 void OnSmartClipDataExtracted(const base::string16& result); |
| 239 | 253 |
| 240 // Creates a popup menu with |items|. | 254 // Creates a popup menu with |items|. |
| 241 // |multiple| defines if it should support multi-select. | 255 // |multiple| defines if it should support multi-select. |
| 242 // If not |multiple|, |selected_item| sets the initially selected item. | 256 // If not |multiple|, |selected_item| sets the initially selected item. |
| 243 // Otherwise, item's "checked" flag selects it. | 257 // Otherwise, item's "checked" flag selects it. |
| 244 void ShowSelectPopupMenu(const gfx::Rect& bounds, | 258 void ShowSelectPopupMenu(const gfx::Rect& bounds, |
| 245 const std::vector<MenuItem>& items, | 259 const std::vector<MenuItem>& items, |
| 246 int selected_item, | 260 int selected_item, |
| 247 bool multiple); | 261 bool multiple); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 java_bridge_dispatcher_host_manager_; | 398 java_bridge_dispatcher_host_manager_; |
| 385 | 399 |
| 386 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 400 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 387 }; | 401 }; |
| 388 | 402 |
| 389 bool RegisterContentViewCore(JNIEnv* env); | 403 bool RegisterContentViewCore(JNIEnv* env); |
| 390 | 404 |
| 391 } // namespace content | 405 } // namespace content |
| 392 | 406 |
| 393 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 407 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |