Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: ui/views/win/fullscreen_handler.h

Issue 2972963004: Another attempt at fixing the fullscreen issues with Chrome. (Closed)
Patch Set: Address review comments Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/views/win/fullscreen_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/views/win/fullscreen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698