OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
173 // The client should handle the navigation externally. | 173 // The client should handle the navigation externally. |
174 virtual void loadURLExternally( | 174 virtual void loadURLExternally( |
175 WebLocalFrame*, const WebURLRequest&, WebNavigationPolicy, const WebStri ng& downloadName) { } | 175 WebLocalFrame*, const WebURLRequest&, WebNavigationPolicy, const WebStri ng& downloadName) { } |
176 | 176 |
177 | 177 |
178 // Navigational queries ------------------------------------------------ | 178 // Navigational queries ------------------------------------------------ |
179 | 179 |
180 // The client may choose to alter the navigation policy. Otherwise, | 180 // The client may choose to alter the navigation policy. Otherwise, |
181 // defaultPolicy should just be returned. | 181 // defaultPolicy should just be returned. |
182 virtual WebNavigationPolicy decidePolicyForNavigation( | 182 virtual WebNavigationPolicy decidePolicyForNavigation( |
183 WebLocalFrame* frame, WebDataSource::ExtraData* extraData, const WebURLR equest& urlRequest, WebNavigationType navigationType, | |
184 WebNavigationPolicy defaultPolicy, bool isRedirect, bool isTransitionNav igation) | |
185 { | |
186 return decidePolicyForNavigation(frame, extraData, urlRequest, navigatio nType, defaultPolicy, isRedirect); | |
187 } | |
188 | |
189 // DEPRECATED | |
190 virtual WebNavigationPolicy decidePolicyForNavigation( | |
183 WebLocalFrame*, WebDataSource::ExtraData*, const WebURLRequest&, WebNavi gationType, | 191 WebLocalFrame*, WebDataSource::ExtraData*, const WebURLRequest&, WebNavi gationType, |
184 WebNavigationPolicy defaultPolicy, bool isRedirect) { return defaultPoli cy; } | 192 WebNavigationPolicy defaultPolicy, bool isRedirect) { return defaultPoli cy; } |
abarth-chromium
2014/06/13 17:18:31
This sort of change is begging for a struct instea
oystein (OOO til 10th of July)
2014/06/18 00:04:09
Done! I made the URL the only constructor paramete
| |
185 | 193 |
186 // During a history navigation, we may choose to load new subframes from his tory as well. | 194 // During a history navigation, we may choose to load new subframes from his tory as well. |
187 // This returns such a history item if appropriate. | 195 // This returns such a history item if appropriate. |
188 virtual WebHistoryItem historyItemForNewChildFrame(WebFrame*) { return WebHi storyItem(); } | 196 virtual WebHistoryItem historyItemForNewChildFrame(WebFrame*) { return WebHi storyItem(); } |
189 | 197 |
190 | 198 |
191 // Navigational notifications ------------------------------------------ | 199 // Navigational notifications ------------------------------------------ |
192 | 200 |
193 // These notifications bracket any loading that occurs in the WebFrame. | 201 // These notifications bracket any loading that occurs in the WebFrame. |
194 virtual void didStartLoading(bool toDifferentDocument) { } | 202 virtual void didStartLoading(bool toDifferentDocument) { } |
195 virtual void didStopLoading() { } | 203 virtual void didStopLoading() { } |
196 | 204 |
197 // Notification that some progress was made loading the current frame. | 205 // Notification that some progress was made loading the current frame. |
198 // loadProgress is a value between 0 (nothing loaded) and 1.0 (frame fully | 206 // loadProgress is a value between 0 (nothing loaded) and 1.0 (frame fully |
199 // loaded). | 207 // loaded). |
200 virtual void didChangeLoadProgress(double loadProgress) { } | 208 virtual void didChangeLoadProgress(double loadProgress) { } |
201 | 209 |
202 // A form submission has been requested, but the page's submit event handler | 210 // A form submission has been requested, but the page's submit event handler |
203 // hasn't yet had a chance to run (and possibly alter/interrupt the submit.) | 211 // hasn't yet had a chance to run (and possibly alter/interrupt the submit.) |
204 virtual void willSendSubmitEvent(WebLocalFrame*, const WebFormElement&) { } | 212 virtual void willSendSubmitEvent(WebLocalFrame*, const WebFormElement&) { } |
205 | 213 |
206 // A form submission is about to occur. | 214 // A form submission is about to occur. |
207 virtual void willSubmitForm(WebLocalFrame*, const WebFormElement&) { } | 215 virtual void willSubmitForm(WebLocalFrame*, const WebFormElement&) { } |
208 | 216 |
209 // A datasource has been created for a new navigation. The given | 217 // A datasource has been created for a new navigation. The given |
210 // datasource will become the provisional datasource for the frame. | 218 // datasource will become the provisional datasource for the frame. |
211 virtual void didCreateDataSource(WebLocalFrame*, WebDataSource*) { } | 219 virtual void didCreateDataSource(WebLocalFrame*, WebDataSource*) { } |
212 | 220 |
213 // A new provisional load has been started. | 221 // A new provisional load has been started. |
222 virtual void didStartProvisionalLoad(WebLocalFrame* localFrame, bool isTrans itionNavigation) { didStartProvisionalLoad(localFrame); } | |
223 // DEPRECATED | |
214 virtual void didStartProvisionalLoad(WebLocalFrame*) { } | 224 virtual void didStartProvisionalLoad(WebLocalFrame*) { } |
215 | 225 |
216 // The provisional load was redirected via a HTTP 3xx response. | 226 // The provisional load was redirected via a HTTP 3xx response. |
217 virtual void didReceiveServerRedirectForProvisionalLoad(WebLocalFrame*) { } | 227 virtual void didReceiveServerRedirectForProvisionalLoad(WebLocalFrame*) { } |
218 | 228 |
219 // The provisional load failed. | 229 // The provisional load failed. |
220 virtual void didFailProvisionalLoad(WebLocalFrame*, const WebURLError&) { } | 230 virtual void didFailProvisionalLoad(WebLocalFrame*, const WebURLError&) { } |
221 | 231 |
222 // The provisional datasource is now committed. The first part of the | 232 // The provisional datasource is now committed. The first part of the |
223 // response body has been received, and the encoding of the response | 233 // response body has been received, and the encoding of the response |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
498 // Send initial drawing parameters to a child frame that is being rendered o ut of process. | 508 // Send initial drawing parameters to a child frame that is being rendered o ut of process. |
499 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto r) { } | 509 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto r) { } |
500 | 510 |
501 protected: | 511 protected: |
502 ~WebFrameClient() { } | 512 ~WebFrameClient() { } |
503 }; | 513 }; |
504 | 514 |
505 } // namespace blink | 515 } // namespace blink |
506 | 516 |
507 #endif | 517 #endif |
OLD | NEW |