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

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 2258553004: Add pref to enable/disable palette tray. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Initial upload 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/settings/md_settings_localized_strings_provide r.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 {"keyRepeatRateFast", IDS_SETTINGS_KEYBOARD_AUTO_REPEAT_FAST}, 518 {"keyRepeatRateFast", IDS_SETTINGS_KEYBOARD_AUTO_REPEAT_FAST},
519 {"showKeyboardShortcutsOverlay", 519 {"showKeyboardShortcutsOverlay",
520 IDS_SETTINGS_KEYBOARD_SHOW_KEYBOARD_SHORTCUTS_OVERLAY}, 520 IDS_SETTINGS_KEYBOARD_SHOW_KEYBOARD_SHORTCUTS_OVERLAY},
521 {"keyboardShowLanguageAndInput", 521 {"keyboardShowLanguageAndInput",
522 IDS_SETTINGS_KEYBOARD_SHOW_LANGUAGE_AND_INPUT}, 522 IDS_SETTINGS_KEYBOARD_SHOW_LANGUAGE_AND_INPUT},
523 }; 523 };
524 AddLocalizedStringsBulk(html_source, keyboard_strings, 524 AddLocalizedStringsBulk(html_source, keyboard_strings,
525 arraysize(keyboard_strings)); 525 arraysize(keyboard_strings));
526 526
527 LocalizedString note_strings[] = { 527 LocalizedString note_strings[] = {
528 {"noteTitle", IDS_SETTINGS_NOTE_TITLE}, 528 {"noteTitle", IDS_SETTINGS_NOTE_TITLE},
529 {"noteDefaultAppAutoLaunch", IDS_SETTINGS_NOTE_DEFAULT_APP_AUTO_LAUNCH}, 529 {"noteEnableAshPalette", IDS_SETTINGS_NOTE_ENABLE_ASH_PALETTE},
530 {"noteFindMoreApps", IDS_SETTINGS_NOTE_FIND_MORE_APPS} 530 {"noteDefaultAppAutoLaunch", IDS_SETTINGS_NOTE_DEFAULT_APP_AUTO_LAUNCH},
531 }; 531 {"noteFindMoreApps", IDS_SETTINGS_NOTE_FIND_MORE_APPS}};
532 AddLocalizedStringsBulk(html_source, note_strings, 532 AddLocalizedStringsBulk(html_source, note_strings,
533 arraysize(note_strings)); 533 arraysize(note_strings));
534 534
535 535
536 LocalizedString display_strings[] = { 536 LocalizedString display_strings[] = {
537 {"devicePageTitle", IDS_SETTINGS_DEVICE_TITLE}, 537 {"devicePageTitle", IDS_SETTINGS_DEVICE_TITLE},
538 {"displayTitle", IDS_SETTINGS_DISPLAY_TITLE}, 538 {"displayTitle", IDS_SETTINGS_DISPLAY_TITLE},
539 {"displayArrangement", IDS_SETTINGS_DISPLAY_ARRANGEMENT}, 539 {"displayArrangement", IDS_SETTINGS_DISPLAY_ARRANGEMENT},
540 {"displayMirror", IDS_SETTINGS_DISPLAY_MIRROR}, 540 {"displayMirror", IDS_SETTINGS_DISPLAY_MIRROR},
541 {"displayMakePrimary", IDS_SETTINGS_DISPLAY_MAKE_PRIMARY}, 541 {"displayMakePrimary", IDS_SETTINGS_DISPLAY_MAKE_PRIMARY},
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 #endif 1424 #endif
1425 AddUsersStrings(html_source); 1425 AddUsersStrings(html_source);
1426 AddWebContentStrings(html_source); 1426 AddWebContentStrings(html_source);
1427 1427
1428 policy_indicator::AddLocalizedStrings(html_source); 1428 policy_indicator::AddLocalizedStrings(html_source);
1429 1429
1430 html_source->SetJsonPath(kLocalizedStringsFile); 1430 html_source->SetJsonPath(kLocalizedStringsFile);
1431 } 1431 }
1432 1432
1433 } // namespace settings 1433 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698