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

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

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 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_VIEWS_LAYOUT_CONSTANTS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_
6 #define CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_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 {
11 // Horizontal padding applied between items of icon-label views.
12 ICON_LABEL_VIEW_INTERNAL_PADDING,
13
11 // Additional horizontal padding applied on the trailing edge of icon-label 14 // Additional horizontal padding applied on the trailing edge of icon-label
12 // views. 15 // views.
13 ICON_LABEL_VIEW_TRAILING_PADDING, 16 ICON_LABEL_VIEW_TRAILING_PADDING,
14 17
18 // The font size to use in the bubbles of the location bar, in pixels.
19 LOCATION_BAR_BUBBLE_FONT_PIXEL_SIZE,
20
15 // The horizontal space between the edge and a bubble. 21 // The horizontal space between the edge and a bubble.
16 LOCATION_BAR_BUBBLE_HORIZONTAL_PADDING, 22 LOCATION_BAR_BUBBLE_HORIZONTAL_PADDING,
17 23
18 // The additional vertical padding of a bubble. 24 // The additional vertical padding of a bubble.
19 LOCATION_BAR_BUBBLE_VERTICAL_PADDING, 25 LOCATION_BAR_BUBBLE_VERTICAL_PADDING,
20 26
21 // The height to be occupied by the LocationBar. For 27 // The height to be occupied by the LocationBar. For
22 // MaterialDesignController::NON_MATERIAL the height is determined from image 28 // MaterialDesignController::NON_MATERIAL the height is determined from image
23 // assets. 29 // assets.
24 LOCATION_BAR_HEIGHT, 30 LOCATION_BAR_HEIGHT,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 TOOLBAR, 103 TOOLBAR,
98 104
99 // The spacing between a ToolbarButton's image and its border. 105 // The spacing between a ToolbarButton's image and its border.
100 TOOLBAR_BUTTON, 106 TOOLBAR_BUTTON,
101 }; 107 };
102 108
103 int GetLayoutConstant(LayoutConstant constant); 109 int GetLayoutConstant(LayoutConstant constant);
104 gfx::Insets GetLayoutInsets(LayoutInset inset); 110 gfx::Insets GetLayoutInsets(LayoutInset inset);
105 111
106 #endif // CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_ 112 #endif // CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698