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

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

Issue 2934503002: Remove references to ui/views/layout/layout_constants.h (Closed)
Patch Set: Created 3 years, 6 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 16 matching lines...) Expand all
27 // Horizontal spacing between an item such as an icon or checkbox and a 27 // Horizontal spacing between an item such as an icon or checkbox and a
28 // label related to it. 28 // label related to it.
29 DISTANCE_RELATED_LABEL_HORIZONTAL, 29 DISTANCE_RELATED_LABEL_HORIZONTAL,
30 // Horizontal indent of a subsection relative to related items above, e.g. 30 // Horizontal indent of a subsection relative to related items above, e.g.
31 // checkboxes below explanatory text/headings. 31 // checkboxes below explanatory text/headings.
32 DISTANCE_SUBSECTION_HORIZONTAL_INDENT, 32 DISTANCE_SUBSECTION_HORIZONTAL_INDENT,
33 // Horizontal spacing between controls that are logically unrelated. 33 // Horizontal spacing between controls that are logically unrelated.
34 DISTANCE_UNRELATED_CONTROL_HORIZONTAL, 34 DISTANCE_UNRELATED_CONTROL_HORIZONTAL,
35 // Larger horizontal spacing between unrelated controls. 35 // Larger horizontal spacing between unrelated controls.
36 DISTANCE_UNRELATED_CONTROL_HORIZONTAL_LARGE, 36 DISTANCE_UNRELATED_CONTROL_HORIZONTAL_LARGE,
37 // Vertical spacing between controls that are logically unrelated.
38 DISTANCE_UNRELATED_CONTROL_VERTICAL,
39 // Larger vertical spacing between unrelated controls. 37 // Larger vertical spacing between unrelated controls.
40 DISTANCE_UNRELATED_CONTROL_VERTICAL_LARGE, 38 DISTANCE_UNRELATED_CONTROL_VERTICAL_LARGE,
41 }; 39 };
42 40
43 class ChromeLayoutProvider : public views::LayoutProvider { 41 class ChromeLayoutProvider : public views::LayoutProvider {
44 public: 42 public:
45 ChromeLayoutProvider() {} 43 ChromeLayoutProvider() {}
46 ~ChromeLayoutProvider() override {} 44 ~ChromeLayoutProvider() override {}
47 45
48 static ChromeLayoutProvider* Get(); 46 static ChromeLayoutProvider* Get();
(...skipping 25 matching lines...) Expand all
74 // types, e.g. by adding a new LayoutDistance value that means what you need. 72 // types, e.g. by adding a new LayoutDistance value that means what you need.
75 // 73 //
76 // TODO(pkasting): Fix callers and remove this. 74 // TODO(pkasting): Fix callers and remove this.
77 virtual bool IsHarmonyMode() const; 75 virtual bool IsHarmonyMode() const;
78 76
79 private: 77 private:
80 DISALLOW_COPY_AND_ASSIGN(ChromeLayoutProvider); 78 DISALLOW_COPY_AND_ASSIGN(ChromeLayoutProvider);
81 }; 79 };
82 80
83 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_CHROME_LAYOUT_PROVIDER_H_ 81 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_CHROME_LAYOUT_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/chooser_dialog_view.cc ('k') | chrome/browser/ui/views/harmony/chrome_layout_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698