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

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

Issue 2671443002: Make the extra padding around VectorIconButtons configurable. (Closed)
Patch Set: Make sure Harmony close buttons stay in place Created 3 years, 10 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 class LayoutDelegate { 10 class LayoutDelegate {
11 public: 11 public:
12 enum class Metric { 12 enum class Metric {
13 // Extra padding added on all sides of a button's content. This is only
14 // used for certain button types.
15 // TODO(pkasting): This should probably be touch-specific and needs to be
16 // considered more holistically.
17 BUTTON_PADDING,
13 // Horizontal or vertical margin between the edge of a dialog and a 18 // Horizontal or vertical margin between the edge of a dialog and a
14 // contained button. 19 // contained button.
15 DIALOG_BUTTON_MARGIN, 20 DIALOG_BUTTON_MARGIN,
16 // Horizontal or vertical margin between the edge of a panel and the 21 // Horizontal or vertical margin between the edge of a panel and the
17 // contained content. 22 // contained content.
18 PANEL_CONTENT_MARGIN, 23 PANEL_CONTENT_MARGIN,
19 // Horizontal spacing between buttons that are logically related, e.g. 24 // Horizontal spacing between buttons that are logically related, e.g.
20 // for a button set. 25 // for a button set.
21 RELATED_BUTTON_HORIZONTAL_SPACING, 26 RELATED_BUTTON_HORIZONTAL_SPACING,
22 // Horizontal spacing between other controls that are logically related. 27 // Horizontal spacing between other controls that are logically related.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 77
73 // Returns the preferred width in DIPs for a dialog of the specified |width|. 78 // Returns the preferred width in DIPs for a dialog of the specified |width|.
74 // May return 0 if the dialog has no preferred width. 79 // May return 0 if the dialog has no preferred width.
75 virtual int GetDialogPreferredWidth(DialogWidth width) const; 80 virtual int GetDialogPreferredWidth(DialogWidth width) const;
76 81
77 private: 82 private:
78 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); 83 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate);
79 }; 84 };
80 85
81 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ 86 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698