| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |