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

Unified Diff: chrome/browser/ui/views/simple_message_box_views.h

Issue 8553001: views: Add an Options enum to MessageBoxView control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adding an IPC_MESSAGE_EXPORT to line 30 of param_traits_macro.h makes it link in shared build Created 9 years 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 | « chrome/browser/ui/views/restart_message_box.cc ('k') | chrome/browser/ui/views/simple_message_box_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/simple_message_box_views.h
diff --git a/chrome/browser/ui/views/simple_message_box_views.h b/chrome/browser/ui/views/simple_message_box_views.h
index 1424885e9fea99c1334748f79f77937c568f2363..7b66876ed06cae707d57fc9d5e4bc84c592bc5e6 100644
--- a/chrome/browser/ui/views/simple_message_box_views.h
+++ b/chrome/browser/ui/views/simple_message_box_views.h
@@ -62,8 +62,13 @@ class SimpleMessageBoxViews : public views::DialogDelegate,
virtual const views::Widget* GetWidget() const OVERRIDE;
private:
+ enum DialogType {
+ DIALOG_ERROR,
+ DIALOG_YES_NO,
+ };
+
SimpleMessageBoxViews(gfx::NativeWindow parent_window,
- int dialog_flags,
+ DialogType type,
const string16& title,
const string16& message);
virtual ~SimpleMessageBoxViews();
@@ -80,7 +85,7 @@ class SimpleMessageBoxViews : public views::DialogDelegate,
virtual bool Dispatch(GdkEvent* event) OVERRIDE;
#endif
- int dialog_flags_;
+ const DialogType type_;
string16 message_box_title_;
views::MessageBoxView* message_box_view_;
DispositionType disposition_;
« no previous file with comments | « chrome/browser/ui/views/restart_message_box.cc ('k') | chrome/browser/ui/views/simple_message_box_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698