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

Unified Diff: chrome/browser/ui/layout_constants.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/layout_constants.h ('k') | chrome/browser/ui/toolbar/toolbar_actions_bar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/layout_constants.cc
diff --git a/chrome/browser/ui/layout_constants.cc b/chrome/browser/ui/layout_constants.cc
index 786b47d621f1bbf923fae8b6dee3e517bb0cb563..086dc6aae332ce6dc503bddee4a53a7c8bacac6b 100644
--- a/chrome/browser/ui/layout_constants.cc
+++ b/chrome/browser/ui/layout_constants.cc
@@ -36,6 +36,8 @@ int GetLayoutConstant(LayoutConstant constant) {
const int kTabstripTabOverlap[] = {26, 16, 16};
const int kToolbarStandardSpacing[] = {3, 4, 8};
#endif
+ const int kToolbarActionsLeftPadding[] = {3, 4, 8};
+ const int kToolbarActionsRightPadding[] = {3, 4, 8};
const int kTabstripToolbarOverlap[] = {3, 0, 0};
const int kToolbarContentShadowHeight[] = {0, 0, 0};
const int kToolbarContentShadowHeightAsh[] = {2, 0, 0};
@@ -94,6 +96,10 @@ int GetLayoutConstant(LayoutConstant constant) {
return kToolbarLocationBarRightPadding[mode];
case TOOLBAR_STANDARD_SPACING:
return kToolbarStandardSpacing[mode];
+ case TOOLBAR_ACTIONS_LEFT_PADDING:
+ return kToolbarActionsLeftPadding[mode];
+ case TOOLBAR_ACTIONS_RIGHT_PADDING:
+ return kToolbarActionsRightPadding[mode];
}
NOTREACHED();
return 0;
« no previous file with comments | « chrome/browser/ui/layout_constants.h ('k') | chrome/browser/ui/toolbar/toolbar_actions_bar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698