OLD | NEW |
---|---|
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_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
7 | 7 |
8 // A class acting as the Objective-C controller for the Browser | 8 // A class acting as the Objective-C controller for the Browser |
9 // object. Handles interactions between Cocoa and the cross-platform | 9 // object. Handles interactions between Cocoa and the cross-platform |
10 // code. Each window has a single toolbar and, by virtue of being a | 10 // code. Each window has a single toolbar and, by virtue of being a |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
240 | 240 |
241 // Gets the window style. | 241 // Gets the window style. |
242 - (ThemedWindowStyle)themedWindowStyle; | 242 - (ThemedWindowStyle)themedWindowStyle; |
243 | 243 |
244 // Gets the pattern phase for the window. | 244 // Gets the pattern phase for the window. |
245 - (NSPoint)themePatternPhase; | 245 - (NSPoint)themePatternPhase; |
246 | 246 |
247 // Return the point to which a bubble window's arrow should point. | 247 // Return the point to which a bubble window's arrow should point. |
248 - (NSPoint)pointForBubbleArrowTip; | 248 - (NSPoint)pointForBubbleArrowTip; |
249 | 249 |
250 // Call when the user changes the tab strip display mode, enabling or | |
251 // disabling vertical tabs for this browser. Re-flows the contents of the | |
252 // browser. | |
253 - (void)tabStripDisplayModeChanged; | |
rohitrao (ping after 24h)
2010/06/02 13:45:56
How about calling this toggleTabStripDisplayMode?
| |
254 | |
250 @end // @interface BrowserWindowController | 255 @end // @interface BrowserWindowController |
251 | 256 |
252 | 257 |
253 // Methods having to do with the window type (normal/popup/app, and whether the | 258 // Methods having to do with the window type (normal/popup/app, and whether the |
254 // window has various features; fullscreen methods are separate). | 259 // window has various features; fullscreen methods are separate). |
255 @interface BrowserWindowController(WindowType) | 260 @interface BrowserWindowController(WindowType) |
256 | 261 |
257 // Determines whether this controller's window supports a given feature (i.e., | 262 // Determines whether this controller's window supports a given feature (i.e., |
258 // whether a given feature is or can be shown in the window). | 263 // whether a given feature is or can be shown in the window). |
259 // TODO(viettrungluu): |feature| is really should be |Browser::Feature|, but I | 264 // TODO(viettrungluu): |feature| is really should be |Browser::Feature|, but I |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
356 - (NSPoint)pointForBubbleArrowTip; | 361 - (NSPoint)pointForBubbleArrowTip; |
357 | 362 |
358 // Resets any saved state about window growth (due to showing the bookmark bar | 363 // Resets any saved state about window growth (due to showing the bookmark bar |
359 // or the download shelf), so that future shrinking will occur from the bottom. | 364 // or the download shelf), so that future shrinking will occur from the bottom. |
360 - (void)resetWindowGrowthState; | 365 - (void)resetWindowGrowthState; |
361 | 366 |
362 @end // @interface BrowserWindowController(TestingAPI) | 367 @end // @interface BrowserWindowController(TestingAPI) |
363 | 368 |
364 | 369 |
365 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 370 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |