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

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

Issue 1395193002: Fixes BrowserViewHostedAppTest.Layout when using MD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes BrowserViewHostedAppTest.Layout when using MD (post-LGTM comments) Created 5 years, 2 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/views/layout_constants.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/layout_constants.cc
diff --git a/chrome/browser/ui/views/layout_constants.cc b/chrome/browser/ui/views/layout_constants.cc
index 66ee3fc2f88dfc683d4c6bf6bd401432b774ce4c..ffc34eb658df9d7e761ebad0f5cc924b34b4ae5e 100644
--- a/chrome/browser/ui/views/layout_constants.cc
+++ b/chrome/browser/ui/views/layout_constants.cc
@@ -8,6 +8,7 @@
#include "ui/base/resource/material_design/material_design_controller.h"
int GetLayoutConstant(LayoutConstant constant) {
+ const int kFindBarVerticalOffset[] = {1, 6, 6};
const int kIconLabelViewInternalPadding[] = {3, 2, 2};
const int kIconLabelViewTrailingPadding[] = {2, 8, 8};
const int kLocationBarBubbleHorizontalPadding[] = {1, 5, 5};
@@ -35,6 +36,8 @@ int GetLayoutConstant(LayoutConstant constant) {
const int mode = ui::MaterialDesignController::GetMode();
switch (constant) {
+ case FIND_BAR_TOOLBAR_OVERLAP:
+ return kFindBarVerticalOffset[mode];
case ICON_LABEL_VIEW_INTERNAL_PADDING:
return kIconLabelViewInternalPadding[mode];
case ICON_LABEL_VIEW_TRAILING_PADDING:
« no previous file with comments | « chrome/browser/ui/views/layout_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698