OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 9 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; | 42 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; |
43 virtual void SetSize(const gfx::Size& size) OVERRIDE; | 43 virtual void SetSize(const gfx::Size& size) OVERRIDE; |
44 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; | 44 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; |
45 virtual void Focus() OVERRIDE; | 45 virtual void Focus() OVERRIDE; |
46 virtual bool HasFocus() const OVERRIDE; | 46 virtual bool HasFocus() const OVERRIDE; |
47 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; | 47 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; |
48 virtual void Show() OVERRIDE; | 48 virtual void Show() OVERRIDE; |
49 virtual void Hide() OVERRIDE; | 49 virtual void Hide() OVERRIDE; |
50 virtual bool IsShowing() OVERRIDE; | 50 virtual bool IsShowing() OVERRIDE; |
51 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 51 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
| 52 virtual gfx::Vector2dF GetLastScrollOffset() const OVERRIDE; |
52 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 53 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
53 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; | 54 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; |
54 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 55 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
55 virtual void SetBackgroundOpaque(bool opaque) OVERRIDE; | 56 virtual void SetBackgroundOpaque(bool opaque) OVERRIDE; |
56 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE; | 57 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE; |
57 | 58 |
58 // RenderWidgetHostViewBase implementation. | 59 // RenderWidgetHostViewBase implementation. |
59 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 60 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
60 const gfx::Rect& pos) OVERRIDE; | 61 const gfx::Rect& pos) OVERRIDE; |
61 virtual void InitAsFullscreen( | 62 virtual void InitAsFullscreen( |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const OVERRIDE; | 152 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const OVERRIDE; |
152 #endif | 153 #endif |
153 virtual BrowserAccessibilityManager* CreateBrowserAccessibilityManager( | 154 virtual BrowserAccessibilityManager* CreateBrowserAccessibilityManager( |
154 BrowserAccessibilityDelegate* delegate) OVERRIDE; | 155 BrowserAccessibilityDelegate* delegate) OVERRIDE; |
155 | 156 |
156 virtual SkColorType PreferredReadbackFormat() OVERRIDE; | 157 virtual SkColorType PreferredReadbackFormat() OVERRIDE; |
157 | 158 |
158 protected: | 159 protected: |
159 friend class RenderWidgetHostView; | 160 friend class RenderWidgetHostView; |
160 | 161 |
| 162 // The last scroll offset of the view. |
| 163 gfx::Vector2dF last_scroll_offset_; |
| 164 |
161 // Members will become private when RenderWidgetHostViewGuest is removed. | 165 // Members will become private when RenderWidgetHostViewGuest is removed. |
162 // The model object. | 166 // The model object. |
163 RenderWidgetHostImpl* host_; | 167 RenderWidgetHostImpl* host_; |
164 | 168 |
165 // frame_connector_ provides a platform abstraction. Messages | 169 // frame_connector_ provides a platform abstraction. Messages |
166 // sent through it are routed to the embedding renderer process. | 170 // sent through it are routed to the embedding renderer process. |
167 CrossProcessFrameConnector* frame_connector_; | 171 CrossProcessFrameConnector* frame_connector_; |
168 | 172 |
169 private: | 173 private: |
170 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 174 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
171 }; | 175 }; |
172 | 176 |
173 } // namespace content | 177 } // namespace content |
174 | 178 |
175 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 179 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
OLD | NEW |