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_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 // RenderWidgetHostView implementation. | 55 // RenderWidgetHostView implementation. |
56 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; | 56 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; |
57 virtual content::RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; | 57 virtual content::RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; |
58 virtual void SetSize(const gfx::Size& size) OVERRIDE; | 58 virtual void SetSize(const gfx::Size& size) OVERRIDE; |
59 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; | 59 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; |
60 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 60 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
61 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; | 61 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; |
62 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 62 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
63 virtual bool HasFocus() const OVERRIDE; | 63 virtual bool HasFocus() const OVERRIDE; |
| 64 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; |
64 virtual void Show() OVERRIDE; | 65 virtual void Show() OVERRIDE; |
65 virtual void Hide() OVERRIDE; | 66 virtual void Hide() OVERRIDE; |
66 virtual bool IsShowing() OVERRIDE; | 67 virtual bool IsShowing() OVERRIDE; |
67 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 68 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
68 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 69 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
69 | 70 |
70 // Overridden from RenderWidgetHostViewPort: | 71 // Overridden from RenderWidgetHostViewPort: |
71 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view, | 72 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view, |
72 const gfx::Rect& pos) OVERRIDE; | 73 const gfx::Rect& pos) OVERRIDE; |
73 virtual void InitAsFullscreen( | 74 virtual void InitAsFullscreen( |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 // These locks are the ones waiting for a texture of the right size to come | 302 // These locks are the ones waiting for a texture of the right size to come |
302 // back from the renderer/GPU process. | 303 // back from the renderer/GPU process. |
303 std::vector<linked_ptr<ResizeLock> > resize_locks_; | 304 std::vector<linked_ptr<ResizeLock> > resize_locks_; |
304 // These locks are the ones waiting for a frame to be drawn. | 305 // These locks are the ones waiting for a frame to be drawn. |
305 std::vector<linked_ptr<ResizeLock> > locks_pending_draw_; | 306 std::vector<linked_ptr<ResizeLock> > locks_pending_draw_; |
306 | 307 |
307 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 308 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
308 }; | 309 }; |
309 | 310 |
310 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 311 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |