OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 MANDOLINE_TAB_FRAME_H_ | 5 #ifndef MANDOLINE_TAB_FRAME_H_ |
6 #define MANDOLINE_TAB_FRAME_H_ | 6 #define MANDOLINE_TAB_FRAME_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 private: | 94 private: |
95 friend class FrameTree; | 95 friend class FrameTree; |
96 | 96 |
97 // Initializes the client by sending it the state of the tree. | 97 // Initializes the client by sending it the state of the tree. |
98 void InitClient(); | 98 void InitClient(); |
99 | 99 |
100 // Called in response to FrameTreeClient::OnWillNavigate(). | 100 // Called in response to FrameTreeClient::OnWillNavigate(). |
101 void OnWillNavigateAck(FrameTreeClient* frame_tree_client, | 101 void OnWillNavigateAck(FrameTreeClient* frame_tree_client, |
102 scoped_ptr<FrameUserData> user_data, | 102 scoped_ptr<FrameUserData> user_data, |
103 mojo::ViewManagerClientPtr view_manager_client); | 103 mojo::ViewTreeClientPtr view_tree_client); |
104 | 104 |
105 void SetView(mojo::View* view); | 105 void SetView(mojo::View* view); |
106 | 106 |
107 // Returns the first ancestor (starting at |this|) that has a | 107 // Returns the first ancestor (starting at |this|) that has a |
108 // FrameTreeClient. | 108 // FrameTreeClient. |
109 Frame* GetAncestorWithFrameTreeClient(); | 109 Frame* GetAncestorWithFrameTreeClient(); |
110 | 110 |
111 // Adds this to |frames| and recurses through the children calling the | 111 // Adds this to |frames| and recurses through the children calling the |
112 // same function. | 112 // same function. |
113 void BuildFrameTree(std::vector<const Frame*>* frames) const; | 113 void BuildFrameTree(std::vector<const Frame*>* frames) const; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 mojo::Binding<FrameTreeServer> frame_tree_server_binding_; | 190 mojo::Binding<FrameTreeServer> frame_tree_server_binding_; |
191 | 191 |
192 base::WeakPtrFactory<Frame> weak_factory_; | 192 base::WeakPtrFactory<Frame> weak_factory_; |
193 | 193 |
194 DISALLOW_COPY_AND_ASSIGN(Frame); | 194 DISALLOW_COPY_AND_ASSIGN(Frame); |
195 }; | 195 }; |
196 | 196 |
197 } // namespace mandoline | 197 } // namespace mandoline |
198 | 198 |
199 #endif // MANDOLINE_TAB_FRAME_H_ | 199 #endif // MANDOLINE_TAB_FRAME_H_ |
OLD | NEW |