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

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

Issue 1378023003: Update Location Bar Bubbles Layout for Material Design (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 66e1a1f001725d59f0f51eece47c6b78ccd37770..2414abae9e20c21b95f81408e5aef3708f30d8a3 100644
--- a/chrome/browser/ui/views/layout_constants.cc
+++ b/chrome/browser/ui/views/layout_constants.cc
@@ -8,9 +8,10 @@
#include "ui/base/resource/material_design/material_design_controller.h"
int GetLayoutConstant(LayoutConstant constant) {
+ const int kIconLabelViewInternalPadding[] = {3, 2, 2};
const int kIconLabelViewTrailingPadding[] = {2, 8, 8};
const int kLocationBarBubbleHorizontalPadding[] = {1, 5, 5};
- const int kLocationBarBubbleVerticalPadding[] = {1, 3, 3};
+ const int kLocationBarBubbleVerticalPadding[] = {1, 5, 5};
const int kLocationBarHeight[] = {0, 28, 32};
const int kLocationBarHorizontalPadding[] = {3, 6, 6};
const int kLocationBarVerticalPadding[] = {2, 2, 2};
@@ -35,6 +36,8 @@ int GetLayoutConstant(LayoutConstant constant) {
const int mode = ui::MaterialDesignController::GetMode();
switch (constant) {
+ case ICON_LABEL_VIEW_INTERNAL_PADDING:
+ return kIconLabelViewInternalPadding[mode];
case ICON_LABEL_VIEW_TRAILING_PADDING:
return kIconLabelViewTrailingPadding[mode];
case LOCATION_BAR_BUBBLE_HORIZONTAL_PADDING:
« no previous file with comments | « chrome/browser/ui/views/layout_constants.h ('k') | chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698