1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_VIEWS_WIN_FULLSCREEN_HANDLER_H_
6 #define UI_VIEWS_WIN_FULLSCREEN_HANDLER_H_
12 #include "base/basictypes.h"
20 class FullscreenHandler
{
25 void set_hwnd(HWND hwnd
) { hwnd_
= hwnd
; }
27 void SetFullscreen(bool fullscreen
);
28 void SetMetroSnap(bool metro_snap
);
30 gfx::Rect
GetRestoreBounds() const;
32 bool fullscreen() const { return fullscreen_
; }
33 bool metro_snap() const { return metro_snap_
; }
36 // Information saved before going into fullscreen mode, used to restore the
38 struct SavedWindowInfo
{
45 void SetFullscreenImpl(bool fullscreen
, bool for_metro
);
51 // Saved window information from before entering fullscreen mode.
52 // TODO(beng): move to private once GetRestoredBounds() moves onto Widget.
53 SavedWindowInfo saved_window_info_
;
55 DISALLOW_COPY_AND_ASSIGN(FullscreenHandler
);
60 #endif // UI_VIEWS_WIN_FULLSCREEN_HANDLER_H_