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 20 matching lines...) Expand all Loading... |
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/WebKit/public/platform/WebGraphicsContext3D.h" | 33 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
34 #include "third_party/skia/include/core/SkColor.h" | 34 #include "third_party/skia/include/core/SkColor.h" |
35 #include "ui/android/window_android_observer.h" | 35 #include "ui/android/window_android_observer.h" |
36 #include "ui/events/gesture_detection/filtered_gesture_provider.h" | 36 #include "ui/events/gesture_detection/filtered_gesture_provider.h" |
37 #include "ui/gfx/geometry/size.h" | 37 #include "ui/gfx/geometry/size.h" |
38 #include "ui/gfx/geometry/vector2d_f.h" | 38 #include "ui/gfx/geometry/vector2d_f.h" |
39 #include "ui/touch_selection/touch_selection_controller.h" | 39 #include "ui/touch_selection/touch_selection_controller.h" |
40 | 40 |
41 struct ViewHostMsg_TextInputState_Params; | |
42 | |
43 namespace cc { | 41 namespace cc { |
44 class CopyOutputResult; | 42 class CopyOutputResult; |
45 class Layer; | 43 class Layer; |
46 class SurfaceFactory; | 44 class SurfaceFactory; |
47 class SurfaceIdAllocator; | 45 class SurfaceIdAllocator; |
48 enum class SurfaceDrawStatus; | 46 enum class SurfaceDrawStatus; |
49 } | 47 } |
50 | 48 |
51 namespace blink { | 49 namespace blink { |
52 class WebExternalTextureLayer; | 50 class WebExternalTextureLayer; |
53 class WebTouchEvent; | 51 class WebTouchEvent; |
54 class WebMouseEvent; | 52 class WebMouseEvent; |
55 } | 53 } |
56 | 54 |
57 namespace content { | 55 namespace content { |
58 class ContentViewCoreImpl; | 56 class ContentViewCoreImpl; |
59 class ContentViewCoreObserver; | 57 class ContentViewCoreObserver; |
60 class OverscrollControllerAndroid; | 58 class OverscrollControllerAndroid; |
61 class RenderWidgetHost; | 59 class RenderWidgetHost; |
62 class RenderWidgetHostImpl; | 60 class RenderWidgetHostImpl; |
63 class SynchronousCompositorHost; | 61 class SynchronousCompositorHost; |
64 struct DidOverscrollParams; | 62 struct DidOverscrollParams; |
65 struct NativeWebKeyboardEvent; | 63 struct NativeWebKeyboardEvent; |
| 64 struct TextInputState; |
66 | 65 |
67 // ----------------------------------------------------------------------------- | 66 // ----------------------------------------------------------------------------- |
68 // See comments in render_widget_host_view.h about this class and its members. | 67 // See comments in render_widget_host_view.h about this class and its members. |
69 // ----------------------------------------------------------------------------- | 68 // ----------------------------------------------------------------------------- |
70 class CONTENT_EXPORT RenderWidgetHostViewAndroid | 69 class CONTENT_EXPORT RenderWidgetHostViewAndroid |
71 : public RenderWidgetHostViewBase, | 70 : public RenderWidgetHostViewBase, |
72 public cc::SurfaceFactoryClient, | 71 public cc::SurfaceFactoryClient, |
73 public ui::GestureProviderClient, | 72 public ui::GestureProviderClient, |
74 public ui::WindowAndroidObserver, | 73 public ui::WindowAndroidObserver, |
75 public DelegatedFrameEvictorClient, | 74 public DelegatedFrameEvictorClient, |
(...skipping 26 matching lines...) Expand all Loading... |
102 void Show() override; | 101 void Show() override; |
103 void Hide() override; | 102 void Hide() override; |
104 bool IsShowing() override; | 103 bool IsShowing() override; |
105 gfx::Rect GetViewBounds() const override; | 104 gfx::Rect GetViewBounds() const override; |
106 gfx::Size GetVisibleViewportSize() const override; | 105 gfx::Size GetVisibleViewportSize() const override; |
107 gfx::Size GetPhysicalBackingSize() const override; | 106 gfx::Size GetPhysicalBackingSize() const override; |
108 bool DoTopControlsShrinkBlinkSize() const override; | 107 bool DoTopControlsShrinkBlinkSize() const override; |
109 float GetTopControlsHeight() const override; | 108 float GetTopControlsHeight() const override; |
110 void UpdateCursor(const WebCursor& cursor) override; | 109 void UpdateCursor(const WebCursor& cursor) override; |
111 void SetIsLoading(bool is_loading) override; | 110 void SetIsLoading(bool is_loading) override; |
112 void TextInputStateChanged( | 111 void TextInputStateChanged(const TextInputState& params) override; |
113 const ViewHostMsg_TextInputState_Params& params) override; | |
114 void ImeCancelComposition() override; | 112 void ImeCancelComposition() override; |
115 void ImeCompositionRangeChanged( | 113 void ImeCompositionRangeChanged( |
116 const gfx::Range& range, | 114 const gfx::Range& range, |
117 const std::vector<gfx::Rect>& character_bounds) override; | 115 const std::vector<gfx::Rect>& character_bounds) override; |
118 void FocusedNodeChanged(bool is_editable_node) override; | 116 void FocusedNodeChanged(bool is_editable_node) override; |
119 void RenderProcessGone(base::TerminationStatus status, | 117 void RenderProcessGone(base::TerminationStatus status, |
120 int error_code) override; | 118 int error_code) override; |
121 void Destroy() override; | 119 void Destroy() override; |
122 void SetTooltipText(const base::string16& tooltip_text) override; | 120 void SetTooltipText(const base::string16& tooltip_text) override; |
123 void SelectionChanged(const base::string16& text, | 121 void SelectionChanged(const base::string16& text, |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 gfx::Vector2dF last_scroll_offset_; | 408 gfx::Vector2dF last_scroll_offset_; |
411 | 409 |
412 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 410 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
413 | 411 |
414 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 412 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
415 }; | 413 }; |
416 | 414 |
417 } // namespace content | 415 } // namespace content |
418 | 416 |
419 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 417 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |