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_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 virtual void ToggleFullScreen() OVERRIDE; | 147 virtual void ToggleFullScreen() OVERRIDE; |
148 virtual gfx::Rect GetBounds() const OVERRIDE; | 148 virtual gfx::Rect GetBounds() const OVERRIDE; |
149 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 149 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
150 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 150 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
151 virtual void SetCapture() OVERRIDE; | 151 virtual void SetCapture() OVERRIDE; |
152 virtual void ReleaseCapture() OVERRIDE; | 152 virtual void ReleaseCapture() OVERRIDE; |
153 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; | 153 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; |
154 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; | 154 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; |
155 virtual bool ConfineCursorToRootWindow() OVERRIDE; | 155 virtual bool ConfineCursorToRootWindow() OVERRIDE; |
156 virtual void UnConfineCursor() OVERRIDE; | 156 virtual void UnConfineCursor() OVERRIDE; |
157 virtual void OnCursorVisibilityChanged(bool show) OVERRIDE; | 157 virtual void OnCursorEnableStateChanged(bool enabled) OVERRIDE; |
158 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; | 158 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
159 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; | 159 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; |
160 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, | 160 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, |
161 const gfx::Point& dest_offset, | 161 const gfx::Point& dest_offset, |
162 SkCanvas* canvas) OVERRIDE; | 162 SkCanvas* canvas) OVERRIDE; |
163 virtual bool GrabSnapshot( | 163 virtual bool GrabSnapshot( |
164 const gfx::Rect& snapshot_bounds, | 164 const gfx::Rect& snapshot_bounds, |
165 std::vector<unsigned char>* png_representation) OVERRIDE; | 165 std::vector<unsigned char>* png_representation) OVERRIDE; |
166 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 166 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
167 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 167 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 // can notify widgets when they have lost capture, which controls a bunch of | 229 // can notify widgets when they have lost capture, which controls a bunch of |
230 // things in views like hiding menus. | 230 // things in views like hiding menus. |
231 static DesktopRootWindowHostLinux* g_current_capture; | 231 static DesktopRootWindowHostLinux* g_current_capture; |
232 | 232 |
233 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); | 233 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); |
234 }; | 234 }; |
235 | 235 |
236 } // namespace views | 236 } // namespace views |
237 | 237 |
238 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ | 238 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
OLD | NEW |