| 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 VIEWS_STANDARD_LAYOUT_H_ | 5 #ifndef VIEWS_STANDARD_LAYOUT_H_ |
| 6 #define 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 // |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 const int kButtonVEdgeMargin = 6; | 60 const int kButtonVEdgeMargin = 6; |
| 61 | 61 |
| 62 // Vertical spacing between the edge of the window and the | 62 // Vertical spacing between the edge of the window and the |
| 63 // left or right of a button. | 63 // left or right of a button. |
| 64 const int kButtonHEdgeMargin = 7; | 64 const int kButtonHEdgeMargin = 7; |
| 65 | 65 |
| 66 // Horizontal spacing between buttons that are logically related. | 66 // Horizontal spacing between buttons that are logically related. |
| 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 views::GridLayout* CreatePanelGridLayout(views::View* host); |
| 71 views::GridLayout* layout = new views::GridLayout(host); | |
| 72 layout->SetInsets(kPanelVertMargin, kPanelHorizMargin, | |
| 73 kPanelVertMargin, kPanelHorizMargin); | |
| 74 return layout; | |
| 75 } | |
| 76 | 71 |
| 77 #endif // VIEWS_STANDARD_LAYOUT_H_ | 72 #endif // VIEWS_STANDARD_LAYOUT_H_ |
| OLD | NEW |