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

Side by Side Diff: ui/views/widget/native_widget_private.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
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/native_widget_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_NATIVE_WIDGET_PRIVATE_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "ui/base/ui_base_types.h" 9 #include "ui/base/ui_base_types.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 virtual void SetBounds(const gfx::Rect& bounds) = 0; 162 virtual void SetBounds(const gfx::Rect& bounds) = 0;
163 virtual void SetSize(const gfx::Size& size) = 0; 163 virtual void SetSize(const gfx::Size& size) = 0;
164 virtual void StackAbove(gfx::NativeView native_view) = 0; 164 virtual void StackAbove(gfx::NativeView native_view) = 0;
165 virtual void StackAtTop() = 0; 165 virtual void StackAtTop() = 0;
166 virtual void StackBelow(gfx::NativeView native_view) = 0; 166 virtual void StackBelow(gfx::NativeView native_view) = 0;
167 virtual void SetShape(gfx::NativeRegion shape) = 0; 167 virtual void SetShape(gfx::NativeRegion shape) = 0;
168 virtual void Close() = 0; 168 virtual void Close() = 0;
169 virtual void CloseNow() = 0; 169 virtual void CloseNow() = 0;
170 virtual void Show() = 0; 170 virtual void Show() = 0;
171 virtual void Hide() = 0; 171 virtual void Hide() = 0;
172 virtual void HideAndClose() = 0;
172 // Invoked if the initial show should maximize the window. |restored_bounds| 173 // Invoked if the initial show should maximize the window. |restored_bounds|
173 // is the bounds of the window when not maximized. 174 // is the bounds of the window when not maximized.
174 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; 175 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0;
175 virtual void ShowWithWindowState(ui::WindowShowState show_state) = 0; 176 virtual void ShowWithWindowState(ui::WindowShowState show_state) = 0;
176 virtual bool IsVisible() const = 0; 177 virtual bool IsVisible() const = 0;
177 virtual void Activate() = 0; 178 virtual void Activate() = 0;
178 virtual void Deactivate() = 0; 179 virtual void Deactivate() = 0;
179 virtual bool IsActive() const = 0; 180 virtual bool IsActive() const = 0;
180 virtual void SetAlwaysOnTop(bool always_on_top) = 0; 181 virtual void SetAlwaysOnTop(bool always_on_top) = 0;
181 virtual void Maximize() = 0; 182 virtual void Maximize() = 0;
(...skipping 24 matching lines...) Expand all
206 virtual ui::NativeTheme* GetNativeTheme() const = 0; 207 virtual ui::NativeTheme* GetNativeTheme() const = 0;
207 208
208 // Overridden from NativeWidget: 209 // Overridden from NativeWidget:
209 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; 210 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE;
210 }; 211 };
211 212
212 } // namespace internal 213 } // namespace internal
213 } // namespace views 214 } // namespace views
214 215
215 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 216 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/native_widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698