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/bind.h" | 10 #include "base/bind.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 #include "ui/base/l10n/l10n_util.h" | 93 #include "ui/base/l10n/l10n_util.h" |
94 #include "ui/base/webui/web_ui_util.h" | 94 #include "ui/base/webui/web_ui_util.h" |
95 | 95 |
96 #if !defined(OS_CHROMEOS) | 96 #if !defined(OS_CHROMEOS) |
97 #include "chrome/browser/ui/webui/options/advanced_options_utils.h" | 97 #include "chrome/browser/ui/webui/options/advanced_options_utils.h" |
98 #endif | 98 #endif |
99 | 99 |
100 #if defined(OS_CHROMEOS) | 100 #if defined(OS_CHROMEOS) |
101 #include "ash/ash_switches.h" | 101 #include "ash/ash_switches.h" |
102 #include "ash/desktop_background/user_wallpaper_delegate.h" | 102 #include "ash/desktop_background/user_wallpaper_delegate.h" |
103 #include "ash/magnifier/magnifier_constants.h" | |
104 #include "ash/shell.h" | 103 #include "ash/shell.h" |
105 #include "chrome/browser/browser_process_platform_part.h" | 104 #include "chrome/browser/browser_process_platform_part.h" |
106 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" | 105 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
107 #include "chrome/browser/chromeos/chromeos_utils.h" | 106 #include "chrome/browser/chromeos/chromeos_utils.h" |
108 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 107 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
109 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 108 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
110 #include "chrome/browser/chromeos/reset/metrics.h" | 109 #include "chrome/browser/chromeos/reset/metrics.h" |
111 #include "chrome/browser/chromeos/settings/cros_settings.h" | 110 #include "chrome/browser/chromeos/settings/cros_settings.h" |
112 #include "chrome/browser/chromeos/system/timezone_util.h" | 111 #include "chrome/browser/chromeos/system/timezone_util.h" |
113 #include "chrome/browser/policy/profile_policy_connector.h" | 112 #include "chrome/browser/policy/profile_policy_connector.h" |
114 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 113 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
115 #include "chrome/browser/ui/browser_window.h" | 114 #include "chrome/browser/ui/browser_window.h" |
116 #include "chromeos/dbus/dbus_thread_manager.h" | 115 #include "chromeos/dbus/dbus_thread_manager.h" |
117 #include "chromeos/dbus/power_manager_client.h" | 116 #include "chromeos/dbus/power_manager_client.h" |
118 #include "components/policy/core/common/policy_map.h" | 117 #include "components/policy/core/common/policy_map.h" |
119 #include "components/policy/core/common/policy_namespace.h" | 118 #include "components/policy/core/common/policy_namespace.h" |
120 #include "components/policy/core/common/policy_service.h" | 119 #include "components/policy/core/common/policy_service.h" |
121 #include "components/user_manager/user.h" | 120 #include "components/user_manager/user.h" |
122 #include "components/user_manager/user_manager.h" | 121 #include "components/user_manager/user_manager.h" |
123 #include "policy/policy_constants.h" | 122 #include "policy/policy_constants.h" |
| 123 #include "ui/chromeos/accessibility_types.h" |
124 #include "ui/gfx/image/image_skia.h" | 124 #include "ui/gfx/image/image_skia.h" |
125 #endif // defined(OS_CHROMEOS) | 125 #endif // defined(OS_CHROMEOS) |
126 | 126 |
127 #if defined(OS_CHROMEOS) && !defined(USE_ATHENA) | 127 #if defined(OS_CHROMEOS) && !defined(USE_ATHENA) |
128 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" | 128 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" |
129 #endif | 129 #endif |
130 | 130 |
131 #if defined(OS_WIN) | 131 #if defined(OS_WIN) |
132 #include "chrome/browser/extensions/settings_api_helpers.h" | 132 #include "chrome/browser/extensions/settings_api_helpers.h" |
133 #include "chrome/installer/util/auto_launch_util.h" | 133 #include "chrome/installer/util/auto_launch_util.h" |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 values->SetString("accessibilitySettingsURL", | 563 values->SetString("accessibilitySettingsURL", |
564 settings_url); | 564 settings_url); |
565 | 565 |
566 values->SetString("contentProtectionAttestationLearnMoreURL", | 566 values->SetString("contentProtectionAttestationLearnMoreURL", |
567 chrome::kAttestationForContentProtectionLearnMoreURL); | 567 chrome::kAttestationForContentProtectionLearnMoreURL); |
568 | 568 |
569 // Creates magnifierList. | 569 // Creates magnifierList. |
570 scoped_ptr<base::ListValue> magnifier_list(new base::ListValue); | 570 scoped_ptr<base::ListValue> magnifier_list(new base::ListValue); |
571 | 571 |
572 scoped_ptr<base::ListValue> option_full(new base::ListValue); | 572 scoped_ptr<base::ListValue> option_full(new base::ListValue); |
573 option_full->AppendInteger(ash::MAGNIFIER_FULL); | 573 option_full->AppendInteger(ui::MAGNIFIER_FULL); |
574 option_full->AppendString(l10n_util::GetStringUTF16( | 574 option_full->AppendString(l10n_util::GetStringUTF16( |
575 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_FULL)); | 575 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_FULL)); |
576 magnifier_list->Append(option_full.release()); | 576 magnifier_list->Append(option_full.release()); |
577 | 577 |
578 scoped_ptr<base::ListValue> option_partial(new base::ListValue); | 578 scoped_ptr<base::ListValue> option_partial(new base::ListValue); |
579 option_partial->AppendInteger(ash::MAGNIFIER_PARTIAL); | 579 option_partial->AppendInteger(ui::MAGNIFIER_PARTIAL); |
580 option_partial->Append(new base::StringValue(l10n_util::GetStringUTF16( | 580 option_partial->Append(new base::StringValue(l10n_util::GetStringUTF16( |
581 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_PARTIAL))); | 581 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_PARTIAL))); |
582 magnifier_list->Append(option_partial.release()); | 582 magnifier_list->Append(option_partial.release()); |
583 | 583 |
584 values->Set("magnifierList", magnifier_list.release()); | 584 values->Set("magnifierList", magnifier_list.release()); |
585 #endif | 585 #endif |
586 | 586 |
587 #if defined(OS_MACOSX) | 587 #if defined(OS_MACOSX) |
588 values->SetString("macPasswordsWarning", | 588 values->SetString("macPasswordsWarning", |
589 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MAC_WARNING)); | 589 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MAC_WARNING)); |
(...skipping 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1985 | 1985 |
1986 void BrowserOptionsHandler::SetMetricsReportingCheckbox(bool checked, | 1986 void BrowserOptionsHandler::SetMetricsReportingCheckbox(bool checked, |
1987 bool disabled) { | 1987 bool disabled) { |
1988 web_ui()->CallJavascriptFunction( | 1988 web_ui()->CallJavascriptFunction( |
1989 "BrowserOptions.setMetricsReportingCheckboxState", | 1989 "BrowserOptions.setMetricsReportingCheckboxState", |
1990 base::FundamentalValue(checked), | 1990 base::FundamentalValue(checked), |
1991 base::FundamentalValue(disabled)); | 1991 base::FundamentalValue(disabled)); |
1992 } | 1992 } |
1993 | 1993 |
1994 } // namespace options | 1994 } // namespace options |
OLD | NEW |