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

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

Issue 10694031: [Mac] Remove the presentation mode button and its associated action from the tabstrip. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge origin/master Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_
7 #pragma once 7 #pragma once
8 8
9 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 9 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
10 10
11 11
12 // Private methods for the |BrowserWindowController|. This category should 12 // Private methods for the |BrowserWindowController|. This category should
13 // contain the private methods used by different parts of the BWC; private 13 // contain the private methods used by different parts of the BWC; private
14 // methods used only by single parts should be declared in their own file. 14 // methods used only by single parts should be declared in their own file.
15 // TODO(viettrungluu): [crbug.com/35543] work on splitting out stuff from the 15 // TODO(viettrungluu): [crbug.com/35543] work on splitting out stuff from the
16 // BWC, and figuring out which methods belong here (need to unravel 16 // BWC, and figuring out which methods belong here (need to unravel
17 // "dependencies"). 17 // "dependencies").
18 @interface BrowserWindowController(Private) 18 @interface BrowserWindowController(Private)
19 19
20 // Create the appropriate tab strip controller based on whether or not side 20 // Create the appropriate tab strip controller based on whether or not side
21 // tabs are enabled. Replaces the current controller. 21 // tabs are enabled. Replaces the current controller.
22 - (void)createTabStripController; 22 - (void)createTabStripController;
23 23
24 // Creates the button used to toggle presentation mode. Must only be called on
25 // Lion or later. Does nothing if the button already exists.
26 - (void)createAndInstallPresentationModeToggleButton;
27
28 // Saves the window's position in the local state preferences. 24 // Saves the window's position in the local state preferences.
29 - (void)saveWindowPositionIfNeeded; 25 - (void)saveWindowPositionIfNeeded;
30 26
31 // We need to adjust where sheets come out of the window, as by default they 27 // We need to adjust where sheets come out of the window, as by default they
32 // erupt from the omnibox, which is rather weird. 28 // erupt from the omnibox, which is rather weird.
33 - (NSRect)window:(NSWindow*)window 29 - (NSRect)window:(NSWindow*)window
34 willPositionSheet:(NSWindow*)sheet 30 willPositionSheet:(NSWindow*)sheet
35 usingRect:(NSRect)defaultSheetRect; 31 usingRect:(NSRect)defaultSheetRect;
36 32
37 // Repositions the window's subviews. From the top down: toolbar, normal 33 // Repositions the window's subviews. From the top down: toolbar, normal
38 // bookmark bar (if shown), infobar, NTP detached bookmark bar (if shown), 34 // bookmark bar (if shown), infobar, NTP detached bookmark bar (if shown),
39 // content area, download shelf (if any). 35 // content area, download shelf (if any).
40 - (void)layoutSubviews; 36 - (void)layoutSubviews;
41 37
42 // Find the total height of the floating bar (in presentation mode). Safe to 38 // Find the total height of the floating bar (in presentation mode). Safe to
43 // call even when not in presentation mode. 39 // call even when not in presentation mode.
44 - (CGFloat)floatingBarHeight; 40 - (CGFloat)floatingBarHeight;
45 41
46 // Shows the informational "how to exit fullscreen" bubble. 42 // Shows the informational "how to exit fullscreen" bubble.
47 - (void)showFullscreenExitBubbleIfNecessary; 43 - (void)showFullscreenExitBubbleIfNecessary;
48 - (void)destroyFullscreenExitBubbleIfNecessary; 44 - (void)destroyFullscreenExitBubbleIfNecessary;
49 45
50 // Lays out the presentation mode toggle button at the top right corner of the
51 // overlay. Creates the button if needed, and removes it if it is not needed.
52 // This method is safe to call on all OS versions.
53 - (void)layoutPresentationModeToggleAtOverlayMaxX:(CGFloat)maxX
54 overlayMaxY:(CGFloat)maxY;
55
56 // Lays out the tab strip at the given maximum y-coordinate, with the given 46 // Lays out the tab strip at the given maximum y-coordinate, with the given
57 // width, possibly for fullscreen mode; returns the new maximum y (below the 47 // width, possibly for fullscreen mode; returns the new maximum y (below the
58 // tab strip). This is safe to call even when there is no tab strip. 48 // tab strip). This is safe to call even when there is no tab strip.
59 - (CGFloat)layoutTabStripAtMaxY:(CGFloat)maxY 49 - (CGFloat)layoutTabStripAtMaxY:(CGFloat)maxY
60 width:(CGFloat)width 50 width:(CGFloat)width
61 fullscreen:(BOOL)fullscreen; 51 fullscreen:(BOOL)fullscreen;
62 52
63 // Lays out the toolbar (or just location bar for popups) at the given maximum 53 // Lays out the toolbar (or just location bar for popups) at the given maximum
64 // y-coordinate, with the given width; returns the new maximum y (below the 54 // y-coordinate, with the given width; returns the new maximum y (below the
65 // toolbar). 55 // toolbar).
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 152
163 // Allows/prevents bar visibility locks and releases from updating the visual 153 // Allows/prevents bar visibility locks and releases from updating the visual
164 // state. Enabling makes changes instantaneously; disabling cancels any 154 // state. Enabling makes changes instantaneously; disabling cancels any
165 // timers/animation. 155 // timers/animation.
166 - (void)enableBarVisibilityUpdates; 156 - (void)enableBarVisibilityUpdates;
167 - (void)disableBarVisibilityUpdates; 157 - (void)disableBarVisibilityUpdates;
168 158
169 @end // @interface BrowserWindowController(Private) 159 @end // @interface BrowserWindowController(Private)
170 160
171 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ 161 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | chrome/browser/ui/cocoa/browser_window_controller_private.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698