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

Side by Side 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, 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_win.cc ('k') | ui/views/widget/widget.cc » ('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_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 // TODO(beng): Move off public API. 388 // TODO(beng): Move off public API.
389 // Closes the widget immediately. Compare to |Close|. This will destroy the 389 // Closes the widget immediately. Compare to |Close|. This will destroy the
390 // window handle associated with this Widget, so should not be called from 390 // window handle associated with this Widget, so should not be called from
391 // any code that expects it to be valid beyond this call. 391 // any code that expects it to be valid beyond this call.
392 void CloseNow(); 392 void CloseNow();
393 393
394 // Shows or hides the widget, without changing activation state. 394 // Shows or hides the widget, without changing activation state.
395 virtual void Show(); 395 virtual void Show();
396 void Hide(); 396 void Hide();
397 397
398 // Hides the widget, and on completion of the hide animation (if any),
399 // Close()s.
400 void HideAndClose();
401
398 // Like Show(), but does not activate the window. 402 // Like Show(), but does not activate the window.
399 void ShowInactive(); 403 void ShowInactive();
400 404
401 // Activates the widget, assuming it already exists and is visible. 405 // Activates the widget, assuming it already exists and is visible.
402 void Activate(); 406 void Activate();
403 407
404 // Deactivates the widget, making the next window in the Z order the active 408 // Deactivates the widget, making the next window in the Z order the active
405 // window. 409 // window.
406 void Deactivate(); 410 void Deactivate();
407 411
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 // True when window movement via mouse interaction with the frame should be 851 // True when window movement via mouse interaction with the frame should be
848 // disabled. 852 // disabled.
849 bool movement_disabled_; 853 bool movement_disabled_;
850 854
851 DISALLOW_COPY_AND_ASSIGN(Widget); 855 DISALLOW_COPY_AND_ASSIGN(Widget);
852 }; 856 };
853 857
854 } // namespace views 858 } // namespace views
855 859
856 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 860 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« 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