| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 int64 GetLocalPropertyInternal(const void* key, int64 default_value) const; | 147 int64 GetLocalPropertyInternal(const void* key, int64 default_value) const; |
| 148 | 148 |
| 149 void LocalDestroy(); | 149 void LocalDestroy(); |
| 150 void LocalAddChild(View* child); | 150 void LocalAddChild(View* child); |
| 151 void LocalRemoveChild(View* child); | 151 void LocalRemoveChild(View* child); |
| 152 // Returns true if the order actually changed. | 152 // Returns true if the order actually changed. |
| 153 bool LocalReorder(View* relative, OrderDirection direction); | 153 bool LocalReorder(View* relative, OrderDirection direction); |
| 154 void LocalSetBounds(const Rect& old_bounds, const Rect& new_bounds); | 154 void LocalSetBounds(const Rect& old_bounds, const Rect& new_bounds); |
| 155 void LocalSetDrawn(bool drawn); | 155 void LocalSetDrawn(bool drawn); |
| 156 | 156 |
| 157 // Methods implementing visibility change notifications. See ViewObserver |
| 158 // for more details. |
| 159 void NotifyViewVisibilityChanged(View* target); |
| 160 // Notifies this view's observers. Returns false if |this| was deleted during |
| 161 // the call (by an observer), otherwise true. |
| 162 bool NotifyViewVisibilityChangedAtReceiver(View* target); |
| 163 // Notifies this view and its child hierarchy. Returns false if |this| was |
| 164 // deleted during the call (by an observer), otherwise true. |
| 165 bool NotifyViewVisibilityChangedDown(View* target); |
| 166 // Notifies this view and its parent hierarchy. |
| 167 void NotifyViewVisibilityChangedUp(View* target); |
| 168 |
| 157 ViewManager* manager_; | 169 ViewManager* manager_; |
| 158 Id id_; | 170 Id id_; |
| 159 View* parent_; | 171 View* parent_; |
| 160 Children children_; | 172 Children children_; |
| 161 | 173 |
| 162 ObserverList<ViewObserver> observers_; | 174 ObserverList<ViewObserver> observers_; |
| 163 | 175 |
| 164 Rect bounds_; | 176 Rect bounds_; |
| 165 | 177 |
| 166 bool visible_; | 178 bool visible_; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 181 }; | 193 }; |
| 182 | 194 |
| 183 std::map<const void*, Value> prop_map_; | 195 std::map<const void*, Value> prop_map_; |
| 184 | 196 |
| 185 DISALLOW_COPY_AND_ASSIGN(View); | 197 DISALLOW_COPY_AND_ASSIGN(View); |
| 186 }; | 198 }; |
| 187 | 199 |
| 188 } // namespace mojo | 200 } // namespace mojo |
| 189 | 201 |
| 190 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ | 202 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ |
| OLD | NEW |