OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 namespace content { | 50 namespace content { |
51 class ContentViewCore; | 51 class ContentViewCore; |
52 class ImeAdapterAndroid; | 52 class ImeAdapterAndroid; |
53 class OverscrollControllerAndroid; | 53 class OverscrollControllerAndroid; |
54 class RenderWidgetHost; | 54 class RenderWidgetHost; |
55 class RenderWidgetHostImpl; | 55 class RenderWidgetHostImpl; |
56 class SelectionPopupController; | 56 class SelectionPopupController; |
57 class SynchronousCompositorHost; | 57 class SynchronousCompositorHost; |
58 class SynchronousCompositorClient; | 58 class SynchronousCompositorClient; |
| 59 class TextSuggestionHostAndroid; |
59 class TouchSelectionControllerClientManagerAndroid; | 60 class TouchSelectionControllerClientManagerAndroid; |
60 class WebContentsAccessibilityAndroid; | 61 class WebContentsAccessibilityAndroid; |
61 struct NativeWebKeyboardEvent; | 62 struct NativeWebKeyboardEvent; |
62 struct ContextMenuParams; | 63 struct ContextMenuParams; |
63 | 64 |
64 // ----------------------------------------------------------------------------- | 65 // ----------------------------------------------------------------------------- |
65 // See comments in render_widget_host_view.h about this class and its members. | 66 // See comments in render_widget_host_view.h about this class and its members. |
66 // ----------------------------------------------------------------------------- | 67 // ----------------------------------------------------------------------------- |
67 class CONTENT_EXPORT RenderWidgetHostViewAndroid | 68 class CONTENT_EXPORT RenderWidgetHostViewAndroid |
68 : public RenderWidgetHostViewBase, | 69 : public RenderWidgetHostViewBase, |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 bool ShowSelectionMenu(const ContextMenuParams& params); | 252 bool ShowSelectionMenu(const ContextMenuParams& params); |
252 void ResolveTapDisambiguation(double timestamp_seconds, | 253 void ResolveTapDisambiguation(double timestamp_seconds, |
253 gfx::Point tap_viewport_offset, | 254 gfx::Point tap_viewport_offset, |
254 bool is_long_press); | 255 bool is_long_press); |
255 void set_ime_adapter(ImeAdapterAndroid* ime_adapter) { | 256 void set_ime_adapter(ImeAdapterAndroid* ime_adapter) { |
256 ime_adapter_android_ = ime_adapter; | 257 ime_adapter_android_ = ime_adapter; |
257 } | 258 } |
258 void set_selection_popup_controller(SelectionPopupController* controller) { | 259 void set_selection_popup_controller(SelectionPopupController* controller) { |
259 selection_popup_controller_ = controller; | 260 selection_popup_controller_ = controller; |
260 } | 261 } |
| 262 void set_text_suggestion_host( |
| 263 TextSuggestionHostAndroid* text_suggestion_host) { |
| 264 text_suggestion_host_ = text_suggestion_host; |
| 265 } |
261 | 266 |
262 base::WeakPtr<RenderWidgetHostViewAndroid> GetWeakPtrAndroid(); | 267 base::WeakPtr<RenderWidgetHostViewAndroid> GetWeakPtrAndroid(); |
263 | 268 |
264 bool OnTouchEvent(const ui::MotionEvent& event); | 269 bool OnTouchEvent(const ui::MotionEvent& event); |
265 bool OnTouchHandleEvent(const ui::MotionEvent& event); | 270 bool OnTouchHandleEvent(const ui::MotionEvent& event); |
266 int GetTouchHandleHeight(); | 271 int GetTouchHandleHeight(); |
267 void ResetGestureDetection(); | 272 void ResetGestureDetection(); |
268 void SetDoubleTapSupportEnabled(bool enabled); | 273 void SetDoubleTapSupportEnabled(bool enabled); |
269 void SetMultiTouchZoomSupportEnabled(bool enabled); | 274 void SetMultiTouchZoomSupportEnabled(bool enabled); |
270 | 275 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 | 398 |
394 // Used to customize behavior for virtual reality mode, such as the | 399 // Used to customize behavior for virtual reality mode, such as the |
395 // appearance of overscroll glow and the keyboard. | 400 // appearance of overscroll glow and the keyboard. |
396 bool is_in_vr_; | 401 bool is_in_vr_; |
397 | 402 |
398 // ContentViewCore is our interface to the view system. | 403 // ContentViewCore is our interface to the view system. |
399 ContentViewCore* content_view_core_; | 404 ContentViewCore* content_view_core_; |
400 | 405 |
401 ImeAdapterAndroid* ime_adapter_android_; | 406 ImeAdapterAndroid* ime_adapter_android_; |
402 SelectionPopupController* selection_popup_controller_; | 407 SelectionPopupController* selection_popup_controller_; |
| 408 TextSuggestionHostAndroid* text_suggestion_host_; |
403 | 409 |
404 // The background color of the widget. | 410 // The background color of the widget. |
405 SkColor background_color_; | 411 SkColor background_color_; |
406 | 412 |
407 // Body background color of the underlying document. | 413 // Body background color of the underlying document. |
408 SkColor cached_background_color_; | 414 SkColor cached_background_color_; |
409 | 415 |
410 mutable ui::ViewAndroid view_; | 416 mutable ui::ViewAndroid view_; |
411 | 417 |
412 // Manages the Compositor Frames received from the renderer. | 418 // Manages the Compositor Frames received from the renderer. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 MouseWheelPhaseHandler mouse_wheel_phase_handler_; | 475 MouseWheelPhaseHandler mouse_wheel_phase_handler_; |
470 | 476 |
471 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 477 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
472 | 478 |
473 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 479 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
474 }; | 480 }; |
475 | 481 |
476 } // namespace content | 482 } // namespace content |
477 | 483 |
478 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 484 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |