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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host.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_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_
7 7
8 #include "ui/base/ui_base_types.h" 8 #include "ui/base/ui_base_types.h"
9 #include "ui/views/views_export.h" 9 #include "ui/views/views_export.h"
10 #include "ui/views/widget/widget.h" 10 #include "ui/views/widget/widget.h"
(...skipping 29 matching lines...) Expand all
40 40
41 // Return the NativeTheme to use for |window|. 41 // Return the NativeTheme to use for |window|.
42 static ui::NativeTheme* GetNativeTheme(aura::Window* window); 42 static ui::NativeTheme* GetNativeTheme(aura::Window* window);
43 43
44 // Creates the aura resources associated with the native window we built. 44 // Creates the aura resources associated with the native window we built.
45 // Caller takes ownership of returned RootWindow. 45 // Caller takes ownership of returned RootWindow.
46 virtual aura::RootWindow* Init(aura::Window* content_window, 46 virtual aura::RootWindow* Init(aura::Window* content_window,
47 const Widget::InitParams& params) = 0; 47 const Widget::InitParams& params) = 0;
48 virtual void InitFocus(aura::Window* window) = 0; 48 virtual void InitFocus(aura::Window* window) = 0;
49 49
50 virtual bool SetCloseOnHideCompletion() = 0;
50 virtual void Close() = 0; 51 virtual void Close() = 0;
51 virtual void CloseNow() = 0; 52 virtual void CloseNow() = 0;
52 53
53 virtual aura::RootWindowHost* AsRootWindowHost() = 0; 54 virtual aura::RootWindowHost* AsRootWindowHost() = 0;
54 55
55 virtual void ShowWindowWithState(ui::WindowShowState show_state) = 0; 56 virtual void ShowWindowWithState(ui::WindowShowState show_state) = 0;
56 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; 57 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0;
57 58
58 virtual bool IsVisible() const = 0; 59 virtual bool IsVisible() const = 0;
59 60
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 112
112 // Called when the DesktopNativeWidgetAura's aura::Window is focused and 113 // Called when the DesktopNativeWidgetAura's aura::Window is focused and
113 // blurred. 114 // blurred.
114 virtual void OnNativeWidgetFocus() = 0; 115 virtual void OnNativeWidgetFocus() = 0;
115 virtual void OnNativeWidgetBlur() = 0; 116 virtual void OnNativeWidgetBlur() = 0;
116 }; 117 };
117 118
118 } // namespace views 119 } // namespace views
119 120
120 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_ 121 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698