| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 // Delegate method for the status bubble to query its base frame. | 289 // Delegate method for the status bubble to query its base frame. |
| 290 - (NSRect)statusBubbleBaseFrame; | 290 - (NSRect)statusBubbleBaseFrame; |
| 291 | 291 |
| 292 // Show the bookmark bubble (e.g. user just clicked on the STAR) | 292 // Show the bookmark bubble (e.g. user just clicked on the STAR) |
| 293 - (void)showBookmarkBubbleForURL:(const GURL&)url | 293 - (void)showBookmarkBubbleForURL:(const GURL&)url |
| 294 alreadyBookmarked:(BOOL)alreadyBookmarked; | 294 alreadyBookmarked:(BOOL)alreadyBookmarked; |
| 295 | 295 |
| 296 // Show the Chrome To Mobile bubble (e.g. user just clicked on the icon) | 296 // Show the Chrome To Mobile bubble (e.g. user just clicked on the icon) |
| 297 - (void)showChromeToMobileBubble; | 297 - (void)showChromeToMobileBubble; |
| 298 | 298 |
| 299 // Nil out the weak Chrome To Mobile bubble controller reference. |
| 300 // This should be called by the ChromeToMobileBubbleController on close. |
| 301 - (void)chromeToMobileBubbleWindowWillClose; |
| 302 |
| 299 // Returns the (lazily created) window sheet controller of this window. Used | 303 // Returns the (lazily created) window sheet controller of this window. Used |
| 300 // for the per-tab sheets. | 304 // for the per-tab sheets. |
| 301 - (GTMWindowSheetController*)sheetController; | 305 - (GTMWindowSheetController*)sheetController; |
| 302 | 306 |
| 303 // Requests that |window| is opened as a per-tab sheet to the current tab. | 307 // Requests that |window| is opened as a per-tab sheet to the current tab. |
| 304 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; | 308 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; |
| 305 // Closes the tab sheet |window| and potentially shows the next sheet in the | 309 // Closes the tab sheet |window| and potentially shows the next sheet in the |
| 306 // tab's sheet queue. | 310 // tab's sheet queue. |
| 307 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; | 311 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; |
| 308 // Returns NO if constrained windows cannot be attached to this window. | 312 // Returns NO if constrained windows cannot be attached to this window. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 320 // Gets the window style. | 324 // Gets the window style. |
| 321 - (ThemedWindowStyle)themedWindowStyle; | 325 - (ThemedWindowStyle)themedWindowStyle; |
| 322 | 326 |
| 323 // Gets the pattern phase for the window. | 327 // Gets the pattern phase for the window. |
| 324 - (NSPoint)themePatternPhase; | 328 - (NSPoint)themePatternPhase; |
| 325 | 329 |
| 326 // Return the point to which a bubble window's arrow should point, in window | 330 // Return the point to which a bubble window's arrow should point, in window |
| 327 // coordinates. | 331 // coordinates. |
| 328 - (NSPoint)bookmarkBubblePoint; | 332 - (NSPoint)bookmarkBubblePoint; |
| 329 | 333 |
| 330 // Return the Chrome To Mobile bubble window's arrow anchor point, in window | |
| 331 // coordinates. | |
| 332 - (NSPoint)chromeToMobileBubblePoint; | |
| 333 | |
| 334 // Shows or hides the Instant preview contents. | 334 // Shows or hides the Instant preview contents. |
| 335 - (void)showInstant:(content::WebContents*)previewContents; | 335 - (void)showInstant:(content::WebContents*)previewContents; |
| 336 - (void)hideInstant; | 336 - (void)hideInstant; |
| 337 - (void)commitInstant; | 337 - (void)commitInstant; |
| 338 | 338 |
| 339 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where | 339 // 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 | 340 // Instant results are. If Instant is not showing, returns the frame of where |
| 341 // it would be. | 341 // it would be. |
| 342 - (NSRect)instantFrame; | 342 - (NSRect)instantFrame; |
| 343 | 343 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 // |source| rect doesn't fit into |target|. | 487 // |source| rect doesn't fit into |target|. |
| 488 - (NSSize)overflowFrom:(NSRect)source | 488 - (NSSize)overflowFrom:(NSRect)source |
| 489 to:(NSRect)target; | 489 to:(NSRect)target; |
| 490 | 490 |
| 491 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. | 491 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. |
| 492 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; | 492 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; |
| 493 @end // @interface BrowserWindowController (TestingAPI) | 493 @end // @interface BrowserWindowController (TestingAPI) |
| 494 | 494 |
| 495 | 495 |
| 496 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 496 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |