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 module web_view.mojom; | 5 module web_view.mojom; |
6 | 6 |
7 import "network/public/interfaces/url_loader.mojom"; | 7 import "network/public/interfaces/url_loader.mojom"; |
8 | 8 |
9 // This files defines the interfaces and structures used for frames. | 9 // This files defines the interfaces and structures used for frames. |
10 // | 10 // |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 // Indicates a new ViewTreeClient is obtained and the View provided to | 128 // Indicates a new ViewTreeClient is obtained and the View provided to |
129 // OnEmbed() should be used. | 129 // OnEmbed() should be used. |
130 USE_NEW | 130 USE_NEW |
131 }; | 131 }; |
132 | 132 |
133 interface FrameClient { | 133 interface FrameClient { |
134 // Called once per client. |frame_data| gives the contents of the tree. | 134 // Called once per client. |frame_data| gives the contents of the tree. |
135 // |view_id| is the id of the view the FrameClient should render to. If a | 135 // |view_id| is the id of the view the FrameClient should render to. If a |
136 // ViewTreeClient is asked for then |view_id| is the same id as that of the | 136 // ViewTreeClient is asked for then |view_id| is the same id as that of the |
137 // View supplied to ViewTreeClient::OnEmbed(). | 137 // View supplied to ViewTreeClient::OnEmbed(). |navigation_start_time_ticks| |
| 138 // is the time when the navigation resulting in this OnConnect() call was |
| 139 // started. |
138 OnConnect(Frame? frame, | 140 OnConnect(Frame? frame, |
139 uint32 change_id, | 141 uint32 change_id, |
140 uint32 view_id, | 142 uint32 view_id, |
141 ViewConnectType view_connect_type, | 143 ViewConnectType view_connect_type, |
142 array<FrameData>? frame_data) => (); | 144 array<FrameData>? frame_data, |
| 145 int64 navigation_start_time_ticks) => (); |
143 | 146 |
144 // Called when a new frame is added to the tree. | 147 // Called when a new frame is added to the tree. |
145 OnFrameAdded(uint32 change_id, FrameData frame_data); | 148 OnFrameAdded(uint32 change_id, FrameData frame_data); |
146 | 149 |
147 // Called when a frame is removed from the tree. | 150 // Called when a frame is removed from the tree. |
148 OnFrameRemoved(uint32 change_id, uint32 frame_id); | 151 OnFrameRemoved(uint32 change_id, uint32 frame_id); |
149 | 152 |
150 // Called when a client property changes. | 153 // Called when a client property changes. |
151 OnFrameClientPropertyChanged(uint32 frame_id, | 154 OnFrameClientPropertyChanged(uint32 frame_id, |
152 string name, | 155 string name, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // HighlightFindResults() is about highlighting all the instances of the text. | 202 // HighlightFindResults() is about highlighting all the instances of the text. |
200 // | 203 // |
201 // HighlightFindResults() will asynchronously call | 204 // HighlightFindResults() will asynchronously call |
202 // OnFindInFrameCountUpdated() multiple times to report its progress. | 205 // OnFindInFrameCountUpdated() multiple times to report its progress. |
203 HighlightFindResults(int32 request_id, string search_test, bool reset); | 206 HighlightFindResults(int32 request_id, string search_test, bool reset); |
204 | 207 |
205 // Removes the tick marks and highlighting done by HighlightFindResults() in | 208 // Removes the tick marks and highlighting done by HighlightFindResults() in |
206 // this frame. | 209 // this frame. |
207 StopHighlightingFindResults(); | 210 StopHighlightingFindResults(); |
208 }; | 211 }; |
OLD | NEW |