OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/browser_options_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 IDS_OPTIONS_TRANSLATE_ENABLE_TRANSLATE }, | 273 IDS_OPTIONS_TRANSLATE_ENABLE_TRANSLATE }, |
274 #if defined(TOOLKIT_GTK) | 274 #if defined(TOOLKIT_GTK) |
275 { "showWindowDecorations", IDS_SHOW_WINDOW_DECORATIONS }, | 275 { "showWindowDecorations", IDS_SHOW_WINDOW_DECORATIONS }, |
276 { "themesGTKButton", IDS_THEMES_GTK_BUTTON }, | 276 { "themesGTKButton", IDS_THEMES_GTK_BUTTON }, |
277 { "themesSetClassic", IDS_THEMES_SET_CLASSIC }, | 277 { "themesSetClassic", IDS_THEMES_SET_CLASSIC }, |
278 #else | 278 #else |
279 { "themes", IDS_THEMES_GROUP_NAME }, | 279 { "themes", IDS_THEMES_GROUP_NAME }, |
280 { "themesReset", IDS_THEMES_RESET_BUTTON }, | 280 { "themesReset", IDS_THEMES_RESET_BUTTON }, |
281 #endif | 281 #endif |
282 #if defined(OS_CHROMEOS) | 282 #if defined(OS_CHROMEOS) |
| 283 { "accessibilityExplanation", |
| 284 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_EXPLANATION }, |
283 { "accessibilityHighContrast", | 285 { "accessibilityHighContrast", |
284 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_HIGH_CONTRAST_DESCRIPTION }, | 286 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_HIGH_CONTRAST_DESCRIPTION }, |
285 { "accessibilityScreenMagnifier", | 287 { "accessibilityScreenMagnifier", |
286 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_DESCRIPTION }, | 288 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_DESCRIPTION }, |
287 { "accessibilityTapDragging", | 289 { "accessibilityTapDragging", |
288 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_TOUCHPAD_TAP_DRAGGING_DESCRIPTION }, | 290 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_TOUCHPAD_TAP_DRAGGING_DESCRIPTION }, |
289 { "accessibilityScreenMagnifierOff", | 291 { "accessibilityScreenMagnifierOff", |
290 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_OFF }, | 292 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_OFF }, |
291 { "accessibilityScreenMagnifierFull", | 293 { "accessibilityScreenMagnifierFull", |
292 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_FULL }, | 294 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_FULL }, |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 | 407 |
406 values->SetString("privacyLearnMoreURL", chrome::kPrivacyLearnMoreURL); | 408 values->SetString("privacyLearnMoreURL", chrome::kPrivacyLearnMoreURL); |
407 values->SetString("doNotTrackLearnMoreURL", chrome::kDoNotTrackLearnMoreURL); | 409 values->SetString("doNotTrackLearnMoreURL", chrome::kDoNotTrackLearnMoreURL); |
408 | 410 |
409 #if defined(OS_CHROMEOS) | 411 #if defined(OS_CHROMEOS) |
410 values->SetString("cloudPrintLearnMoreURL", chrome::kCloudPrintLearnMoreURL); | 412 values->SetString("cloudPrintLearnMoreURL", chrome::kCloudPrintLearnMoreURL); |
411 | 413 |
412 // TODO(pastarmovj): replace this with a call to the CrosSettings list | 414 // TODO(pastarmovj): replace this with a call to the CrosSettings list |
413 // handling functionality to come. | 415 // handling functionality to come. |
414 values->Set("timezoneList", GetTimezoneList().release()); | 416 values->Set("timezoneList", GetTimezoneList().release()); |
| 417 |
| 418 values->SetString("accessibilityLearnMoreURL", |
| 419 chrome::kChromeAccessibilityHelpURL); |
415 #endif | 420 #endif |
416 #if defined(OS_MACOSX) | 421 #if defined(OS_MACOSX) |
417 values->SetString("macPasswordsWarning", | 422 values->SetString("macPasswordsWarning", |
418 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MAC_WARNING)); | 423 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MAC_WARNING)); |
419 values->SetBoolean("multiple_profiles", | 424 values->SetBoolean("multiple_profiles", |
420 g_browser_process->profile_manager()->GetNumberOfProfiles() > 1); | 425 g_browser_process->profile_manager()->GetNumberOfProfiles() > 1); |
421 #endif | 426 #endif |
422 | 427 |
423 if (multiprofile_) | 428 if (multiprofile_) |
424 values->Set("profilesInfo", GetProfilesInfoList().release()); | 429 values->Set("profilesInfo", GetProfilesInfoList().release()); |
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1415 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); | 1420 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); |
1416 } | 1421 } |
1417 StringValue label(label_str); | 1422 StringValue label(label_str); |
1418 | 1423 |
1419 web_ui()->CallJavascriptFunction( | 1424 web_ui()->CallJavascriptFunction( |
1420 "BrowserOptions.setupProxySettingsSection", disabled, label); | 1425 "BrowserOptions.setupProxySettingsSection", disabled, label); |
1421 #endif // !defined(OS_CHROMEOS) | 1426 #endif // !defined(OS_CHROMEOS) |
1422 } | 1427 } |
1423 | 1428 |
1424 } // namespace options | 1429 } // namespace options |
OLD | NEW |