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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 // size the window to be taller than the current workspace, the window height is | 338 // size the window to be taller than the current workspace, the window height is |
339 // capped to be equal to the height of the current workspace. If the window is | 339 // capped to be equal to the height of the current workspace. If the window is |
340 // partially offscreen, its height is not adjusted at all. This function | 340 // partially offscreen, its height is not adjusted at all. This function |
341 // prefers to grow the window down, but will grow up if needed. Calls to this | 341 // prefers to grow the window down, but will grow up if needed. Calls to this |
342 // function should be followed by a call to |layoutSubviews|. | 342 // function should be followed by a call to |layoutSubviews|. |
343 - (void)adjustWindowHeightBy:(CGFloat)deltaH; | 343 - (void)adjustWindowHeightBy:(CGFloat)deltaH; |
344 | 344 |
345 // Return an autoreleased NSWindow suitable for fullscreen use. | 345 // Return an autoreleased NSWindow suitable for fullscreen use. |
346 - (NSWindow*)createFullscreenWindow; | 346 - (NSWindow*)createFullscreenWindow; |
347 | 347 |
348 // Return a point suitable for the topLeft for a bookmark bubble. | 348 // Return a point suitable for the topRight for a bookmark bubble. |
349 - (NSPoint)topLeftForBubble; | 349 - (NSPoint)topRightForBubble; |
350 | 350 |
351 // Resets any saved state about window growth (due to showing the bookmark bar | 351 // Resets any saved state about window growth (due to showing the bookmark bar |
352 // or the download shelf), so that future shrinking will occur from the bottom. | 352 // or the download shelf), so that future shrinking will occur from the bottom. |
353 - (void)resetWindowGrowthState; | 353 - (void)resetWindowGrowthState; |
354 | 354 |
355 @end // @interface BrowserWindowController(TestingAPI) | 355 @end // @interface BrowserWindowController(TestingAPI) |
356 | 356 |
357 | 357 |
358 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 358 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |