Chromium Code Reviews| 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/options2/browser_options_handler2.h" | 5 #include "chrome/browser/ui/webui/options2/browser_options_handler2.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 110 DictionaryValue* localized_strings) { | 110 DictionaryValue* localized_strings) { |
| 111 DCHECK(localized_strings); | 111 DCHECK(localized_strings); |
| 112 | 112 |
| 113 static OptionsStringResource resources[] = { | 113 static OptionsStringResource resources[] = { |
| 114 { "advancedSettings", IDS_OPTIONS_ADVANCED_BUTTON_TITLE }, | 114 { "advancedSettings", IDS_OPTIONS_ADVANCED_BUTTON_TITLE }, |
| 115 { "autologinEnabled", IDS_OPTIONS_PASSWORDS_AUTOLOGIN }, | 115 { "autologinEnabled", IDS_OPTIONS_PASSWORDS_AUTOLOGIN }, |
| 116 { "browsingData", IDS_OPTIONS_BROWSING_DATA_GROUP_NAME }, // needed? | 116 { "browsingData", IDS_OPTIONS_BROWSING_DATA_GROUP_NAME }, // needed? |
| 117 { "changeHomePage", IDS_OPTIONS_CHANGE_HOME_PAGE }, | 117 { "changeHomePage", IDS_OPTIONS_CHANGE_HOME_PAGE }, |
| 118 { "customizeSync", IDS_OPTIONS2_CUSTOMIZE_SYNC_BUTTON_LABEL }, | 118 { "customizeSync", IDS_OPTIONS2_CUSTOMIZE_SYNC_BUTTON_LABEL }, |
| 119 { "defaultSearchManageEngines", IDS_OPTIONS_DEFAULTSEARCH_MANAGE_ENGINES }, | 119 { "defaultSearchManageEngines", IDS_OPTIONS_DEFAULTSEARCH_MANAGE_ENGINES }, |
| 120 { "homePageTitle", IDS_OPTIONS2_HOMEPAGE_TITLE }, | |
| 121 { "homepageUseNewTab", IDS_OPTIONS_HOMEPAGE_USE_NEWTAB }, | 120 { "homepageUseNewTab", IDS_OPTIONS_HOMEPAGE_USE_NEWTAB }, |
| 122 { "homepageUseURL", IDS_OPTIONS_HOMEPAGE_USE_URL }, | 121 { "homepageUseURL", IDS_OPTIONS_HOMEPAGE_USE_URL }, |
| 123 { "instantConfirmMessage", IDS_INSTANT_OPT_IN_MESSAGE }, | 122 { "instantConfirmMessage", IDS_INSTANT_OPT_IN_MESSAGE }, |
| 124 { "instantConfirmTitle", IDS_INSTANT_OPT_IN_TITLE }, | 123 { "instantConfirmTitle", IDS_INSTANT_OPT_IN_TITLE }, |
| 125 { "importData", IDS_OPTIONS_IMPORT_DATA_BUTTON }, | 124 { "importData", IDS_OPTIONS_IMPORT_DATA_BUTTON }, |
| 126 { "manageDataDescription", IDS_OPTIONS_MANAGE_DATA_DESCRIPTION }, | 125 { "manageDataDescription", IDS_OPTIONS_MANAGE_DATA_DESCRIPTION }, |
| 127 { "profilesCreate", IDS_PROFILES_CREATE_BUTTON_LABEL }, | 126 { "profilesCreate", IDS_PROFILES_CREATE_BUTTON_LABEL }, |
| 128 { "profilesDelete", IDS_PROFILES_DELETE_BUTTON_LABEL }, | 127 { "profilesDelete", IDS_PROFILES_DELETE_BUTTON_LABEL }, |
| 129 { "profilesDeleteSingle", IDS_PROFILES_DELETE_SINGLE_BUTTON_LABEL }, | 128 { "profilesDeleteSingle", IDS_PROFILES_DELETE_SINGLE_BUTTON_LABEL }, |
| 130 { "profilesListItemCurrent", IDS_PROFILES_LIST_ITEM_CURRENT }, | 129 { "profilesListItemCurrent", IDS_PROFILES_LIST_ITEM_CURRENT }, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 175 { "pointerSensitivityMore", | 174 { "pointerSensitivityMore", |
| 176 IDS_OPTIONS_SETTINGS_SENSITIVITY_MORE_DESCRIPTION }, | 175 IDS_OPTIONS_SETTINGS_SENSITIVITY_MORE_DESCRIPTION }, |
| 177 { "pointerSettingsButtonTitle", | 176 { "pointerSettingsButtonTitle", |
| 178 IDS_OPTIONS_DEVICE_GROUP_POINTER_SETTINGS_BUTTON_TITLE }, | 177 IDS_OPTIONS_DEVICE_GROUP_POINTER_SETTINGS_BUTTON_TITLE }, |
| 179 { "sectionTitleDevice", IDS_OPTIONS_DEVICE_GROUP_NAME }, | 178 { "sectionTitleDevice", IDS_OPTIONS_DEVICE_GROUP_NAME }, |
| 180 { "sectionTitleInternet", IDS_OPTIONS_INTERNET_OPTIONS_GROUP_LABEL }, | 179 { "sectionTitleInternet", IDS_OPTIONS_INTERNET_OPTIONS_GROUP_LABEL }, |
| 181 #endif | 180 #endif |
| 182 }; | 181 }; |
| 183 | 182 |
| 184 RegisterStrings(localized_strings, resources, arraysize(resources)); | 183 RegisterStrings(localized_strings, resources, arraysize(resources)); |
| 184 RegisterTitle(localized_strings, "homePageOverlay", | |
|
James Hawkins
2012/02/07 01:54:22
Wha? Why are we registering the title of the home
csilv
2012/02/07 01:58:34
HomePageOveray doesn't currently have a C++ handle
| |
| 185 IDS_OPTIONS2_HOMEPAGE_TITLE); | |
| 185 | 186 |
| 186 localized_strings->SetString( | 187 localized_strings->SetString( |
| 187 "syncOverview", | 188 "syncOverview", |
| 188 l10n_util::GetStringFUTF16(IDS_SYNC_OVERVIEW, | 189 l10n_util::GetStringFUTF16(IDS_SYNC_OVERVIEW, |
| 189 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); | 190 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); |
| 190 | 191 |
| 191 localized_strings->SetString("syncLearnMoreURL", chrome::kSyncLearnMoreURL); | 192 localized_strings->SetString("syncLearnMoreURL", chrome::kSyncLearnMoreURL); |
| 192 localized_strings->SetString( | 193 localized_strings->SetString( |
| 193 "profilesSingleUser", | 194 "profilesSingleUser", |
| 194 l10n_util::GetStringFUTF16(IDS_PROFILES_SINGLE_USER_MESSAGE, | 195 l10n_util::GetStringFUTF16(IDS_PROFILES_SINGLE_USER_MESSAGE, |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 801 } | 802 } |
| 802 | 803 |
| 803 void BrowserOptionsHandler::IncreaseScreenBrightnessCallback( | 804 void BrowserOptionsHandler::IncreaseScreenBrightnessCallback( |
| 804 const ListValue* args) { | 805 const ListValue* args) { |
| 805 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> | 806 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> |
| 806 IncreaseScreenBrightness(); | 807 IncreaseScreenBrightness(); |
| 807 } | 808 } |
| 808 #endif | 809 #endif |
| 809 | 810 |
| 810 } // namespace options2 | 811 } // namespace options2 |
| OLD | NEW |