| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // datasource will become the provisional datasource for the frame. | 256 // datasource will become the provisional datasource for the frame. |
| 257 virtual void didCreateDataSource(WebLocalFrame*, WebDataSource*) { } | 257 virtual void didCreateDataSource(WebLocalFrame*, WebDataSource*) { } |
| 258 | 258 |
| 259 // A new provisional load has been started. | 259 // A new provisional load has been started. |
| 260 virtual void didStartProvisionalLoad(WebLocalFrame* localFrame, bool isTrans
itionNavigation, | 260 virtual void didStartProvisionalLoad(WebLocalFrame* localFrame, bool isTrans
itionNavigation, |
| 261 double triggeringEventTime) { } | 261 double triggeringEventTime) { } |
| 262 | 262 |
| 263 // The provisional load was redirected via a HTTP 3xx response. | 263 // The provisional load was redirected via a HTTP 3xx response. |
| 264 virtual void didReceiveServerRedirectForProvisionalLoad(WebLocalFrame*) { } | 264 virtual void didReceiveServerRedirectForProvisionalLoad(WebLocalFrame*) { } |
| 265 | 265 |
| 266 // The provisional load failed. | 266 // The provisional load failed. The WebHistoryCommitType is the commit type |
| 267 virtual void didFailProvisionalLoad(WebLocalFrame*, const WebURLError&) { } | 267 // that would have been used had the load succeeded. |
| 268 virtual void didFailProvisionalLoad(WebLocalFrame*, const WebURLError&, WebH
istoryCommitType) { } |
| 268 | 269 |
| 269 // The provisional datasource is now committed. The first part of the | 270 // The provisional datasource is now committed. The first part of the |
| 270 // response body has been received, and the encoding of the response | 271 // response body has been received, and the encoding of the response |
| 271 // body is known. | 272 // body is known. |
| 272 virtual void didCommitProvisionalLoad(WebLocalFrame*, const WebHistoryItem&,
WebHistoryCommitType) { } | 273 virtual void didCommitProvisionalLoad(WebLocalFrame*, const WebHistoryItem&,
WebHistoryCommitType) { } |
| 273 | 274 |
| 274 // The frame's document has just been initialized. | 275 // The frame's document has just been initialized. |
| 275 virtual void didCreateNewDocument(WebLocalFrame* frame) { } | 276 virtual void didCreateNewDocument(WebLocalFrame* frame) { } |
| 276 | 277 |
| 277 // The window object for the frame has been cleared of any extra | 278 // The window object for the frame has been cleared of any extra |
| 278 // properties that may have been set by script from the previously | 279 // properties that may have been set by script from the previously |
| 279 // loaded document. | 280 // loaded document. |
| 280 virtual void didClearWindowObject(WebLocalFrame* frame) { } | 281 virtual void didClearWindowObject(WebLocalFrame* frame) { } |
| 281 | 282 |
| 282 // The document element has been created. | 283 // The document element has been created. |
| 283 virtual void didCreateDocumentElement(WebLocalFrame*) { } | 284 virtual void didCreateDocumentElement(WebLocalFrame*) { } |
| 284 | 285 |
| 285 // The page title is available. | 286 // The page title is available. |
| 286 virtual void didReceiveTitle(WebLocalFrame* frame, const WebString& title, W
ebTextDirection direction) { } | 287 virtual void didReceiveTitle(WebLocalFrame* frame, const WebString& title, W
ebTextDirection direction) { } |
| 287 | 288 |
| 288 // The icon for the page have changed. | 289 // The icon for the page have changed. |
| 289 virtual void didChangeIcon(WebLocalFrame*, WebIconURL::Type) { } | 290 virtual void didChangeIcon(WebLocalFrame*, WebIconURL::Type) { } |
| 290 | 291 |
| 291 // The frame's document finished loading. | 292 // The frame's document finished loading. |
| 292 virtual void didFinishDocumentLoad(WebLocalFrame*) { } | 293 virtual void didFinishDocumentLoad(WebLocalFrame*) { } |
| 293 | 294 |
| 294 // The 'load' event was dispatched. | 295 // The 'load' event was dispatched. |
| 295 virtual void didHandleOnloadEvents(WebLocalFrame*) { } | 296 virtual void didHandleOnloadEvents(WebLocalFrame*) { } |
| 296 | 297 |
| 297 // The frame's document or one of its subresources failed to load. | 298 // The frame's document or one of its subresources failed to load. The |
| 298 virtual void didFailLoad(WebLocalFrame*, const WebURLError&) { } | 299 // WebHistoryCommitType is the commit type that would have been used had the |
| 300 // load succeeded. |
| 301 virtual void didFailLoad(WebLocalFrame*, const WebURLError&, WebHistoryCommi
tType) { } |
| 299 | 302 |
| 300 // The frame's document and all of its subresources succeeded to load. | 303 // The frame's document and all of its subresources succeeded to load. |
| 301 virtual void didFinishLoad(WebLocalFrame*) { } | 304 virtual void didFinishLoad(WebLocalFrame*) { } |
| 302 | 305 |
| 303 // The navigation resulted in no change to the documents within the page. | 306 // The navigation resulted in no change to the documents within the page. |
| 304 // For example, the navigation may have just resulted in scrolling to a | 307 // For example, the navigation may have just resulted in scrolling to a |
| 305 // named anchor or a PopState event may have been dispatched. | 308 // named anchor or a PopState event may have been dispatched. |
| 306 virtual void didNavigateWithinPage(WebLocalFrame*, const WebHistoryItem&, We
bHistoryCommitType) { } | 309 virtual void didNavigateWithinPage(WebLocalFrame*, const WebHistoryItem&, We
bHistoryCommitType) { } |
| 307 | 310 |
| 308 // Called upon update to scroll position, document state, and other | 311 // Called upon update to scroll position, document state, and other |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 // Access the embedder API for permission client. | 642 // Access the embedder API for permission client. |
| 640 virtual WebPermissionClient* permissionClient() { return 0; } | 643 virtual WebPermissionClient* permissionClient() { return 0; } |
| 641 | 644 |
| 642 protected: | 645 protected: |
| 643 virtual ~WebFrameClient() { } | 646 virtual ~WebFrameClient() { } |
| 644 }; | 647 }; |
| 645 | 648 |
| 646 } // namespace blink | 649 } // namespace blink |
| 647 | 650 |
| 648 #endif | 651 #endif |
| OLD | NEW |