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

Side by Side Diff: chrome/browser/chromeos/dbus/chrome_display_power_service_provider_delegate.cc

Issue 2334013003: Moves ScreenDimmer to ash/common (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « ash/wm/screen_dimmer_unittest.cc ('k') | chrome/browser/ui/webui/chromeos/login/oobe_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/chromeos/dbus/chrome_display_power_service_provider_del egate.h" 5 #include "chrome/browser/chromeos/dbus/chrome_display_power_service_provider_del egate.h"
6 6
7 #include "ash/common/wm/screen_dimmer.h"
7 #include "ash/shell.h" 8 #include "ash/shell.h"
8 #include "ash/wm/screen_dimmer.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "ui/base/user_activity/user_activity_detector.h" 10 #include "ui/base/user_activity/user_activity_detector.h"
11 #include "ui/display/chromeos/display_configurator.h" 11 #include "ui/display/chromeos/display_configurator.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 ChromeDisplayPowerServiceProviderDelegate:: 15 ChromeDisplayPowerServiceProviderDelegate::
16 ChromeDisplayPowerServiceProviderDelegate() { 16 ChromeDisplayPowerServiceProviderDelegate() {
17 } 17 }
18 18
(...skipping 16 matching lines...) Expand all
35 35
36 void ChromeDisplayPowerServiceProviderDelegate::SetDimming(bool dimmed) { 36 void ChromeDisplayPowerServiceProviderDelegate::SetDimming(bool dimmed) {
37 if (!screen_dimmer_) { 37 if (!screen_dimmer_) {
38 screen_dimmer_ = 38 screen_dimmer_ =
39 base::MakeUnique<ash::ScreenDimmer>(ash::ScreenDimmer::Container::ROOT); 39 base::MakeUnique<ash::ScreenDimmer>(ash::ScreenDimmer::Container::ROOT);
40 } 40 }
41 screen_dimmer_->SetDimming(dimmed); 41 screen_dimmer_->SetDimming(dimmed);
42 } 42 }
43 43
44 } // namespace chromeos 44 } // namespace chromeos
OLDNEW
« no previous file with comments | « ash/wm/screen_dimmer_unittest.cc ('k') | chrome/browser/ui/webui/chromeos/login/oobe_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698