Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/system_options_handler.cc

Issue 9224002: Make WebUI objects not derive from WebUI. WebUI objects own the controller. This is the ownership... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to head to clear linux_chromeos browsertest failures Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/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 11 matching lines...) Expand all
22 #include "chrome/browser/chromeos/language_preferences.h" 22 #include "chrome/browser/chromeos/language_preferences.h"
23 #include "chrome/browser/chromeos/system/input_device_settings.h" 23 #include "chrome/browser/chromeos/system/input_device_settings.h"
24 #include "chrome/browser/chromeos/xinput_hierarchy_changed_event_listener.h" 24 #include "chrome/browser/chromeos/xinput_hierarchy_changed_event_listener.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/options/chromeos/system_settings_provider.h" 28 #include "chrome/browser/ui/webui/options/chromeos/system_settings_provider.h"
29 #include "chrome/common/chrome_switches.h" 29 #include "chrome/common/chrome_switches.h"
30 #include "chrome/common/extensions/extension.h" 30 #include "chrome/common/extensions/extension.h"
31 #include "chrome/common/pref_names.h" 31 #include "chrome/common/pref_names.h"
32 #include "content/browser/webui/web_ui.h"
32 #include "grit/browser_resources.h" 33 #include "grit/browser_resources.h"
33 #include "grit/chromium_strings.h" 34 #include "grit/chromium_strings.h"
34 #include "grit/generated_resources.h" 35 #include "grit/generated_resources.h"
35 #include "grit/locale_settings.h" 36 #include "grit/locale_settings.h"
36 #include "grit/theme_resources.h" 37 #include "grit/theme_resources.h"
37 #include "ui/base/l10n/l10n_util.h" 38 #include "ui/base/l10n/l10n_util.h"
38 #include "ui/base/resource/resource_bundle.h" 39 #include "ui/base/resource/resource_bundle.h"
39 40
40 using content::BrowserThread; 41 using content::BrowserThread;
41 42
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // can make it very difficult to see the increase brightness button. 260 // can make it very difficult to see the increase brightness button.
260 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> 261 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->
261 DecreaseScreenBrightness(false); 262 DecreaseScreenBrightness(false);
262 } 263 }
263 264
264 void SystemOptionsHandler::IncreaseScreenBrightnessCallback( 265 void SystemOptionsHandler::IncreaseScreenBrightnessCallback(
265 const ListValue* args) { 266 const ListValue* args) {
266 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> 267 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->
267 IncreaseScreenBrightness(); 268 IncreaseScreenBrightness();
268 } 269 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698