| Index: ash/wm/power_button_controller.h
|
| diff --git a/ash/wm/power_button_controller.h b/ash/wm/power_button_controller.h
|
| index 9b069b536d92253896dc22e3feef07793c6380b4..1d5e66ed569a2f068cb09a0657c06c3f62c3a062 100644
|
| --- a/ash/wm/power_button_controller.h
|
| +++ b/ash/wm/power_button_controller.h
|
| @@ -6,12 +6,15 @@
|
| #define ASH_WM_POWER_BUTTON_CONTROLLER_H_
|
| #pragma once
|
|
|
| +#include <map>
|
| +
|
| #include "ash/ash_export.h"
|
| #include "base/basictypes.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/time.h"
|
| #include "base/timer.h"
|
| #include "ui/aura/root_window_observer.h"
|
| +#include "ui/aura/window.h"
|
|
|
| namespace gfx {
|
| class Size;
|
| @@ -19,6 +22,7 @@ class Size;
|
|
|
| namespace ui {
|
| class Layer;
|
| +class Transform;
|
| }
|
|
|
| namespace ash {
|
| @@ -152,6 +156,10 @@ class ASH_EXPORT PowerButtonController : public aura::RootWindowObserver {
|
| // aura::RootWindowObserver overrides:
|
| virtual void OnRootWindowResized(const gfx::Size& new_size) OVERRIDE;
|
|
|
| + // Fills |containers| with the containers described by |group|.
|
| + void GetContainers(ContainerGroup group,
|
| + aura::Window::Windows* containers);
|
| +
|
| private:
|
| // Requests that the screen be locked and starts |lock_fail_timer_|.
|
| void OnLockTimeout();
|
| @@ -177,6 +185,12 @@ class ASH_EXPORT PowerButtonController : public aura::RootWindowObserver {
|
| void ShowBackgroundLayer();
|
| void HideBackgroundLayer();
|
|
|
| + // Apply animation |type| to all containers described by |group|.
|
| + void StartAnimation(ContainerGroup group, AnimationType type);
|
| +
|
| + // Retrieve original transform for |window| stored before animation started.
|
| + ui::Transform RetrieveOriginalTransform(aura::Window* window);
|
| +
|
| scoped_ptr<PowerButtonControllerDelegate> delegate_;
|
|
|
| // True if a non-guest user is currently logged in.
|
| @@ -235,6 +249,10 @@ class ASH_EXPORT PowerButtonController : public aura::RootWindowObserver {
|
| // screen.
|
| base::OneShotTimer<PowerButtonController> hide_background_layer_timer_;
|
|
|
| + // Map from containers to their original layer transforms before animation.
|
| + typedef std::map<aura::Window*, ui::Transform> WindowTransformsMap;
|
| + WindowTransformsMap container_transforms_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(PowerButtonController);
|
| };
|
|
|
|
|