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

Unified Diff: ui/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: 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 | « ui/ui.gyp ('k') | ui/views/controls/message_box_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cd81e40fb15afdd0f2426e0ea7e0dcc3b912156b..8df16bce9816fd589f1c5270521b341403c784a7 100644
--- a/ui/views/controls/message_box_view.h
+++ b/ui/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 {
+ NO_OPTIONS = 0,
+ 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.
« no previous file with comments | « ui/ui.gyp ('k') | ui/views/controls/message_box_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698