| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ | 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ |
| 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ | 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 bool IsDrawn() const; | 94 bool IsDrawn() const; |
| 95 | 95 |
| 96 // Observation. | 96 // Observation. |
| 97 void AddObserver(ViewObserver* observer); | 97 void AddObserver(ViewObserver* observer); |
| 98 void RemoveObserver(ViewObserver* observer); | 98 void RemoveObserver(ViewObserver* observer); |
| 99 | 99 |
| 100 // Tree. | 100 // Tree. |
| 101 View* parent() { return parent_; } | 101 View* parent() { return parent_; } |
| 102 const View* parent() const { return parent_; } | 102 const View* parent() const { return parent_; } |
| 103 const Children& children() const { return children_; } | 103 const Children& children() const { return children_; } |
| 104 const View* GetRoot() const; |
| 104 | 105 |
| 105 void AddChild(View* child); | 106 void AddChild(View* child); |
| 106 void RemoveChild(View* child); | 107 void RemoveChild(View* child); |
| 107 | 108 |
| 108 void Reorder(View* relative, OrderDirection direction); | 109 void Reorder(View* relative, OrderDirection direction); |
| 109 void MoveToFront(); | 110 void MoveToFront(); |
| 110 void MoveToBack(); | 111 void MoveToBack(); |
| 111 | 112 |
| 112 bool Contains(View* child) const; | 113 bool Contains(View* child) const; |
| 113 | 114 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 }; | 179 }; |
| 179 | 180 |
| 180 std::map<const void*, Value> prop_map_; | 181 std::map<const void*, Value> prop_map_; |
| 181 | 182 |
| 182 DISALLOW_COPY_AND_ASSIGN(View); | 183 DISALLOW_COPY_AND_ASSIGN(View); |
| 183 }; | 184 }; |
| 184 | 185 |
| 185 } // namespace mojo | 186 } // namespace mojo |
| 186 | 187 |
| 187 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ | 188 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ |
| OLD | NEW |