| 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 ContentViewCoreImpl; | 51 class ContentViewCoreImpl; |
| 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 WebContentsAccessibilityAndroid; | 60 class WebContentsAccessibilityAndroid; |
| 60 struct NativeWebKeyboardEvent; | 61 struct NativeWebKeyboardEvent; |
| 61 struct ContextMenuParams; | 62 struct ContextMenuParams; |
| 62 | 63 |
| 63 // ----------------------------------------------------------------------------- | 64 // ----------------------------------------------------------------------------- |
| 64 // See comments in render_widget_host_view.h about this class and its members. | 65 // See comments in render_widget_host_view.h about this class and its members. |
| 65 // ----------------------------------------------------------------------------- | 66 // ----------------------------------------------------------------------------- |
| 66 class CONTENT_EXPORT RenderWidgetHostViewAndroid | 67 class CONTENT_EXPORT RenderWidgetHostViewAndroid |
| 67 : public RenderWidgetHostViewBase, | 68 : public RenderWidgetHostViewBase, |
| 68 public ui::GestureProviderClient, | 69 public ui::GestureProviderClient, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 bool ShowSelectionMenu(const ContextMenuParams& params); | 246 bool ShowSelectionMenu(const ContextMenuParams& params); |
| 246 void ResolveTapDisambiguation(double timestamp_seconds, | 247 void ResolveTapDisambiguation(double timestamp_seconds, |
| 247 gfx::Point tap_viewport_offset, | 248 gfx::Point tap_viewport_offset, |
| 248 bool is_long_press); | 249 bool is_long_press); |
| 249 void set_ime_adapter(ImeAdapterAndroid* ime_adapter) { | 250 void set_ime_adapter(ImeAdapterAndroid* ime_adapter) { |
| 250 ime_adapter_android_ = ime_adapter; | 251 ime_adapter_android_ = ime_adapter; |
| 251 } | 252 } |
| 252 void set_selection_popup_controller(SelectionPopupController* controller) { | 253 void set_selection_popup_controller(SelectionPopupController* controller) { |
| 253 selection_popup_controller_ = controller; | 254 selection_popup_controller_ = controller; |
| 254 } | 255 } |
| 256 void set_text_suggestion_host( |
| 257 TextSuggestionHostAndroid* text_suggestion_host) { |
| 258 text_suggestion_host_ = text_suggestion_host; |
| 259 } |
| 255 | 260 |
| 256 base::WeakPtr<RenderWidgetHostViewAndroid> GetWeakPtrAndroid(); | 261 base::WeakPtr<RenderWidgetHostViewAndroid> GetWeakPtrAndroid(); |
| 257 | 262 |
| 258 bool OnTouchEvent(const ui::MotionEvent& event); | 263 bool OnTouchEvent(const ui::MotionEvent& event); |
| 259 bool OnTouchHandleEvent(const ui::MotionEvent& event); | 264 bool OnTouchHandleEvent(const ui::MotionEvent& event); |
| 260 int GetTouchHandleHeight(); | 265 int GetTouchHandleHeight(); |
| 261 void ResetGestureDetection(); | 266 void ResetGestureDetection(); |
| 262 void SetDoubleTapSupportEnabled(bool enabled); | 267 void SetDoubleTapSupportEnabled(bool enabled); |
| 263 void SetMultiTouchZoomSupportEnabled(bool enabled); | 268 void SetMultiTouchZoomSupportEnabled(bool enabled); |
| 264 | 269 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 | 375 |
| 371 // Used to customize behavior for virtual reality mode, such as the | 376 // Used to customize behavior for virtual reality mode, such as the |
| 372 // appearance of overscroll glow and the keyboard. | 377 // appearance of overscroll glow and the keyboard. |
| 373 bool is_in_vr_; | 378 bool is_in_vr_; |
| 374 | 379 |
| 375 // ContentViewCoreImpl is our interface to the view system. | 380 // ContentViewCoreImpl is our interface to the view system. |
| 376 ContentViewCoreImpl* content_view_core_; | 381 ContentViewCoreImpl* content_view_core_; |
| 377 | 382 |
| 378 ImeAdapterAndroid* ime_adapter_android_; | 383 ImeAdapterAndroid* ime_adapter_android_; |
| 379 SelectionPopupController* selection_popup_controller_; | 384 SelectionPopupController* selection_popup_controller_; |
| 385 TextSuggestionHostAndroid* text_suggestion_host_; |
| 380 | 386 |
| 381 // The background color of the widget. | 387 // The background color of the widget. |
| 382 SkColor background_color_; | 388 SkColor background_color_; |
| 383 | 389 |
| 384 // Body background color of the underlying document. | 390 // Body background color of the underlying document. |
| 385 SkColor cached_background_color_; | 391 SkColor cached_background_color_; |
| 386 | 392 |
| 387 mutable ui::ViewAndroid view_; | 393 mutable ui::ViewAndroid view_; |
| 388 | 394 |
| 389 // Manages the Compositor Frames received from the renderer. | 395 // Manages the Compositor Frames received from the renderer. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 MouseWheelPhaseHandler mouse_wheel_phase_handler_; | 442 MouseWheelPhaseHandler mouse_wheel_phase_handler_; |
| 437 | 443 |
| 438 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 444 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 439 | 445 |
| 440 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 446 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 441 }; | 447 }; |
| 442 | 448 |
| 443 } // namespace content | 449 } // namespace content |
| 444 | 450 |
| 445 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 451 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |