diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-26 22:46:36 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-26 22:46:36 +0000 |
commit | 5d8054efc1e1f26ea806e46869df5e0a84e41a4c (patch) | |
tree | d9ea6ee9f36f2c49fbc2790a8fbab6e46223b51d /views/layout | |
parent | 9b5f60667cb4674740ced33201a28acea5ae1183 (diff) | |
download | chromium_src-5d8054efc1e1f26ea806e46869df5e0a84e41a4c.zip chromium_src-5d8054efc1e1f26ea806e46869df5e0a84e41a4c.tar.gz chromium_src-5d8054efc1e1f26ea806e46869df5e0a84e41a4c.tar.bz2 |
views: Move standard_layout.h into the layout directory.
Also rename it to layout_constants, as now this file just contains constants.
The grid_layout files will be moved later.
BUG=None
TEST=trybots
Review URL: http://codereview.chromium.org/6257017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72709 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/layout')
-rw-r--r-- | views/layout/layout_constants.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/views/layout/layout_constants.h b/views/layout/layout_constants.h new file mode 100644 index 0000000..31570b0 --- /dev/null +++ b/views/layout/layout_constants.h @@ -0,0 +1,67 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ +#define VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ +#pragma once + +// This file contains some constants we use to implement our standard panel +// layout. +// see: spec 21/4 + +// Left or right margin. +const int kPanelHorizMargin = 13; + +// Top or bottom margin. +const int kPanelVertMargin = 13; + +// If some UI has some sub UI. Indent horizontally by the following value. +const int kPanelHorizIndentation = 24; + +// When several controls are aligned vertically, the baseline should be spaced +// by the following number of pixels. +const int kPanelVerticalSpacing = 32; + +// Vertical spacing between sub UI. +const int kPanelSubVerticalSpacing = 24; + +// Vertical spacing between a label and some control. +const int kLabelToControlVerticalSpacing = 8; + +// Vertical spacing between controls that are logically related. +const int kRelatedControlVerticalSpacing = 8; + +// Small vertical spacing between controls that are logically related. +const int kRelatedControlSmallVerticalSpacing = 4; + +// Vertical spacing between controls that are logically unrelated. +const int kUnrelatedControlVerticalSpacing = 20; + +// Larger vertical spacing between unrelated controls. +const int kUnrelatedControlLargeVerticalSpacing = 30; + +// Small horizontal spacing between controls that are logically related. +const int kRelatedControlSmallHorizontalSpacing = 8; + +// Horizontal spacing between controls that are logically related. +const int kRelatedControlHorizontalSpacing = 8; + +// Horizontal spacing between controls that are logically unrelated. +const int kUnrelatedControlHorizontalSpacing = 12; + +// Larger horizontal spacing between unrelated controls. +const int kUnrelatedControlLargeHorizontalSpacing = 20; + +// Vertical spacing between the edge of the window and the +// top or bottom of a button. +const int kButtonVEdgeMargin = 6; + +// Vertical spacing between the edge of the window and the +// left or right of a button. +const int kButtonHEdgeMargin = 7; + +// Horizontal spacing between buttons that are logically related. +const int kRelatedButtonHSpacing = 6; + +#endif // VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ |