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

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

Issue 8588064: views: Move bubble, events, focus and layout to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « views/layout/grid_layout_unittest.cc ('k') | views/layout/layout_manager.h » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_LAYOUT_LAYOUT_CONSTANTS_H_ 5 #ifndef VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_
6 #define VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ 6 #define VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_
7 #pragma once 7 #pragma once
8 8
9 // This file contains some constants we use to implement our standard panel 9 #include "ui/views/layout/layout_constants.h"
10 // layout. 10 // TODO(tfarina): remove this file once all includes have been updated.
11 // see: spec 21/4
12
13 namespace views {
14
15 // Left or right margin.
16 const int kPanelHorizMargin = 13;
17
18 // Top or bottom margin.
19 const int kPanelVertMargin = 13;
20
21 // If some UI has some sub UI. Indent horizontally by the following value.
22 const int kPanelHorizIndentation = 24;
23
24 // When several controls are aligned vertically, the baseline should be spaced
25 // by the following number of pixels.
26 const int kPanelVerticalSpacing = 32;
27
28 // Vertical spacing between sub UI.
29 const int kPanelSubVerticalSpacing = 24;
30
31 // Vertical spacing between a label and some control.
32 const int kLabelToControlVerticalSpacing = 8;
33
34 // Small horizontal spacing between controls that are logically related.
35 const int kRelatedControlSmallHorizontalSpacing = 8;
36
37 // Horizontal spacing between controls that are logically related.
38 const int kRelatedControlHorizontalSpacing = 8;
39
40 // Vertical spacing between controls that are logically related.
41 const int kRelatedControlVerticalSpacing = 8;
42
43 // Small vertical spacing between controls that are logically related.
44 const int kRelatedControlSmallVerticalSpacing = 4;
45
46 // Horizontal spacing between controls that are logically unrelated.
47 const int kUnrelatedControlHorizontalSpacing = 12;
48
49 // Larger horizontal spacing between unrelated controls.
50 const int kUnrelatedControlLargeHorizontalSpacing = 20;
51
52 // Vertical spacing between controls that are logically unrelated.
53 const int kUnrelatedControlVerticalSpacing = 20;
54
55 // Larger vertical spacing between unrelated controls.
56 const int kUnrelatedControlLargeVerticalSpacing = 30;
57
58 // Vertical spacing between the edge of the window and the
59 // top or bottom of a button.
60 const int kButtonVEdgeMargin = 6;
61
62 // Vertical spacing between the edge of the window and the
63 // left or right of a button.
64 const int kButtonHEdgeMargin = 7;
65
66 // Horizontal spacing between buttons that are logically related.
67 const int kRelatedButtonHSpacing = 6;
68
69 } // namespace views
70 11
71 #endif // VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ 12 #endif // VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « views/layout/grid_layout_unittest.cc ('k') | views/layout/layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698