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

Side by Side Diff: chrome/browser/views/standard_layout.h

Issue 113143: Move color_utils, text_elider, drag_utils, accessibility_types, standard_layo... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/views/shelf_item_dialog.cc ('k') | chrome/browser/views/status_bubble_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_VIEWS_STANDARD_LAYOUT_H__
6 #define CHROME_BROWSER_VIEWS_STANDARD_LAYOUT_H__
7
8 #include "views/grid_layout.h"
9
10 //
11 // This file contains some constants we use to implement our standard panel
12 // layout.
13 // see: spec 21/4
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 // Vertical spacing between controls that are logically related.
35 const int kRelatedControlVerticalSpacing = 8;
36
37 // Small vertical spacing between controls that are logically related.
38 const int kRelatedControlSmallVerticalSpacing = 4;
39
40 // Vertical spacing between controls that are logically unrelated.
41 const int kUnrelatedControlVerticalSpacing = 20;
42
43 // Larger vertical spacing between unrelated controls.
44 const int kUnrelatedControlLargeVerticalSpacing = 30;
45
46 // Small horizontal spacing between controls that are logically related.
47 const int kRelatedControlSmallHorizontalSpacing = 8;
48
49 // Horizontal spacing between controls that are logically related.
50 const int kRelatedControlHorizontalSpacing = 8;
51
52 // Horizontal spacing between controls that are logically unrelated.
53 const int kUnrelatedControlHorizontalSpacing = 12;
54
55 // Larger horizontal spacing between unrelated controls.
56 const int kUnrelatedControlLargeHorizontalSpacing = 20;
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 // Creates a GridLayout with kPanel*Margin insets.
70 static 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
77 #endif // CHROME_BROWSER_VIEWS_STANDARD_LAYOUT_H__
OLDNEW
« no previous file with comments | « chrome/browser/views/shelf_item_dialog.cc ('k') | chrome/browser/views/status_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698