Chromium Code Reviews| 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. |