| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/views/frame/browser_view.h" | 9 #include "chrome/browser/views/frame/browser_view.h" |
| 10 #include "views/layout_manager.h" | 10 #include "views/layout_manager.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // Layout the following controls, starting at |top|, returns the coordinate | 51 // Layout the following controls, starting at |top|, returns the coordinate |
| 52 // of the bottom of the control, for laying out the next control. | 52 // of the bottom of the control, for laying out the next control. |
| 53 virtual int LayoutToolbar(int top); | 53 virtual int LayoutToolbar(int top); |
| 54 int LayoutBookmarkAndInfoBars(int top); | 54 int LayoutBookmarkAndInfoBars(int top); |
| 55 int LayoutBookmarkBar(int top); | 55 int LayoutBookmarkBar(int top); |
| 56 int LayoutInfoBar(int top); | 56 int LayoutInfoBar(int top); |
| 57 | 57 |
| 58 // Layout the TabContents container, between the coordinates |top| and | 58 // Layout the TabContents container, between the coordinates |top| and |
| 59 // |bottom|. | 59 // |bottom|. |
| 60 void LayoutTabContents(int top, int bottom); | 60 void LayoutTabContents(int top, int bottom); |
| 61 int LayoutExtensionAndDownloadShelves(); | |
| 62 | 61 |
| 63 // Layout the Download Shelf, returns the coordinate of the top of the | 62 // Layout the Download Shelf, returns the coordinate of the top of the |
| 64 // control, for laying out the previous control. | 63 // control, for laying out the previous control. |
| 65 int LayoutDownloadShelf(int bottom); | 64 int LayoutDownloadShelf(int bottom); |
| 66 | 65 |
| 67 // Layout the Extension Shelf, returns the coordinate of the top of the | |
| 68 // control, for laying out the previous control. | |
| 69 int LayoutExtensionShelf(int bottom); | |
| 70 | |
| 71 // See description above vertical_layout_rect_ for details. | 66 // See description above vertical_layout_rect_ for details. |
| 72 void set_vertical_layout_rect(const gfx::Rect& bounds) { | 67 void set_vertical_layout_rect(const gfx::Rect& bounds) { |
| 73 vertical_layout_rect_ = bounds; | 68 vertical_layout_rect_ = bounds; |
| 74 } | 69 } |
| 75 const gfx::Rect& vertical_layout_rect() const { | 70 const gfx::Rect& vertical_layout_rect() const { |
| 76 return vertical_layout_rect_; | 71 return vertical_layout_rect_; |
| 77 } | 72 } |
| 78 | 73 |
| 79 // Child views that the layout manager manages. | 74 // Child views that the layout manager manages. |
| 80 BaseTabStrip* tabstrip_; | 75 BaseTabStrip* tabstrip_; |
| 81 ToolbarView* toolbar_; | 76 ToolbarView* toolbar_; |
| 82 views::View* contents_split_; | 77 views::View* contents_split_; |
| 83 views::View* contents_container_; | 78 views::View* contents_container_; |
| 84 views::View* infobar_container_; | 79 views::View* infobar_container_; |
| 85 DownloadShelfView* download_shelf_; | 80 DownloadShelfView* download_shelf_; |
| 86 ExtensionShelf* extension_shelf_; | |
| 87 BookmarkBarView* active_bookmark_bar_; | 81 BookmarkBarView* active_bookmark_bar_; |
| 88 | 82 |
| 89 BrowserView* browser_view_; | 83 BrowserView* browser_view_; |
| 90 | 84 |
| 91 // The bounds within which the vertically-stacked contents of the BrowserView | 85 // The bounds within which the vertically-stacked contents of the BrowserView |
| 92 // should be laid out within. When the SideTabstrip is not visible, this is | 86 // should be laid out within. When the SideTabstrip is not visible, this is |
| 93 // just the local bounds of the BrowserView, otherwise it's the local bounds | 87 // just the local bounds of the BrowserView, otherwise it's the local bounds |
| 94 // of the BrowserView less the width of the SideTabstrip. | 88 // of the BrowserView less the width of the SideTabstrip. |
| 95 gfx::Rect vertical_layout_rect_; | 89 gfx::Rect vertical_layout_rect_; |
| 96 | 90 |
| 97 // The distance the FindBar is from the top of the window, in pixels. | 91 // The distance the FindBar is from the top of the window, in pixels. |
| 98 int find_bar_y_; | 92 int find_bar_y_; |
| 99 | 93 |
| 100 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); | 94 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); |
| 101 }; | 95 }; |
| 102 | 96 |
| 103 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ | 97 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ |
| 104 | 98 |
| OLD | NEW |