| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_PRIVATE_H_ | |
| 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_PRIVATE_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 | |
| 10 #include "mojo/services/public/cpp/view_manager/view.h" | |
| 11 | |
| 12 namespace mojo { | |
| 13 namespace services { | |
| 14 namespace view_manager { | |
| 15 | |
| 16 class ViewPrivate { | |
| 17 public: | |
| 18 explicit ViewPrivate(View* view); | |
| 19 ~ViewPrivate(); | |
| 20 | |
| 21 static View* LocalCreate(); | |
| 22 void LocalDestroy() { | |
| 23 view_->LocalDestroy(); | |
| 24 } | |
| 25 | |
| 26 void set_id(TransportViewId id) { view_->id_ = id; } | |
| 27 void set_node(ViewTreeNode* node) { view_->node_ = node; } | |
| 28 | |
| 29 ViewManager* view_manager() { return view_->manager_; } | |
| 30 void set_view_manager(ViewManager* manager) { | |
| 31 view_->manager_ = manager; | |
| 32 } | |
| 33 | |
| 34 ObserverList<ViewObserver>* observers() { return &view_->observers_; } | |
| 35 | |
| 36 private: | |
| 37 View* view_; | |
| 38 | |
| 39 DISALLOW_COPY_AND_ASSIGN(ViewPrivate); | |
| 40 }; | |
| 41 | |
| 42 } // namespace view_manager | |
| 43 } // namespace services | |
| 44 } // namespace mojo | |
| 45 | |
| 46 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_PRIVATE_H_ | |
| OLD | NEW |