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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
103 RequestNavigate(NavigationTargetType target_type, | 103 RequestNavigate(NavigationTargetType target_type, |
104 uint32 target_frame_id, | 104 uint32 target_frame_id, |
105 mojo.URLRequest request); | 105 mojo.URLRequest request); |
106 | 106 |
107 // The frame navigated locally, for example, pushState() navigations in an | 107 // The frame navigated locally, for example, pushState() navigations in an |
108 // HTML application. | 108 // HTML application. |
109 DidNavigateLocally(string url); | 109 DidNavigateLocally(string url); |
110 | 110 |
111 // Dispatches a load event to the parent of the frame. | 111 // Dispatches a load event to the parent of the frame. |
112 DispatchLoadEventToParent(); | 112 DispatchLoadEventToParent(); |
113 | |
114 // Reports the number of matches for a given find. | |
115 ReportFindInPageMatchCount(int32 request_id, int32 count, bool final_update); | |
116 | |
117 // Reports which match is currently highlighted. | |
118 ReportFindInPageSelection(int32 request_id, int32 active_match_ordinal); | |
Elliot Glaysher
2015/09/28 21:22:57
This sort of diverges from the chrome ipc version.
| |
113 }; | 119 }; |
114 | 120 |
115 enum ViewConnectType { | 121 enum ViewConnectType { |
116 // Indicates the app is already a ViewTreeClient and the existing view should | 122 // Indicates the app is already a ViewTreeClient and the existing view should |
117 // be used. In this case the app is not asked for a new ViewTreeClient. | 123 // be used. In this case the app is not asked for a new ViewTreeClient. |
118 USE_EXISTING, | 124 USE_EXISTING, |
119 | 125 |
120 // Indicates a new ViewTreeClient is obtained and the View provided to | 126 // Indicates a new ViewTreeClient is obtained and the View provided to |
121 // OnEmbed() should be used. | 127 // OnEmbed() should be used. |
122 USE_NEW | 128 USE_NEW |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
159 // Additionally it overlaps with the client properties. | 165 // Additionally it overlaps with the client properties. |
160 OnWillNavigate(string origin) => (); | 166 OnWillNavigate(string origin) => (); |
161 | 167 |
162 // Called to notify that |frame_id|'s loading state has changed. This is only | 168 // Called to notify that |frame_id|'s loading state has changed. This is only |
163 // called on the FrameClient rendering the parent of |frame_id|. | 169 // called on the FrameClient rendering the parent of |frame_id|. |
164 OnFrameLoadingStateChanged(uint32 frame_id, bool loading); | 170 OnFrameLoadingStateChanged(uint32 frame_id, bool loading); |
165 | 171 |
166 // Called to dispatch a load event of |frame_id| in its parent. This is only | 172 // Called to dispatch a load event of |frame_id| in its parent. This is only |
167 // called on the FrameClient rendering the parent of |frame_id|. | 173 // called on the FrameClient rendering the parent of |frame_id|. |
168 OnDispatchFrameLoadEvent(uint32 frame_id); | 174 OnDispatchFrameLoadEvent(uint32 frame_id); |
175 | |
176 // Finds a string in page. | |
177 OnFind(int32 request_id, string search_text); | |
178 | |
179 // Stop highlighting the find results on the page. | |
180 OnStopFinding(); | |
169 }; | 181 }; |
OLD | NEW |