Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 2502763003: Introduce ViewRoot to forward input/view events to native (Closed)
Patch Set: addressed comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 cc::FrameSinkId GetFrameSinkId() override; 151 cc::FrameSinkId GetFrameSinkId() override;
150 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, 152 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels,
151 const SkBitmap& zoomed_bitmap) override; 153 const SkBitmap& zoomed_bitmap) override;
152 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() 154 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget()
153 override; 155 override;
154 void LockCompositingSurface() override; 156 void LockCompositingSurface() override;
155 void UnlockCompositingSurface() override; 157 void UnlockCompositingSurface() override;
156 void OnDidNavigateMainFrameToNewPage() override; 158 void OnDidNavigateMainFrameToNewPage() override;
157 void SetNeedsBeginFrames(bool needs_begin_frames) override; 159 void SetNeedsBeginFrames(bool needs_begin_frames) override;
158 160
161 // ui::ViewClient implementation.
162 void OnPhysicalBackingSizeChanged(int width, int height);
boliu 2016/12/08 05:01:06 override
Jinsuk Kim 2016/12/13 23:20:38 Done.
163
159 // ui::GestureProviderClient implementation. 164 // ui::GestureProviderClient implementation.
160 void OnGestureEvent(const ui::GestureEventData& gesture) override; 165 void OnGestureEvent(const ui::GestureEventData& gesture) override;
161 166
162 // ui::WindowAndroidObserver implementation. 167 // ui::WindowAndroidObserver implementation.
163 void OnCompositingDidCommit() override; 168 void OnCompositingDidCommit() override;
164 void OnRootWindowVisibilityChanged(bool visible) override; 169 void OnRootWindowVisibilityChanged(bool visible) override;
165 void OnAttachCompositor() override; 170 void OnAttachCompositor() override;
166 void OnDetachCompositor() override; 171 void OnDetachCompositor() override;
167 void OnVSync(base::TimeTicks frame_time, 172 void OnVSync(base::TimeTicks frame_time,
168 base::TimeDelta vsync_period) override; 173 base::TimeDelta vsync_period) override;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 gfx::Vector2dF last_scroll_offset_; 382 gfx::Vector2dF last_scroll_offset_;
378 383
379 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 384 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
380 385
381 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 386 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
382 }; 387 };
383 388
384 } // namespace content 389 } // namespace content
385 390
386 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 391 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698