OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 } | 91 } |
92 | 92 |
93 int frame_tree_node_id() const { | 93 int frame_tree_node_id() const { |
94 return frame_tree_node_id_; | 94 return frame_tree_node_id_; |
95 } | 95 } |
96 | 96 |
97 const std::string& frame_name() const { | 97 const std::string& frame_name() const { |
98 return replication_state_.name; | 98 return replication_state_.name; |
99 } | 99 } |
100 | 100 |
| 101 const std::string& unique_name() const { |
| 102 return replication_state_.unique_name; |
| 103 } |
| 104 |
101 size_t child_count() const { | 105 size_t child_count() const { |
102 return children_.size(); | 106 return children_.size(); |
103 } | 107 } |
104 | 108 |
105 FrameTreeNode* parent() const { return parent_; } | 109 FrameTreeNode* parent() const { return parent_; } |
106 | 110 |
107 FrameTreeNode* opener() const { return opener_; } | 111 FrameTreeNode* opener() const { return opener_; } |
108 | 112 |
109 // Assigns a new opener for this node and, if |opener| is non-null, registers | 113 // Assigns a new opener for this node and, if |opener| is non-null, registers |
110 // an observer that will clear this node's opener if |opener| is ever | 114 // an observer that will clear this node's opener if |opener| is ever |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 base::ObserverList<Observer> observers_; | 350 base::ObserverList<Observer> observers_; |
347 | 351 |
348 base::TimeTicks last_focus_time_; | 352 base::TimeTicks last_focus_time_; |
349 | 353 |
350 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 354 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
351 }; | 355 }; |
352 | 356 |
353 } // namespace content | 357 } // namespace content |
354 | 358 |
355 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 359 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
OLD | NEW |