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

Side by Side Diff: chrome/browser/ui/cocoa/fullscreen_controller.h

Issue 6046009: Move base/mac_util.h to base/mac and use the base::mac namespace.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_UI_COCOA_FULLSCREEN_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_FULLSCREEN_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_FULLSCREEN_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_FULLSCREEN_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
11 #import "base/mac/cocoa_protocols.h" 11 #import "base/mac/cocoa_protocols.h"
12 #include "base/mac_util.h" 12 #include "base/mac/mac_util.h"
13 #include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" 13 #include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h"
14 14
15 @class BrowserWindowController; 15 @class BrowserWindowController;
16 @class DropdownAnimation; 16 @class DropdownAnimation;
17 17
18 // Provides a controller to manage fullscreen mode for a single browser window. 18 // Provides a controller to manage fullscreen mode for a single browser window.
19 // This class handles running animations, showing and hiding the floating 19 // This class handles running animations, showing and hiding the floating
20 // dropdown bar, and managing the tracking area associated with the dropdown. 20 // dropdown bar, and managing the tracking area associated with the dropdown.
21 // This class does not directly manage any views -- the BrowserWindowController 21 // This class does not directly manage any views -- the BrowserWindowController
22 // is responsible for positioning and z-ordering views. 22 // is responsible for positioning and z-ordering views.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // Tracks the currently requested fullscreen mode. This should be 63 // Tracks the currently requested fullscreen mode. This should be
64 // |kFullScreenModeNormal| when the window is not main or not fullscreen, 64 // |kFullScreenModeNormal| when the window is not main or not fullscreen,
65 // |kFullScreenModeHideAll| while the overlay is hidden, and 65 // |kFullScreenModeHideAll| while the overlay is hidden, and
66 // |kFullScreenModeHideDock| while the overlay is shown. If the window is not 66 // |kFullScreenModeHideDock| while the overlay is shown. If the window is not
67 // on the primary screen, this should always be |kFullScreenModeNormal|. This 67 // on the primary screen, this should always be |kFullScreenModeNormal|. This
68 // value can get out of sync with the correct state if we miss a notification 68 // value can get out of sync with the correct state if we miss a notification
69 // (which can happen when a fullscreen window is closed). Used to track the 69 // (which can happen when a fullscreen window is closed). Used to track the
70 // current state and make sure we properly restore the menu bar when this 70 // current state and make sure we properly restore the menu bar when this
71 // controller is destroyed. 71 // controller is destroyed.
72 mac_util::FullScreenMode currentFullscreenMode_; 72 base::mac::FullScreenMode currentFullscreenMode_;
73 } 73 }
74 74
75 @property(readonly, nonatomic) BOOL isFullscreen; 75 @property(readonly, nonatomic) BOOL isFullscreen;
76 76
77 // Designated initializer. 77 // Designated initializer.
78 - (id)initWithBrowserController:(BrowserWindowController*)controller; 78 - (id)initWithBrowserController:(BrowserWindowController*)controller;
79 79
80 // Informs the controller that the browser has entered or exited fullscreen 80 // Informs the controller that the browser has entered or exited fullscreen
81 // mode. |-enterFullscreenForContentView:showDropdown:| should be called after 81 // mode. |-enterFullscreenForContentView:showDropdown:| should be called after
82 // the fullscreen window is setup, just before it is shown. |-exitFullscreen| 82 // the fullscreen window is setup, just before it is shown. |-exitFullscreen|
(...skipping 30 matching lines...) Expand all
113 // effects, such as modifying the fullscreen mode (menu bar shown state). 113 // effects, such as modifying the fullscreen mode (menu bar shown state).
114 - (void)changeFloatingBarShownFraction:(CGFloat)fraction; 114 - (void)changeFloatingBarShownFraction:(CGFloat)fraction;
115 115
116 @end 116 @end
117 117
118 // Notification posted when we're about to enter or leave fullscreen. 118 // Notification posted when we're about to enter or leave fullscreen.
119 extern NSString* const kWillEnterFullscreenNotification; 119 extern NSString* const kWillEnterFullscreenNotification;
120 extern NSString* const kWillLeaveFullscreenNotification; 120 extern NSString* const kWillLeaveFullscreenNotification;
121 121
122 #endif // CHROME_BROWSER_UI_COCOA_FULLSCREEN_CONTROLLER_H_ 122 #endif // CHROME_BROWSER_UI_COCOA_FULLSCREEN_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/font_language_settings_controller.mm ('k') | chrome/browser/ui/cocoa/fullscreen_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698