Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: ui/views/layout/layout_constants.h

Issue 1673403002: Views - fix up layout of a couple dialogs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: msw review Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/website_settings/permissions_bubble_view.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ 5 #ifndef UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_
6 #define UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ 6 #define UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "ui/views/layout/grid_layout.h" 9 #include "ui/views/layout/grid_layout.h"
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 namespace views { 15 namespace views {
16 16
17 // Left or right margin. 17 // Left or right margin.
18 const int kPanelHorizMargin = 13; 18 const int kPanelHorizMargin = 13;
19 19
20 // Top or bottom margin. 20 // Top or bottom margin.
21 const int kPanelVertMargin = 13; 21 const int kPanelVertMargin = 13;
22 22
23 // If some UI has some sub UI. Indent horizontally by the following value.
24 const int kPanelHorizIndentation = 24;
25
26 // When several controls are aligned vertically, the baseline should be spaced 23 // When several controls are aligned vertically, the baseline should be spaced
27 // by the following number of pixels. 24 // by the following number of pixels.
28 const int kPanelVerticalSpacing = 32; 25 const int kPanelVerticalSpacing = 32;
29 26
30 // Vertical spacing between sub UI. 27 // Vertical spacing between sub UI.
31 const int kPanelSubVerticalSpacing = 24; 28 const int kPanelSubVerticalSpacing = 24;
32 29
33 // Vertical spacing between a label and some control. 30 // Vertical spacing between a label and some control.
34 const int kLabelToControlVerticalSpacing = 8; 31 const int kLabelToControlVerticalSpacing = 8;
35 32
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Horizontal alignment used for a control's introductory label in a GridLayout. 83 // Horizontal alignment used for a control's introductory label in a GridLayout.
87 #if defined(OS_MACOSX) 84 #if defined(OS_MACOSX)
88 const GridLayout::Alignment kControlLabelGridAlignment = GridLayout::TRAILING; 85 const GridLayout::Alignment kControlLabelGridAlignment = GridLayout::TRAILING;
89 #else 86 #else
90 const GridLayout::Alignment kControlLabelGridAlignment = GridLayout::LEADING; 87 const GridLayout::Alignment kControlLabelGridAlignment = GridLayout::LEADING;
91 #endif 88 #endif
92 89
93 } // namespace views 90 } // namespace views
94 91
95 #endif // UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ 92 #endif // UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/website_settings/permissions_bubble_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698