#ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_
#define ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_
#include "ash/wm/overview/scoped_transform_overview_window.h"
#include "ash/wm/overview/window_selector_item.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "ui/gfx/rect.h"
#include "ui/views/controls/button/button.h"
namespace aura {
class Window;
}
namespace views {
class Widget;
}
namespace ash {
class WindowSelectorWindow : public WindowSelectorItem,
public views::ButtonListener {
public:
WindowSelectorWindow(aura::Window* window);
virtual ~WindowSelectorWindow();
virtual aura::Window* GetRootWindow() OVERRIDE;
virtual bool HasSelectableWindow(const aura::Window* window) OVERRIDE;
virtual aura::Window* TargetedWindow(const aura::Window* target) OVERRIDE;
virtual void RestoreWindowOnExit(aura::Window* window) OVERRIDE;
virtual aura::Window* SelectionWindow() OVERRIDE;
virtual void RemoveWindow(const aura::Window* window) OVERRIDE;
virtual bool empty() const OVERRIDE;
virtual void PrepareForOverview() OVERRIDE;
virtual void SetItemBounds(aura::Window* root_window,
const gfx::Rect& target_bounds,
bool animate) OVERRIDE;
virtual void ButtonPressed(views::Button* sender,
const ui::Event& event) OVERRIDE;
private:
void UpdateCloseButtonBounds();
ScopedTransformOverviewWindow transform_window_;
scoped_ptr<views::Widget> close_button_;
DISALLOW_COPY_AND_ASSIGN(WindowSelectorWindow);
};
}
#endif