OLD | NEW |
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 |
(...skipping 10 matching lines...) Expand all Loading... |
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 | 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. | 25 // Lion or later. Does nothing if the button already exists. |
26 - (void)createAndInstallPresentationModeToggleButton; | 26 - (void)createAndInstallPresentationModeToggleButton; |
27 | 27 |
28 // Saves the window's position in the local state preferences. | 28 // Saves the window's position in the local state preferences. |
29 - (void)saveWindowPositionIfNeeded; | 29 - (void)saveWindowPositionIfNeeded; |
30 | 30 |
31 // Saves the window's position to the given pref service. | |
32 - (void)saveWindowPositionToPrefs:(PrefService*)prefs; | |
33 | |
34 // We need to adjust where sheets come out of the window, as by default they | 31 // We need to adjust where sheets come out of the window, as by default they |
35 // erupt from the omnibox, which is rather weird. | 32 // erupt from the omnibox, which is rather weird. |
36 - (NSRect)window:(NSWindow*)window | 33 - (NSRect)window:(NSWindow*)window |
37 willPositionSheet:(NSWindow*)sheet | 34 willPositionSheet:(NSWindow*)sheet |
38 usingRect:(NSRect)defaultSheetRect; | 35 usingRect:(NSRect)defaultSheetRect; |
39 | 36 |
40 // Repositions the window's subviews. From the top down: toolbar, normal | 37 // Repositions the window's subviews. From the top down: toolbar, normal |
41 // bookmark bar (if shown), infobar, NTP detached bookmark bar (if shown), | 38 // bookmark bar (if shown), infobar, NTP detached bookmark bar (if shown), |
42 // content area, download shelf (if any). | 39 // content area, download shelf (if any). |
43 - (void)layoutSubviews; | 40 - (void)layoutSubviews; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 158 |
162 // Allows/prevents bar visibility locks and releases from updating the visual | 159 // Allows/prevents bar visibility locks and releases from updating the visual |
163 // state. Enabling makes changes instantaneously; disabling cancels any | 160 // state. Enabling makes changes instantaneously; disabling cancels any |
164 // timers/animation. | 161 // timers/animation. |
165 - (void)enableBarVisibilityUpdates; | 162 - (void)enableBarVisibilityUpdates; |
166 - (void)disableBarVisibilityUpdates; | 163 - (void)disableBarVisibilityUpdates; |
167 | 164 |
168 @end // @interface BrowserWindowController(Private) | 165 @end // @interface BrowserWindowController(Private) |
169 | 166 |
170 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ | 167 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
OLD | NEW |