OLD | NEW |
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_note_handler.h" | 5 #include "chrome/browser/ui/webui/options/chromeos/options_note_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 |
11 namespace chromeos { | 11 namespace chromeos { |
12 namespace options { | 12 namespace options { |
13 | 13 |
14 OptionsNoteHandler::OptionsNoteHandler() {} | 14 OptionsNoteHandler::OptionsNoteHandler() {} |
15 | 15 |
16 OptionsNoteHandler::~OptionsNoteHandler() {} | 16 OptionsNoteHandler::~OptionsNoteHandler() {} |
17 | 17 |
18 void OptionsNoteHandler::GetLocalizedValues( | 18 void OptionsNoteHandler::GetLocalizedValues( |
19 base::DictionaryValue* localized_strings) { | 19 base::DictionaryValue* localized_strings) { |
20 DCHECK(localized_strings); | 20 DCHECK(localized_strings); |
21 | 21 |
22 RegisterTitle(localized_strings, "noteOverlay", IDS_OPTIONS_NOTE_TITLE); | 22 RegisterTitle(localized_strings, "noteOverlay", IDS_OPTIONS_NOTE_TITLE); |
23 | 23 |
24 localized_strings->SetString( | 24 localized_strings->SetString( |
25 "noteSettingsButtonTitle", | 25 "noteSettingsButtonTitle", |
26 l10n_util::GetStringUTF16(IDS_OPTIONS_NOTE_TITLE)); | 26 l10n_util::GetStringUTF16(IDS_OPTIONS_NOTE_TITLE)); |
27 localized_strings->SetString( | 27 localized_strings->SetString( |
| 28 "noteEnableAshPalette", |
| 29 l10n_util::GetStringUTF16(IDS_SETTINGS_NOTE_ENABLE_ASH_PALETTE)); |
| 30 localized_strings->SetString( |
28 "noteDefaultAppAutoLaunch", | 31 "noteDefaultAppAutoLaunch", |
29 l10n_util::GetStringUTF16(IDS_SETTINGS_NOTE_DEFAULT_APP_AUTO_LAUNCH)); | 32 l10n_util::GetStringUTF16(IDS_SETTINGS_NOTE_DEFAULT_APP_AUTO_LAUNCH)); |
30 localized_strings->SetString( | 33 localized_strings->SetString( |
31 "noteFindMoreApps", | 34 "noteFindMoreApps", |
32 l10n_util::GetStringUTF16(IDS_SETTINGS_NOTE_FIND_MORE_APPS)); | 35 l10n_util::GetStringUTF16(IDS_SETTINGS_NOTE_FIND_MORE_APPS)); |
33 | 36 |
34 localized_strings->SetBoolean("showNoteSettings", ash::IsPaletteEnabled()); | 37 localized_strings->SetBoolean("showNoteSettings", |
| 38 ash::IsPaletteFeatureEnabled()); |
35 } | 39 } |
36 | 40 |
37 void OptionsNoteHandler::InitializePage() {} | 41 void OptionsNoteHandler::InitializePage() {} |
38 | 42 |
39 void OptionsNoteHandler::RegisterMessages() {} | 43 void OptionsNoteHandler::RegisterMessages() {} |
40 | 44 |
41 } // namespace options | 45 } // namespace options |
42 } // namespace chromeos | 46 } // namespace chromeos |
OLD | NEW |