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

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

Issue 2654123004: harmony: partly harmonize permissions bubble (Closed)
Patch Set: CHECKBOX_INDENT -> SUBSECTION_INDENT 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 {
(...skipping 12 matching lines...) Expand all
23 // Vertical spacing between controls that are logically unrelated. 23 // Vertical spacing between controls that are logically unrelated.
24 UNRELATED_CONTROL_VERTICAL_SPACING, 24 UNRELATED_CONTROL_VERTICAL_SPACING,
25 // Larger vertical spacing between unrelated controls. 25 // Larger vertical spacing between unrelated controls.
26 UNRELATED_CONTROL_LARGE_VERTICAL_SPACING, 26 UNRELATED_CONTROL_LARGE_VERTICAL_SPACING,
27 // Vertical spacing between the edge of the window and the 27 // Vertical spacing between the edge of the window and the
28 // top or bottom of a button. 28 // top or bottom of a button.
29 BUTTON_HEDGE_MARGIN_NEW, 29 BUTTON_HEDGE_MARGIN_NEW,
30 // Horizontal spacing between the edge of the window and the 30 // Horizontal spacing between the edge of the window and the
31 // left or right of a button. 31 // left or right of a button.
32 BUTTON_VEDGE_MARGIN_NEW, 32 BUTTON_VEDGE_MARGIN_NEW,
33 // Indent of checkboxes relative to related text. 33 // Indent of subsections (related checkboxes or similar) relative to
34 CHECKBOX_INDENT, 34 // related text.
35 SUBSECTION_INDENT,
Peter Kasting 2017/02/01 02:20:20 I liked your use of SUBSECTION here, so I adopted
36 // Horizontal spacing between a control and its label.
37 ITEM_LABEL_SPACING,
Peter Kasting 2017/02/01 02:20:20 I also found a need for this constant locally, so
35 }; 38 };
36 39
37 enum class DialogWidthType { 40 enum class DialogWidthType {
38 SMALL, 41 SMALL,
39 MEDIUM, 42 MEDIUM,
40 LARGE, 43 LARGE,
41 }; 44 };
42 45
43 LayoutDelegate() {} 46 LayoutDelegate() {}
44 virtual ~LayoutDelegate() {} 47 virtual ~LayoutDelegate() {}
(...skipping 28 matching lines...) Expand all
73 76
74 // Returns the preferred width for a dialog of the specified width type. If 77 // Returns the preferred width for a dialog of the specified width type. If
75 // there is no preferred width for |type|, returns 0. 78 // there is no preferred width for |type|, returns 0.
76 virtual int GetDialogPreferredWidth(DialogWidthType type) const; 79 virtual int GetDialogPreferredWidth(DialogWidthType type) const;
77 80
78 private: 81 private:
79 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); 82 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate);
80 }; 83 };
81 84
82 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ 85 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/harmony/harmony_layout_delegate.cc ('k') | chrome/browser/ui/views/harmony/layout_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698