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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/process.h" | 10 #include "base/process.h" |
11 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 11 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
12 #include "ui/gfx/size.h" | 12 #include "ui/gfx/size.h" |
13 | 13 |
14 struct ViewHostMsg_TextInputState_Params; | 14 struct ViewHostMsg_TextInputState_Params; |
15 | 15 |
16 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; | 16 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; |
17 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; | 17 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 class ContentViewImpl; | 20 class ContentViewCoreImpl; |
21 class RenderWidgetHost; | 21 class RenderWidgetHost; |
22 class RenderWidgetHostImpl; | 22 class RenderWidgetHostImpl; |
23 struct NativeWebKeyboardEvent; | 23 struct NativeWebKeyboardEvent; |
24 | 24 |
25 // ----------------------------------------------------------------------------- | 25 // ----------------------------------------------------------------------------- |
26 // See comments in render_widget_host_view.h about this class and its members. | 26 // See comments in render_widget_host_view.h about this class and its members. |
27 // ----------------------------------------------------------------------------- | 27 // ----------------------------------------------------------------------------- |
28 class RenderWidgetHostViewAndroid : public RenderWidgetHostViewBase { | 28 class RenderWidgetHostViewAndroid : public RenderWidgetHostViewBase { |
29 public: | 29 public: |
30 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget, | 30 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget, |
31 ContentViewImpl* content_view); | 31 ContentViewCoreImpl* content_view_core); |
32 virtual ~RenderWidgetHostViewAndroid(); | 32 virtual ~RenderWidgetHostViewAndroid(); |
33 | 33 |
34 // RenderWidgetHostView implementation. | 34 // RenderWidgetHostView implementation. |
35 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; | 35 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; |
36 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 36 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
37 const gfx::Rect& pos) OVERRIDE; | 37 const gfx::Rect& pos) OVERRIDE; |
38 virtual void InitAsFullscreen( | 38 virtual void InitAsFullscreen( |
39 RenderWidgetHostView* reference_host_view) OVERRIDE; | 39 RenderWidgetHostView* reference_host_view) OVERRIDE; |
40 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; | 40 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; |
41 virtual void WasRestored() OVERRIDE; | 41 virtual void WasRestored() OVERRIDE; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 bool processed) OVERRIDE; | 96 bool processed) OVERRIDE; |
97 virtual void SetHasHorizontalScrollbar( | 97 virtual void SetHasHorizontalScrollbar( |
98 bool has_horizontal_scrollbar) OVERRIDE; | 98 bool has_horizontal_scrollbar) OVERRIDE; |
99 virtual void SetScrollOffsetPinning( | 99 virtual void SetScrollOffsetPinning( |
100 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; | 100 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; |
101 virtual bool LockMouse() OVERRIDE; | 101 virtual bool LockMouse() OVERRIDE; |
102 virtual void UnlockMouse() OVERRIDE; | 102 virtual void UnlockMouse() OVERRIDE; |
103 | 103 |
104 virtual void StartContentIntent(const GURL& content_url) OVERRIDE; | 104 virtual void StartContentIntent(const GURL& content_url) OVERRIDE; |
105 | 105 |
106 void SetContentView(ContentViewImpl* content_view); | 106 void SetContentViewCore(ContentViewCoreImpl* content_view_core); |
107 | 107 |
108 private: | 108 private: |
109 // The model object. | 109 // The model object. |
110 RenderWidgetHostImpl* host_; | 110 RenderWidgetHostImpl* host_; |
111 | 111 |
112 // Whether or not this widget is hidden. | 112 // Whether or not this widget is hidden. |
113 bool is_hidden_; | 113 bool is_hidden_; |
114 | 114 |
115 // ContentViewImpl is our interface to the view system. | 115 // ContentViewCoreImpl is our interface to the view system. |
116 ContentViewImpl* content_view_; | 116 ContentViewCoreImpl* content_view_core_; |
117 | 117 |
118 // The size that we want the renderer to be. We keep this in a separate | 118 // The size that we want the renderer to be. We keep this in a separate |
119 // variable because resizing is async. | 119 // variable because resizing is async. |
120 gfx::Size requested_size_; | 120 gfx::Size requested_size_; |
121 | 121 |
122 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 122 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
123 }; | 123 }; |
124 | 124 |
125 } // namespace content | 125 } // namespace content |
126 | 126 |
127 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 127 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |