| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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/chromeos/system_options_handler.h" | 5 #include "chrome/browser/ui/webui/options2/chromeos/system_options_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 localized_strings->SetString("screen", | 69 localized_strings->SetString("screen", |
| 70 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_SECTION_TITLE_SCREEN)); | 70 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_SECTION_TITLE_SCREEN)); |
| 71 localized_strings->SetString("brightness", | 71 localized_strings->SetString("brightness", |
| 72 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_BRIGHTNESS_DESCRIPTION)); | 72 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_BRIGHTNESS_DESCRIPTION)); |
| 73 localized_strings->SetString("brightnessDecrease", | 73 localized_strings->SetString("brightnessDecrease", |
| 74 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_BRIGHTNESS_DECREASE)); | 74 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_BRIGHTNESS_DECREASE)); |
| 75 localized_strings->SetString("brightnessIncrease", | 75 localized_strings->SetString("brightnessIncrease", |
| 76 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_BRIGHTNESS_INCREASE)); | 76 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_BRIGHTNESS_INCREASE)); |
| 77 | 77 |
| 78 localized_strings->SetString("pointer", |
| 79 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_SECTION_TITLE_POINTER)); |
| 78 localized_strings->SetString("touchpad", | 80 localized_strings->SetString("touchpad", |
| 79 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_SECTION_TITLE_TOUCHPAD)); | 81 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_SECTION_TITLE_TOUCHPAD)); |
| 82 localized_strings->SetString("mouse", |
| 83 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_SECTION_TITLE_MOUSE)); |
| 80 localized_strings->SetString("enableTapToClick", | 84 localized_strings->SetString("enableTapToClick", |
| 81 l10n_util::GetStringUTF16( | 85 l10n_util::GetStringUTF16( |
| 82 IDS_OPTIONS_SETTINGS_TAP_TO_CLICK_ENABLED_DESCRIPTION)); | 86 IDS_OPTIONS_SETTINGS_TAP_TO_CLICK_ENABLED_DESCRIPTION)); |
| 83 localized_strings->SetString("sensitivity", | 87 localized_strings->SetString("sensitivity", |
| 84 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_SENSITIVITY_DESCRIPTION)); | 88 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_SENSITIVITY_DESCRIPTION)); |
| 85 localized_strings->SetString("sensitivityLess", | 89 localized_strings->SetString("sensitivityLess", |
| 86 l10n_util::GetStringUTF16( | 90 l10n_util::GetStringUTF16( |
| 87 IDS_OPTIONS_SETTINGS_SENSITIVITY_LESS_DESCRIPTION)); | 91 IDS_OPTIONS_SETTINGS_SENSITIVITY_LESS_DESCRIPTION)); |
| 88 localized_strings->SetString("sensitivityMore", | 92 localized_strings->SetString("sensitivityMore", |
| 89 l10n_util::GetStringUTF16( | 93 l10n_util::GetStringUTF16( |
| 90 IDS_OPTIONS_SETTINGS_SENSITIVITY_MORE_DESCRIPTION)); | 94 IDS_OPTIONS_SETTINGS_SENSITIVITY_MORE_DESCRIPTION)); |
| 95 localized_strings->SetString("primaryMouseRight", |
| 96 l10n_util::GetStringUTF16( |
| 97 IDS_OPTIONS_SETTINGS_PRIMARY_MOUSE_RIGHT_DESCRIPTION)); |
| 91 | 98 |
| 92 localized_strings->SetString("language", | 99 localized_strings->SetString("language", |
| 93 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_SECTION_TITLE_LANGUAGE)); | 100 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_SECTION_TITLE_LANGUAGE)); |
| 94 localized_strings->SetString("languageCustomize", | 101 localized_strings->SetString("languageCustomize", |
| 95 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_LANGUAGES_CUSTOMIZE)); | 102 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_LANGUAGES_CUSTOMIZE)); |
| 96 localized_strings->SetString("modifierKeysCustomize", | 103 localized_strings->SetString("modifierKeysCustomize", |
| 97 l10n_util::GetStringUTF16( | 104 l10n_util::GetStringUTF16( |
| 98 IDS_OPTIONS_SETTINGS_LANGUAGES_MODIFIER_KEYS_CUSTOMIZE)); | 105 IDS_OPTIONS_SETTINGS_LANGUAGES_MODIFIER_KEYS_CUSTOMIZE)); |
| 99 | 106 |
| 100 localized_strings->SetString("accessibilityTitle", | 107 localized_strings->SetString("accessibilityTitle", |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // can make it very difficult to see the increase brightness button. | 168 // can make it very difficult to see the increase brightness button. |
| 162 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> | 169 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> |
| 163 DecreaseScreenBrightness(false); | 170 DecreaseScreenBrightness(false); |
| 164 } | 171 } |
| 165 | 172 |
| 166 void SystemOptionsHandler::IncreaseScreenBrightnessCallback( | 173 void SystemOptionsHandler::IncreaseScreenBrightnessCallback( |
| 167 const ListValue* args) { | 174 const ListValue* args) { |
| 168 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> | 175 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> |
| 169 IncreaseScreenBrightness(); | 176 IncreaseScreenBrightness(); |
| 170 } | 177 } |
| OLD | NEW |