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

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

Issue 1543173002: Switch to standard integer types in ui/views/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
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_SCOPED_FULLSCREEN_VISIBILITY_H_ 5 #ifndef UI_VIEWS_WIN_SCOPED_FULLSCREEN_VISIBILITY_H_
6 #define UI_VIEWS_WIN_SCOPED_FULLSCREEN_VISIBILITY_H_ 6 #define UI_VIEWS_WIN_SCOPED_FULLSCREEN_VISIBILITY_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include <map> 10 #include <map>
11 11
12 #include "base/basictypes.h" 12 #include "base/macros.h"
13 #include "ui/views/views_export.h" 13 #include "ui/views/views_export.h"
14 14
15 namespace views { 15 namespace views {
16 16
17 // Scoping class that ensures a HWND remains hidden while it enters or leaves 17 // Scoping class that ensures a HWND remains hidden while it enters or leaves
18 // the fullscreen state. This reduces some flicker-jank that an application UI 18 // the fullscreen state. This reduces some flicker-jank that an application UI
19 // might suffer. 19 // might suffer.
20 class VIEWS_EXPORT ScopedFullscreenVisibility { 20 class VIEWS_EXPORT ScopedFullscreenVisibility {
21 public: 21 public:
22 explicit ScopedFullscreenVisibility(HWND hwnd); 22 explicit ScopedFullscreenVisibility(HWND hwnd);
23 ~ScopedFullscreenVisibility(); 23 ~ScopedFullscreenVisibility();
24 24
25 // Returns true if |hwnd| is currently hidden due to instance(s) of this 25 // Returns true if |hwnd| is currently hidden due to instance(s) of this
26 // class. 26 // class.
27 static bool IsHiddenForFullscreen(HWND hwnd); 27 static bool IsHiddenForFullscreen(HWND hwnd);
28 28
29 private: 29 private:
30 typedef std::map<HWND, int> FullscreenHWNDs; 30 typedef std::map<HWND, int> FullscreenHWNDs;
31 31
32 HWND hwnd_; 32 HWND hwnd_;
33 33
34 static FullscreenHWNDs* full_screen_windows_; 34 static FullscreenHWNDs* full_screen_windows_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(ScopedFullscreenVisibility); 36 DISALLOW_COPY_AND_ASSIGN(ScopedFullscreenVisibility);
37 }; 37 };
38 38
39 } // namespace views 39 } // namespace views
40 40
41 #endif // UI_VIEWS_WIN_SCOPED_FULLSCREEN_VISIBILITY_H_ 41 #endif // UI_VIEWS_WIN_SCOPED_FULLSCREEN_VISIBILITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698