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

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

Issue 2968713003: Harmonize the find in page dialog. (Closed)
Patch Set: Fix dumb error in insets code Created 3 years, 5 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_CHROME_LAYOUT_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_HARMONY_CHROME_LAYOUT_PROVIDER_H_
6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_CHROME_LAYOUT_PROVIDER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_CHROME_LAYOUT_PROVIDER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 13 matching lines...) Expand all
24 DISTANCE_RELATED_CONTROL_VERTICAL_SMALL, 24 DISTANCE_RELATED_CONTROL_VERTICAL_SMALL,
25 // Horizontal spacing between an item such as an icon or checkbox and a 25 // Horizontal spacing between an item such as an icon or checkbox and a
26 // label related to it. 26 // label related to it.
27 DISTANCE_RELATED_LABEL_HORIZONTAL, 27 DISTANCE_RELATED_LABEL_HORIZONTAL,
28 // Horizontal spacing between an item and the related label, in the context of 28 // Horizontal spacing between an item and the related label, in the context of
29 // a row of such items. E.g. the bookmarks bar. 29 // a row of such items. E.g. the bookmarks bar.
30 DISTANCE_RELATED_LABEL_HORIZONTAL_LIST, 30 DISTANCE_RELATED_LABEL_HORIZONTAL_LIST,
31 // Horizontal indent of a subsection relative to related items above, e.g. 31 // Horizontal indent of a subsection relative to related items above, e.g.
32 // checkboxes below explanatory text/headings. 32 // checkboxes below explanatory text/headings.
33 DISTANCE_SUBSECTION_HORIZONTAL_INDENT, 33 DISTANCE_SUBSECTION_HORIZONTAL_INDENT,
34 // Vertical margin for controls in a toast.
35 DISTANCE_TOAST_CONTROL_VERTICAL,
36 // Vertical spacing for labels in a toast.
Peter Kasting 2017/07/13 06:05:35 Nit: spacing -> margin
ananta 2017/07/13 06:27:42 Done.
37 DISTANCE_TOAST_LABEL_VERTICAL,
34 // Horizontal spacing between controls that are logically unrelated. 38 // Horizontal spacing between controls that are logically unrelated.
35 DISTANCE_UNRELATED_CONTROL_HORIZONTAL, 39 DISTANCE_UNRELATED_CONTROL_HORIZONTAL,
36 // Larger horizontal spacing between unrelated controls. 40 // Larger horizontal spacing between unrelated controls.
37 DISTANCE_UNRELATED_CONTROL_HORIZONTAL_LARGE, 41 DISTANCE_UNRELATED_CONTROL_HORIZONTAL_LARGE,
38 // Larger vertical spacing between unrelated controls. 42 // Larger vertical spacing between unrelated controls.
39 DISTANCE_UNRELATED_CONTROL_VERTICAL_LARGE, 43 DISTANCE_UNRELATED_CONTROL_VERTICAL_LARGE,
40 }; 44 };
41 45
42 class ChromeLayoutProvider : public views::LayoutProvider { 46 class ChromeLayoutProvider : public views::LayoutProvider {
43 public: 47 public:
(...skipping 29 matching lines...) Expand all
73 // types, e.g. by adding a new LayoutDistance value that means what you need. 77 // types, e.g. by adding a new LayoutDistance value that means what you need.
74 // 78 //
75 // TODO(pkasting): Fix callers and remove this. 79 // TODO(pkasting): Fix callers and remove this.
76 virtual bool IsHarmonyMode() const; 80 virtual bool IsHarmonyMode() const;
77 81
78 private: 82 private:
79 DISALLOW_COPY_AND_ASSIGN(ChromeLayoutProvider); 83 DISALLOW_COPY_AND_ASSIGN(ChromeLayoutProvider);
80 }; 84 };
81 85
82 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_CHROME_LAYOUT_PROVIDER_H_ 86 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_CHROME_LAYOUT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698