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/i18n/number_formatting.h" | 10 #include "base/i18n/number_formatting.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "components/autofill/core/common/autofill_constants.h" | 27 #include "components/autofill/core/common/autofill_constants.h" |
28 #include "components/google/core/browser/google_util.h" | 28 #include "components/google/core/browser/google_util.h" |
29 #include "components/password_manager/core/browser/password_manager_constants.h" | 29 #include "components/password_manager/core/browser/password_manager_constants.h" |
30 #include "components/safe_browsing_db/safe_browsing_prefs.h" | 30 #include "components/safe_browsing_db/safe_browsing_prefs.h" |
31 #include "components/strings/grit/components_strings.h" | 31 #include "components/strings/grit/components_strings.h" |
32 #include "components/subresource_filter/core/browser/subresource_filter_features
.h" | 32 #include "components/subresource_filter/core/browser/subresource_filter_features
.h" |
33 #include "content/public/browser/web_ui_data_source.h" | 33 #include "content/public/browser/web_ui_data_source.h" |
34 #include "ui/base/l10n/l10n_util.h" | 34 #include "ui/base/l10n/l10n_util.h" |
35 | 35 |
36 #if defined(OS_CHROMEOS) | 36 #if defined(OS_CHROMEOS) |
37 #include "ash/ash_switches.h" | |
38 #include "ash/system/devicetype_utils.h" | 37 #include "ash/system/devicetype_utils.h" |
39 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" | 38 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" |
40 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact
ory.h" | 39 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact
ory.h" |
41 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 40 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
42 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 41 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
43 #include "chrome/browser/ui/webui/chromeos/network_element_localized_strings_pro
vider.h" | 42 #include "chrome/browser/ui/webui/chromeos/network_element_localized_strings_pro
vider.h" |
44 #include "chrome/browser/ui/webui/chromeos/ui_account_tweaks.h" | 43 #include "chrome/browser/ui/webui/chromeos/ui_account_tweaks.h" |
45 #include "chromeos/chromeos_switches.h" | 44 #include "chromeos/chromeos_switches.h" |
46 #include "components/user_manager/user.h" | 45 #include "components/user_manager/user.h" |
47 #include "components/user_manager/user_manager.h" | 46 #include "components/user_manager/user_manager.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 arraysize(localized_strings)); | 195 arraysize(localized_strings)); |
197 | 196 |
198 #if defined(OS_CHROMEOS) | 197 #if defined(OS_CHROMEOS) |
199 html_source->AddString("a11yLearnMoreUrl", | 198 html_source->AddString("a11yLearnMoreUrl", |
200 chrome::kChromeAccessibilityHelpURL); | 199 chrome::kChromeAccessibilityHelpURL); |
201 | 200 |
202 html_source->AddBoolean( | 201 html_source->AddBoolean( |
203 "showExperimentalA11yFeatures", | 202 "showExperimentalA11yFeatures", |
204 base::CommandLine::ForCurrentProcess()->HasSwitch( | 203 base::CommandLine::ForCurrentProcess()->HasSwitch( |
205 chromeos::switches::kEnableExperimentalAccessibilityFeatures)); | 204 chromeos::switches::kEnableExperimentalAccessibilityFeatures)); |
206 | |
207 html_source->AddBoolean("enableAdjustableLargeCursor", | |
208 base::CommandLine::ForCurrentProcess()->HasSwitch( | |
209 ash::switches::kAshAdjustableLargeCursor)); | |
210 #endif | 205 #endif |
211 } | 206 } |
212 | 207 |
213 void AddAboutStrings(content::WebUIDataSource* html_source) { | 208 void AddAboutStrings(content::WebUIDataSource* html_source) { |
214 LocalizedString localized_strings[] = { | 209 LocalizedString localized_strings[] = { |
215 {"aboutProductLogoAlt", IDS_SHORT_PRODUCT_LOGO_ALT_TEXT}, | 210 {"aboutProductLogoAlt", IDS_SHORT_PRODUCT_LOGO_ALT_TEXT}, |
216 {"aboutPageTitle", IDS_SETTINGS_ABOUT_PROGRAM}, | 211 {"aboutPageTitle", IDS_SETTINGS_ABOUT_PROGRAM}, |
217 #if defined(OS_CHROMEOS) | 212 #if defined(OS_CHROMEOS) |
218 {"aboutProductTitle", IDS_PRODUCT_OS_NAME}, | 213 {"aboutProductTitle", IDS_PRODUCT_OS_NAME}, |
219 #else | 214 #else |
(...skipping 1824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2044 | 2039 |
2045 #if defined(OS_CHROMEOS) | 2040 #if defined(OS_CHROMEOS) |
2046 chromeos::network_element::AddLocalizedStrings(html_source); | 2041 chromeos::network_element::AddLocalizedStrings(html_source); |
2047 #endif | 2042 #endif |
2048 policy_indicator::AddLocalizedStrings(html_source); | 2043 policy_indicator::AddLocalizedStrings(html_source); |
2049 | 2044 |
2050 html_source->SetJsonPath(kLocalizedStringsFile); | 2045 html_source->SetJsonPath(kLocalizedStringsFile); |
2051 } | 2046 } |
2052 | 2047 |
2053 } // namespace settings | 2048 } // namespace settings |
OLD | NEW |