| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEWS_STANDARD_LAYOUT_H__ | 5 #ifndef VIEWS_STANDARD_LAYOUT_H_ |
| 6 #define CHROME_BROWSER_VIEWS_STANDARD_LAYOUT_H__ | 6 #define VIEWS_STANDARD_LAYOUT_H_ |
| 7 | 7 |
| 8 #include "views/grid_layout.h" | 8 #include "views/grid_layout.h" |
| 9 | 9 |
| 10 // | 10 // |
| 11 // This file contains some constants we use to implement our standard panel | 11 // This file contains some constants we use to implement our standard panel |
| 12 // layout. | 12 // layout. |
| 13 // see: spec 21/4 | 13 // see: spec 21/4 |
| 14 | 14 |
| 15 // Left or right margin. | 15 // Left or right margin. |
| 16 const int kPanelHorizMargin = 13; | 16 const int kPanelHorizMargin = 13; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 const int kRelatedButtonHSpacing = 6; | 67 const int kRelatedButtonHSpacing = 6; |
| 68 | 68 |
| 69 // Creates a GridLayout with kPanel*Margin insets. | 69 // Creates a GridLayout with kPanel*Margin insets. |
| 70 static views::GridLayout* CreatePanelGridLayout(views::View* host) { | 70 static views::GridLayout* CreatePanelGridLayout(views::View* host) { |
| 71 views::GridLayout* layout = new views::GridLayout(host); | 71 views::GridLayout* layout = new views::GridLayout(host); |
| 72 layout->SetInsets(kPanelVertMargin, kPanelHorizMargin, | 72 layout->SetInsets(kPanelVertMargin, kPanelHorizMargin, |
| 73 kPanelVertMargin, kPanelHorizMargin); | 73 kPanelVertMargin, kPanelHorizMargin); |
| 74 return layout; | 74 return layout; |
| 75 } | 75 } |
| 76 | 76 |
| 77 #endif // CHROME_BROWSER_VIEWS_STANDARD_LAYOUT_H__ | 77 #endif // VIEWS_STANDARD_LAYOUT_H_ |
| OLD | NEW |