Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_controller.h

Issue 1171873003: [Mac] Add cocoa implementation for sidebar extension action support Base URL: https://chromium.googlesource.com/chromium/src.git@patch-b
Patch Set: Rebased patch set to 1169823005/#ps200001 Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 26 matching lines...) Expand all
37 @class DownloadShelfController; 37 @class DownloadShelfController;
38 class ExtensionKeybindingRegistryCocoa; 38 class ExtensionKeybindingRegistryCocoa;
39 @class FindBarCocoaController; 39 @class FindBarCocoaController;
40 @class FullscreenModeController; 40 @class FullscreenModeController;
41 @class FullscreenWindow; 41 @class FullscreenWindow;
42 @class InfoBarContainerController; 42 @class InfoBarContainerController;
43 class LocationBarViewMac; 43 class LocationBarViewMac;
44 @class OverlayableContentsController; 44 @class OverlayableContentsController;
45 class PermissionBubbleCocoa; 45 class PermissionBubbleCocoa;
46 @class PresentationModeController; 46 @class PresentationModeController;
47 @class SidebarController;
47 class StatusBubbleMac; 48 class StatusBubbleMac;
48 @class TabStripController; 49 @class TabStripController;
49 @class TabStripView; 50 @class TabStripView;
50 @class ToolbarController; 51 @class ToolbarController;
51 @class TranslateBubbleController; 52 @class TranslateBubbleController;
52 53
53 namespace content { 54 namespace content {
54 class WebContents; 55 class WebContents;
55 } 56 }
56 57
(...skipping 21 matching lines...) Expand all
78 base::scoped_nsobject<BookmarkBarController> bookmarkBarController_; 79 base::scoped_nsobject<BookmarkBarController> bookmarkBarController_;
79 base::scoped_nsobject<DevToolsController> devToolsController_; 80 base::scoped_nsobject<DevToolsController> devToolsController_;
80 base::scoped_nsobject<OverlayableContentsController> 81 base::scoped_nsobject<OverlayableContentsController>
81 overlayableContentsController_; 82 overlayableContentsController_;
82 base::scoped_nsobject<PresentationModeController> presentationModeController_; 83 base::scoped_nsobject<PresentationModeController> presentationModeController_;
83 base::scoped_nsobject<ExclusiveAccessBubbleWindowController> 84 base::scoped_nsobject<ExclusiveAccessBubbleWindowController>
84 exclusiveAccessBubbleWindowController_; 85 exclusiveAccessBubbleWindowController_;
85 base::scoped_nsobject<BrowserWindowFullscreenTransition> 86 base::scoped_nsobject<BrowserWindowFullscreenTransition>
86 fullscreenTransition_; 87 fullscreenTransition_;
87 88
89 base::scoped_nsobject<SidebarController> sidebarController_;
90
88 // Strong. StatusBubble is a special case of a strong reference that 91 // Strong. StatusBubble is a special case of a strong reference that
89 // we don't wrap in a scoped_ptr because it is acting the same 92 // we don't wrap in a scoped_ptr because it is acting the same
90 // as an NSWindowController in that it wraps a window that must 93 // as an NSWindowController in that it wraps a window that must
91 // be shut down before our destructors are called. 94 // be shut down before our destructors are called.
92 StatusBubbleMac* statusBubble_; 95 StatusBubbleMac* statusBubble_;
93 96
94 scoped_ptr<BookmarkBubbleObserverCocoa> bookmarkBubbleObserver_; 97 scoped_ptr<BookmarkBubbleObserverCocoa> bookmarkBubbleObserver_;
95 BookmarkBubbleController* bookmarkBubbleController_; // Weak. 98 BookmarkBubbleController* bookmarkBubbleController_; // Weak.
96 BOOL initializing_; // YES while we are currently in initWithBrowser: 99 BOOL initializing_; // YES while we are currently in initWithBrowser:
97 BOOL ownsBrowser_; // Only ever NO when testing 100 BOOL ownsBrowser_; // Only ever NO when testing
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 step:(translate::TranslateStep)step 337 step:(translate::TranslateStep)step
335 errorType: 338 errorType:
336 (translate::TranslateErrors::Type)errorType; 339 (translate::TranslateErrors::Type)errorType;
337 340
338 // Dismiss the permission bubble 341 // Dismiss the permission bubble
339 - (void)dismissPermissionBubble; 342 - (void)dismissPermissionBubble;
340 343
341 // Shows or hides the docked web inspector depending on |contents|'s state. 344 // Shows or hides the docked web inspector depending on |contents|'s state.
342 - (void)updateDevToolsForContents:(content::WebContents*)contents; 345 - (void)updateDevToolsForContents:(content::WebContents*)contents;
343 346
347 // Displays the active sidebar linked to the |tab_contents| with
348 // |sidebar_contents| or hides sidebar UI if there's no sidebar contents.
349 - (void)updateSidebarForContents:(content::WebContents*)tab_contents
350 sidebar_contents:(content::WebContents*)sidebar_contents;
351
344 // Gets the current theme provider. 352 // Gets the current theme provider.
345 - (ui::ThemeProvider*)themeProvider; 353 - (ui::ThemeProvider*)themeProvider;
346 354
347 // Gets the window style. 355 // Gets the window style.
348 - (ThemedWindowStyle)themedWindowStyle; 356 - (ThemedWindowStyle)themedWindowStyle;
349 357
350 // Returns the position in window coordinates that the top left of a theme 358 // Returns the position in window coordinates that the top left of a theme
351 // image with |alignment| should be painted at. If the window does not have a 359 // image with |alignment| should be painted at. If the window does not have a
352 // tab strip, the offset for THEME_IMAGE_ALIGN_WITH_FRAME is always returned. 360 // tab strip, the offset for THEME_IMAGE_ALIGN_WITH_FRAME is always returned.
353 // The result of this method can be used in conjunction with 361 // The result of this method can be used in conjunction with
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 - (ExclusiveAccessBubbleWindowController*)exclusiveAccessBubbleWindowController; 612 - (ExclusiveAccessBubbleWindowController*)exclusiveAccessBubbleWindowController;
605 613
606 // Gets the rect, in window base coordinates, that the omnibox popup should be 614 // Gets the rect, in window base coordinates, that the omnibox popup should be
607 // positioned relative to. 615 // positioned relative to.
608 - (NSRect)omniboxPopupAnchorRect; 616 - (NSRect)omniboxPopupAnchorRect;
609 617
610 @end // @interface BrowserWindowController (TestingAPI) 618 @end // @interface BrowserWindowController (TestingAPI)
611 619
612 620
613 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 621 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698