Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 297 - (void)showChromeToMobileBubble; | 297 - (void)showChromeToMobileBubble; |
| 298 | 298 |
| 299 // Nil out the weak Chrome To Mobile bubble controller reference. | 299 // Nil out the weak Chrome To Mobile bubble controller reference. |
| 300 // This should be called by the ChromeToMobileBubbleController on close. | 300 // This should be called by the ChromeToMobileBubbleController on close. |
| 301 - (void)chromeToMobileBubbleWindowWillClose; | 301 - (void)chromeToMobileBubbleWindowWillClose; |
| 302 | 302 |
| 303 // Returns the (lazily created) window sheet controller of this window. Used | 303 // Returns the (lazily created) window sheet controller of this window. Used |
| 304 // for the per-tab sheets. | 304 // for the per-tab sheets. |
| 305 - (GTMWindowSheetController*)sheetController; | 305 - (GTMWindowSheetController*)sheetController; |
| 306 | 306 |
| 307 // Requests that |window| is opened as a per-tab sheet to the current tab. | |
| 308 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; | |
| 309 // Closes the tab sheet |window| and potentially shows the next sheet in the | |
| 310 // tab's sheet queue. | |
| 311 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; | |
| 312 // Returns NO if constrained windows cannot be attached to this window. | |
| 313 - (BOOL)canAttachConstrainedWindow; | |
| 314 | |
| 315 // Shows or hides the docked web inspector depending on |contents|'s state. | 307 // Shows or hides the docked web inspector depending on |contents|'s state. |
| 316 - (void)updateDevToolsForContents:(content::WebContents*)contents; | 308 - (void)updateDevToolsForContents:(content::WebContents*)contents; |
| 317 | 309 |
| 318 // Specifies whether devtools should dock to right. | 310 // Specifies whether devtools should dock to right. |
| 319 - (void)setDevToolsDockToRight:(bool)dock_to_right; | 311 - (void)setDevToolsDockToRight:(bool)dock_to_right; |
| 320 | 312 |
| 321 // Gets the current theme provider. | 313 // Gets the current theme provider. |
| 322 - (ui::ThemeProvider*)themeProvider; | 314 - (ui::ThemeProvider*)themeProvider; |
| 323 | 315 |
| 324 // Gets the window style. | 316 // Gets the window style. |
| 325 - (ThemedWindowStyle)themedWindowStyle; | 317 - (ThemedWindowStyle)themedWindowStyle; |
| 326 | 318 |
| 327 // Gets the pattern phase for the window. | 319 // Gets the pattern phase for the window. |
| 328 - (NSPoint)themePatternPhase; | 320 - (NSPoint)themePatternPhase; |
| 329 | 321 |
| 330 // Return the point to which a bubble window's arrow should point, in window | 322 // Return the point to which a bubble window's arrow should point, in window |
| 331 // coordinates. | 323 // coordinates. |
| 332 - (NSPoint)bookmarkBubblePoint; | 324 - (NSPoint)bookmarkBubblePoint; |
| 333 | 325 |
| 334 // Shows or hides the Instant preview contents. | 326 // Shows or hides the Instant preview contents. |
| 335 - (void)showInstant:(content::WebContents*)previewContents; | 327 - (void)showInstant:(content::WebContents*)previewContents; |
| 336 - (void)hideInstant; | 328 - (void)hideInstant; |
| 337 - (void)commitInstant; | 329 - (void)commitInstant; |
| 330 - (BOOL)isInstantTabShowing; | |
|
Robert Sesek
2012/09/04 16:45:22
Thanks for renaming the Cocoa, too.
| |
| 338 | 331 |
| 339 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where | 332 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where |
| 340 // Instant results are. If Instant is not showing, returns the frame of where | 333 // Instant results are. If Instant is not showing, returns the frame of where |
| 341 // it would be. | 334 // it would be. |
| 342 - (NSRect)instantFrame; | 335 - (NSRect)instantFrame; |
| 343 | 336 |
| 344 // Called when the Add Search Engine dialog is closed. | 337 // Called when the Add Search Engine dialog is closed. |
| 345 - (void)sheetDidEnd:(NSWindow*)sheet | 338 - (void)sheetDidEnd:(NSWindow*)sheet |
| 346 returnCode:(NSInteger)code | 339 returnCode:(NSInteger)code |
| 347 context:(void*)context; | 340 context:(void*)context; |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 487 // |source| rect doesn't fit into |target|. | 480 // |source| rect doesn't fit into |target|. |
| 488 - (NSSize)overflowFrom:(NSRect)source | 481 - (NSSize)overflowFrom:(NSRect)source |
| 489 to:(NSRect)target; | 482 to:(NSRect)target; |
| 490 | 483 |
| 491 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. | 484 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. |
| 492 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; | 485 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; |
| 493 @end // @interface BrowserWindowController (TestingAPI) | 486 @end // @interface BrowserWindowController (TestingAPI) |
| 494 | 487 |
| 495 | 488 |
| 496 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 489 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |