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

Unified Diff: ui/views/window/dialog_delegate.h

Issue 10965052: Provide hook to abort dialog cancellation, disable cancellation during install. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Combined if clauses. Created 8 years, 3 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/window/dialog_client_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_delegate.h
diff --git a/ui/views/window/dialog_delegate.h b/ui/views/window/dialog_delegate.h
index 9dd878aafecfae493974d6de8087b7cefaa6f5b1..b6aae2c6c5fbffb37d3ee903d95c2ae7bd939f0c 100644
--- a/ui/views/window/dialog_delegate.h
+++ b/ui/views/window/dialog_delegate.h
@@ -74,11 +74,11 @@ class VIEWS_EXPORT DialogDelegate : public WidgetDelegate {
// max(extra_view preferred height, buttons preferred height).
virtual bool GetSizeExtraViewHeightToButtons();
- // For Dialog boxes, if there is a "Cancel" button, this is called when the
- // user presses the "Cancel" button or the Close button on the window or
- // in the system menu, or presses the Esc key. This function should return
- // true if the window can be closed after it returns, or false if it must
- // remain open.
+ // For Dialog boxes, if there is a "Cancel" button or no dialog button at all,
+ // this is called when the user presses the "Cancel" button or the Close
+ // button on the window or in the system menu, or presses the Esc key.
+ // This function should return true if the window can be closed after it
+ // returns, or false if it must remain open.
virtual bool Cancel();
// For Dialog boxes, this is called when the user presses the "OK" button,
« no previous file with comments | « ui/views/window/dialog_client_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698