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 16 matching lines...) Expand all Loading... |
27 #include "ui/gfx/geometry/rect.h" | 27 #include "ui/gfx/geometry/rect.h" |
28 #include "ui/gfx/geometry/rect_f.h" | 28 #include "ui/gfx/geometry/rect_f.h" |
29 #include "ui/gfx/selection_bound.h" | 29 #include "ui/gfx/selection_bound.h" |
30 #include "url/gurl.h" | 30 #include "url/gurl.h" |
31 | 31 |
32 namespace cc { | 32 namespace cc { |
33 struct ViewportSelectionBound; | 33 struct ViewportSelectionBound; |
34 } | 34 } |
35 | 35 |
36 namespace ui { | 36 namespace ui { |
| 37 class ImageSkia; |
37 class WindowAndroid; | 38 class WindowAndroid; |
38 } | 39 } |
39 | 40 |
40 namespace content { | 41 namespace content { |
41 | 42 |
42 class GinJavaBridgeDispatcherHost; | 43 class GinJavaBridgeDispatcherHost; |
43 class RenderFrameHost; | 44 class RenderFrameHost; |
44 class RenderWidgetHostViewAndroid; | 45 class RenderWidgetHostViewAndroid; |
45 struct MenuItem; | 46 struct MenuItem; |
46 | 47 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 const base::android::JavaParamRef<jstring>& j_content); | 294 const base::android::JavaParamRef<jstring>& j_content); |
294 | 295 |
295 jint GetCurrentRenderProcessId( | 296 jint GetCurrentRenderProcessId( |
296 JNIEnv* env, | 297 JNIEnv* env, |
297 const base::android::JavaParamRef<jobject>& obj); | 298 const base::android::JavaParamRef<jobject>& obj); |
298 | 299 |
299 // -------------------------------------------------------------------------- | 300 // -------------------------------------------------------------------------- |
300 // Public methods that call to Java via JNI | 301 // Public methods that call to Java via JNI |
301 // -------------------------------------------------------------------------- | 302 // -------------------------------------------------------------------------- |
302 | 303 |
| 304 void StartDragging(const base::string16& dragged_text, |
| 305 const gfx::ImageSkia& image); |
| 306 |
303 void OnSmartClipDataExtracted(const base::string16& text, | 307 void OnSmartClipDataExtracted(const base::string16& text, |
304 const base::string16& html, | 308 const base::string16& html, |
305 const gfx::Rect& clip_rect); | 309 const gfx::Rect& clip_rect); |
306 | 310 |
307 // Creates a popup menu with |items|. | 311 // Creates a popup menu with |items|. |
308 // |multiple| defines if it should support multi-select. | 312 // |multiple| defines if it should support multi-select. |
309 // If not |multiple|, |selected_item| sets the initially selected item. | 313 // If not |multiple|, |selected_item| sets the initially selected item. |
310 // Otherwise, item's "checked" flag selects it. | 314 // Otherwise, item's "checked" flag selects it. |
311 void ShowSelectPopupMenu(RenderFrameHost* frame, | 315 void ShowSelectPopupMenu(RenderFrameHost* frame, |
312 const gfx::Rect& bounds, | 316 const gfx::Rect& bounds, |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 484 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
481 | 485 |
482 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 486 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
483 }; | 487 }; |
484 | 488 |
485 bool RegisterContentViewCore(JNIEnv* env); | 489 bool RegisterContentViewCore(JNIEnv* env); |
486 | 490 |
487 } // namespace content | 491 } // namespace content |
488 | 492 |
489 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 493 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |