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

Unified Diff: views/controls/message_box_view.cc

Issue 8536026: Convert MessageBoxFlags class into an enum. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« ui/base/message_box_flags.h ('K') | « ui/base/message_box_flags.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/message_box_view.cc
diff --git a/views/controls/message_box_view.cc b/views/controls/message_box_view.cc
index 8216f2992cb0716a1bab404139a225164d283268..6c631c834182e89946e1b46dd91b44a0c60f2e76 100644
--- a/views/controls/message_box_view.cc
+++ b/views/controls/message_box_view.cc
@@ -130,7 +130,7 @@ void MessageBoxView::Init(int dialog_flags,
const string16& default_prompt) {
message_label_->SetMultiLine(true);
message_label_->SetAllowCharacterBreak(true);
- if (dialog_flags & ui::MessageBoxFlags::kAutoDetectAlignment) {
+ if (dialog_flags & ui::MESSAGE_BOX_AUTO_DETECT_ALIGNMENT) {
// Determine the alignment and directionality based on the first character
// with strong directionality.
base::i18n::TextDirection direction =
@@ -150,7 +150,7 @@ void MessageBoxView::Init(int dialog_flags,
message_label_->SetHorizontalAlignment(Label::ALIGN_LEFT);
}
- if (dialog_flags & ui::MessageBoxFlags::kFlagHasPromptField) {
+ if (dialog_flags & ui::MESSAGE_BOX_HAS_PROMPT_FIELD) {
prompt_field_ = new Textfield;
prompt_field_->SetText(default_prompt);
}
« ui/base/message_box_flags.h ('K') | « ui/base/message_box_flags.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698