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 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; | 56 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; |
57 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 57 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
58 virtual bool HasFocus() const OVERRIDE; | 58 virtual bool HasFocus() const OVERRIDE; |
59 virtual void Show() OVERRIDE; | 59 virtual void Show() OVERRIDE; |
60 virtual void Hide() OVERRIDE; | 60 virtual void Hide() OVERRIDE; |
61 virtual bool IsShowing() OVERRIDE; | 61 virtual bool IsShowing() OVERRIDE; |
62 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 62 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
63 virtual void UnhandledWheelEvent( | 63 virtual void UnhandledWheelEvent( |
64 const WebKit::WebMouseWheelEvent& event) OVERRIDE; | 64 const WebKit::WebMouseWheelEvent& event) OVERRIDE; |
65 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 65 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
| 66 virtual bool CopyFromCompositingSurface( |
| 67 const gfx::Size& size, |
| 68 skia::PlatformCanvas* output) OVERRIDE; |
66 | 69 |
67 // Overridden from RenderWidgetHostViewPort: | 70 // Overridden from RenderWidgetHostViewPort: |
68 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view, | 71 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view, |
69 const gfx::Rect& pos) OVERRIDE; | 72 const gfx::Rect& pos) OVERRIDE; |
70 virtual void InitAsFullscreen( | 73 virtual void InitAsFullscreen( |
71 content::RenderWidgetHostView* reference_host_view) OVERRIDE; | 74 content::RenderWidgetHostView* reference_host_view) OVERRIDE; |
72 virtual void DidBecomeSelected() OVERRIDE; | 75 virtual void DidBecomeSelected() OVERRIDE; |
73 virtual void WasHidden() OVERRIDE; | 76 virtual void WasHidden() OVERRIDE; |
74 virtual void MovePluginWindows( | 77 virtual void MovePluginWindows( |
75 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; | 78 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 // In mouse locked mode, we syntheticaly move the mouse cursor to the center | 268 // In mouse locked mode, we syntheticaly move the mouse cursor to the center |
266 // of the window when it reaches the window borders to avoid it going outside. | 269 // of the window when it reaches the window borders to avoid it going outside. |
267 // This flag is used to differentiate between these synthetic mouse move | 270 // This flag is used to differentiate between these synthetic mouse move |
268 // events vs. normal mouse move events. | 271 // events vs. normal mouse move events. |
269 bool synthetic_move_sent_; | 272 bool synthetic_move_sent_; |
270 | 273 |
271 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 274 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
272 }; | 275 }; |
273 | 276 |
274 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 277 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |