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

Side by Side Diff: chrome/browser/chromeos/accessibility/system_event_observer.h

Issue 8666007: chromeos: Move system resume handling to power manager client (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed order (again) Created 9 years 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 | « no previous file | chrome/browser/chromeos/accessibility/system_event_observer.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 (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 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SYSTEM_EVENT_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SYSTEM_EVENT_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SYSTEM_EVENT_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SYSTEM_EVENT_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/chromeos/cros/power_library.h"
10 #include "chrome/browser/chromeos/cros/screen_lock_library.h" 9 #include "chrome/browser/chromeos/cros/screen_lock_library.h"
10 #include "chrome/browser/chromeos/dbus/power_manager_client.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 namespace accessibility { 13 namespace accessibility {
14 14
15 // A singleton class to observe system events like wake up from sleep and 15 // A singleton class to observe system events like wake up from sleep and
16 // screen unlock. 16 // screen unlock.
17 class SystemEventObserver : public PowerLibrary::Observer, 17 class SystemEventObserver : public PowerManagerClient::Observer,
18 public ScreenLockLibrary::Observer { 18 public ScreenLockLibrary::Observer {
19 public: 19 public:
20 virtual ~SystemEventObserver(); 20 virtual ~SystemEventObserver();
21 21
22 // PowerLibrary::Observer override. 22 // PowerManagerClient::Observer override.
23 virtual void SystemResumed() OVERRIDE; 23 virtual void SystemResumed() OVERRIDE;
24 24
25 // ScreenLockLibrary::Observer override. 25 // ScreenLockLibrary::Observer override.
26 virtual void LockScreen(ScreenLockLibrary* screen_lock_library) OVERRIDE; 26 virtual void LockScreen(ScreenLockLibrary* screen_lock_library) OVERRIDE;
27 27
28 // ScreenLockLibrary::Observer override. 28 // ScreenLockLibrary::Observer override.
29 virtual void UnlockScreen(ScreenLockLibrary* screen_lock_library) OVERRIDE; 29 virtual void UnlockScreen(ScreenLockLibrary* screen_lock_library) OVERRIDE;
30 30
31 // ScreenLockLibrary::Observer override. 31 // ScreenLockLibrary::Observer override.
32 virtual void UnlockScreenFailed(ScreenLockLibrary* screen_lock_library) 32 virtual void UnlockScreenFailed(ScreenLockLibrary* screen_lock_library)
(...skipping 12 matching lines...) Expand all
45 private: 45 private:
46 SystemEventObserver(); 46 SystemEventObserver();
47 47
48 DISALLOW_COPY_AND_ASSIGN(SystemEventObserver); 48 DISALLOW_COPY_AND_ASSIGN(SystemEventObserver);
49 }; 49 };
50 50
51 } // namespace accessibility 51 } // namespace accessibility
52 } // namespace chromeos 52 } // namespace chromeos
53 53
54 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SYSTEM_EVENT_OBSERVER_H_ 54 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SYSTEM_EVENT_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/accessibility/system_event_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698