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

Unified Diff: views/controls/message_box_view.h

Issue 8553001: views: Add an Options enum to MessageBoxView control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 9 years, 1 month 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: views/controls/message_box_view.h
diff --git a/views/controls/message_box_view.h b/views/controls/message_box_view.h
index 5416b4b18d3abed0156f266a4e81528b837f61b0..998a9d0d7af1888a37018e2b87c913fc6ffd8ea8 100644
--- a/views/controls/message_box_view.h
+++ b/views/controls/message_box_view.h
@@ -23,12 +23,18 @@ class Textfield;
// and Cancel buttons.
class VIEWS_EXPORT MessageBoxView : public View {
public:
- MessageBoxView(int dialog_flags,
+ enum Options {
+ NONE = 0,
sky 2011/11/30 22:43:12 How about NO_OPTIONS or something to make it more
tfarina 2011/12/01 12:43:26 Done.
+ DETECT_ALIGNMENT = 1 << 0,
+ HAS_PROMPT_FIELD = 1 << 1,
+ };
+
+ MessageBoxView(int options,
const string16& message,
const string16& default_prompt,
int message_width);
- MessageBoxView(int dialog_flags,
+ MessageBoxView(int options,
const string16& message,
const string16& default_prompt);
@@ -70,7 +76,7 @@ class VIEWS_EXPORT MessageBoxView : public View {
private:
// Sets up the layout manager and initializes the prompt field. This should
// only be called once, from the constructor.
- void Init(int dialog_flags, const string16& default_prompt);
+ void Init(int options, const string16& default_prompt);
// Sets up the layout manager based on currently initialized views. Should be
// called when a view is initialized or changed.

Powered by Google App Engine
This is Rietveld 408576698