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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 virtual void Restore() OVERRIDE; | 117 virtual void Restore() OVERRIDE; |
118 virtual bool IsMaximized() const OVERRIDE; | 118 virtual bool IsMaximized() const OVERRIDE; |
119 virtual bool IsMinimized() const OVERRIDE; | 119 virtual bool IsMinimized() const OVERRIDE; |
120 virtual bool HasCapture() const OVERRIDE; | 120 virtual bool HasCapture() const OVERRIDE; |
121 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; | 121 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; |
122 virtual InputMethod* CreateInputMethod() OVERRIDE; | 122 virtual InputMethod* CreateInputMethod() OVERRIDE; |
123 virtual internal::InputMethodDelegate* GetInputMethodDelegate() OVERRIDE; | 123 virtual internal::InputMethodDelegate* GetInputMethodDelegate() OVERRIDE; |
124 virtual void SetWindowTitle(const string16& title) OVERRIDE; | 124 virtual void SetWindowTitle(const string16& title) OVERRIDE; |
125 virtual void ClearNativeFocus() OVERRIDE; | 125 virtual void ClearNativeFocus() OVERRIDE; |
126 virtual Widget::MoveLoopResult RunMoveLoop( | 126 virtual Widget::MoveLoopResult RunMoveLoop( |
127 const gfx::Point& drag_offset) OVERRIDE; | 127 const gfx::Vector2d& drag_offset) OVERRIDE; |
128 virtual void EndMoveLoop() OVERRIDE; | 128 virtual void EndMoveLoop() OVERRIDE; |
129 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; | 129 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; |
130 virtual bool ShouldUseNativeFrame() OVERRIDE; | 130 virtual bool ShouldUseNativeFrame() OVERRIDE; |
131 virtual void FrameTypeChanged() OVERRIDE; | 131 virtual void FrameTypeChanged() OVERRIDE; |
132 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; | 132 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; |
133 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 133 virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
134 virtual bool IsFullscreen() const OVERRIDE; | 134 virtual bool IsFullscreen() const OVERRIDE; |
135 virtual void SetOpacity(unsigned char opacity) OVERRIDE; | 135 virtual void SetOpacity(unsigned char opacity) OVERRIDE; |
136 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon, | 136 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon, |
137 const gfx::ImageSkia& app_icon) OVERRIDE; | 137 const gfx::ImageSkia& app_icon) OVERRIDE; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 // 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 |
254 // things in views like hiding menus. | 254 // things in views like hiding menus. |
255 static DesktopRootWindowHostLinux* g_current_capture; | 255 static DesktopRootWindowHostLinux* g_current_capture; |
256 | 256 |
257 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); | 257 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); |
258 }; | 258 }; |
259 | 259 |
260 } // namespace views | 260 } // namespace views |
261 | 261 |
262 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ | 262 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
OLD | NEW |