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 UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
7 | 7 |
8 #include "ui/aura/root_window_host.h" | 8 #include "ui/aura/root_window_host.h" |
9 #include "ui/views/views_export.h" | 9 #include "ui/views/views_export.h" |
10 #include "ui/views/widget/desktop_root_window_host.h" | 10 #include "ui/views/widget/desktop_root_window_host.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 105 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
106 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 106 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
107 virtual void SetCapture() OVERRIDE; | 107 virtual void SetCapture() OVERRIDE; |
108 virtual void ReleaseCapture() OVERRIDE; | 108 virtual void ReleaseCapture() OVERRIDE; |
109 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; | 109 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; |
110 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; | 110 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; |
111 virtual bool ConfineCursorToRootWindow() OVERRIDE; | 111 virtual bool ConfineCursorToRootWindow() OVERRIDE; |
112 virtual void UnConfineCursor() OVERRIDE; | 112 virtual void UnConfineCursor() OVERRIDE; |
113 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; | 113 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
114 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; | 114 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; |
| 115 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, |
| 116 const gfx::Point& dest_offset, |
| 117 SkCanvas* canvas) OVERRIDE; |
115 virtual bool GrabSnapshot( | 118 virtual bool GrabSnapshot( |
116 const gfx::Rect& snapshot_bounds, | 119 const gfx::Rect& snapshot_bounds, |
117 std::vector<unsigned char>* png_representation) OVERRIDE; | 120 std::vector<unsigned char>* png_representation) OVERRIDE; |
118 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 121 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
119 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 122 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
120 virtual void PrepareForShutdown() OVERRIDE; | 123 virtual void PrepareForShutdown() OVERRIDE; |
121 | 124 |
122 // Overridden from HWNDMessageHandlerDelegate: | 125 // Overridden from HWNDMessageHandlerDelegate: |
123 virtual bool IsWidgetWindow() const OVERRIDE; | 126 virtual bool IsWidgetWindow() const OVERRIDE; |
124 virtual bool IsUsingCustomFrame() const OVERRIDE; | 127 virtual bool IsUsingCustomFrame() const OVERRIDE; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 230 |
228 // The RootWindow's CompoundEventFilter. | 231 // The RootWindow's CompoundEventFilter. |
229 aura::shared::CompoundEventFilter* root_window_event_filter_; | 232 aura::shared::CompoundEventFilter* root_window_event_filter_; |
230 | 233 |
231 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); | 234 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); |
232 }; | 235 }; |
233 | 236 |
234 } // namespace views | 237 } // namespace views |
235 | 238 |
236 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ | 239 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
OLD | NEW |