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

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

Issue 2178213002: Add note page to settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stylus-add-switch
Patch Set: Address comments and add utility method 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 {"keyRepeatRateSlow", IDS_SETTINGS_KEYBOARD_AUTO_REPEAT_RATE_SLOW}, 475 {"keyRepeatRateSlow", IDS_SETTINGS_KEYBOARD_AUTO_REPEAT_RATE_SLOW},
476 {"keyRepeatRateFast", IDS_SETTINGS_KEYBOARD_AUTO_REPEAT_FAST}, 476 {"keyRepeatRateFast", IDS_SETTINGS_KEYBOARD_AUTO_REPEAT_FAST},
477 {"showKeyboardShortcutsOverlay", 477 {"showKeyboardShortcutsOverlay",
478 IDS_SETTINGS_KEYBOARD_SHOW_KEYBOARD_SHORTCUTS_OVERLAY}, 478 IDS_SETTINGS_KEYBOARD_SHOW_KEYBOARD_SHORTCUTS_OVERLAY},
479 {"keyboardShowLanguageAndInput", 479 {"keyboardShowLanguageAndInput",
480 IDS_SETTINGS_KEYBOARD_SHOW_LANGUAGE_AND_INPUT}, 480 IDS_SETTINGS_KEYBOARD_SHOW_LANGUAGE_AND_INPUT},
481 }; 481 };
482 AddLocalizedStringsBulk(html_source, keyboard_strings, 482 AddLocalizedStringsBulk(html_source, keyboard_strings,
483 arraysize(keyboard_strings)); 483 arraysize(keyboard_strings));
484 484
485 LocalizedString note_strings[] = {
486 {"noteTitle", IDS_SETTINGS_NOTE_TITLE},
487 {"noteDefaultAppAutoLaunch", IDS_SETTINGS_NOTE_DEFAULT_APP_AUTO_LAUNCH},
488 {"noteFindMoreApps", IDS_SETTINGS_NOTE_FIND_MORE_APPS}
489 };
490 AddLocalizedStringsBulk(html_source, note_strings,
491 arraysize(note_strings));
492
493
485 LocalizedString display_strings[] = { 494 LocalizedString display_strings[] = {
486 {"devicePageTitle", IDS_SETTINGS_DEVICE_TITLE}, 495 {"devicePageTitle", IDS_SETTINGS_DEVICE_TITLE},
487 {"displayTitle", IDS_SETTINGS_DISPLAY_TITLE}, 496 {"displayTitle", IDS_SETTINGS_DISPLAY_TITLE},
488 {"displayArrangement", IDS_SETTINGS_DISPLAY_ARRANGEMENT}, 497 {"displayArrangement", IDS_SETTINGS_DISPLAY_ARRANGEMENT},
489 {"displayMirror", IDS_SETTINGS_DISPLAY_MIRROR}, 498 {"displayMirror", IDS_SETTINGS_DISPLAY_MIRROR},
490 {"displayMakePrimary", IDS_SETTINGS_DISPLAY_MAKE_PRIMARY}, 499 {"displayMakePrimary", IDS_SETTINGS_DISPLAY_MAKE_PRIMARY},
491 {"displayResolutionTitle", IDS_SETTINGS_DISPLAY_RESOLUTION_TITLE}, 500 {"displayResolutionTitle", IDS_SETTINGS_DISPLAY_RESOLUTION_TITLE},
492 {"displayResolutionText", IDS_SETTINGS_DISPLAY_RESOLUTION_TEXT}, 501 {"displayResolutionText", IDS_SETTINGS_DISPLAY_RESOLUTION_TEXT},
493 {"displayResolutionTextBest", IDS_SETTINGS_DISPLAY_RESOLUTION_TEXT_BEST}, 502 {"displayResolutionTextBest", IDS_SETTINGS_DISPLAY_RESOLUTION_TEXT_BEST},
494 {"displayResolutionTextNative", 503 {"displayResolutionTextNative",
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
1354 #endif 1363 #endif
1355 AddUsersStrings(html_source); 1364 AddUsersStrings(html_source);
1356 AddWebContentStrings(html_source); 1365 AddWebContentStrings(html_source);
1357 1366
1358 policy_indicator::AddLocalizedStrings(html_source); 1367 policy_indicator::AddLocalizedStrings(html_source);
1359 1368
1360 html_source->SetJsonPath(kLocalizedStringsFile); 1369 html_source->SetJsonPath(kLocalizedStringsFile);
1361 } 1370 }
1362 1371
1363 } // namespace settings 1372 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | chrome/browser/ui/webui/settings/md_settings_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698