Chromium Code Reviews| Index: chrome/browser/ui/views/frame/browser_view.h |
| =================================================================== |
| --- chrome/browser/ui/views/frame/browser_view.h (revision 115251) |
| +++ chrome/browser/ui/views/frame/browser_view.h (working copy) |
| @@ -81,7 +81,6 @@ |
| // |
| class BrowserView : public BrowserWindow, |
| public BrowserWindowTesting, |
| - public content::NotificationObserver, |
| public TabStripModelObserver, |
| public ui::SimpleMenuModel::Delegate, |
| public views::WidgetDelegate, |
| @@ -142,9 +141,6 @@ |
| gfx::Point OffsetPointForToolbarBackgroundImage( |
| const gfx::Point& point) const; |
| - // Returns the width of the currently displayed sidebar or 0. |
| - int GetSidebarWidth() const; |
| - |
| // Accessor for the TabStrip. |
| AbstractTabStripView* tabstrip() const { return tabstrip_; } |
| @@ -346,14 +342,8 @@ |
| virtual BookmarkBarView* GetBookmarkBarView() const OVERRIDE; |
| virtual LocationBarView* GetLocationBarView() const OVERRIDE; |
| virtual views::View* GetTabContentsContainerView() const OVERRIDE; |
| - virtual views::View* GetSidebarContainerView() const OVERRIDE; |
| virtual ToolbarView* GetToolbarView() const OVERRIDE; |
| - // Overridden from content::NotificationObserver: |
| - virtual void Observe(int type, |
| - const content::NotificationSource& source, |
| - const content::NotificationDetails& details) OVERRIDE; |
| - |
| // Overridden from TabStripModelObserver: |
| virtual void TabDetachedAt(TabContentsWrapper* contents, int index) OVERRIDE; |
| virtual void TabDeactivated(TabContentsWrapper* contents) OVERRIDE; |
| @@ -500,12 +490,6 @@ |
| // |contents| can be NULL. |
| bool MaybeShowInfoBar(TabContentsWrapper* contents); |
| - // Updates sidebar UI according to the current tab and sidebar state. |
| - void UpdateSidebar(); |
| - // Displays active sidebar linked to the |tab_contents| or hides sidebar UI, |
| - // if there's no such sidebar. |
| - void UpdateSidebarForContents(TabContentsWrapper* tab_contents); |
| - |
| // Updated devtools window for given contents. |
| void UpdateDevToolsForContents(TabContentsWrapper* tab_contents); |
| @@ -593,17 +577,17 @@ |
| // |--------------------------------------------------------------| |
| // | Bookmarks (bookmark_bar_view_) * | |
| // |--------------------------------------------------------------| |
| - // |Page content (contents_) || | |
| - // |--------------------------------------|| Sidebar content | |
| - // || contents_container_ and/or ||| (sidebar_container_) | |
| - // || preview_container_ ||| | |
| - // || |(2) | |
| - // || ||| | |
| - // || ||| | |
| - // || ||| | |
| - // || ||| | |
| - // |--------------------------------------|| | |
| - // |==(3)=========================================================| |
| + // |Page content (contents_) || |
|
Devlin
2011/12/21 02:11:27
I think this is the proper new layout, but would a
|
| + // |-------------------------------------------------------------|| |
| + // || contents_container_ and/or ||| |
| + // || preview_container_ ||| |
| + // || ||| |
| + // || ||| |
| + // || ||| |
| + // || ||| |
| + // || ||| |
| + // |-------------------------------------------------------------|| |
| + // |==(2)=========================================================| |
| // | | |
| // | | |
| // | Debugger (devtools_container_) | |
| @@ -614,8 +598,7 @@ |
| // ---------------------------------------------------------------- |
| // |
| // (1) - tabstrip_, default position |
| - // (2) - sidebar_split_ |
| - // (3) - contents_split_ |
| + // (2) - contents_split_ |
| // |
| // * - The bookmark bar and info bar are swapped when on the new tab page. |
| // Additionally contents_ is positioned on top of the bookmark bar when |
| @@ -645,12 +628,6 @@ |
| // The InfoBarContainerView that contains InfoBars for the current tab. |
| InfoBarContainerView* infobar_container_; |
| - // The view that contains sidebar for the current tab. |
| - TabContentsContainer* sidebar_container_; |
| - |
| - // Split view containing the contents container and sidebar container. |
| - views::SingleSplitView* sidebar_split_; |
| - |
| // The view that contains the selected TabContents. |
| TabContentsContainer* contents_container_; |
| @@ -723,8 +700,6 @@ |
| UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; |
| - content::NotificationRegistrar registrar_; |
| - |
| // Used to measure the loading spinner animation rate. |
| base::TimeTicks last_animation_time_; |