| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
| 11 #include "views/layout/layout_manager.h" | 11 #include "views/layout/layout_manager.h" |
| 12 | 12 |
| 13 class BaseTabStrip; | 13 class BaseTabStrip; |
| 14 class BookmarkBarView; | 14 class BookmarkBarView; |
| 15 class Browser; | 15 class Browser; |
| 16 class BrowserView; | 16 class BrowserView; |
| 17 class ContentsContainer; | 17 class ContentsContainer; |
| 18 class DownloadShelfView; | 18 class DownloadShelfView; |
| 19 class InfoBarContainer; |
| 19 class TabContentsContainer; | 20 class TabContentsContainer; |
| 20 class ToolbarView; | 21 class ToolbarView; |
| 21 | 22 |
| 22 namespace gfx { | 23 namespace gfx { |
| 23 class Point; | 24 class Point; |
| 24 class Size; | 25 class Size; |
| 25 } | 26 } |
| 26 | 27 |
| 27 namespace views { | 28 namespace views { |
| 28 class SingleSplitView; | 29 class SingleSplitView; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 } | 105 } |
| 105 const gfx::Rect& vertical_layout_rect() const { | 106 const gfx::Rect& vertical_layout_rect() const { |
| 106 return vertical_layout_rect_; | 107 return vertical_layout_rect_; |
| 107 } | 108 } |
| 108 | 109 |
| 109 // Child views that the layout manager manages. | 110 // Child views that the layout manager manages. |
| 110 BaseTabStrip* tabstrip_; | 111 BaseTabStrip* tabstrip_; |
| 111 ToolbarView* toolbar_; | 112 ToolbarView* toolbar_; |
| 112 views::SingleSplitView* contents_split_; | 113 views::SingleSplitView* contents_split_; |
| 113 ContentsContainer* contents_container_; | 114 ContentsContainer* contents_container_; |
| 114 views::View* infobar_container_; | 115 InfoBarContainer* infobar_container_; |
| 115 DownloadShelfView* download_shelf_; | 116 DownloadShelfView* download_shelf_; |
| 116 BookmarkBarView* active_bookmark_bar_; | 117 BookmarkBarView* active_bookmark_bar_; |
| 117 | 118 |
| 118 BrowserView* browser_view_; | 119 BrowserView* browser_view_; |
| 119 | 120 |
| 120 // The bounds within which the vertically-stacked contents of the BrowserView | 121 // The bounds within which the vertically-stacked contents of the BrowserView |
| 121 // should be laid out within. When the SideTabstrip is not visible, this is | 122 // should be laid out within. When the SideTabstrip is not visible, this is |
| 122 // just the local bounds of the BrowserView, otherwise it's the local bounds | 123 // just the local bounds of the BrowserView, otherwise it's the local bounds |
| 123 // of the BrowserView less the width of the SideTabstrip. | 124 // of the BrowserView less the width of the SideTabstrip. |
| 124 gfx::Rect vertical_layout_rect_; | 125 gfx::Rect vertical_layout_rect_; |
| 125 | 126 |
| 126 // The distance the FindBar is from the top of the window, in pixels. | 127 // The distance the FindBar is from the top of the window, in pixels. |
| 127 int find_bar_y_; | 128 int find_bar_y_; |
| 128 | 129 |
| 129 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); | 130 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ | 133 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ |
| OLD | NEW |