| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 // Overridden from aura::RootWindowHost: | 142 // Overridden from aura::RootWindowHost: |
| 143 virtual void SetDelegate(aura::RootWindowHostDelegate* delegate) OVERRIDE; | 143 virtual void SetDelegate(aura::RootWindowHostDelegate* delegate) OVERRIDE; |
| 144 virtual aura::RootWindow* GetRootWindow() OVERRIDE; | 144 virtual aura::RootWindow* GetRootWindow() OVERRIDE; |
| 145 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | 145 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; |
| 146 virtual void Show() OVERRIDE; | 146 virtual void Show() OVERRIDE; |
| 147 virtual void Hide() OVERRIDE; | 147 virtual void Hide() OVERRIDE; |
| 148 virtual void ToggleFullScreen() OVERRIDE; | 148 virtual void ToggleFullScreen() OVERRIDE; |
| 149 virtual gfx::Rect GetBounds() const OVERRIDE; | 149 virtual gfx::Rect GetBounds() const OVERRIDE; |
| 150 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 150 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 151 virtual gfx::Insets GetInsets() const OVERRIDE; |
| 152 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE; |
| 151 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 153 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
| 152 virtual void SetCapture() OVERRIDE; | 154 virtual void SetCapture() OVERRIDE; |
| 153 virtual void ReleaseCapture() OVERRIDE; | 155 virtual void ReleaseCapture() OVERRIDE; |
| 154 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; | 156 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; |
| 155 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; | 157 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; |
| 156 virtual bool ConfineCursorToRootWindow() OVERRIDE; | 158 virtual bool ConfineCursorToRootWindow() OVERRIDE; |
| 157 virtual void UnConfineCursor() OVERRIDE; | 159 virtual void UnConfineCursor() OVERRIDE; |
| 158 virtual void OnCursorVisibilityChanged(bool show) OVERRIDE; | 160 virtual void OnCursorVisibilityChanged(bool show) OVERRIDE; |
| 159 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; | 161 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
| 160 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; | 162 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 // 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 |
| 228 // things in views like hiding menus. | 230 // things in views like hiding menus. |
| 229 static DesktopRootWindowHostLinux* g_current_capture; | 231 static DesktopRootWindowHostLinux* g_current_capture; |
| 230 | 232 |
| 231 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); | 233 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); |
| 232 }; | 234 }; |
| 233 | 235 |
| 234 } // namespace views | 236 } // namespace views |
| 235 | 237 |
| 236 #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 |