| 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 19 matching lines...) Expand all Loading... |
| 30 class BrowserWindow; | 30 class BrowserWindow; |
| 31 class BrowserWindowCocoa; | 31 class BrowserWindowCocoa; |
| 32 @class ChromeToMobileBubbleController; | 32 @class ChromeToMobileBubbleController; |
| 33 @class DevToolsController; | 33 @class DevToolsController; |
| 34 @class DownloadShelfController; | 34 @class DownloadShelfController; |
| 35 class ExtensionKeybindingRegistryCocoa; | 35 class ExtensionKeybindingRegistryCocoa; |
| 36 @class FindBarCocoaController; | 36 @class FindBarCocoaController; |
| 37 @class FullscreenWindow; | 37 @class FullscreenWindow; |
| 38 @class InfoBarContainerController; | 38 @class InfoBarContainerController; |
| 39 class LocationBarViewMac; | 39 class LocationBarViewMac; |
| 40 @class OverlayableContentsController; |
| 40 @class PresentationModeController; | 41 @class PresentationModeController; |
| 41 @class PreviewableContentsController; | |
| 42 class StatusBubbleMac; | 42 class StatusBubbleMac; |
| 43 @class TabStripController; | 43 @class TabStripController; |
| 44 @class TabStripView; | 44 @class TabStripView; |
| 45 @class ToolbarController; | 45 @class ToolbarController; |
| 46 | 46 |
| 47 namespace content { | 47 namespace content { |
| 48 class WebContents; | 48 class WebContents; |
| 49 } | 49 } |
| 50 | 50 |
| 51 @interface BrowserWindowController : | 51 @interface BrowserWindowController : |
| (...skipping 10 matching lines...) Expand all Loading... |
| 62 scoped_ptr<Browser> browser_; | 62 scoped_ptr<Browser> browser_; |
| 63 NSWindow* savedRegularWindow_; | 63 NSWindow* savedRegularWindow_; |
| 64 scoped_ptr<BrowserWindowCocoa> windowShim_; | 64 scoped_ptr<BrowserWindowCocoa> windowShim_; |
| 65 scoped_nsobject<ToolbarController> toolbarController_; | 65 scoped_nsobject<ToolbarController> toolbarController_; |
| 66 scoped_nsobject<TabStripController> tabStripController_; | 66 scoped_nsobject<TabStripController> tabStripController_; |
| 67 scoped_nsobject<FindBarCocoaController> findBarCocoaController_; | 67 scoped_nsobject<FindBarCocoaController> findBarCocoaController_; |
| 68 scoped_nsobject<InfoBarContainerController> infoBarContainerController_; | 68 scoped_nsobject<InfoBarContainerController> infoBarContainerController_; |
| 69 scoped_nsobject<DownloadShelfController> downloadShelfController_; | 69 scoped_nsobject<DownloadShelfController> downloadShelfController_; |
| 70 scoped_nsobject<BookmarkBarController> bookmarkBarController_; | 70 scoped_nsobject<BookmarkBarController> bookmarkBarController_; |
| 71 scoped_nsobject<DevToolsController> devToolsController_; | 71 scoped_nsobject<DevToolsController> devToolsController_; |
| 72 scoped_nsobject<PreviewableContentsController> previewableContentsController_; | 72 scoped_nsobject<OverlayableContentsController> overlayableContentsController_; |
| 73 scoped_nsobject<PresentationModeController> presentationModeController_; | 73 scoped_nsobject<PresentationModeController> presentationModeController_; |
| 74 scoped_nsobject<FullscreenExitBubbleController> | 74 scoped_nsobject<FullscreenExitBubbleController> |
| 75 fullscreenExitBubbleController_; | 75 fullscreenExitBubbleController_; |
| 76 | 76 |
| 77 // Strong. StatusBubble is a special case of a strong reference that | 77 // Strong. StatusBubble is a special case of a strong reference that |
| 78 // we don't wrap in a scoped_ptr because it is acting the same | 78 // we don't wrap in a scoped_ptr because it is acting the same |
| 79 // as an NSWindowController in that it wraps a window that must | 79 // as an NSWindowController in that it wraps a window that must |
| 80 // be shut down before our destructors are called. | 80 // be shut down before our destructors are called. |
| 81 StatusBubbleMac* statusBubble_; | 81 StatusBubbleMac* statusBubble_; |
| 82 | 82 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 209 |
| 210 // Access the C++ bridge object representing the status bubble for the window. | 210 // Access the C++ bridge object representing the status bubble for the window. |
| 211 - (StatusBubbleMac*)statusBubble; | 211 - (StatusBubbleMac*)statusBubble; |
| 212 | 212 |
| 213 // Access the C++ bridge object representing the location bar. | 213 // Access the C++ bridge object representing the location bar. |
| 214 - (LocationBarViewMac*)locationBarBridge; | 214 - (LocationBarViewMac*)locationBarBridge; |
| 215 | 215 |
| 216 // Returns a weak pointer to the floating bar backing view; | 216 // Returns a weak pointer to the floating bar backing view; |
| 217 - (NSView*)floatingBarBackingView; | 217 - (NSView*)floatingBarBackingView; |
| 218 | 218 |
| 219 // Returns a weak pointer to the previewable contents controller. | 219 // Returns a weak pointer to the overlayable contents controller. |
| 220 - (PreviewableContentsController*)previewableContentsController; | 220 - (OverlayableContentsController*)overlayableContentsController; |
| 221 | 221 |
| 222 // Access the Profile object that backs this Browser. | 222 // Access the Profile object that backs this Browser. |
| 223 - (Profile*)profile; | 223 - (Profile*)profile; |
| 224 | 224 |
| 225 // Access the avatar button controller. | 225 // Access the avatar button controller. |
| 226 - (AvatarButtonController*)avatarButtonController; | 226 - (AvatarButtonController*)avatarButtonController; |
| 227 | 227 |
| 228 // Updates the toolbar (and transitively the location bar) with the states of | 228 // Updates the toolbar (and transitively the location bar) with the states of |
| 229 // the specified |tab|. If |shouldRestore| is true, we're switching | 229 // the specified |tab|. If |shouldRestore| is true, we're switching |
| 230 // (back?) to this tab and should restore any previous location bar state | 230 // (back?) to this tab and should restore any previous location bar state |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 // Gets the window style. | 321 // Gets the window style. |
| 322 - (ThemedWindowStyle)themedWindowStyle; | 322 - (ThemedWindowStyle)themedWindowStyle; |
| 323 | 323 |
| 324 // Gets the pattern phase for the window. | 324 // Gets the pattern phase for the window. |
| 325 - (NSPoint)themePatternPhase; | 325 - (NSPoint)themePatternPhase; |
| 326 | 326 |
| 327 // Return the point to which a bubble window's arrow should point, in window | 327 // Return the point to which a bubble window's arrow should point, in window |
| 328 // coordinates. | 328 // coordinates. |
| 329 - (NSPoint)bookmarkBubblePoint; | 329 - (NSPoint)bookmarkBubblePoint; |
| 330 | 330 |
| 331 // Shows or hides the Instant preview contents. | 331 // Shows or hides the Instant overlay contents. |
| 332 - (void)commitInstant; | 332 - (void)commitInstant; |
| 333 | 333 |
| 334 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where | 334 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where |
| 335 // Instant results are. If Instant is not showing, returns the frame of where | 335 // Instant results are. If Instant is not showing, returns the frame of where |
| 336 // it would be. | 336 // it would be. |
| 337 - (NSRect)instantFrame; | 337 - (NSRect)instantFrame; |
| 338 | 338 |
| 339 // Called when the Add Search Engine dialog is closed. | 339 // Called when the Add Search Engine dialog is closed. |
| 340 - (void)sheetDidEnd:(NSWindow*)sheet | 340 - (void)sheetDidEnd:(NSWindow*)sheet |
| 341 returnCode:(NSInteger)code | 341 returnCode:(NSInteger)code |
| 342 context:(void*)context; | 342 context:(void*)context; |
| 343 | 343 |
| 344 - (void)updateBookmarkBarStateForInstantPreview; | 344 - (void)updateBookmarkBarStateForInstantOverlay; |
| 345 | 345 |
| 346 @end // @interface BrowserWindowController | 346 @end // @interface BrowserWindowController |
| 347 | 347 |
| 348 | 348 |
| 349 // Methods having to do with the window type (normal/popup/app, and whether the | 349 // Methods having to do with the window type (normal/popup/app, and whether the |
| 350 // window has various features; fullscreen and presentation mode methods are | 350 // window has various features; fullscreen and presentation mode methods are |
| 351 // separate). | 351 // separate). |
| 352 @interface BrowserWindowController(WindowType) | 352 @interface BrowserWindowController(WindowType) |
| 353 | 353 |
| 354 // Determines whether this controller's window supports a given feature (i.e., | 354 // Determines whether this controller's window supports a given feature (i.e., |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 // |source| rect doesn't fit into |target|. | 483 // |source| rect doesn't fit into |target|. |
| 484 - (NSSize)overflowFrom:(NSRect)source | 484 - (NSSize)overflowFrom:(NSRect)source |
| 485 to:(NSRect)target; | 485 to:(NSRect)target; |
| 486 | 486 |
| 487 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. | 487 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. |
| 488 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; | 488 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; |
| 489 @end // @interface BrowserWindowController (TestingAPI) | 489 @end // @interface BrowserWindowController (TestingAPI) |
| 490 | 490 |
| 491 | 491 |
| 492 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 492 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |