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_LINUX_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
7 | 7 |
8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
9 | 9 |
10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. | 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 154 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
155 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 155 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
156 virtual void SetCapture() OVERRIDE; | 156 virtual void SetCapture() OVERRIDE; |
157 virtual void ReleaseCapture() OVERRIDE; | 157 virtual void ReleaseCapture() OVERRIDE; |
158 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; | 158 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; |
159 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; | 159 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; |
160 virtual bool ConfineCursorToRootWindow() OVERRIDE; | 160 virtual bool ConfineCursorToRootWindow() OVERRIDE; |
161 virtual void UnConfineCursor() OVERRIDE; | 161 virtual void UnConfineCursor() OVERRIDE; |
162 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; | 162 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
163 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; | 163 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; |
| 164 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, |
| 165 const gfx::Point& dest_offset, |
| 166 SkCanvas* canvas) OVERRIDE; |
164 virtual bool GrabSnapshot( | 167 virtual bool GrabSnapshot( |
165 const gfx::Rect& snapshot_bounds, | 168 const gfx::Rect& snapshot_bounds, |
166 std::vector<unsigned char>* png_representation) OVERRIDE; | 169 std::vector<unsigned char>* png_representation) OVERRIDE; |
167 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 170 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
168 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 171 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
169 virtual void PrepareForShutdown() OVERRIDE; | 172 virtual void PrepareForShutdown() OVERRIDE; |
170 | 173 |
171 // Overridden from aura::CursorClient: | 174 // Overridden from aura::CursorClient: |
172 // Note: other methods are just set on aura::RootWindowHost: | 175 // Note: other methods are just set on aura::RootWindowHost: |
173 virtual void ShowCursor(bool show) OVERRIDE; | 176 virtual void ShowCursor(bool show) OVERRIDE; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 // can notify widgets when they have lost capture, which controls a bunch of | 253 // can notify widgets when they have lost capture, which controls a bunch of |
251 // things in views like hiding menus. | 254 // things in views like hiding menus. |
252 static DesktopRootWindowHostLinux* g_current_capture; | 255 static DesktopRootWindowHostLinux* g_current_capture; |
253 | 256 |
254 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); | 257 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); |
255 }; | 258 }; |
256 | 259 |
257 } // namespace views | 260 } // namespace views |
258 | 261 |
259 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ | 262 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
OLD | NEW |