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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/browser_window_controller.h
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.h b/chrome/browser/ui/cocoa/browser_window_controller.h
index 514f4ee9518b9849836461fab46d74b965ea456a..1e76124b8deeacb92d19f07334c1812e6f86eafc 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.h
+++ b/chrome/browser/ui/cocoa/browser_window_controller.h
@@ -44,6 +44,7 @@ class LocationBarViewMac;
@class OverlayableContentsController;
class PermissionBubbleCocoa;
@class PresentationModeController;
+@class SidebarController;
class StatusBubbleMac;
@class TabStripController;
@class TabStripView;
@@ -85,6 +86,8 @@ class Command;
base::scoped_nsobject<BrowserWindowFullscreenTransition>
fullscreenTransition_;
+ base::scoped_nsobject<SidebarController> sidebarController_;
+
// Strong. StatusBubble is a special case of a strong reference that
// we don't wrap in a scoped_ptr because it is acting the same
// as an NSWindowController in that it wraps a window that must
@@ -341,6 +344,11 @@ class Command;
// Shows or hides the docked web inspector depending on |contents|'s state.
- (void)updateDevToolsForContents:(content::WebContents*)contents;
+// Displays the active sidebar linked to the |tab_contents| with
+// |sidebar_contents| or hides sidebar UI if there's no sidebar contents.
+- (void)updateSidebarForContents:(content::WebContents*)tab_contents
+ sidebar_contents:(content::WebContents*)sidebar_contents;
+
// Gets the current theme provider.
- (ui::ThemeProvider*)themeProvider;
« 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