| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 211 |
| 212 void SetAccessibilityEnabled(JNIEnv* env, jobject obj, bool enabled); | 212 void SetAccessibilityEnabled(JNIEnv* env, jobject obj, bool enabled); |
| 213 | 213 |
| 214 void ExtractSmartClipData(JNIEnv* env, | 214 void ExtractSmartClipData(JNIEnv* env, |
| 215 jobject obj, | 215 jobject obj, |
| 216 jint x, | 216 jint x, |
| 217 jint y, | 217 jint y, |
| 218 jint width, | 218 jint width, |
| 219 jint height); | 219 jint height); |
| 220 | 220 |
| 221 // Notifies the main frame that it can continue navigation (if it was deferred |
| 222 // immediately at first response). |
| 223 void ResumeResponseDeferredAtStart(JNIEnv* env, jobject obj); |
| 224 |
| 221 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj); | 225 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj); |
| 222 | 226 |
| 223 // -------------------------------------------------------------------------- | 227 // -------------------------------------------------------------------------- |
| 224 // Public methods that call to Java via JNI | 228 // Public methods that call to Java via JNI |
| 225 // -------------------------------------------------------------------------- | 229 // -------------------------------------------------------------------------- |
| 226 | 230 |
| 231 // This method is invoked when the request is deferred immediately after |
| 232 // receiving response headers. |
| 233 void DidDeferAfterResponseStarted(); |
| 234 |
| 235 // This method is invoked when a navigation transition is detected, to |
| 236 // determine if the embedder intends to handle it. |
| 237 bool WillHandleDeferAfterResponseStarted(); |
| 238 |
| 227 void OnSmartClipDataExtracted(const base::string16& result); | 239 void OnSmartClipDataExtracted(const base::string16& result); |
| 228 | 240 |
| 229 // Creates a popup menu with |items|. | 241 // Creates a popup menu with |items|. |
| 230 // |multiple| defines if it should support multi-select. | 242 // |multiple| defines if it should support multi-select. |
| 231 // If not |multiple|, |selected_item| sets the initially selected item. | 243 // If not |multiple|, |selected_item| sets the initially selected item. |
| 232 // Otherwise, item's "checked" flag selects it. | 244 // Otherwise, item's "checked" flag selects it. |
| 233 void ShowSelectPopupMenu(const gfx::Rect& bounds, | 245 void ShowSelectPopupMenu(const gfx::Rect& bounds, |
| 234 const std::vector<MenuItem>& items, | 246 const std::vector<MenuItem>& items, |
| 235 int selected_item, | 247 int selected_item, |
| 236 bool multiple); | 248 bool multiple); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 java_bridge_dispatcher_host_manager_; | 385 java_bridge_dispatcher_host_manager_; |
| 374 | 386 |
| 375 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 387 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 376 }; | 388 }; |
| 377 | 389 |
| 378 bool RegisterContentViewCore(JNIEnv* env); | 390 bool RegisterContentViewCore(JNIEnv* env); |
| 379 | 391 |
| 380 } // namespace content | 392 } // namespace content |
| 381 | 393 |
| 382 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 394 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |