| 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" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/json/json_value_serializer.h" | 13 #include "base/json/json_value_serializer.h" |
| 14 #include "base/string_number_conversions.h" | 14 #include "base/string_number_conversions.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 16 #include "base/values.h" | 16 #include "base/values.h" |
| 17 #include "content/browser/tab_contents/tab_contents.h" | 17 #include "content/browser/tab_contents/tab_contents.h" |
| 18 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
| 19 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" | 19 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
| 20 #include "chrome/browser/chromeos/cros_settings.h" | 20 #include "chrome/browser/chromeos/cros_settings.h" |
| 21 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | 21 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" |
| 22 #include "chrome/browser/chromeos/dbus/power_manager_client.h" | 22 #include "chrome/browser/chromeos/dbus/power_manager_client.h" |
| 23 #include "chrome/browser/chromeos/language_preferences.h" | 23 #include "chrome/browser/chromeos/language_preferences.h" |
| 24 #include "chrome/browser/chromeos/system/touchpad_settings.h" | 24 #include "chrome/browser/chromeos/system/input_device_settings.h" |
| 25 #include "chrome/browser/extensions/extension_service.h" | 25 #include "chrome/browser/extensions/extension_service.h" |
| 26 #include "chrome/browser/prefs/pref_service.h" | 26 #include "chrome/browser/prefs/pref_service.h" |
| 27 #include "chrome/browser/profiles/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
| 28 #include "chrome/browser/ui/webui/options2/chromeos/system_settings_provider.h" | 28 #include "chrome/browser/ui/webui/options2/chromeos/system_settings_provider.h" |
| 29 #include "chrome/common/chrome_switches.h" | 29 #include "chrome/common/chrome_switches.h" |
| 30 #include "chrome/common/pref_names.h" | 30 #include "chrome/common/pref_names.h" |
| 31 #include "chrome/common/extensions/extension.h" | 31 #include "chrome/common/extensions/extension.h" |
| 32 #include "grit/browser_resources.h" | 32 #include "grit/browser_resources.h" |
| 33 #include "grit/chromium_strings.h" | 33 #include "grit/chromium_strings.h" |
| 34 #include "grit/generated_resources.h" | 34 #include "grit/generated_resources.h" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // can make it very difficult to see the increase brightness button. | 167 // can make it very difficult to see the increase brightness button. |
| 168 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> | 168 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> |
| 169 DecreaseScreenBrightness(false); | 169 DecreaseScreenBrightness(false); |
| 170 } | 170 } |
| 171 | 171 |
| 172 void SystemOptionsHandler::IncreaseScreenBrightnessCallback( | 172 void SystemOptionsHandler::IncreaseScreenBrightnessCallback( |
| 173 const ListValue* args) { | 173 const ListValue* args) { |
| 174 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> | 174 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> |
| 175 IncreaseScreenBrightness(); | 175 IncreaseScreenBrightness(); |
| 176 } | 176 } |
| OLD | NEW |