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

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

Issue 1781593005: Fix regression in dragging location bar right edge (Mac). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md_extensions_buttons
Patch Set: Created 4 years, 9 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
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 #include "ui/gfx/geometry/size.h" 9 #include "ui/gfx/geometry/size.h"
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // Additional horizontal padding between the elements in the toolbar. 91 // Additional horizontal padding between the elements in the toolbar.
92 TOOLBAR_ELEMENT_PADDING, 92 TOOLBAR_ELEMENT_PADDING,
93 93
94 // Padding between the right edge of the location bar and the left edge of the 94 // Padding between the right edge of the location bar and the left edge of the
95 // app menu icon when the browser actions container is not present. 95 // app menu icon when the browser actions container is not present.
96 TOOLBAR_LOCATION_BAR_RIGHT_PADDING, 96 TOOLBAR_LOCATION_BAR_RIGHT_PADDING,
97 97
98 // The horizontal space between most items in the toolbar. 98 // The horizontal space between most items in the toolbar.
99 TOOLBAR_STANDARD_SPACING, 99 TOOLBAR_STANDARD_SPACING,
100
101 // Padding between the left edge of the toolbar actions container and its
102 // first item.
103 TOOLBAR_ACTIONS_LEFT_PADDING,
104
105 // Padding between the last item in the toolbar actions container and its
106 // right edge.
107 TOOLBAR_ACTIONS_RIGHT_PADDING
100 }; 108 };
101 109
102 enum LayoutInset { 110 enum LayoutInset {
103 // The padding between the avatar icon and the frame border on the left, the 111 // The padding between the avatar icon and the frame border on the left, the
104 // tabstrip on the right, and the toolbar on the bottom. 112 // tabstrip on the right, and the toolbar on the bottom.
105 AVATAR_ICON, 113 AVATAR_ICON,
106 114
107 // The padding above the top row and below the bottom row in the omnibox 115 // The padding above the top row and below the bottom row in the omnibox
108 // dropdown. 116 // dropdown.
109 OMNIBOX_DROPDOWN, 117 OMNIBOX_DROPDOWN,
(...skipping 21 matching lines...) Expand all
131 // The visible size of the new tab button; does not include any Fitts' Law 139 // The visible size of the new tab button; does not include any Fitts' Law
132 // extensions. 140 // extensions.
133 NEW_TAB_BUTTON, 141 NEW_TAB_BUTTON,
134 }; 142 };
135 143
136 int GetLayoutConstant(LayoutConstant constant); 144 int GetLayoutConstant(LayoutConstant constant);
137 gfx::Insets GetLayoutInsets(LayoutInset inset); 145 gfx::Insets GetLayoutInsets(LayoutInset inset);
138 gfx::Size GetLayoutSize(LayoutSize size); 146 gfx::Size GetLayoutSize(LayoutSize size);
139 147
140 #endif // CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_ 148 #endif // CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm ('k') | chrome/browser/ui/layout_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698