| 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_LIB_NODE_PRIVATE_H_ | 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_NODE_PRIVATE_H_ |
| 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_NODE_PRIVATE_H_ | 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_NODE_PRIVATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 #include "mojo/services/public/cpp/view_manager/node.h" | 10 #include "mojo/services/public/cpp/view_manager/node.h" |
| 11 | 11 |
| 12 namespace mojo { | 12 namespace mojo { |
| 13 namespace view_manager { | |
| 14 | 13 |
| 15 class NodePrivate { | 14 class NodePrivate { |
| 16 public: | 15 public: |
| 17 explicit NodePrivate(Node* node); | 16 explicit NodePrivate(Node* node); |
| 18 ~NodePrivate(); | 17 ~NodePrivate(); |
| 19 | 18 |
| 20 static Node* LocalCreate(); | 19 static Node* LocalCreate(); |
| 21 | 20 |
| 22 ObserverList<NodeObserver>* observers() { return &node_->observers_; } | 21 ObserverList<NodeObserver>* observers() { return &node_->observers_; } |
| 23 | 22 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 49 const gfx::Rect& new_bounds) { | 48 const gfx::Rect& new_bounds) { |
| 50 node_->LocalSetBounds(old_bounds, new_bounds); | 49 node_->LocalSetBounds(old_bounds, new_bounds); |
| 51 } | 50 } |
| 52 | 51 |
| 53 private: | 52 private: |
| 54 Node* node_; | 53 Node* node_; |
| 55 | 54 |
| 56 DISALLOW_COPY_AND_ASSIGN(NodePrivate); | 55 DISALLOW_COPY_AND_ASSIGN(NodePrivate); |
| 57 }; | 56 }; |
| 58 | 57 |
| 59 } // namespace view_manager | |
| 60 } // namespace mojo | 58 } // namespace mojo |
| 61 | 59 |
| 62 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_NODE_PRIVATE_H_ | 60 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_NODE_PRIVATE_H_ |
| OLD | NEW |