Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 ASH_SYSTEM_CHROMEOS_POWER_POWER_EVENT_OBSERVER_H_ | 5 #ifndef ASH_SYSTEM_CHROMEOS_POWER_POWER_EVENT_OBSERVER_H_ |
| 6 #define ASH_SYSTEM_CHROMEOS_POWER_POWER_EVENT_OBSERVER_H_ | 6 #define ASH_SYSTEM_CHROMEOS_POWER_POWER_EVENT_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 33 void ScreenIsUnlocked() override; | 33 void ScreenIsUnlocked() override; |
| 34 | 34 |
| 35 // Is the screen currently locked? | 35 // Is the screen currently locked? |
| 36 bool screen_locked_; | 36 bool screen_locked_; |
| 37 | 37 |
| 38 // 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 |
| 39 // system is ready to be suspended. | 39 // system is ready to be suspended. |
| 40 base::Closure screen_lock_callback_; | 40 base::Closure screen_lock_callback_; |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 // Tells the compositor for each of the displays to resume sending rendering | |
| 44 // requests to the GPU. | |
| 45 void ResumeRenderingRequests(); | |
| 46 | |
| 47 // Tells the compositor for each of the displays to finish all pending | |
| 48 // rendering requests and block any new ones. | |
| 49 void StopRenderingRequests(); | |
|
Daniel Erat
2015/02/11 14:11:42
nit: switch the order of these two methods to mirr
| |
| 50 | |
| 43 DISALLOW_COPY_AND_ASSIGN(PowerEventObserver); | 51 DISALLOW_COPY_AND_ASSIGN(PowerEventObserver); |
| 44 }; | 52 }; |
| 45 | 53 |
| 46 } // namespace chromeos | 54 } // namespace chromeos |
| 47 | 55 |
| 48 #endif // ASH_SYSTEM_CHROMEOS_POWER_POWER_EVENT_OBSERVER_H_ | 56 #endif // ASH_SYSTEM_CHROMEOS_POWER_POWER_EVENT_OBSERVER_H_ |
| OLD | NEW |