OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/ui/webui/options2/chromeos/proxy_handler.h" | |
6 | |
7 #include "base/basictypes.h" | |
8 #include "base/callback.h" | |
9 #include "base/stl_util.h" | |
10 #include "base/time.h" | |
11 #include "base/utf_string_conversions.h" | |
12 #include "base/values.h" | |
13 #include "content/public/browser/web_ui.h" | |
14 #include "grit/chromium_strings.h" | |
15 #include "grit/generated_resources.h" | |
16 #include "grit/locale_settings.h" | |
17 #include "grit/theme_resources.h" | |
18 #include "ui/base/l10n/l10n_util.h" | |
19 #include "ui/base/resource/resource_bundle.h" | |
20 | |
21 namespace chromeos { | |
22 namespace options { | |
23 | |
24 ProxyHandler::ProxyHandler() { | |
25 } | |
26 | |
27 ProxyHandler::~ProxyHandler() { | |
28 } | |
29 | |
30 void ProxyHandler::GetLocalizedValues( | |
31 DictionaryValue* localized_strings) { | |
32 DCHECK(localized_strings); | |
33 | |
34 // Proxy page - ChromeOS | |
35 static OptionsStringResource resources[] = { | |
36 { "proxyPage", IDS_OPTIONS_PROXY_TAB_LABEL }, | |
37 { "proxyDirectInternetConnection", IDS_PROXY_DIRECT_CONNECTION }, | |
38 { "proxyManual", IDS_PROXY_MANUAL_CONFIG }, | |
39 { "sameProxyProtocols", IDS_PROXY_SAME_FORALL }, | |
40 { "httpProxy", IDS_PROXY_HTTP_PROXY }, | |
41 { "secureHttpProxy", IDS_PROXY_HTTP_SECURE_HTTP_PROXY }, | |
42 { "ftpProxy", IDS_PROXY_FTP_PROXY }, | |
43 { "socksHost", IDS_PROXY_SOCKS_HOST }, | |
44 { "proxyAutomatic", IDS_PROXY_AUTOMATIC }, | |
45 { "proxyConfigUrl", IDS_PROXY_CONFIG_URL }, | |
46 { "advancedProxyConfig", IDS_PROXY_ADVANCED_CONFIG }, | |
47 { "addHost", IDS_PROXY_ADD_HOST }, | |
48 { "removeHost", IDS_PROXY_REMOVE_HOST }, | |
49 { "proxyPort", IDS_PROXY_PORT }, | |
50 { "proxyBypass", IDS_PROXY_BYPASS }, | |
51 { "policyManagedPrefsBannerText", IDS_OPTIONS_POLICY_MANAGED_PREFS }, | |
52 { "extensionManagedPrefsBannerText", IDS_OPTIONS_EXTENSION_MANAGED_PREFS }, | |
53 { "unmodifiablePrefsBannerText", IDS_OPTIONS_UNMODIFIABLE_PREFS } | |
54 }; | |
55 | |
56 RegisterStrings(localized_strings, resources, arraysize(resources)); | |
57 | |
58 localized_strings->SetString("enableSharedProxiesBannerText", | |
59 l10n_util::GetStringFUTF16( | |
60 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_ENABLE_SHARED_PROXIES_HINT, | |
61 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_USE_SHARED_PROXIES))); | |
62 } | |
63 | |
64 } // namespace options | |
65 } // namespace chromeos | |
OLD | NEW |