| 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/options/chromeos/system_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 args->GetString(0, &checked_str); | 147 args->GetString(0, &checked_str); |
| 148 bool accessibility_enabled = (checked_str == "true"); | 148 bool accessibility_enabled = (checked_str == "true"); |
| 149 | 149 |
| 150 chromeos::accessibility::EnableAccessibility(accessibility_enabled, NULL); | 150 chromeos::accessibility::EnableAccessibility(accessibility_enabled, NULL); |
| 151 } | 151 } |
| 152 | 152 |
| 153 void SystemOptionsHandler::DecreaseScreenBrightnessCallback( | 153 void SystemOptionsHandler::DecreaseScreenBrightnessCallback( |
| 154 const ListValue* args) { | 154 const ListValue* args) { |
| 155 // Do not allow the options button to turn off the backlight, as that | 155 // Do not allow the options button to turn off the backlight, as that |
| 156 // can make it very difficult to see the increase brightness button. | 156 // can make it very difficult to see the increase brightness button. |
| 157 chromeos::DBusThreadManager::Get()->power_manager_client()-> | 157 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> |
| 158 DecreaseScreenBrightness(false); | 158 DecreaseScreenBrightness(false); |
| 159 } | 159 } |
| 160 | 160 |
| 161 void SystemOptionsHandler::IncreaseScreenBrightnessCallback( | 161 void SystemOptionsHandler::IncreaseScreenBrightnessCallback( |
| 162 const ListValue* args) { | 162 const ListValue* args) { |
| 163 chromeos::DBusThreadManager::Get()->power_manager_client()-> | 163 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> |
| 164 IncreaseScreenBrightness(); | 164 IncreaseScreenBrightness(); |
| 165 } | 165 } |
| OLD | NEW |