| 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_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 // See description above vertical_layout_rect_ for details. | 99 // See description above vertical_layout_rect_ for details. |
| 100 void set_vertical_layout_rect(const gfx::Rect& bounds) { | 100 void set_vertical_layout_rect(const gfx::Rect& bounds) { |
| 101 vertical_layout_rect_ = bounds; | 101 vertical_layout_rect_ = bounds; |
| 102 } | 102 } |
| 103 const gfx::Rect& vertical_layout_rect() const { | 103 const gfx::Rect& vertical_layout_rect() const { |
| 104 return vertical_layout_rect_; | 104 return vertical_layout_rect_; |
| 105 } | 105 } |
| 106 | 106 |
| 107 // Child views that the layout manager manages. | 107 // Child views that the layout manager manages. |
| 108 TabStrip* tabstrip_; | |
| 109 ToolbarView* toolbar_; | |
| 110 views::SingleSplitView* contents_split_; | 108 views::SingleSplitView* contents_split_; |
| 111 ContentsContainer* contents_container_; | 109 ContentsContainer* contents_container_; |
| 112 views::View* infobar_container_; | |
| 113 DownloadShelfView* download_shelf_; | 110 DownloadShelfView* download_shelf_; |
| 114 BookmarkBarView* active_bookmark_bar_; | 111 BookmarkBarView* active_bookmark_bar_; |
| 115 | 112 |
| 116 BrowserView* browser_view_; | 113 BrowserView* browser_view_; |
| 117 | 114 |
| 118 // The bounds within which the vertically-stacked contents of the BrowserView | 115 // The bounds within which the vertically-stacked contents of the BrowserView |
| 119 // should be laid out within. This is just the local bounds of the | 116 // should be laid out within. This is just the local bounds of the |
| 120 // BrowserView. | 117 // BrowserView. |
| 121 gfx::Rect vertical_layout_rect_; | 118 gfx::Rect vertical_layout_rect_; |
| 122 | 119 |
| 123 // The distance the FindBar is from the top of the window, in pixels. | 120 // The distance the FindBar is from the top of the window, in pixels. |
| 124 int find_bar_y_; | 121 int find_bar_y_; |
| 125 | 122 |
| 126 // The distance the constrained window is from the top of the window, | 123 // The distance the constrained window is from the top of the window, |
| 127 // in pixels. | 124 // in pixels. |
| 128 int constrained_window_top_y_; | 125 int constrained_window_top_y_; |
| 129 | 126 |
| 130 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); | 127 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); |
| 131 }; | 128 }; |
| 132 | 129 |
| 133 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ | 130 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ |
| OLD | NEW |