| OLD | NEW |
| 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/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 {"settings", IDS_SETTINGS_SETTINGS}, | 72 {"settings", IDS_SETTINGS_SETTINGS}, |
| 73 {"restart", IDS_SETTINGS_RESTART}, | 73 {"restart", IDS_SETTINGS_RESTART}, |
| 74 }; | 74 }; |
| 75 AddLocalizedStringsBulk(html_source, localized_strings, | 75 AddLocalizedStringsBulk(html_source, localized_strings, |
| 76 arraysize(localized_strings)); | 76 arraysize(localized_strings)); |
| 77 } | 77 } |
| 78 | 78 |
| 79 void AddA11yStrings(content::WebUIDataSource* html_source) { | 79 void AddA11yStrings(content::WebUIDataSource* html_source) { |
| 80 LocalizedString localized_strings[] = { | 80 LocalizedString localized_strings[] = { |
| 81 {"a11yPageTitle", IDS_SETTINGS_ACCESSIBILITY}, | 81 {"a11yPageTitle", IDS_SETTINGS_ACCESSIBILITY}, |
| 82 {"moreFeaturesLink", IDS_SETTINGS_MORE_FEATURES_LINK}, |
| 82 #if defined(OS_CHROMEOS) | 83 #if defined(OS_CHROMEOS) |
| 83 {"moreFeaturesLink", IDS_SETTINGS_MORE_FEATURES_LINK}, | |
| 84 {"optionsInMenuLabel", IDS_SETTINGS_OPTIONS_IN_MENU_LABEL}, | 84 {"optionsInMenuLabel", IDS_SETTINGS_OPTIONS_IN_MENU_LABEL}, |
| 85 {"largeMouseCursorLabel", IDS_SETTINGS_LARGE_MOUSE_CURSOR_LABEL}, | 85 {"largeMouseCursorLabel", IDS_SETTINGS_LARGE_MOUSE_CURSOR_LABEL}, |
| 86 {"highContrastLabel", IDS_SETTINGS_HIGH_CONTRAST_LABEL}, | 86 {"highContrastLabel", IDS_SETTINGS_HIGH_CONTRAST_LABEL}, |
| 87 {"stickyKeysLabel", IDS_SETTINGS_STICKY_KEYS_LABEL}, | 87 {"stickyKeysLabel", IDS_SETTINGS_STICKY_KEYS_LABEL}, |
| 88 {"chromeVoxLabel", IDS_SETTINGS_CHROMEVOX_LABEL}, | 88 {"chromeVoxLabel", IDS_SETTINGS_CHROMEVOX_LABEL}, |
| 89 {"screenMagnifierLabel", IDS_SETTINGS_SCREEN_MAGNIFIER_LABEL}, | 89 {"screenMagnifierLabel", IDS_SETTINGS_SCREEN_MAGNIFIER_LABEL}, |
| 90 {"tapDraggingLabel", IDS_SETTINGS_TAP_DRAGGING_LABEL}, | 90 {"tapDraggingLabel", IDS_SETTINGS_TAP_DRAGGING_LABEL}, |
| 91 {"clickOnStopLabel", IDS_SETTINGS_CLICK_ON_STOP_LABEL}, | 91 {"clickOnStopLabel", IDS_SETTINGS_CLICK_ON_STOP_LABEL}, |
| 92 {"delayBeforeClickLabel", IDS_SETTINGS_DELAY_BEFORE_CLICK_LABEL}, | 92 {"delayBeforeClickLabel", IDS_SETTINGS_DELAY_BEFORE_CLICK_LABEL}, |
| 93 {"delayBeforeClickExtremelyShort", | 93 {"delayBeforeClickExtremelyShort", |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 #endif | 900 #endif |
| 901 AddUsersStrings(html_source); | 901 AddUsersStrings(html_source); |
| 902 AddWebContentStrings(html_source); | 902 AddWebContentStrings(html_source); |
| 903 | 903 |
| 904 policy_indicator::AddLocalizedStrings(html_source); | 904 policy_indicator::AddLocalizedStrings(html_source); |
| 905 | 905 |
| 906 html_source->SetJsonPath(kLocalizedStringsFile); | 906 html_source->SetJsonPath(kLocalizedStringsFile); |
| 907 } | 907 } |
| 908 | 908 |
| 909 } // namespace settings | 909 } // namespace settings |
| OLD | NEW |