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

Side by Side Diff: chrome/browser/chromeos/power/suspend_observer.h

Issue 12391004: chromeos: Add DisplayPowerServiceProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ugh, TrayDisplay was including output_configurator.h on windows Created 7 years, 9 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef CHROME_BROWSER_CHROMEOS_POWER_SUSPEND_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_SUSPEND_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_POWER_SUSPEND_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_POWER_SUSPEND_OBSERVER_H_
7 7
8 #include "ash/shell.h"
9 #include "base/basictypes.h" 8 #include "base/basictypes.h"
10 #include "base/callback.h" 9 #include "base/callback.h"
11 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
12 #include "chromeos/dbus/power_manager_client.h" 11 #include "chromeos/dbus/power_manager_client.h"
13 #include "chromeos/dbus/session_manager_client.h" 12 #include "chromeos/dbus/session_manager_client.h"
14 13
15 namespace chromeos { 14 namespace chromeos {
16 15
17 // A class to observe suspend events. 16 // A class to observe suspend events.
18 class SuspendObserver : public PowerManagerClient::Observer, 17 class SuspendObserver : public PowerManagerClient::Observer,
(...skipping 20 matching lines...) Expand all
39 // If set, called when the lock screen has been shown to confirm that the 38 // If set, called when the lock screen has been shown to confirm that the
40 // system is ready to be suspended. 39 // system is ready to be suspended.
41 base::Closure screen_lock_callback_; 40 base::Closure screen_lock_callback_;
42 41
43 DISALLOW_COPY_AND_ASSIGN(SuspendObserver); 42 DISALLOW_COPY_AND_ASSIGN(SuspendObserver);
44 }; 43 };
45 44
46 } // namespace chromeos 45 } // namespace chromeos
47 46
48 #endif // CHROME_BROWSER_CHROMEOS_POWER_SUSPEND_OBSERVER_H_ 47 #endif // CHROME_BROWSER_CHROMEOS_POWER_SUSPEND_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/power/resume_observer.cc ('k') | chrome/browser/chromeos/power/suspend_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698