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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 // This method may not execute JavaScript code. | 337 // This method may not execute JavaScript code. |
338 virtual void didFinishDocumentLoad(WebLocalFrame*) { } | 338 virtual void didFinishDocumentLoad(WebLocalFrame*) { } |
339 | 339 |
340 // Like |didFinishDocumentLoad|, except this method may run JavaScript | 340 // Like |didFinishDocumentLoad|, except this method may run JavaScript |
341 // code (and possibly invalidate the frame). | 341 // code (and possibly invalidate the frame). |
342 virtual void runScriptsAtDocumentReady(WebLocalFrame*, bool documentIsEmpty)
{ } | 342 virtual void runScriptsAtDocumentReady(WebLocalFrame*, bool documentIsEmpty)
{ } |
343 | 343 |
344 // The 'load' event was dispatched. | 344 // The 'load' event was dispatched. |
345 virtual void didHandleOnloadEvents(WebLocalFrame*) { } | 345 virtual void didHandleOnloadEvents(WebLocalFrame*) { } |
346 | 346 |
| 347 // The 'beforeunload' event was dispatched, a dialog probably was shown, and
the navigation is not aborted. |
| 348 virtual void didHandleOnBeforeUnloadEvent(bool eventListenerCalled) { } |
| 349 |
347 // The frame's document or one of its subresources failed to load. The | 350 // The frame's document or one of its subresources failed to load. The |
348 // WebHistoryCommitType is the commit type that would have been used had the | 351 // WebHistoryCommitType is the commit type that would have been used had the |
349 // load succeeded. | 352 // load succeeded. |
350 virtual void didFailLoad(WebLocalFrame*, const WebURLError&, WebHistoryCommi
tType) { } | 353 virtual void didFailLoad(WebLocalFrame*, const WebURLError&, WebHistoryCommi
tType) { } |
351 | 354 |
352 // The frame's document and all of its subresources succeeded to load. | 355 // The frame's document and all of its subresources succeeded to load. |
353 virtual void didFinishLoad(WebLocalFrame*) { } | 356 virtual void didFinishLoad(WebLocalFrame*) { } |
354 | 357 |
355 // The navigation resulted in no change to the documents within the page. | 358 // The navigation resulted in no change to the documents within the page. |
356 // For example, the navigation may have just resulted in scrolling to a | 359 // For example, the navigation may have just resulted in scrolling to a |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 // Mojo ---------------------------------------------------------------- | 721 // Mojo ---------------------------------------------------------------- |
719 virtual ServiceRegistry* serviceRegistry() { return nullptr; } | 722 virtual ServiceRegistry* serviceRegistry() { return nullptr; } |
720 | 723 |
721 protected: | 724 protected: |
722 virtual ~WebFrameClient() { } | 725 virtual ~WebFrameClient() { } |
723 }; | 726 }; |
724 | 727 |
725 } // namespace blink | 728 } // namespace blink |
726 | 729 |
727 #endif | 730 #endif |
OLD | NEW |