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

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

Issue 2595263002: Introduce ViewRoot forwarding input/view events to native (Closed)
Patch Set: unittest 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"
37 #include "ui/android/window_android_observer.h" 38 #include "ui/android/window_android_observer.h"
38 #include "ui/events/android/motion_event_android.h" 39 #include "ui/events/android/motion_event_android.h"
39 #include "ui/events/gesture_detection/filtered_gesture_provider.h" 40 #include "ui/events/gesture_detection/filtered_gesture_provider.h"
40 #include "ui/gfx/geometry/size.h" 41 #include "ui/gfx/geometry/size.h"
41 #include "ui/gfx/geometry/vector2d_f.h" 42 #include "ui/gfx/geometry/vector2d_f.h"
42 #include "ui/gfx/selection_bound.h" 43 #include "ui/gfx/selection_bound.h"
43 #include "ui/touch_selection/touch_selection_controller.h" 44 #include "ui/touch_selection/touch_selection_controller.h"
44 45
45 class GURL; 46 class GURL;
46 47
47 namespace ui { 48 namespace ui {
48 struct DidOverscrollParams; 49 struct DidOverscrollParams;
49 } 50 }
50 51
51 namespace content { 52 namespace content {
52 class ContentViewCoreImpl; 53 class ContentViewCoreImpl;
53 class OverscrollControllerAndroid; 54 class OverscrollControllerAndroid;
54 class RenderWidgetHost; 55 class RenderWidgetHost;
55 class RenderWidgetHostImpl; 56 class RenderWidgetHostImpl;
56 class SynchronousCompositorHost; 57 class SynchronousCompositorHost;
57 class SynchronousCompositorClient; 58 class SynchronousCompositorClient;
58 struct NativeWebKeyboardEvent; 59 struct NativeWebKeyboardEvent;
59 60
60 // ----------------------------------------------------------------------------- 61 // -----------------------------------------------------------------------------
61 // See comments in render_widget_host_view.h about this class and its members. 62 // See comments in render_widget_host_view.h about this class and its members.
62 // ----------------------------------------------------------------------------- 63 // -----------------------------------------------------------------------------
63 class CONTENT_EXPORT RenderWidgetHostViewAndroid 64 class CONTENT_EXPORT RenderWidgetHostViewAndroid
64 : public RenderWidgetHostViewBase, 65 : public RenderWidgetHostViewBase,
65 public ui::GestureProviderClient, 66 public ui::GestureProviderClient,
67 public ui::ViewClient,
66 public ui::WindowAndroidObserver, 68 public ui::WindowAndroidObserver,
67 public DelegatedFrameEvictorClient, 69 public DelegatedFrameEvictorClient,
68 public StylusTextSelectorClient, 70 public StylusTextSelectorClient,
69 public ui::TouchSelectionControllerClient, 71 public ui::TouchSelectionControllerClient,
70 public content::ContentViewCoreImplObserver, 72 public content::ContentViewCoreImplObserver,
71 public content::TextInputManager::Observer, 73 public content::TextInputManager::Observer,
72 public ui::DelegatedFrameHostAndroid::Client, 74 public ui::DelegatedFrameHostAndroid::Client,
73 public cc::BeginFrameObserver { 75 public cc::BeginFrameObserver {
74 public: 76 public:
75 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget, 77 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget,
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 gfx::Vector2dF last_scroll_offset_; 401 gfx::Vector2dF last_scroll_offset_;
400 402
401 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 403 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
402 404
403 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 405 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
404 }; 406 };
405 407
406 } // namespace content 408 } // namespace content
407 409
408 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 410 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698