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

Side by Side Diff: ui/views/layout/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
« no previous file with comments | « ui/views/examples/dialog_example.cc ('k') | ui/views/layout/layout_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 UI_VIEWS_LAYOUT_LAYOUT_PROVIDER_H_ 5 #ifndef UI_VIEWS_LAYOUT_LAYOUT_PROVIDER_H_
6 #define UI_VIEWS_LAYOUT_LAYOUT_PROVIDER_H_ 6 #define UI_VIEWS_LAYOUT_LAYOUT_PROVIDER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/gfx/geometry/insets.h" 9 #include "ui/gfx/geometry/insets.h"
10 #include "ui/views/style/typography_provider.h" 10 #include "ui/views/style/typography_provider.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // Margin on the top and bottom of the contents of a dialog. 71 // Margin on the top and bottom of the contents of a dialog.
72 DISTANCE_DIALOG_CONTENTS_VERTICAL_MARGIN, 72 DISTANCE_DIALOG_CONTENTS_VERTICAL_MARGIN,
73 // The spacing between a pair of related horizontal buttons, used for 73 // The spacing between a pair of related horizontal buttons, used for
74 // dialog layout. 74 // dialog layout.
75 DISTANCE_RELATED_BUTTON_HORIZONTAL, 75 DISTANCE_RELATED_BUTTON_HORIZONTAL,
76 // Horizontal spacing between controls that are logically related. 76 // Horizontal spacing between controls that are logically related.
77 DISTANCE_RELATED_CONTROL_HORIZONTAL, 77 DISTANCE_RELATED_CONTROL_HORIZONTAL,
78 // The spacing between a pair of related vertical controls, used for 78 // The spacing between a pair of related vertical controls, used for
79 // dialog layout. 79 // dialog layout.
80 DISTANCE_RELATED_CONTROL_VERTICAL, 80 DISTANCE_RELATED_CONTROL_VERTICAL,
81 // Vertical spacing between controls that are logically unrelated.
82 DISTANCE_UNRELATED_CONTROL_VERTICAL,
81 83
82 // Embedders must start DistanceMetric enum values from here. 84 // Embedders must start DistanceMetric enum values from here.
83 VIEWS_DISTANCE_END 85 VIEWS_DISTANCE_END
84 }; 86 };
85 87
86 class VIEWS_EXPORT LayoutProvider { 88 class VIEWS_EXPORT LayoutProvider {
87 public: 89 public:
88 LayoutProvider(); 90 LayoutProvider();
89 virtual ~LayoutProvider(); 91 virtual ~LayoutProvider();
90 92
(...skipping 17 matching lines...) Expand all
108 110
109 private: 111 private:
110 DefaultTypographyProvider typography_provider_; 112 DefaultTypographyProvider typography_provider_;
111 113
112 DISALLOW_COPY_AND_ASSIGN(LayoutProvider); 114 DISALLOW_COPY_AND_ASSIGN(LayoutProvider);
113 }; 115 };
114 116
115 } // namespace views 117 } // namespace views
116 118
117 #endif // UI_VIEWS_LAYOUT_LAYOUT_PROVIDER_H_ 119 #endif // UI_VIEWS_LAYOUT_LAYOUT_PROVIDER_H_
OLDNEW
« no previous file with comments | « ui/views/examples/dialog_example.cc ('k') | ui/views/layout/layout_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698