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

Unified Diff: chrome/browser/chromeos/options/language_pinyin_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
« no previous file with comments | « chrome/browser/chromeos/options/language_pinyin_config_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/options/language_pinyin_config_view.cc
diff --git a/chrome/browser/chromeos/options/language_pinyin_config_view.cc b/chrome/browser/chromeos/options/language_pinyin_config_view.cc
index cfeb8f3323347d056c38f8c8cc0548b142fd21bf..48d79d70dab3ec3a7ff4b700655800ff9416b9f7 100644
--- a/chrome/browser/chromeos/options/language_pinyin_config_view.cc
+++ b/chrome/browser/chromeos/options/language_pinyin_config_view.cc
@@ -66,6 +66,18 @@ void LanguagePinyinConfigView::Layout() {
contents_->SetBounds(0, 0, width(), height());
}
+int LanguagePinyinConfigView::GetDialogButtons() const {
+ return MessageBoxFlags::DIALOGBUTTON_OK;
+}
+
+std::wstring LanguagePinyinConfigView::GetDialogButtonLabel(
+ MessageBoxFlags::DialogButton button) const {
+ if (button == MessageBoxFlags::DIALOGBUTTON_OK) {
+ return l10n_util::GetString(IDS_OK);
+ }
+ return L"";
+}
+
std::wstring LanguagePinyinConfigView::GetWindowTitle() const {
return l10n_util::GetString(
IDS_OPTIONS_SETTINGS_LANGUAGES_PINYIN_SETTINGS_TITLE);
« no previous file with comments | « chrome/browser/chromeos/options/language_pinyin_config_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698