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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 #include "third_party/skia/include/core/SkBitmap.h" | 78 #include "third_party/skia/include/core/SkBitmap.h" |
79 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 79 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
80 #include "ui/base/l10n/l10n_util.h" | 80 #include "ui/base/l10n/l10n_util.h" |
81 | 81 |
82 #if !defined(OS_CHROMEOS) | 82 #if !defined(OS_CHROMEOS) |
83 #include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h" | 83 #include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h" |
84 #include "chrome/browser/ui/webui/options/advanced_options_utils.h" | 84 #include "chrome/browser/ui/webui/options/advanced_options_utils.h" |
85 #endif | 85 #endif |
86 | 86 |
87 #if defined(OS_CHROMEOS) | 87 #if defined(OS_CHROMEOS) |
| 88 #include "ash/magnifier/magnifier_constants.h" |
88 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" | 89 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
89 #include "chrome/browser/chromeos/extensions/wallpaper_manager_util.h" | 90 #include "chrome/browser/chromeos/extensions/wallpaper_manager_util.h" |
90 #include "chrome/browser/chromeos/login/user_manager.h" | 91 #include "chrome/browser/chromeos/login/user_manager.h" |
91 #include "chrome/browser/chromeos/settings/cros_settings.h" | 92 #include "chrome/browser/chromeos/settings/cros_settings.h" |
92 #include "chrome/browser/policy/browser_policy_connector.h" | 93 #include "chrome/browser/policy/browser_policy_connector.h" |
93 #include "chrome/browser/ui/browser_window.h" | 94 #include "chrome/browser/ui/browser_window.h" |
94 #include "chrome/browser/ui/webui/options/chromeos/timezone_options_util.h" | 95 #include "chrome/browser/ui/webui/options/chromeos/timezone_options_util.h" |
95 #include "chromeos/dbus/dbus_thread_manager.h" | 96 #include "chromeos/dbus/dbus_thread_manager.h" |
96 #include "chromeos/dbus/power_manager_client.h" | 97 #include "chromeos/dbus/power_manager_client.h" |
97 #include "ui/gfx/image/image_skia.h" | 98 #include "ui/gfx/image/image_skia.h" |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 | 417 |
417 #if defined(OS_CHROMEOS) | 418 #if defined(OS_CHROMEOS) |
418 values->SetString("cloudPrintLearnMoreURL", chrome::kCloudPrintLearnMoreURL); | 419 values->SetString("cloudPrintLearnMoreURL", chrome::kCloudPrintLearnMoreURL); |
419 | 420 |
420 // TODO(pastarmovj): replace this with a call to the CrosSettings list | 421 // TODO(pastarmovj): replace this with a call to the CrosSettings list |
421 // handling functionality to come. | 422 // handling functionality to come. |
422 values->Set("timezoneList", GetTimezoneList().release()); | 423 values->Set("timezoneList", GetTimezoneList().release()); |
423 | 424 |
424 values->SetString("accessibilityLearnMoreURL", | 425 values->SetString("accessibilityLearnMoreURL", |
425 chrome::kChromeAccessibilityHelpURL); | 426 chrome::kChromeAccessibilityHelpURL); |
| 427 |
| 428 // Creates magnifierList. |
| 429 base::ListValue* magnifierList = new base::ListValue(); |
| 430 base::ListValue* option_full = new base::ListValue(); |
| 431 option_full->Append(base::Value::CreateIntegerValue(ash::MAGNIFIER_FULL)); |
| 432 option_full->Append(new base::StringValue(l10n_util::GetStringUTF16( |
| 433 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_FULL))); |
| 434 base::ListValue* option_partial = new base::ListValue(); |
| 435 option_partial->Append(base::Value::CreateIntegerValue( |
| 436 ash::MAGNIFIER_PARTIAL)); |
| 437 option_partial->Append(new base::StringValue(l10n_util::GetStringUTF16( |
| 438 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_PARTIAL))); |
| 439 magnifierList->Append(option_full); |
| 440 magnifierList->Append(option_partial); |
| 441 values->Set("magnifierList", magnifierList); |
| 442 |
426 #endif | 443 #endif |
427 #if defined(OS_MACOSX) | 444 #if defined(OS_MACOSX) |
428 values->SetString("macPasswordsWarning", | 445 values->SetString("macPasswordsWarning", |
429 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MAC_WARNING)); | 446 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MAC_WARNING)); |
430 values->SetBoolean("multiple_profiles", | 447 values->SetBoolean("multiple_profiles", |
431 g_browser_process->profile_manager()->GetNumberOfProfiles() > 1); | 448 g_browser_process->profile_manager()->GetNumberOfProfiles() > 1); |
432 #endif | 449 #endif |
433 | 450 |
434 if (multiprofile_) | 451 if (multiprofile_) |
435 values->Set("profilesInfo", GetProfilesInfoList().release()); | 452 values->Set("profilesInfo", GetProfilesInfoList().release()); |
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1392 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); | 1409 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); |
1393 } | 1410 } |
1394 StringValue label(label_str); | 1411 StringValue label(label_str); |
1395 | 1412 |
1396 web_ui()->CallJavascriptFunction( | 1413 web_ui()->CallJavascriptFunction( |
1397 "BrowserOptions.setupProxySettingsSection", disabled, label); | 1414 "BrowserOptions.setupProxySettingsSection", disabled, label); |
1398 #endif // !defined(OS_CHROMEOS) | 1415 #endif // !defined(OS_CHROMEOS) |
1399 } | 1416 } |
1400 | 1417 |
1401 } // namespace options | 1418 } // namespace options |
OLD | NEW |