summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-14 05:43:00 +0000
committersatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-14 05:43:00 +0000
commitf58d1a95313947cb6a03b8b136f34cc66b127e89 (patch)
tree31e48ba4fffbaaf05aeda08e6c53cc6251dfef15
parent7606fa2cd6f3899e9b13cb7655ae5d6be91fbc93 (diff)
downloadchromium_src-f58d1a95313947cb6a03b8b136f34cc66b127e89.zip
chromium_src-f58d1a95313947cb6a03b8b136f34cc66b127e89.tar.gz
chromium_src-f58d1a95313947cb6a03b8b136f34cc66b127e89.tar.bz2
Change "OK" button to "Done" button, to follow the mock from UX.
Along the way, remove "Cance" button. If really needed, we could adding support for canceling in the future. BUG=crosbug.com/2074 TEST=manually Review URL: http://codereview.chromium.org/1612018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44452 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/chromeos/options/language_config_view.cc8
-rw-r--r--chrome/browser/chromeos/options/language_config_view.h5
2 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/options/language_config_view.cc b/chrome/browser/chromeos/options/language_config_view.cc
index 3826645..fb1f84b 100644
--- a/chrome/browser/chromeos/options/language_config_view.cc
+++ b/chrome/browser/chromeos/options/language_config_view.cc
@@ -279,6 +279,14 @@ void LanguageConfigView::Layout() {
root_container_->SetBounds(0, 0, width(), height());
}
+std::wstring LanguageConfigView::GetDialogButtonLabel(
+ MessageBoxFlags::DialogButton button) const {
+ if (button == MessageBoxFlags::DIALOGBUTTON_OK) {
+ return l10n_util::GetString(IDS_DONE);
+ }
+ return L"";
+}
+
std::wstring LanguageConfigView::GetWindowTitle() const {
return l10n_util::GetString(
IDS_OPTIONS_SETTINGS_LANGUAGES_DIALOG_TITLE);
diff --git a/chrome/browser/chromeos/options/language_config_view.h b/chrome/browser/chromeos/options/language_config_view.h
index f8986f3..d93565d 100644
--- a/chrome/browser/chromeos/options/language_config_view.h
+++ b/chrome/browser/chromeos/options/language_config_view.h
@@ -44,6 +44,11 @@ class LanguageConfigView : public TableModel,
// views::DialogDelegate overrides.
virtual bool IsModal() const { return true; }
virtual views::View* GetContentsView() { return this; }
+ virtual std::wstring GetDialogButtonLabel(
+ MessageBoxFlags::DialogButton button) const;
+ virtual int GetDialogButtons() const {
+ return MessageBoxFlags::DIALOGBUTTON_OK;
+ }
virtual std::wstring GetWindowTitle() const;
// views::View overrides: