| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 const base::android::JavaParamRef<jstring>& j_content); | 296 const base::android::JavaParamRef<jstring>& j_content); |
| 297 | 297 |
| 298 jint GetCurrentRenderProcessId( | 298 jint GetCurrentRenderProcessId( |
| 299 JNIEnv* env, | 299 JNIEnv* env, |
| 300 const base::android::JavaParamRef<jobject>& obj); | 300 const base::android::JavaParamRef<jobject>& obj); |
| 301 | 301 |
| 302 // -------------------------------------------------------------------------- | 302 // -------------------------------------------------------------------------- |
| 303 // Public methods that call to Java via JNI | 303 // Public methods that call to Java via JNI |
| 304 // -------------------------------------------------------------------------- | 304 // -------------------------------------------------------------------------- |
| 305 | 305 |
| 306 void HidePopupsAndPreserveSelection(); |
| 307 |
| 306 void OnSmartClipDataExtracted(const base::string16& text, | 308 void OnSmartClipDataExtracted(const base::string16& text, |
| 307 const base::string16& html, | 309 const base::string16& html, |
| 308 const gfx::Rect& clip_rect); | 310 const gfx::Rect& clip_rect); |
| 309 | 311 |
| 310 // Creates a popup menu with |items|. | 312 // Creates a popup menu with |items|. |
| 311 // |multiple| defines if it should support multi-select. | 313 // |multiple| defines if it should support multi-select. |
| 312 // If not |multiple|, |selected_item| sets the initially selected item. | 314 // If not |multiple|, |selected_item| sets the initially selected item. |
| 313 // Otherwise, item's "checked" flag selects it. | 315 // Otherwise, item's "checked" flag selects it. |
| 314 void ShowSelectPopupMenu(RenderFrameHost* frame, | 316 void ShowSelectPopupMenu(RenderFrameHost* frame, |
| 315 const gfx::Rect& bounds, | 317 const gfx::Rect& bounds, |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 480 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
| 479 | 481 |
| 480 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 482 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 481 }; | 483 }; |
| 482 | 484 |
| 483 bool RegisterContentViewCore(JNIEnv* env); | 485 bool RegisterContentViewCore(JNIEnv* env); |
| 484 | 486 |
| 485 } // namespace content | 487 } // namespace content |
| 486 | 488 |
| 487 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 489 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |