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

Side by Side Diff: chrome/browser/ui/layout_constants.h

Issue 1469423002: Modify toolbar action bar layout for material design (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more comments addressed Created 5 years 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_ 5 #ifndef CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_
6 #define CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_ 6 #define CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_
7 7
8 #include "ui/gfx/geometry/insets.h" 8 #include "ui/gfx/geometry/insets.h"
9 9
10 enum LayoutConstant { 10 enum LayoutConstant {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // Non-ash uses a rounded content area with no shadow in the assets. 82 // Non-ash uses a rounded content area with no shadow in the assets.
83 // Ash doesn't use a rounded content area and its top edge has an extra 83 // Ash doesn't use a rounded content area and its top edge has an extra
84 // shadow. 84 // shadow.
85 TOOLBAR_CONTENT_SHADOW_HEIGHT, 85 TOOLBAR_CONTENT_SHADOW_HEIGHT,
86 TOOLBAR_CONTENT_SHADOW_HEIGHT_ASH, 86 TOOLBAR_CONTENT_SHADOW_HEIGHT_ASH,
87 87
88 // Additional horizontal padding between the elements in the toolbar. 88 // Additional horizontal padding between the elements in the toolbar.
89 TOOLBAR_ELEMENT_PADDING, 89 TOOLBAR_ELEMENT_PADDING,
90 90
91 // Padding between the right-edge of the location bar and browser actions. 91 // Padding between the right edge of the location bar and the left edge of the
92 // app menu icon when the browser actions container is not present.
92 TOOLBAR_LOCATION_BAR_RIGHT_PADDING, 93 TOOLBAR_LOCATION_BAR_RIGHT_PADDING,
93 94
94 // The horizontal space between most items in the toolbar. 95 // The horizontal space between most items in the toolbar.
95 TOOLBAR_STANDARD_SPACING, 96 TOOLBAR_STANDARD_SPACING,
96 }; 97 };
97 98
98 enum LayoutInset { 99 enum LayoutInset {
99 // The padding between the avatar icon and the frame border on the left, the 100 // The padding between the avatar icon and the frame border on the left, the
100 // tabstrip on the right, and the toolbar on the bottom. 101 // tabstrip on the right, and the toolbar on the bottom.
101 AVATAR_ICON, 102 AVATAR_ICON,
(...skipping 18 matching lines...) Expand all
120 TOOLBAR, 121 TOOLBAR,
121 122
122 // The spacing between a ToolbarButton's image and its border. 123 // The spacing between a ToolbarButton's image and its border.
123 TOOLBAR_BUTTON, 124 TOOLBAR_BUTTON,
124 }; 125 };
125 126
126 int GetLayoutConstant(LayoutConstant constant); 127 int GetLayoutConstant(LayoutConstant constant);
127 gfx::Insets GetLayoutInsets(LayoutInset inset); 128 gfx::Insets GetLayoutInsets(LayoutInset inset);
128 129
129 #endif // CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_ 130 #endif // CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm ('k') | chrome/browser/ui/toolbar/toolbar_actions_bar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698