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

Unified Diff: chrome/browser/chromeos/options/language_mozc_config_view.cc

Issue 2799052: Hide cancel buttons on configuration dialogs. (Closed)
Patch Set: Created 10 years, 6 months 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
Index: chrome/browser/chromeos/options/language_mozc_config_view.cc
diff --git a/chrome/browser/chromeos/options/language_mozc_config_view.cc b/chrome/browser/chromeos/options/language_mozc_config_view.cc
index 80d25edf1c5a45b3fcc576da9b6506cdb141990f..11c2cdc09a158c8a278a0f48858b70c6fbe9e990 100644
--- a/chrome/browser/chromeos/options/language_mozc_config_view.cc
+++ b/chrome/browser/chromeos/options/language_mozc_config_view.cc
@@ -110,6 +110,18 @@ void LanguageMozcConfigView::Layout() {
contents_->SetBounds(0, 0, width(), height());
}
+int LanguageMozcConfigView::GetDialogButtons() const {
+ return MessageBoxFlags::DIALOGBUTTON_OK;
+}
+
+std::wstring LanguageMozcConfigView::GetDialogButtonLabel(
+ MessageBoxFlags::DialogButton button) const {
+ if (button == MessageBoxFlags::DIALOGBUTTON_OK) {
+ return l10n_util::GetString(IDS_OK);
+ }
+ return L"";
+}
+
std::wstring LanguageMozcConfigView::GetWindowTitle() const {
return l10n_util::GetString(
IDS_OPTIONS_SETTINGS_LANGUAGES_MOZC_SETTINGS_TITLE);

Powered by Google App Engine
This is Rietveld 408576698