Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host_view_android.h |
| diff --git a/content/browser/renderer_host/render_widget_host_view_android.h b/content/browser/renderer_host/render_widget_host_view_android.h |
| index 256fb132efcfca6c06b36da43d11a5757de786bf..8d6797e5626a602f70ce6c8e884ee4fb96499740 100644 |
| --- a/content/browser/renderer_host/render_widget_host_view_android.h |
| +++ b/content/browser/renderer_host/render_widget_host_view_android.h |
| @@ -20,6 +20,7 @@ |
| #include "content/browser/renderer_host/delegated_frame_evictor.h" |
| #include "content/browser/renderer_host/image_transport_factory_android.h" |
| #include "content/browser/renderer_host/ime_adapter_android.h" |
| +#include "content/browser/renderer_host/input/gesture_text_selector.h" |
| #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| #include "content/common/content_export.h" |
| #include "gpu/command_buffer/common/mailbox.h" |
| @@ -50,6 +51,7 @@ class WebMouseEvent; |
| namespace content { |
| class ContentViewCoreImpl; |
| +class GestureTextSelector; |
| class OverscrollGlow; |
| class RenderWidgetHost; |
| class RenderWidgetHostImpl; |
| @@ -65,7 +67,8 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid |
| public ImageTransportFactoryAndroidObserver, |
| public ui::GestureProviderClient, |
| public ui::WindowAndroidObserver, |
| - public DelegatedFrameEvictorClient { |
| + public DelegatedFrameEvictorClient, |
| + public GestureTextSelectorClient { |
| public: |
| RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget, |
| ContentViewCoreImpl* content_view_core); |
| @@ -231,6 +234,12 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid |
| void SetTextSurroundingSelectionCallback( |
| const TextSurroundingSelectionCallback& callback); |
| + // GestureTextSelectorClient implementation. |
| + virtual void ShowSelectionHandlesAutomatically() OVERRIDE; |
| + virtual void SelectRange(float x1, float y1, float x2, float y2) OVERRIDE; |
| + virtual void SelectWord(float x, float y) OVERRIDE; |
| + virtual void Unselect() OVERRIDE; |
| + |
| private: |
| void RunAckCallbacks(); |
| @@ -361,6 +370,8 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid |
| TextSurroundingSelectionCallback text_surrounding_selection_callback_; |
| + scoped_ptr<GestureTextSelector> gesture_text_selector_; |
|
jdduke (slow)
2014/06/24 15:38:37
I don't think we need to heap allocate this, I wou
Changwan Ryu
2014/06/25 07:26:21
Done.
|
| + |
| DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| }; |