| 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" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 Browser* browser(); | 62 Browser* browser(); |
| 63 const Browser* browser() const; | 63 const Browser* browser() const; |
| 64 | 64 |
| 65 // Layout the TabStrip, returns the coordinate of the bottom of the TabStrip, | 65 // Layout the TabStrip, returns the coordinate of the bottom of the TabStrip, |
| 66 // for laying out subsequent controls. | 66 // for laying out subsequent controls. |
| 67 virtual int LayoutTabStrip(); | 67 virtual int LayoutTabStrip(); |
| 68 | 68 |
| 69 // Layout the following controls, starting at |top|, returns the coordinate | 69 // Layout the following controls, starting at |top|, returns the coordinate |
| 70 // of the bottom of the control, for laying out the next control. | 70 // of the bottom of the control, for laying out the next control. |
| 71 virtual int LayoutToolbar(int top); | 71 virtual int LayoutToolbar(int top); |
| 72 int LayoutBookmarkAndInfoBars(int top); | 72 virtual int LayoutBookmarkAndInfoBars(int top); |
| 73 int LayoutBookmarkBar(int top); | 73 int LayoutBookmarkBar(int top); |
| 74 int LayoutInfoBar(int top); | 74 int LayoutInfoBar(int top); |
| 75 | 75 |
| 76 // Updates |source|'s reserved contents rect by mapping BrowserView's | 76 // Updates |source|'s reserved contents rect by mapping BrowserView's |
| 77 // |browser_reserved_rect| into |future_source_bounds| taking into | 77 // |browser_reserved_rect| into |future_source_bounds| taking into |
| 78 // account |source|'s |future_parent_offset| (offset is relative to | 78 // account |source|'s |future_parent_offset| (offset is relative to |
| 79 // browser_view_). | 79 // browser_view_). |
| 80 void UpdateReservedContentsRect(const gfx::Rect& browser_reserved_rect, | 80 void UpdateReservedContentsRect(const gfx::Rect& browser_reserved_rect, |
| 81 TabContentsContainer* source, | 81 TabContentsContainer* source, |
| 82 const gfx::Rect& future_source_bounds, | 82 const gfx::Rect& future_source_bounds, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // of the BrowserView less the width of the SideTabstrip. | 123 // of the BrowserView less the width of the SideTabstrip. |
| 124 gfx::Rect vertical_layout_rect_; | 124 gfx::Rect vertical_layout_rect_; |
| 125 | 125 |
| 126 // The distance the FindBar is from the top of the window, in pixels. | 126 // The distance the FindBar is from the top of the window, in pixels. |
| 127 int find_bar_y_; | 127 int find_bar_y_; |
| 128 | 128 |
| 129 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); | 129 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ | 132 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ |
| OLD | NEW |