Index: ui/views/view.h |
diff --git a/ui/views/view.h b/ui/views/view.h |
index 572d3a55f0487c33d11ef164b203bcb513cce133..518a15eeb2f356164cf855abd293ef19db36eb90 100644 |
--- a/ui/views/view.h |
+++ b/ui/views/view.h |
@@ -36,6 +36,7 @@ |
#include "ui/gfx/geometry/vector2d.h" |
#include "ui/gfx/native_widget_types.h" |
#include "ui/gfx/path.h" |
+#include "ui/views/attributes.h" |
#include "ui/views/view_targeter.h" |
#include "ui/views/views_export.h" |
@@ -401,6 +402,9 @@ class VIEWS_EXPORT View : public ui::LayerDelegate, |
// Attributes ---------------------------------------------------------------- |
+ // Returns this view's custom attribute container |
+ AttributeContainer& attributes() { return attributes_; } |
+ |
// The view class name. |
static const char kViewClassName[]; |
@@ -1466,6 +1470,11 @@ class VIEWS_EXPORT View : public ui::LayerDelegate, |
// Whether this view is enabled. |
bool enabled_; |
+ // Container which holds any number of custom attributes used for various |
+ // reasons, such as custom alignment and anchoring of the control within |
+ // its parent. |
+ AttributeContainer attributes_; |
+ |
// When this flag is on, a View receives a mouse-enter and mouse-leave event |
// even if a descendant View is the event-recipient for the real mouse |
// events. When this flag is turned on, and mouse moves from outside of the |