diff options
Diffstat (limited to 'chrome/browser/ui/simple_message_box.h')
-rw-r--r-- | chrome/browser/ui/simple_message_box.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/ui/simple_message_box.h b/chrome/browser/ui/simple_message_box.h index 9169066..46cea98 100644 --- a/chrome/browser/ui/simple_message_box.h +++ b/chrome/browser/ui/simple_message_box.h @@ -11,20 +11,20 @@ namespace chrome { enum MessageBoxResult { - MESSAGE_BOX_RESULT_NO = 0, - MESSAGE_BOX_RESULT_YES = 1, + MESSAGE_BOX_RESULT_NO = 0, // User chose NO or CANCEL. + MESSAGE_BOX_RESULT_YES = 1, // User chose YES or OK. }; enum MessageBoxType { - MESSAGE_BOX_TYPE_INFORMATION, - MESSAGE_BOX_TYPE_WARNING, - MESSAGE_BOX_TYPE_QUESTION, + MESSAGE_BOX_TYPE_INFORMATION, // Shows an OK button. + MESSAGE_BOX_TYPE_WARNING, // Shows an OK button. + MESSAGE_BOX_TYPE_QUESTION, // Shows YES and NO buttons. + MESSAGE_BOX_TYPE_OK_CANCEL, // Shows OK and CANCEL buttons (Windows only). }; // Shows a dialog box with the given |title| and |message|. If |parent| is // non-NULL, the box will be made modal to the |parent|, except on Mac, where it -// is always app-modal. If |type| is MESSAGE_BOX_TYPE_QUESTION, the box will -// have YES and NO buttons; otherwise it will have an OK button. +// is always app-modal. // // NOTE: In general, you should avoid this since it's usually poor UI. // We have a variety of other surfaces such as wrench menu notifications and |