Chromium Code Reviews| 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 390 | 390 |
| 391 // The frame's document finished loading. | 391 // The frame's document finished loading. |
| 392 // This method may not execute JavaScript code. | 392 // This method may not execute JavaScript code. |
| 393 virtual void didFinishDocumentLoad(WebLocalFrame*) {} | 393 virtual void didFinishDocumentLoad(WebLocalFrame*) {} |
| 394 | 394 |
| 395 // Like |didFinishDocumentLoad|, except this method may run JavaScript | 395 // Like |didFinishDocumentLoad|, except this method may run JavaScript |
| 396 // code (and possibly invalidate the frame). | 396 // code (and possibly invalidate the frame). |
| 397 virtual void runScriptsAtDocumentReady(WebLocalFrame*, bool documentIsEmpty) { | 397 virtual void runScriptsAtDocumentReady(WebLocalFrame*, bool documentIsEmpty) { |
| 398 } | 398 } |
| 399 | 399 |
| 400 // The frame's window.onload event is about to fire. This method may delay | |
|
haraken
2017/03/02 03:54:32
Shall we drop the part of "The frame's window.onlo
Kunihiko Sakamoto
2017/03/06 09:11:06
document_idle scripts may run enough before window
| |
| 401 // window.onload by incrementing LoadEventDelayCount. | |
| 402 virtual void runScriptsAtDocumentIdle(WebLocalFrame*) {} | |
| 403 | |
| 400 // The 'load' event was dispatched. | 404 // The 'load' event was dispatched. |
| 401 virtual void didHandleOnloadEvents(WebLocalFrame*) {} | 405 virtual void didHandleOnloadEvents(WebLocalFrame*) {} |
| 402 | 406 |
| 403 // The frame's document or one of its subresources failed to load. The | 407 // The frame's document or one of its subresources failed to load. The |
| 404 // WebHistoryCommitType is the commit type that would have been used had the | 408 // WebHistoryCommitType is the commit type that would have been used had the |
| 405 // load succeeded. | 409 // load succeeded. |
| 406 virtual void didFailLoad(WebLocalFrame*, | 410 virtual void didFailLoad(WebLocalFrame*, |
| 407 const WebURLError&, | 411 const WebURLError&, |
| 408 WebHistoryCommitType) {} | 412 WebHistoryCommitType) {} |
| 409 | 413 |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 754 // Overwrites the given URL to use an HTML5 embed if possible. | 758 // Overwrites the given URL to use an HTML5 embed if possible. |
| 755 // An empty URL is returned if the URL is not overriden. | 759 // An empty URL is returned if the URL is not overriden. |
| 756 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { | 760 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { |
| 757 return WebURL(); | 761 return WebURL(); |
| 758 } | 762 } |
| 759 }; | 763 }; |
| 760 | 764 |
| 761 } // namespace blink | 765 } // namespace blink |
| 762 | 766 |
| 763 #endif | 767 #endif |
| OLD | NEW |