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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 const Browser* browser() const; | 65 const Browser* browser() const; |
66 | 66 |
67 // Layout the tab strip region, returns the coordinate of the bottom of the | 67 // Layout the tab strip region, returns the coordinate of the bottom of the |
68 // TabStrip, for laying out subsequent controls. | 68 // TabStrip, for laying out subsequent controls. |
69 virtual int LayoutTabStripRegion(); | 69 virtual int LayoutTabStripRegion(); |
70 | 70 |
71 // Layout the following controls, starting at |top|, returns the coordinate | 71 // Layout the following controls, starting at |top|, returns the coordinate |
72 // of the bottom of the control, for laying out the next control. | 72 // of the bottom of the control, for laying out the next control. |
73 virtual int LayoutToolbar(int top); | 73 virtual int LayoutToolbar(int top); |
74 virtual int LayoutBookmarkAndInfoBars(int top); | 74 virtual int LayoutBookmarkAndInfoBars(int top); |
75 int LayoutBookmarkBarAtTop(int top); | 75 int LayoutBookmarkBar(int top); |
76 int LayoutInfoBar(int top); | 76 int LayoutInfoBar(int top); |
77 | 77 |
78 // If search mode is |MODE_NTP|, bookmark bar is detached and should be | |
79 // floating at bottom of content view in the y-direction, so lay it out as | |
80 // such. | |
81 void LayoutBookmarkBarAtBottom(); | |
82 | |
83 // Layout the WebContents container, between the coordinates |top| and | 78 // Layout the WebContents container, between the coordinates |top| and |
84 // |bottom|. | 79 // |bottom|. |
85 void LayoutTabContents(int top, int bottom); | 80 void LayoutTabContents(int top, int bottom); |
86 | 81 |
87 // Returns the top margin to adjust the contents_container_ by. This is used | 82 // Returns the top margin to adjust the contents_container_ by. This is used |
88 // to make the bookmark bar and contents_container_ overlap so that the | 83 // to make the bookmark bar and contents_container_ overlap so that the |
89 // preview contents hides the bookmark bar. | 84 // preview contents hides the bookmark bar. |
90 int GetTopMarginForActiveContent(); | 85 int GetTopMarginForActiveContent(); |
91 | 86 |
92 // Layout the Download Shelf, returns the coordinate of the top of the | 87 // Layout the Download Shelf, returns the coordinate of the top of the |
(...skipping 28 matching lines...) Expand all Loading... |
121 int find_bar_y_; | 116 int find_bar_y_; |
122 | 117 |
123 // The distance the constrained window is from the top of the window, | 118 // The distance the constrained window is from the top of the window, |
124 // in pixels. | 119 // in pixels. |
125 int constrained_window_top_y_; | 120 int constrained_window_top_y_; |
126 | 121 |
127 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); | 122 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); |
128 }; | 123 }; |
129 | 124 |
130 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ | 125 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ |
OLD | NEW |