| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, |
| 83 const gfx::Point& future_parent_offset); | 83 const gfx::Point& future_parent_offset); |
| 84 | 84 |
| 85 // Layout the TabContents container, between the coordinates |top| and | 85 // Layout the TabContents container, between the coordinates |top| and |
| 86 // |bottom|. | 86 // |bottom|. |
| 87 void LayoutTabContents(int top, int bottom); | 87 void LayoutTabContents(int top, int bottom, int active_top_margin); |
| 88 | 88 |
| 89 // Returns the top margin to adjust the contents_container_ by. This is used | 89 // Returns the top margin to adjust the contents_container_ by. This is used |
| 90 // to make the bookmark bar and contents_container_ overlap so that the | 90 // to make the bookmark bar and contents_container_ overlap so that the |
| 91 // preview contents hides the bookmark bar. | 91 // preview contents hides the bookmark bar. |
| 92 int GetTopMarginForActiveContent(); | 92 int GetTopMarginForActiveContent(); |
| 93 | 93 |
| 94 // Layout the Download Shelf, returns the coordinate of the top of the | 94 // Layout the Download Shelf, returns the coordinate of the top of the |
| 95 // control, for laying out the previous control. | 95 // control, for laying out the previous control. |
| 96 int LayoutDownloadShelf(int bottom); | 96 int LayoutDownloadShelf(int bottom); |
| 97 | 97 |
| (...skipping 25 matching lines...) Expand all 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 |