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

Side by Side Diff: chrome/browser/ui/views/harmony/layout_delegate.h

Issue 2783023002: Use an InsetMetric instead of a constant for vector button padding. (Closed)
Patch Set: revert the stuff that got mixed in from another patch Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_HARMONY_LAYOUT_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_
7 7
8 #include "ui/views/layout/grid_layout.h" 8 #include "ui/views/layout/grid_layout.h"
9 9
10 namespace views { 10 namespace views {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // checkboxes below explanatory text/headings. 54 // checkboxes below explanatory text/headings.
55 SUBSECTION_HORIZONTAL_INDENT, 55 SUBSECTION_HORIZONTAL_INDENT,
56 // Horizontal spacing between controls that are logically unrelated. 56 // Horizontal spacing between controls that are logically unrelated.
57 UNRELATED_CONTROL_HORIZONTAL_SPACING, 57 UNRELATED_CONTROL_HORIZONTAL_SPACING,
58 // Larger horizontal spacing between unrelated controls. 58 // Larger horizontal spacing between unrelated controls.
59 UNRELATED_CONTROL_HORIZONTAL_SPACING_LARGE, 59 UNRELATED_CONTROL_HORIZONTAL_SPACING_LARGE,
60 // Vertical spacing between controls that are logically unrelated. 60 // Vertical spacing between controls that are logically unrelated.
61 UNRELATED_CONTROL_VERTICAL_SPACING, 61 UNRELATED_CONTROL_VERTICAL_SPACING,
62 // Larger vertical spacing between unrelated controls. 62 // Larger vertical spacing between unrelated controls.
63 UNRELATED_CONTROL_VERTICAL_SPACING_LARGE, 63 UNRELATED_CONTROL_VERTICAL_SPACING_LARGE,
64 // Padding to add to vector image buttons to increase their click and touch
65 // target size.
66 VECTOR_IMAGE_BUTTON_PADDING,
64 }; 67 };
65 68
66 enum class DialogWidth { 69 enum class DialogWidth {
67 SMALL, 70 SMALL,
68 MEDIUM, 71 MEDIUM,
69 LARGE, 72 LARGE,
70 }; 73 };
71 74
72 LayoutDelegate() {} 75 LayoutDelegate() {}
73 virtual ~LayoutDelegate() {} 76 virtual ~LayoutDelegate() {}
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 113
111 // Returns the class that maps views::style values (TextContext and TextStyle) 114 // Returns the class that maps views::style values (TextContext and TextStyle)
112 // to specific font properties (e.g. typeface, size, color, line spacing). 115 // to specific font properties (e.g. typeface, size, color, line spacing).
113 virtual const views::TypographyProvider& GetTypographyProvider() const; 116 virtual const views::TypographyProvider& GetTypographyProvider() const;
114 117
115 private: 118 private:
116 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); 119 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate);
117 }; 120 };
118 121
119 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ 122 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698