| 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_TREE_NODE_H_ | 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_TREE_NODE_H_ |
| 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_TREE_NODE_H_ | 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_TREE_NODE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 void MoveToBack(); | 58 void MoveToBack(); |
| 59 | 59 |
| 60 bool Contains(ViewTreeNode* child) const; | 60 bool Contains(ViewTreeNode* child) const; |
| 61 | 61 |
| 62 ViewTreeNode* GetChildById(Id id); | 62 ViewTreeNode* GetChildById(Id id); |
| 63 | 63 |
| 64 // View. | 64 // View. |
| 65 void SetActiveView(View* view); | 65 void SetActiveView(View* view); |
| 66 View* active_view() { return active_view_; } | 66 View* active_view() { return active_view_; } |
| 67 | 67 |
| 68 // Focus. |
| 69 void SetFocus(); |
| 70 |
| 68 // Embedding. | 71 // Embedding. |
| 69 void Embed(const String& url); | 72 void Embed(const String& url); |
| 70 | 73 |
| 71 protected: | 74 protected: |
| 72 // This class is subclassed only by test classes that provide a public ctor. | 75 // This class is subclassed only by test classes that provide a public ctor. |
| 73 ViewTreeNode(); | 76 ViewTreeNode(); |
| 74 ~ViewTreeNode(); | 77 ~ViewTreeNode(); |
| 75 | 78 |
| 76 private: | 79 private: |
| 77 friend class ViewTreeNodePrivate; | 80 friend class ViewTreeNodePrivate; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 96 gfx::Rect bounds_; | 99 gfx::Rect bounds_; |
| 97 View* active_view_; | 100 View* active_view_; |
| 98 | 101 |
| 99 DISALLOW_COPY_AND_ASSIGN(ViewTreeNode); | 102 DISALLOW_COPY_AND_ASSIGN(ViewTreeNode); |
| 100 }; | 103 }; |
| 101 | 104 |
| 102 } // namespace view_manager | 105 } // namespace view_manager |
| 103 } // namespace mojo | 106 } // namespace mojo |
| 104 | 107 |
| 105 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_TREE_NODE_H_ | 108 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_TREE_NODE_H_ |
| OLD | NEW |