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 "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 class SingleSplitView; | 31 class SingleSplitView; |
32 } | 32 } |
33 | 33 |
34 namespace web_modal { | 34 namespace web_modal { |
35 class WebContentsModalDialogHost; | 35 class WebContentsModalDialogHost; |
36 } | 36 } |
37 | 37 |
38 // The layout manager used in chrome browser. | 38 // The layout manager used in chrome browser. |
39 class BrowserViewLayout : public views::LayoutManager { | 39 class BrowserViewLayout : public views::LayoutManager { |
40 public: | 40 public: |
41 // The vertical overlap between the TabStrip and the Toolbar. | |
42 static const int kToolbarTabStripVerticalOverlap; | |
43 | |
44 BrowserViewLayout(); | 41 BrowserViewLayout(); |
45 ~BrowserViewLayout() override; | 42 ~BrowserViewLayout() override; |
46 | 43 |
47 // Sets all the views to be managed. Takes ownership of |delegate|. | 44 // Sets all the views to be managed. Takes ownership of |delegate|. |
48 // |browser_view| may be null in tests. | 45 // |browser_view| may be null in tests. |
49 void Init(BrowserViewLayoutDelegate* delegate, | 46 void Init(BrowserViewLayoutDelegate* delegate, |
50 Browser* browser, | 47 Browser* browser, |
51 views::ClientView* browser_view, | 48 views::ClientView* browser_view, |
52 views::View* top_container, | 49 views::View* top_container, |
53 TabStrip* tab_strip, | 50 TabStrip* tab_strip, |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 gfx::Rect latest_dialog_bounds_; | 160 gfx::Rect latest_dialog_bounds_; |
164 | 161 |
165 // The distance the web contents modal dialog is from the top of the window, | 162 // The distance the web contents modal dialog is from the top of the window, |
166 // in pixels. | 163 // in pixels. |
167 int web_contents_modal_dialog_top_y_; | 164 int web_contents_modal_dialog_top_y_; |
168 | 165 |
169 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); | 166 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); |
170 }; | 167 }; |
171 | 168 |
172 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ | 169 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ |
OLD | NEW |