diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-27 23:07:30 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-27 23:07:30 +0000 |
commit | 2e4bdcdc8cdbffe656700a4028679f0569ad6245 (patch) | |
tree | 633b08aad2d776a54eda7296bf2af2ee6aa52e0c /chrome/views/controls/message_box_view.cc | |
parent | 698835d3e64c96bb5e7a29ab66d2ecbee375fc63 (diff) | |
download | chromium_src-2e4bdcdc8cdbffe656700a4028679f0569ad6245.zip chromium_src-2e4bdcdc8cdbffe656700a4028679f0569ad6245.tar.gz chromium_src-2e4bdcdc8cdbffe656700a4028679f0569ad6245.tar.bz2 |
Move message flags into a separate header that can be used
outside the views system. Mac will need this as well when
implementing message boxes.
Review URL: http://codereview.chromium.org/56026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12722 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/controls/message_box_view.cc')
-rw-r--r-- | chrome/views/controls/message_box_view.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/views/controls/message_box_view.cc b/chrome/views/controls/message_box_view.cc index 6a57480..7fc4a26 100644 --- a/chrome/views/controls/message_box_view.cc +++ b/chrome/views/controls/message_box_view.cc @@ -8,6 +8,7 @@ #include "base/string_util.h" #include "chrome/browser/views/standard_layout.h" #include "chrome/common/l10n_util.h" +#include "chrome/common/message_box_flags.h" #include "chrome/views/controls/button/checkbox.h" #include "chrome/views/window/client_view.h" #include "grit/generated_resources.h" @@ -92,7 +93,7 @@ void MessageBoxView::ViewHierarchyChanged(bool is_add, void MessageBoxView::Init(int dialog_flags, const std::wstring& default_prompt) { message_label_->SetMultiLine(true); - if (dialog_flags & kAutoDetectAlignment) { + if (dialog_flags & MessageBox::kAutoDetectAlignment) { // Determine the alignment and directionality based on the first character // with strong directionality. l10n_util::TextDirection direction = @@ -111,7 +112,7 @@ void MessageBoxView::Init(int dialog_flags, message_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); } - if (dialog_flags & kFlagHasPromptField) { + if (dialog_flags & MessageBox::kFlagHasPromptField) { prompt_field_ = new views::TextField; prompt_field_->SetText(default_prompt); } |