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 #pragma once | 7 #pragma once |
8 | 8 |
9 // A class acting as the Objective-C controller for the Browser | 9 // A class acting as the Objective-C controller for the Browser |
10 // object. Handles interactions between Cocoa and the cross-platform | 10 // object. Handles interactions between Cocoa and the cross-platform |
(...skipping 24 matching lines...) Expand all Loading... |
35 class ConstrainedWindowMac; | 35 class ConstrainedWindowMac; |
36 @class DevToolsController; | 36 @class DevToolsController; |
37 @class DownloadShelfController; | 37 @class DownloadShelfController; |
38 @class FindBarCocoaController; | 38 @class FindBarCocoaController; |
39 @class FullscreenWindow; | 39 @class FullscreenWindow; |
40 @class GTMWindowSheetController; | 40 @class GTMWindowSheetController; |
41 @class InfoBarContainerController; | 41 @class InfoBarContainerController; |
42 class LocationBarViewMac; | 42 class LocationBarViewMac; |
43 @class PresentationModeController; | 43 @class PresentationModeController; |
44 @class PreviewableContentsController; | 44 @class PreviewableContentsController; |
45 @class SidebarController; | |
46 class StatusBubbleMac; | 45 class StatusBubbleMac; |
47 class TabContents; | 46 class TabContents; |
48 @class TabStripController; | 47 @class TabStripController; |
49 @class TabStripView; | 48 @class TabStripView; |
50 @class ToolbarController; | 49 @class ToolbarController; |
51 | 50 |
52 namespace content { | 51 namespace content { |
53 class WebContents; | 52 class WebContents; |
54 } | 53 } |
55 | 54 |
(...skipping 12 matching lines...) Expand all Loading... |
68 scoped_ptr<Browser> browser_; | 67 scoped_ptr<Browser> browser_; |
69 NSWindow* savedRegularWindow_; | 68 NSWindow* savedRegularWindow_; |
70 scoped_ptr<BrowserWindowCocoa> windowShim_; | 69 scoped_ptr<BrowserWindowCocoa> windowShim_; |
71 scoped_nsobject<ToolbarController> toolbarController_; | 70 scoped_nsobject<ToolbarController> toolbarController_; |
72 scoped_nsobject<TabStripController> tabStripController_; | 71 scoped_nsobject<TabStripController> tabStripController_; |
73 scoped_nsobject<FindBarCocoaController> findBarCocoaController_; | 72 scoped_nsobject<FindBarCocoaController> findBarCocoaController_; |
74 scoped_nsobject<InfoBarContainerController> infoBarContainerController_; | 73 scoped_nsobject<InfoBarContainerController> infoBarContainerController_; |
75 scoped_nsobject<DownloadShelfController> downloadShelfController_; | 74 scoped_nsobject<DownloadShelfController> downloadShelfController_; |
76 scoped_nsobject<BookmarkBarController> bookmarkBarController_; | 75 scoped_nsobject<BookmarkBarController> bookmarkBarController_; |
77 scoped_nsobject<DevToolsController> devToolsController_; | 76 scoped_nsobject<DevToolsController> devToolsController_; |
78 scoped_nsobject<SidebarController> sidebarController_; | |
79 scoped_nsobject<PreviewableContentsController> previewableContentsController_; | 77 scoped_nsobject<PreviewableContentsController> previewableContentsController_; |
80 scoped_nsobject<PresentationModeController> presentationModeController_; | 78 scoped_nsobject<PresentationModeController> presentationModeController_; |
81 scoped_nsobject<FullscreenExitBubbleController> | 79 scoped_nsobject<FullscreenExitBubbleController> |
82 fullscreenExitBubbleController_; | 80 fullscreenExitBubbleController_; |
83 | 81 |
84 // Strong. StatusBubble is a special case of a strong reference that | 82 // Strong. StatusBubble is a special case of a strong reference that |
85 // we don't wrap in a scoped_ptr because it is acting the same | 83 // we don't wrap in a scoped_ptr because it is acting the same |
86 // as an NSWindowController in that it wraps a window that must | 84 // as an NSWindowController in that it wraps a window that must |
87 // be shut down before our destructors are called. | 85 // be shut down before our destructors are called. |
88 StatusBubbleMac* statusBubble_; | 86 StatusBubbleMac* statusBubble_; |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; | 289 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; |
292 // Returns NO if constrained windows cannot be attached to this window. | 290 // Returns NO if constrained windows cannot be attached to this window. |
293 - (BOOL)canAttachConstrainedWindow; | 291 - (BOOL)canAttachConstrainedWindow; |
294 | 292 |
295 // Shows or hides the docked web inspector depending on |contents|'s state. | 293 // Shows or hides the docked web inspector depending on |contents|'s state. |
296 - (void)updateDevToolsForContents:(content::WebContents*)contents; | 294 - (void)updateDevToolsForContents:(content::WebContents*)contents; |
297 | 295 |
298 // Specifies whether devtools should dock to right. | 296 // Specifies whether devtools should dock to right. |
299 - (void)setDevToolsDockToRight:(bool)dock_to_right; | 297 - (void)setDevToolsDockToRight:(bool)dock_to_right; |
300 | 298 |
301 // Displays the active sidebar linked to the |contents| or hides sidebar UI, | |
302 // if there's no such sidebar. | |
303 - (void)updateSidebarForContents:(TabContents*)contents; | |
304 | |
305 // Gets the current theme provider. | 299 // Gets the current theme provider. |
306 - (ui::ThemeProvider*)themeProvider; | 300 - (ui::ThemeProvider*)themeProvider; |
307 | 301 |
308 // Gets the window style. | 302 // Gets the window style. |
309 - (ThemedWindowStyle)themedWindowStyle; | 303 - (ThemedWindowStyle)themedWindowStyle; |
310 | 304 |
311 // Gets the pattern phase for the window. | 305 // Gets the pattern phase for the window. |
312 - (NSPoint)themePatternPhase; | 306 - (NSPoint)themePatternPhase; |
313 | 307 |
314 // Return the point to which a bubble window's arrow should point. | 308 // Return the point to which a bubble window's arrow should point. |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 // |source| rect doesn't fit into |target|. | 468 // |source| rect doesn't fit into |target|. |
475 - (NSSize)overflowFrom:(NSRect)source | 469 - (NSSize)overflowFrom:(NSRect)source |
476 to:(NSRect)target; | 470 to:(NSRect)target; |
477 | 471 |
478 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. | 472 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. |
479 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; | 473 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; |
480 @end // @interface BrowserWindowController (TestingAPI) | 474 @end // @interface BrowserWindowController (TestingAPI) |
481 | 475 |
482 | 476 |
483 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 477 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |