#ifndef UI_WM_CORE_SHADOW_CONTROLLER_H_
#define UI_WM_CORE_SHADOW_CONTROLLER_H_
#include <map>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "ui/wm/core/wm_core_export.h"
#include "ui/wm/public/activation_change_observer.h"
namespace aura {
class Window;
namespace client {
class ActivationClient;
}
}
namespace gfx {
class Rect;
}
namespace wm {
class Shadow;
class WM_CORE_EXPORT ShadowController :
public aura::client::ActivationChangeObserver {
public:
class WM_CORE_EXPORT TestApi {
public:
explicit TestApi(ShadowController* controller) : controller_(controller) {}
~TestApi() {}
Shadow* GetShadowForWindow(aura::Window* window);
private:
ShadowController* controller_;
DISALLOW_COPY_AND_ASSIGN(TestApi);
};
explicit ShadowController(aura::client::ActivationClient* activation_client);
virtual ~ShadowController();
virtual void OnWindowActivated(aura::Window* gained_active,
aura::Window* lost_active) OVERRIDE;
private:
class Impl;
aura::client::ActivationClient* activation_client_;
scoped_refptr<Impl> impl_;
DISALLOW_COPY_AND_ASSIGN(ShadowController);
};
}
#endif