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

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

Issue 2273273003: Update strings for ash palette and rename options/settings files. (Closed)
Patch Set: A few more string changes Created 4 years, 4 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_stylus_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/options_stylus_handler.cc b/chrome/browser/ui/webui/options/chromeos/options_stylus_handler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..34aa43d80ad6e4ff10594616a60cea71288567fe
--- /dev/null
+++ b/chrome/browser/ui/webui/options/chromeos/options_stylus_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_stylus_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 {
+
+OptionsStylusHandler::OptionsStylusHandler() {}
+
+OptionsStylusHandler::~OptionsStylusHandler() {}
+
+void OptionsStylusHandler::GetLocalizedValues(
+ base::DictionaryValue* localized_strings) {
+ DCHECK(localized_strings);
+
+ RegisterTitle(localized_strings, "stylusOverlay", IDS_SETTINGS_STYLUS_TITLE);
+
+ localized_strings->SetString(
+ "stylusSettingsButtonTitle",
+ l10n_util::GetStringUTF16(IDS_SETTINGS_STYLUS_TITLE));
+ localized_strings->SetString(
+ "stylusAutoOpenStylusTools",
+ l10n_util::GetStringUTF16(IDS_SETTINGS_STYLUS_AUTO_OPEN_STYLUS_TOOLS));
+ localized_strings->SetString(
+ "stylusFindMoreApps",
+ l10n_util::GetStringUTF16(IDS_SETTINGS_STYLUS_FIND_MORE_APPS));
+
+ localized_strings->SetBoolean("showStylusSettings", ash::IsPaletteEnabled());
+}
+
+void OptionsStylusHandler::InitializePage() {}
+
+void OptionsStylusHandler::RegisterMessages() {}
+
+} // namespace options
+} // namespace chromeos
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/options_stylus_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