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