Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_x11.h

Issue 13699002: add HideAndClose in preference to having Close sometimes magically defer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: non aura Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_X11_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 InitFocus(aura::Window* window) OVERRIDE;
96 virtual bool SetCloseOnHideCompletion() OVERRIDE;
96 virtual void Close() OVERRIDE; 97 virtual void Close() OVERRIDE;
97 virtual void CloseNow() OVERRIDE; 98 virtual void CloseNow() OVERRIDE;
98 virtual aura::RootWindowHost* AsRootWindowHost() OVERRIDE; 99 virtual aura::RootWindowHost* AsRootWindowHost() OVERRIDE;
99 virtual void ShowWindowWithState(ui::WindowShowState show_state) OVERRIDE; 100 virtual void ShowWindowWithState(ui::WindowShowState show_state) OVERRIDE;
100 virtual void ShowMaximizedWithBounds( 101 virtual void ShowMaximizedWithBounds(
101 const gfx::Rect& restored_bounds) OVERRIDE; 102 const gfx::Rect& restored_bounds) OVERRIDE;
102 virtual bool IsVisible() const OVERRIDE; 103 virtual bool IsVisible() const OVERRIDE;
103 virtual void SetSize(const gfx::Size& size) OVERRIDE; 104 virtual void SetSize(const gfx::Size& size) OVERRIDE;
104 virtual void CenterWindow(const gfx::Size& size) OVERRIDE; 105 virtual void CenterWindow(const gfx::Size& size) OVERRIDE;
105 virtual void GetWindowPlacement( 106 virtual void GetWindowPlacement(
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // can notify widgets when they have lost capture, which controls a bunch of 231 // can notify widgets when they have lost capture, which controls a bunch of
231 // things in views like hiding menus. 232 // things in views like hiding menus.
232 static DesktopRootWindowHostX11* g_current_capture; 233 static DesktopRootWindowHostX11* g_current_capture;
233 234
234 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostX11); 235 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostX11);
235 }; 236 };
236 237
237 } // namespace views 238 } // namespace views
238 239
239 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ 240 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698