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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 bool ShowSelectionMenu(const ContextMenuParams& params); | 254 bool ShowSelectionMenu(const ContextMenuParams& params); |
254 void ResolveTapDisambiguation(double timestamp_seconds, | 255 void ResolveTapDisambiguation(double timestamp_seconds, |
255 gfx::Point tap_viewport_offset, | 256 gfx::Point tap_viewport_offset, |
256 bool is_long_press); | 257 bool is_long_press); |
257 void set_ime_adapter(ImeAdapterAndroid* ime_adapter) { | 258 void set_ime_adapter(ImeAdapterAndroid* ime_adapter) { |
258 ime_adapter_android_ = ime_adapter; | 259 ime_adapter_android_ = ime_adapter; |
259 } | 260 } |
260 void set_selection_popup_controller(SelectionPopupController* controller) { | 261 void set_selection_popup_controller(SelectionPopupController* controller) { |
261 selection_popup_controller_ = controller; | 262 selection_popup_controller_ = controller; |
262 } | 263 } |
| 264 void set_text_suggestion_host( |
| 265 TextSuggestionHostAndroid* text_suggestion_host) { |
| 266 text_suggestion_host_ = text_suggestion_host; |
| 267 } |
263 | 268 |
264 base::WeakPtr<RenderWidgetHostViewAndroid> GetWeakPtrAndroid(); | 269 base::WeakPtr<RenderWidgetHostViewAndroid> GetWeakPtrAndroid(); |
265 | 270 |
266 bool OnTouchEvent(const ui::MotionEvent& event); | 271 bool OnTouchEvent(const ui::MotionEvent& event); |
267 bool OnTouchHandleEvent(const ui::MotionEvent& event); | 272 bool OnTouchHandleEvent(const ui::MotionEvent& event); |
268 int GetTouchHandleHeight(); | 273 int GetTouchHandleHeight(); |
269 void ResetGestureDetection(); | 274 void ResetGestureDetection(); |
270 void SetDoubleTapSupportEnabled(bool enabled); | 275 void SetDoubleTapSupportEnabled(bool enabled); |
271 void SetMultiTouchZoomSupportEnabled(bool enabled); | 276 void SetMultiTouchZoomSupportEnabled(bool enabled); |
272 | 277 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 | 392 |
388 // Used to customize behavior for virtual reality mode, such as the | 393 // Used to customize behavior for virtual reality mode, such as the |
389 // appearance of overscroll glow and the keyboard. | 394 // appearance of overscroll glow and the keyboard. |
390 bool is_in_vr_; | 395 bool is_in_vr_; |
391 | 396 |
392 // ContentViewCore is our interface to the view system. | 397 // ContentViewCore is our interface to the view system. |
393 ContentViewCore* content_view_core_; | 398 ContentViewCore* content_view_core_; |
394 | 399 |
395 ImeAdapterAndroid* ime_adapter_android_; | 400 ImeAdapterAndroid* ime_adapter_android_; |
396 SelectionPopupController* selection_popup_controller_; | 401 SelectionPopupController* selection_popup_controller_; |
| 402 TextSuggestionHostAndroid* text_suggestion_host_; |
397 | 403 |
398 // The background color of the widget. | 404 // The background color of the widget. |
399 SkColor background_color_; | 405 SkColor background_color_; |
400 | 406 |
401 // Body background color of the underlying document. | 407 // Body background color of the underlying document. |
402 SkColor cached_background_color_; | 408 SkColor cached_background_color_; |
403 | 409 |
404 mutable ui::ViewAndroid view_; | 410 mutable ui::ViewAndroid view_; |
405 | 411 |
406 // Manages the Compositor Frames received from the renderer. | 412 // Manages the Compositor Frames received from the renderer. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 MouseWheelPhaseHandler mouse_wheel_phase_handler_; | 469 MouseWheelPhaseHandler mouse_wheel_phase_handler_; |
464 | 470 |
465 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 471 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
466 | 472 |
467 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 473 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
468 }; | 474 }; |
469 | 475 |
470 } // namespace content | 476 } // namespace content |
471 | 477 |
472 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 478 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |