| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 // The client may choose to alter the navigation policy. Otherwise, | 161 // The client may choose to alter the navigation policy. Otherwise, |
| 162 // defaultPolicy should just be returned. | 162 // defaultPolicy should just be returned. |
| 163 virtual WebNavigationPolicy decidePolicyForNavigation( | 163 virtual WebNavigationPolicy decidePolicyForNavigation( |
| 164 WebLocalFrame*, WebDataSource::ExtraData*, const WebURLRequest&, WebNavi
gationType, | 164 WebLocalFrame*, WebDataSource::ExtraData*, const WebURLRequest&, WebNavi
gationType, |
| 165 WebNavigationPolicy defaultPolicy, bool isRedirect) { return defaultPoli
cy; } | 165 WebNavigationPolicy defaultPolicy, bool isRedirect) { return defaultPoli
cy; } |
| 166 | 166 |
| 167 | 167 |
| 168 // Navigational notifications ------------------------------------------ | 168 // Navigational notifications ------------------------------------------ |
| 169 | 169 |
| 170 // These notifications bracket any loading that occurs in the WebFrame. |
| 171 virtual void didStartLoading(bool toDifferentDocument) { } |
| 172 virtual void didStopLoading() { } |
| 173 |
| 174 // Notification that some progress was made loading the current frame. |
| 175 // loadProgress is a value between 0 (nothing loaded) and 1.0 (frame fully |
| 176 // loaded). |
| 177 virtual void didChangeLoadProgress(double loadProgress) { } |
| 178 |
| 170 // A form submission has been requested, but the page's submit event handler | 179 // A form submission has been requested, but the page's submit event handler |
| 171 // hasn't yet had a chance to run (and possibly alter/interrupt the submit.) | 180 // hasn't yet had a chance to run (and possibly alter/interrupt the submit.) |
| 172 virtual void willSendSubmitEvent(WebLocalFrame*, const WebFormElement&) { } | 181 virtual void willSendSubmitEvent(WebLocalFrame*, const WebFormElement&) { } |
| 173 | 182 |
| 174 // A form submission is about to occur. | 183 // A form submission is about to occur. |
| 175 virtual void willSubmitForm(WebLocalFrame*, const WebFormElement&) { } | 184 virtual void willSubmitForm(WebLocalFrame*, const WebFormElement&) { } |
| 176 | 185 |
| 177 // A datasource has been created for a new navigation. The given | 186 // A datasource has been created for a new navigation. The given |
| 178 // datasource will become the provisional datasource for the frame. | 187 // datasource will become the provisional datasource for the frame. |
| 179 virtual void didCreateDataSource(WebLocalFrame*, WebDataSource*) { } | 188 virtual void didCreateDataSource(WebLocalFrame*, WebDataSource*) { } |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 // Send initial drawing parameters to a child frame that is being rendered o
ut of process. | 412 // Send initial drawing parameters to a child frame that is being rendered o
ut of process. |
| 404 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto
r) { } | 413 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto
r) { } |
| 405 | 414 |
| 406 protected: | 415 protected: |
| 407 ~WebFrameClient() { } | 416 ~WebFrameClient() { } |
| 408 }; | 417 }; |
| 409 | 418 |
| 410 } // namespace blink | 419 } // namespace blink |
| 411 | 420 |
| 412 #endif | 421 #endif |
| OLD | NEW |