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

Unified Diff: ui/views/controls/message_box_view.h

Issue 10378086: views: Add a new ctor to MessageBoxView that takes only a InitParams. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: InitParams Created 8 years, 7 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
Index: ui/views/controls/message_box_view.h
diff --git a/ui/views/controls/message_box_view.h b/ui/views/controls/message_box_view.h
index 7325a05b0675210ce0e428d585ce76a0f7b7d653..2c46e498e3b6d98d054c2b2b469861b1b2aa3c28 100644
--- a/ui/views/controls/message_box_view.h
+++ b/ui/views/controls/message_box_view.h
@@ -37,14 +37,16 @@ class VIEWS_EXPORT MessageBoxView : public View {
HAS_PROMPT_FIELD = 1 << 1,
};
- MessageBoxView(int options,
- const string16& message,
- const string16& default_prompt,
- int message_width);
-
- MessageBoxView(int options,
- const string16& message,
- const string16& default_prompt);
+ struct InitParams {
+ InitParams(const string16& message);
sky 2012/05/11 17:31:10 Explicit and add a destructor.
tfarina 2012/05/11 17:41:42 Done.
+
+ uint16 options;
+ string16 message;
+ string16 default_prompt;
+ int message_width;
+ };
+
+ MessageBoxView(const InitParams& params);
sky 2012/05/11 17:31:10 explicit
tfarina 2012/05/11 17:41:42 Done.
virtual ~MessageBoxView();

Powered by Google App Engine
This is Rietveld 408576698