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

Side by Side Diff: ui/base/cocoa/fullscreen_window_manager.h

Issue 9838071: Implement pepper flash fullscreen on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comment Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef UI_BASE_COCOA_FULLSCREEN_WINDOW_MANAGER_H_
6 #define UI_BASE_COCOA_FULLSCREEN_WINDOW_MANAGER_H_
7 #pragma once
8
9 #import <Cocoa/Cocoa.h>
10
11 #include "base/mac/mac_util.h"
12 #include "base/memory/scoped_nsobject.h"
13
14 // A utility class to manage the fullscreen mode for a given window. This class
15 // also updates the window frame if the screen changes.
16 @interface FullscreenWindowManager : NSObject {
17 @private
18 scoped_nsobject<NSWindow> window_;
19 // Explicitly keep track of the screen we want to position the window in.
20 // This is better than using -[NSWindow screen] because that might change if
21 // the screen changes to a low resolution.
22 scoped_nsobject<NSScreen> desiredScreen_;
23 base::mac::FullScreenMode fullscreenMode_;
24 bool fullscreenEnabled_;
Robert Sesek 2012/03/27 19:47:50 ObjC BOOL?
sail 2012/03/27 20:19:51 Done.
25 }
26
27 - (id)initWithWindow:(NSWindow*)window
28 desiredScreen:(NSScreen*)desiredScreen;
29
30 - (void)enterFullscreenMode;
Robert Sesek 2012/03/27 19:47:50 What do these do?
sail 2012/03/27 20:19:51 Done.
31 - (void)exitFullscreenMode;
32
33 @end
34
35 #endif // UI_BASE_COCOA_FULLSCREEN_WINDOW_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698