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

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

Issue 2626723003: Revert "Introduce ViewRoot forwarding input/view events to native" (Closed)
Patch Set: Created 3 years, 11 months 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 16 matching lines...) Expand all
27 #include "content/browser/renderer_host/ime_adapter_android.h" 27 #include "content/browser/renderer_host/ime_adapter_android.h"
28 #include "content/browser/renderer_host/input/stylus_text_selector.h" 28 #include "content/browser/renderer_host/input/stylus_text_selector.h"
29 #include "content/browser/renderer_host/render_widget_host_view_base.h" 29 #include "content/browser/renderer_host/render_widget_host_view_base.h"
30 #include "content/browser/renderer_host/text_input_manager.h" 30 #include "content/browser/renderer_host/text_input_manager.h"
31 #include "content/common/content_export.h" 31 #include "content/common/content_export.h"
32 #include "content/public/browser/readback_types.h" 32 #include "content/public/browser/readback_types.h"
33 #include "gpu/command_buffer/common/mailbox.h" 33 #include "gpu/command_buffer/common/mailbox.h"
34 #include "third_party/skia/include/core/SkColor.h" 34 #include "third_party/skia/include/core/SkColor.h"
35 #include "ui/android/delegated_frame_host_android.h" 35 #include "ui/android/delegated_frame_host_android.h"
36 #include "ui/android/view_android.h" 36 #include "ui/android/view_android.h"
37 #include "ui/android/view_client.h"
38 #include "ui/android/window_android_observer.h" 37 #include "ui/android/window_android_observer.h"
39 #include "ui/events/android/motion_event_android.h" 38 #include "ui/events/android/motion_event_android.h"
40 #include "ui/events/gesture_detection/filtered_gesture_provider.h" 39 #include "ui/events/gesture_detection/filtered_gesture_provider.h"
41 #include "ui/gfx/geometry/size.h" 40 #include "ui/gfx/geometry/size.h"
42 #include "ui/gfx/geometry/vector2d_f.h" 41 #include "ui/gfx/geometry/vector2d_f.h"
43 #include "ui/gfx/selection_bound.h" 42 #include "ui/gfx/selection_bound.h"
44 #include "ui/touch_selection/touch_selection_controller.h" 43 #include "ui/touch_selection/touch_selection_controller.h"
45 44
46 class GURL; 45 class GURL;
47 46
48 namespace ui { 47 namespace ui {
49 struct DidOverscrollParams; 48 struct DidOverscrollParams;
50 } 49 }
51 50
52 namespace content { 51 namespace content {
53 class ContentViewCoreImpl; 52 class ContentViewCoreImpl;
54 class OverscrollControllerAndroid; 53 class OverscrollControllerAndroid;
55 class RenderWidgetHost; 54 class RenderWidgetHost;
56 class RenderWidgetHostImpl; 55 class RenderWidgetHostImpl;
57 class SynchronousCompositorHost; 56 class SynchronousCompositorHost;
58 class SynchronousCompositorClient; 57 class SynchronousCompositorClient;
59 struct NativeWebKeyboardEvent; 58 struct NativeWebKeyboardEvent;
60 59
61 // ----------------------------------------------------------------------------- 60 // -----------------------------------------------------------------------------
62 // See comments in render_widget_host_view.h about this class and its members. 61 // See comments in render_widget_host_view.h about this class and its members.
63 // ----------------------------------------------------------------------------- 62 // -----------------------------------------------------------------------------
64 class CONTENT_EXPORT RenderWidgetHostViewAndroid 63 class CONTENT_EXPORT RenderWidgetHostViewAndroid
65 : public RenderWidgetHostViewBase, 64 : public RenderWidgetHostViewBase,
66 public ui::GestureProviderClient, 65 public ui::GestureProviderClient,
67 public ui::ViewClient,
68 public ui::WindowAndroidObserver, 66 public ui::WindowAndroidObserver,
69 public DelegatedFrameEvictorClient, 67 public DelegatedFrameEvictorClient,
70 public StylusTextSelectorClient, 68 public StylusTextSelectorClient,
71 public ui::TouchSelectionControllerClient, 69 public ui::TouchSelectionControllerClient,
72 public content::ContentViewCoreImplObserver, 70 public content::ContentViewCoreImplObserver,
73 public content::TextInputManager::Observer, 71 public content::TextInputManager::Observer,
74 public ui::DelegatedFrameHostAndroid::Client, 72 public ui::DelegatedFrameHostAndroid::Client,
75 public cc::BeginFrameObserver { 73 public cc::BeginFrameObserver {
76 public: 74 public:
77 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget, 75 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 cc::FrameSinkId GetFrameSinkId() override; 150 cc::FrameSinkId GetFrameSinkId() override;
153 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, 151 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels,
154 const SkBitmap& zoomed_bitmap) override; 152 const SkBitmap& zoomed_bitmap) override;
155 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() 153 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget()
156 override; 154 override;
157 void LockCompositingSurface() override; 155 void LockCompositingSurface() override;
158 void UnlockCompositingSurface() override; 156 void UnlockCompositingSurface() override;
159 void OnDidNavigateMainFrameToNewPage() override; 157 void OnDidNavigateMainFrameToNewPage() override;
160 void SetNeedsBeginFrames(bool needs_begin_frames) override; 158 void SetNeedsBeginFrames(bool needs_begin_frames) override;
161 159
162 // ui::ViewClient implementation.
163 void OnPhysicalBackingSizeChanged(int width, int height) override;
164
165 // ui::GestureProviderClient implementation. 160 // ui::GestureProviderClient implementation.
166 void OnGestureEvent(const ui::GestureEventData& gesture) override; 161 void OnGestureEvent(const ui::GestureEventData& gesture) override;
167 162
168 // ui::WindowAndroidObserver implementation. 163 // ui::WindowAndroidObserver implementation.
169 void OnCompositingDidCommit() override; 164 void OnCompositingDidCommit() override;
170 void OnRootWindowVisibilityChanged(bool visible) override; 165 void OnRootWindowVisibilityChanged(bool visible) override;
171 void OnAttachCompositor() override; 166 void OnAttachCompositor() override;
172 void OnDetachCompositor() override; 167 void OnDetachCompositor() override;
173 void OnAnimate(base::TimeTicks begin_frame_time) override; 168 void OnAnimate(base::TimeTicks begin_frame_time) override;
174 void OnActivityStopped() override; 169 void OnActivityStopped() override;
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 gfx::Vector2dF last_scroll_offset_; 396 gfx::Vector2dF last_scroll_offset_;
402 397
403 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 398 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
404 399
405 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 400 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
406 }; 401 };
407 402
408 } // namespace content 403 } // namespace content
409 404
410 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 405 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698