#ifndef UI_VIEWS_WIN_FULLSCREEN_HANDLER_H_
#define UI_VIEWS_WIN_FULLSCREEN_HANDLER_H_
#include <windows.h>
#include <map>
#include "base/basictypes.h"
namespace gfx {
class Rect;
}
namespace views {
class FullscreenHandler {
public:
FullscreenHandler();
~FullscreenHandler();
void set_hwnd(HWND hwnd) { hwnd_ = hwnd; }
void SetFullscreen(bool fullscreen);
void SetMetroSnap(bool metro_snap);
gfx::Rect GetRestoreBounds() const;
bool fullscreen() const { return fullscreen_; }
bool metro_snap() const { return metro_snap_; }
private:
struct SavedWindowInfo {
bool maximized;
LONG style;
LONG ex_style;
RECT window_rect;
};
void SetFullscreenImpl(bool fullscreen, bool for_metro);
HWND hwnd_;
bool fullscreen_;
bool metro_snap_;
SavedWindowInfo saved_window_info_;
DISALLOW_COPY_AND_ASSIGN(FullscreenHandler);
};
}