| 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 "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // TabStrip, for laying out subsequent controls. | 67 // TabStrip, for laying out subsequent controls. |
| 68 virtual int LayoutTabStripRegion(); | 68 virtual int LayoutTabStripRegion(); |
| 69 | 69 |
| 70 // Layout the following controls, starting at |top|, returns the coordinate | 70 // Layout the following controls, starting at |top|, returns the coordinate |
| 71 // of the bottom of the control, for laying out the next control. | 71 // of the bottom of the control, for laying out the next control. |
| 72 virtual int LayoutToolbar(int top); | 72 virtual int LayoutToolbar(int top); |
| 73 virtual int LayoutBookmarkAndInfoBars(int top); | 73 virtual int LayoutBookmarkAndInfoBars(int top); |
| 74 int LayoutBookmarkBar(int top); | 74 int LayoutBookmarkBar(int top); |
| 75 int LayoutInfoBar(int top); | 75 int LayoutInfoBar(int top); |
| 76 | 76 |
| 77 // Updates |source|'s reserved contents rect by mapping BrowserView's | |
| 78 // |browser_reserved_rect| into |future_source_bounds| taking into | |
| 79 // account |source|'s |future_parent_offset| (offset is relative to | |
| 80 // browser_view_). | |
| 81 void UpdateReservedContentsRect(const gfx::Rect& browser_reserved_rect, | |
| 82 TabContentsContainer* source, | |
| 83 const gfx::Rect& future_source_bounds, | |
| 84 const gfx::Point& future_parent_offset); | |
| 85 | |
| 86 // Layout the TabContents container, between the coordinates |top| and | 77 // Layout the TabContents container, between the coordinates |top| and |
| 87 // |bottom|. | 78 // |bottom|. |
| 88 void LayoutTabContents(int top, int bottom); | 79 void LayoutTabContents(int top, int bottom); |
| 89 | 80 |
| 90 // Returns the top margin to adjust the contents_container_ by. This is used | 81 // Returns the top margin to adjust the contents_container_ by. This is used |
| 91 // to make the bookmark bar and contents_container_ overlap so that the | 82 // to make the bookmark bar and contents_container_ overlap so that the |
| 92 // preview contents hides the bookmark bar. | 83 // preview contents hides the bookmark bar. |
| 93 int GetTopMarginForActiveContent(); | 84 int GetTopMarginForActiveContent(); |
| 94 | 85 |
| 95 // Layout the Download Shelf, returns the coordinate of the top of the | 86 // Layout the Download Shelf, returns the coordinate of the top of the |
| (...skipping 27 matching lines...) Expand all Loading... |
| 123 // BrowserView. | 114 // BrowserView. |
| 124 gfx::Rect vertical_layout_rect_; | 115 gfx::Rect vertical_layout_rect_; |
| 125 | 116 |
| 126 // The distance the FindBar is from the top of the window, in pixels. | 117 // The distance the FindBar is from the top of the window, in pixels. |
| 127 int find_bar_y_; | 118 int find_bar_y_; |
| 128 | 119 |
| 129 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); | 120 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); |
| 130 }; | 121 }; |
| 131 | 122 |
| 132 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ | 123 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ |
| OLD | NEW |