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

Unified Diff: ui/views/view_properties.h

Issue 2836313002: BoxLayout now suports per-view margins. (Closed)
Patch Set: Fixed BoxLayout for unit tests Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/view.h ('k') | ui/views/view_properties.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view_properties.h
diff --git a/ui/views/view_properties.h b/ui/views/view_properties.h
new file mode 100644
index 0000000000000000000000000000000000000000..2efc8f567d441c399ce8df2e7b167d26c129cbca
--- /dev/null
+++ b/ui/views/view_properties.h
@@ -0,0 +1,21 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_VIEWS_VIEW_PROPERTIES_H_
+#define UI_VIEWS_VIEW_PROPERTIES_H_
+
+#include "ui/base/class_property.h"
+#include "ui/gfx/geometry/insets.h"
+#include "ui/views/views_export.h"
+
+namespace views {
+
+// A property to store margins around the outer perimeter of the view. Margins
+// are outside the bounds of the view. This is used by various layout managers
+// to position views with the proper spacing between them.
+VIEWS_EXPORT extern const ui::ClassProperty<gfx::Insets*>* const kMarginsKey;
+
+} // namespace views
+
+#endif // UI_VIEWS_VIEW_PROPERTIES_H_
« no previous file with comments | « ui/views/view.h ('k') | ui/views/view_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698