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 14 matching lines...) Expand all Loading... |
25 #include "content/browser/renderer_host/delegated_frame_evictor.h" | 25 #include "content/browser/renderer_host/delegated_frame_evictor.h" |
26 #include "content/browser/renderer_host/ime_adapter_android.h" | 26 #include "content/browser/renderer_host/ime_adapter_android.h" |
27 #include "content/browser/renderer_host/input/stylus_text_selector.h" | 27 #include "content/browser/renderer_host/input/stylus_text_selector.h" |
28 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 28 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
29 #include "content/browser/renderer_host/text_input_manager.h" | 29 #include "content/browser/renderer_host/text_input_manager.h" |
30 #include "content/common/content_export.h" | 30 #include "content/common/content_export.h" |
31 #include "content/public/browser/readback_types.h" | 31 #include "content/public/browser/readback_types.h" |
32 #include "gpu/command_buffer/common/mailbox.h" | 32 #include "gpu/command_buffer/common/mailbox.h" |
33 #include "third_party/skia/include/core/SkColor.h" | 33 #include "third_party/skia/include/core/SkColor.h" |
34 #include "ui/android/view_android.h" | 34 #include "ui/android/view_android.h" |
| 35 #include "ui/android/view_client.h" |
35 #include "ui/android/window_android_observer.h" | 36 #include "ui/android/window_android_observer.h" |
36 #include "ui/events/android/motion_event_android.h" | 37 #include "ui/events/android/motion_event_android.h" |
37 #include "ui/events/gesture_detection/filtered_gesture_provider.h" | 38 #include "ui/events/gesture_detection/filtered_gesture_provider.h" |
38 #include "ui/gfx/geometry/size.h" | 39 #include "ui/gfx/geometry/size.h" |
39 #include "ui/gfx/geometry/vector2d_f.h" | 40 #include "ui/gfx/geometry/vector2d_f.h" |
40 #include "ui/gfx/selection_bound.h" | 41 #include "ui/gfx/selection_bound.h" |
41 #include "ui/touch_selection/touch_selection_controller.h" | 42 #include "ui/touch_selection/touch_selection_controller.h" |
42 | 43 |
43 class GURL; | 44 class GURL; |
44 | 45 |
(...skipping 13 matching lines...) Expand all Loading... |
58 class SynchronousCompositorHost; | 59 class SynchronousCompositorHost; |
59 class SynchronousCompositorClient; | 60 class SynchronousCompositorClient; |
60 struct NativeWebKeyboardEvent; | 61 struct NativeWebKeyboardEvent; |
61 | 62 |
62 // ----------------------------------------------------------------------------- | 63 // ----------------------------------------------------------------------------- |
63 // See comments in render_widget_host_view.h about this class and its members. | 64 // See comments in render_widget_host_view.h about this class and its members. |
64 // ----------------------------------------------------------------------------- | 65 // ----------------------------------------------------------------------------- |
65 class CONTENT_EXPORT RenderWidgetHostViewAndroid | 66 class CONTENT_EXPORT RenderWidgetHostViewAndroid |
66 : public RenderWidgetHostViewBase, | 67 : public RenderWidgetHostViewBase, |
67 public ui::GestureProviderClient, | 68 public ui::GestureProviderClient, |
| 69 public ui::ViewClient, |
68 public ui::WindowAndroidObserver, | 70 public ui::WindowAndroidObserver, |
69 public DelegatedFrameEvictorClient, | 71 public DelegatedFrameEvictorClient, |
70 public StylusTextSelectorClient, | 72 public StylusTextSelectorClient, |
71 public ui::TouchSelectionControllerClient, | 73 public ui::TouchSelectionControllerClient, |
72 public content::ContentViewCoreImplObserver, | 74 public content::ContentViewCoreImplObserver, |
73 public content::TextInputManager::Observer { | 75 public content::TextInputManager::Observer { |
74 public: | 76 public: |
75 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget, | 77 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget, |
76 ContentViewCoreImpl* content_view_core); | 78 ContentViewCoreImpl* content_view_core); |
77 ~RenderWidgetHostViewAndroid() override; | 79 ~RenderWidgetHostViewAndroid() override; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 cc::FrameSinkId GetFrameSinkId() override; | 152 cc::FrameSinkId GetFrameSinkId() override; |
151 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, | 153 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, |
152 const SkBitmap& zoomed_bitmap) override; | 154 const SkBitmap& zoomed_bitmap) override; |
153 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() | 155 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() |
154 override; | 156 override; |
155 void LockCompositingSurface() override; | 157 void LockCompositingSurface() override; |
156 void UnlockCompositingSurface() override; | 158 void UnlockCompositingSurface() override; |
157 void OnDidNavigateMainFrameToNewPage() override; | 159 void OnDidNavigateMainFrameToNewPage() override; |
158 void SetNeedsBeginFrames(bool needs_begin_frames) override; | 160 void SetNeedsBeginFrames(bool needs_begin_frames) override; |
159 | 161 |
| 162 // ui::ViewClient implementation. |
| 163 void OnPhysicalBackingSizeChanged(int width, int height) override; |
| 164 |
160 // ui::GestureProviderClient implementation. | 165 // ui::GestureProviderClient implementation. |
161 void OnGestureEvent(const ui::GestureEventData& gesture) override; | 166 void OnGestureEvent(const ui::GestureEventData& gesture) override; |
162 | 167 |
163 // ui::WindowAndroidObserver implementation. | 168 // ui::WindowAndroidObserver implementation. |
164 void OnCompositingDidCommit() override; | 169 void OnCompositingDidCommit() override; |
165 void OnRootWindowVisibilityChanged(bool visible) override; | 170 void OnRootWindowVisibilityChanged(bool visible) override; |
166 void OnAttachCompositor() override; | 171 void OnAttachCompositor() override; |
167 void OnDetachCompositor() override; | 172 void OnDetachCompositor() override; |
168 void OnVSync(base::TimeTicks frame_time, | 173 void OnVSync(base::TimeTicks frame_time, |
169 base::TimeDelta vsync_period) override; | 174 base::TimeDelta vsync_period) override; |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 gfx::Vector2dF last_scroll_offset_; | 390 gfx::Vector2dF last_scroll_offset_; |
386 | 391 |
387 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 392 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
388 | 393 |
389 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 394 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
390 }; | 395 }; |
391 | 396 |
392 } // namespace content | 397 } // namespace content |
393 | 398 |
394 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 399 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |