| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 void OnCaptureReleased(); | 85 void OnCaptureReleased(); |
| 86 | 86 |
| 87 // Dispatches a mouse event, taking mouse capture into account. If a | 87 // Dispatches a mouse event, taking mouse capture into account. If a |
| 88 // different host has capture, we translate the event to its coordinate space | 88 // different host has capture, we translate the event to its coordinate space |
| 89 // and dispatch it to that host instead. | 89 // and dispatch it to that host instead. |
| 90 void DispatchMouseEvent(ui::MouseEvent* event); | 90 void DispatchMouseEvent(ui::MouseEvent* event); |
| 91 | 91 |
| 92 // Overridden from DesktopRootWindowHost: | 92 // Overridden from DesktopRootWindowHost: |
| 93 virtual aura::RootWindow* Init(aura::Window* content_window, | 93 virtual aura::RootWindow* Init(aura::Window* content_window, |
| 94 const Widget::InitParams& params) OVERRIDE; | 94 const Widget::InitParams& params) OVERRIDE; |
| 95 virtual void InitFocus(aura::Window* window) OVERRIDE; |
| 95 virtual void Close() OVERRIDE; | 96 virtual void Close() OVERRIDE; |
| 96 virtual void CloseNow() OVERRIDE; | 97 virtual void CloseNow() OVERRIDE; |
| 97 virtual aura::RootWindowHost* AsRootWindowHost() OVERRIDE; | 98 virtual aura::RootWindowHost* AsRootWindowHost() OVERRIDE; |
| 98 virtual void ShowWindowWithState(ui::WindowShowState show_state) OVERRIDE; | 99 virtual void ShowWindowWithState(ui::WindowShowState show_state) OVERRIDE; |
| 99 virtual void ShowMaximizedWithBounds( | 100 virtual void ShowMaximizedWithBounds( |
| 100 const gfx::Rect& restored_bounds) OVERRIDE; | 101 const gfx::Rect& restored_bounds) OVERRIDE; |
| 101 virtual bool IsVisible() const OVERRIDE; | 102 virtual bool IsVisible() const OVERRIDE; |
| 102 virtual void SetSize(const gfx::Size& size) OVERRIDE; | 103 virtual void SetSize(const gfx::Size& size) OVERRIDE; |
| 103 virtual void CenterWindow(const gfx::Size& size) OVERRIDE; | 104 virtual void CenterWindow(const gfx::Size& size) OVERRIDE; |
| 104 virtual void GetWindowPlacement( | 105 virtual void GetWindowPlacement( |
| (...skipping 124 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 | 230 // can notify widgets when they have lost capture, which controls a bunch of |
| 230 // things in views like hiding menus. | 231 // things in views like hiding menus. |
| 231 static DesktopRootWindowHostLinux* g_current_capture; | 232 static DesktopRootWindowHostLinux* g_current_capture; |
| 232 | 233 |
| 233 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); | 234 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); |
| 234 }; | 235 }; |
| 235 | 236 |
| 236 } // namespace views | 237 } // namespace views |
| 237 | 238 |
| 238 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ | 239 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
| OLD | NEW |