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

Unified Diff: ui/views/widget/widget.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, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.h
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
index 2d6e6aaff6e37d50f6448f4137f84ffbc6821483..047e858afaed7291863381cd820ba2546a2f9f4c 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -395,6 +395,10 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
virtual void Show();
void Hide();
+ // Hides the widget, and on completion of the hide animation (if any),
+ // Close()s.
+ void HideAndClose();
+
// Like Show(), but does not activate the window.
void ShowInactive();
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698