Home | History | Annotate | Download | only in chromeos
      1 // Copyright (c) 2011 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/options/chromeos/proxy_handler.h"
      6 
      7 #include "base/basictypes.h"
      8 #include "base/callback.h"
      9 #include "base/stl_util-inl.h"
     10 #include "base/time.h"
     11 #include "base/utf_string_conversions.h"
     12 #include "base/values.h"
     13 #include "chrome/browser/chromeos/proxy_cros_settings_provider.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 
     23 ProxyHandler::ProxyHandler()
     24     : CrosOptionsPageUIHandler(new ProxyCrosSettingsProvider())  {
     25 }
     26 
     27 ProxyHandler::~ProxyHandler() {
     28 }
     29 
     30 void ProxyHandler::GetLocalizedValues(
     31     DictionaryValue* localized_strings) {
     32   DCHECK(localized_strings);
     33   // Proxy page - ChromeOS
     34   localized_strings->SetString("proxyPage",
     35       l10n_util::GetStringUTF16(IDS_OPTIONS_PROXY_TAB_LABEL));
     36   localized_strings->SetString("proxy_config_title",
     37      l10n_util::GetStringUTF16(IDS_PROXY_CONFIG_TITLE));
     38   localized_strings->SetString("proxyDirectInternetConnection",
     39      l10n_util::GetStringUTF16(IDS_PROXY_DIRECT_CONNECTION));
     40 
     41   localized_strings->SetString("proxyManual",
     42      l10n_util::GetStringUTF16(IDS_PROXY_MANUAL_CONFIG));
     43   localized_strings->SetString("sameProxyProtocols",
     44      l10n_util::GetStringUTF16(IDS_PROXY_SAME_FORALL));
     45 
     46   localized_strings->SetString("httpProxy",
     47      l10n_util::GetStringUTF16(IDS_PROXY_HTTP_PROXY));
     48   localized_strings->SetString("secureHttpProxy",
     49      l10n_util::GetStringUTF16(IDS_PROXY_HTTP_SECURE_HTTP_PROXY));
     50   localized_strings->SetString("ftpProxy",
     51      l10n_util::GetStringUTF16(IDS_PROXY_FTP_PROXY));
     52   localized_strings->SetString("socksHost",
     53      l10n_util::GetStringUTF16(IDS_PROXY_SOCKS_HOST));
     54   localized_strings->SetString("proxyAutomatic",
     55      l10n_util::GetStringUTF16(IDS_PROXY_AUTOMATIC));
     56   localized_strings->SetString("proxyConfigUrl",
     57      l10n_util::GetStringUTF16(IDS_PROXY_CONFIG_URL));
     58   localized_strings->SetString("advanced_proxy_config",
     59      l10n_util::GetStringUTF16(IDS_PROXY_ADVANCED_CONFIG));
     60   localized_strings->SetString("addHost",
     61      l10n_util::GetStringUTF16(IDS_PROXY_ADD_HOST));
     62   localized_strings->SetString("removeHost",
     63      l10n_util::GetStringUTF16(IDS_PROXY_REMOVE_HOST));
     64   localized_strings->SetString("proxyPort",
     65      l10n_util::GetStringUTF16(IDS_PROXY_PORT));
     66   localized_strings->SetString("proxyBypass",
     67      l10n_util::GetStringUTF16(IDS_PROXY_BYPASS));
     68 }
     69 
     70 }  // namespace chromeos
     71