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 18 matching lines...) Expand all Loading... |
29 #include "chrome/common/pref_names.h" | 29 #include "chrome/common/pref_names.h" |
30 #include "chrome/common/extensions/extension.h" | 30 #include "chrome/common/extensions/extension.h" |
31 #include "grit/browser_resources.h" | 31 #include "grit/browser_resources.h" |
32 #include "grit/chromium_strings.h" | 32 #include "grit/chromium_strings.h" |
33 #include "grit/generated_resources.h" | 33 #include "grit/generated_resources.h" |
34 #include "grit/locale_settings.h" | 34 #include "grit/locale_settings.h" |
35 #include "grit/theme_resources.h" | 35 #include "grit/theme_resources.h" |
36 #include "ui/base/l10n/l10n_util.h" | 36 #include "ui/base/l10n/l10n_util.h" |
37 #include "ui/base/resource/resource_bundle.h" | 37 #include "ui/base/resource/resource_bundle.h" |
38 | 38 |
| 39 using content::BrowserThread; |
| 40 |
39 namespace { | 41 namespace { |
40 | 42 |
41 void TouchpadExistsFileThread(bool* exists) { | 43 void TouchpadExistsFileThread(bool* exists) { |
42 *exists = chromeos::system::touchpad_settings::TouchpadExists(); | 44 *exists = chromeos::system::touchpad_settings::TouchpadExists(); |
43 } | 45 } |
44 | 46 |
45 } | 47 } |
46 | 48 |
47 SystemOptionsHandler::SystemOptionsHandler() | 49 SystemOptionsHandler::SystemOptionsHandler() |
48 : chromeos::CrosOptionsPageUIHandler( | 50 : chromeos::CrosOptionsPageUIHandler( |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 // can make it very difficult to see the increase brightness button. | 158 // can make it very difficult to see the increase brightness button. |
157 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> | 159 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> |
158 DecreaseScreenBrightness(false); | 160 DecreaseScreenBrightness(false); |
159 } | 161 } |
160 | 162 |
161 void SystemOptionsHandler::IncreaseScreenBrightnessCallback( | 163 void SystemOptionsHandler::IncreaseScreenBrightnessCallback( |
162 const ListValue* args) { | 164 const ListValue* args) { |
163 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> | 165 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> |
164 IncreaseScreenBrightness(); | 166 IncreaseScreenBrightness(); |
165 } | 167 } |
OLD | NEW |