summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/bookmark_editor_view.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 22:31:47 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 22:31:47 +0000
commit7f1a907d93ee0f7ac527424a70e245343ce0539a (patch)
treef2676a17b23d23c9c044dd64bde0b6601dc256d1 /chrome/browser/views/bookmark_editor_view.cc
parent806aeb954d302328cc75bda71331474d8634675b (diff)
downloadchromium_src-7f1a907d93ee0f7ac527424a70e245343ce0539a.zip
chromium_src-7f1a907d93ee0f7ac527424a70e245343ce0539a.tar.gz
chromium_src-7f1a907d93ee0f7ac527424a70e245343ce0539a.tar.bz2
Revert "Refactor DialogDelegate so the DialogButton enum is in cross platform"
This reverts commit r14146. MessageBox is redefined to MessageBoxW by windows. I need to rename the class. Review URL: http://codereview.chromium.org/87064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14147 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/bookmark_editor_view.cc')
-rw-r--r--chrome/browser/views/bookmark_editor_view.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/chrome/browser/views/bookmark_editor_view.cc b/chrome/browser/views/bookmark_editor_view.cc
index b2d8c79..b5a2f6d 100644
--- a/chrome/browser/views/bookmark_editor_view.cc
+++ b/chrome/browser/views/bookmark_editor_view.cc
@@ -80,9 +80,8 @@ void BookmarkEditorView::Show(HWND parent_hwnd,
editor->Show(parent_hwnd);
}
-bool BookmarkEditorView::IsDialogButtonEnabled(
- MessageBox::DialogButton button) const {
- if (button == MessageBox::DIALOGBUTTON_OK) {
+bool BookmarkEditorView::IsDialogButtonEnabled(DialogButton button) const {
+ if (button == DIALOGBUTTON_OK) {
const GURL url(GetInputURL());
return bb_model_->IsLoaded() && url.is_valid();
}
@@ -97,7 +96,7 @@ std::wstring BookmarkEditorView::GetWindowTitle() const {
}
bool BookmarkEditorView::Accept() {
- if (!IsDialogButtonEnabled(MessageBox::DIALOGBUTTON_OK)) {
+ if (!IsDialogButtonEnabled(DIALOGBUTTON_OK)) {
// The url is invalid, focus the url field.
url_tf_.SelectAll();
url_tf_.RequestFocus();
@@ -108,8 +107,7 @@ bool BookmarkEditorView::Accept() {
return true;
}
-bool BookmarkEditorView::AreAcceleratorsEnabled(
- MessageBox::DialogButton button) {
+bool BookmarkEditorView::AreAcceleratorsEnabled(DialogButton button) {
return !show_tree_ || !tree_view_->GetEditingNode();
}