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

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

Issue 2258553004: Add pref to enable/disable palette tray. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Rebase Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/options/chromeos/options_stylus_handler.h" 5 #include "chrome/browser/ui/webui/options/chromeos/options_stylus_handler.h"
6 6
7 #include "ash/common/system/chromeos/palette/palette_utils.h" 7 #include "ash/common/system/chromeos/palette/palette_utils.h"
8 #include "chrome/grit/generated_resources.h" 8 #include "chrome/grit/generated_resources.h"
9 #include "ui/base/l10n/l10n_util.h" 9 #include "ui/base/l10n/l10n_util.h"
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 RegisterTitle(localized_strings, "stylusOverlay", IDS_SETTINGS_STYLUS_TITLE); 22 RegisterTitle(localized_strings, "stylusOverlay", IDS_SETTINGS_STYLUS_TITLE);
23 23
24 localized_strings->SetString( 24 localized_strings->SetString(
25 "stylusSettingsButtonTitle", 25 "stylusSettingsButtonTitle",
26 l10n_util::GetStringUTF16(IDS_SETTINGS_STYLUS_TITLE)); 26 l10n_util::GetStringUTF16(IDS_SETTINGS_STYLUS_TITLE));
27 localized_strings->SetString( 27 localized_strings->SetString(
28 "stylusAutoOpenStylusTools", 28 "stylusAutoOpenStylusTools",
29 l10n_util::GetStringUTF16(IDS_SETTINGS_STYLUS_AUTO_OPEN_STYLUS_TOOLS)); 29 l10n_util::GetStringUTF16(IDS_SETTINGS_STYLUS_AUTO_OPEN_STYLUS_TOOLS));
30 localized_strings->SetString( 30 localized_strings->SetString(
31 "stylusEnableStylusTools",
32 l10n_util::GetStringUTF16(IDS_SETTINGS_STYLUS_ENABLE_STYLUS_TOOLS));
33 localized_strings->SetString(
31 "stylusFindMoreApps", 34 "stylusFindMoreApps",
32 l10n_util::GetStringUTF16(IDS_SETTINGS_STYLUS_FIND_MORE_APPS)); 35 l10n_util::GetStringUTF16(IDS_SETTINGS_STYLUS_FIND_MORE_APPS));
33 36
34 localized_strings->SetBoolean("showStylusSettings", ash::IsPaletteEnabled()); 37 localized_strings->SetBoolean("showStylusSettings",
38 ash::IsPaletteFeatureEnabled());
35 } 39 }
36 40
37 void OptionsStylusHandler::InitializePage() {} 41 void OptionsStylusHandler::InitializePage() {}
38 42
39 void OptionsStylusHandler::RegisterMessages() {} 43 void OptionsStylusHandler::RegisterMessages() {}
40 44
41 } // namespace options 45 } // namespace options
42 } // namespace chromeos 46 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698