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

Unified Diff: chrome/browser/ui/webui/options/chromeos/options_note_handler.cc

Issue 2188033005: Add note page to options. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stylus-settings
Patch Set: Initial upload Created 4 years, 5 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/ui/webui/options/chromeos/options_note_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/options_note_handler.cc b/chrome/browser/ui/webui/options/chromeos/options_note_handler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a38250769be735b48c050d7211578a3e09f9555c
--- /dev/null
+++ b/chrome/browser/ui/webui/options/chromeos/options_note_handler.cc
@@ -0,0 +1,42 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/webui/options/chromeos/options_note_handler.h"
+
+#include "ash/common/system/chromeos/palette/palette_utils.h"
+#include "chrome/grit/generated_resources.h"
+#include "ui/base/l10n/l10n_util.h"
+
+namespace chromeos {
+namespace options {
+
+OptionsNoteHandler::OptionsNoteHandler() {}
+
+OptionsNoteHandler::~OptionsNoteHandler() {}
+
+void OptionsNoteHandler::GetLocalizedValues(
+ base::DictionaryValue* localized_strings) {
+ DCHECK(localized_strings);
+
+ RegisterTitle(localized_strings, "noteOverlay", IDS_OPTIONS_NOTE_TITLE);
+
+ localized_strings->SetString(
+ "noteSettingsButtonTitle",
+ l10n_util::GetStringUTF16(IDS_OPTIONS_NOTE_TITLE));
+ localized_strings->SetString(
+ "noteDefaultAppAutoLaunch",
+ l10n_util::GetStringUTF16(IDS_SETTINGS_NOTE_DEFAULT_APP_AUTO_LAUNCH));
+ localized_strings->SetString(
+ "noteFindMoreApps",
+ l10n_util::GetStringUTF16(IDS_SETTINGS_NOTE_FIND_MORE_APPS));
+
+ localized_strings->SetBoolean("showNoteSettings", ash::IsPaletteEnabled());
+}
+
+void OptionsNoteHandler::InitializePage() {}
+
+void OptionsNoteHandler::RegisterMessages() {}
+
+} // namespace options
+} // namespace chromeos
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/options_note_handler.h ('k') | chrome/browser/ui/webui/options/options_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698