Index: ash/system/chromeos/power/power_event_observer.h |
diff --git a/ash/system/chromeos/power/power_event_observer.h b/ash/system/chromeos/power/power_event_observer.h |
deleted file mode 100644 |
index eb5bc058a2556c237a959084b54ef96c4d910b9a..0000000000000000000000000000000000000000 |
--- a/ash/system/chromeos/power/power_event_observer.h |
+++ /dev/null |
@@ -1,57 +0,0 @@ |
-// Copyright 2013 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#ifndef ASH_SYSTEM_CHROMEOS_POWER_POWER_EVENT_OBSERVER_H_ |
-#define ASH_SYSTEM_CHROMEOS_POWER_POWER_EVENT_OBSERVER_H_ |
- |
-#include "ash/ash_export.h" |
-#include "base/callback.h" |
-#include "base/compiler_specific.h" |
-#include "base/macros.h" |
-#include "chromeos/dbus/power_manager_client.h" |
-#include "chromeos/dbus/session_manager_client.h" |
- |
-namespace ash { |
- |
-// A class that observes power-management-related events. |
-class ASH_EXPORT PowerEventObserver |
- : public chromeos::PowerManagerClient::Observer, |
- public chromeos::SessionManagerClient::Observer { |
- public: |
- // This class registers/unregisters itself as an observer in ctor/dtor. |
- PowerEventObserver(); |
- ~PowerEventObserver() override; |
- |
- // Called by the WebUIScreenLocker when all the lock screen animations have |
- // completed. This really should be implemented via an observer but since |
- // ash/ isn't allowed to depend on chrome/ we need to have the |
- // WebUIScreenLocker reach into ash::Shell to make this call. |
- void OnLockAnimationsComplete(); |
- |
- // chromeos::PowerManagerClient::Observer overrides: |
- void BrightnessChanged(int level, bool user_initiated) override; |
- void SuspendImminent() override; |
- void SuspendDone(const base::TimeDelta& sleep_duration) override; |
- |
- // chromeos::SessionManagerClient::Observer overrides. |
- void ScreenIsLocked() override; |
- void ScreenIsUnlocked() override; |
- |
- // Is the screen currently locked? |
- bool screen_locked_; |
- |
- // Have the lock screen animations completed? |
- bool waiting_for_lock_screen_animations_; |
- |
- // If set, called when the lock screen animations have completed to confirm |
- // that the system is ready to be suspended. |
- base::Closure screen_lock_callback_; |
- |
- private: |
- DISALLOW_COPY_AND_ASSIGN(PowerEventObserver); |
-}; |
- |
-} // namespace chromeos |
- |
-#endif // ASH_SYSTEM_CHROMEOS_POWER_POWER_EVENT_OBSERVER_H_ |