| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_VIEWS_WIN_FULLSCREEN_HANDLER_H_ | 5 #ifndef UI_VIEWS_WIN_FULLSCREEN_HANDLER_H_ |
| 6 #define UI_VIEWS_WIN_FULLSCREEN_HANDLER_H_ | 6 #define UI_VIEWS_WIN_FULLSCREEN_HANDLER_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <shobjidl.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/win/scoped_comptr.h" |
| 13 | 14 |
| 14 namespace gfx { | 15 namespace gfx { |
| 15 class Rect; | 16 class Rect; |
| 16 } | 17 } |
| 17 | 18 |
| 18 namespace views { | 19 namespace views { |
| 19 | 20 |
| 20 class FullscreenHandler { | 21 class FullscreenHandler { |
| 21 public: | 22 public: |
| 22 FullscreenHandler(); | 23 FullscreenHandler(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 void SetFullscreenImpl(bool fullscreen); | 43 void SetFullscreenImpl(bool fullscreen); |
| 43 | 44 |
| 44 HWND hwnd_; | 45 HWND hwnd_; |
| 45 bool fullscreen_; | 46 bool fullscreen_; |
| 46 | 47 |
| 47 // Saved window information from before entering fullscreen mode. | 48 // Saved window information from before entering fullscreen mode. |
| 48 // TODO(beng): move to private once GetRestoredBounds() moves onto Widget. | 49 // TODO(beng): move to private once GetRestoredBounds() moves onto Widget. |
| 49 SavedWindowInfo saved_window_info_; | 50 SavedWindowInfo saved_window_info_; |
| 51 // Used to mark a window as fullscreen. |
| 52 base::win::ScopedComPtr<ITaskbarList2> task_bar_list_; |
| 50 | 53 |
| 51 DISALLOW_COPY_AND_ASSIGN(FullscreenHandler); | 54 DISALLOW_COPY_AND_ASSIGN(FullscreenHandler); |
| 52 }; | 55 }; |
| 53 | 56 |
| 54 } // namespace views | 57 } // namespace views |
| 55 | 58 |
| 56 #endif // UI_VIEWS_WIN_FULLSCREEN_HANDLER_H_ | 59 #endif // UI_VIEWS_WIN_FULLSCREEN_HANDLER_H_ |
| OLD | NEW |