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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 290 |
291 // The frame's document has just been initialized. | 291 // The frame's document has just been initialized. |
292 virtual void didCreateNewDocument(WebLocalFrame* frame) { } | 292 virtual void didCreateNewDocument(WebLocalFrame* frame) { } |
293 | 293 |
294 // The window object for the frame has been cleared of any extra | 294 // The window object for the frame has been cleared of any extra |
295 // properties that may have been set by script from the previously | 295 // properties that may have been set by script from the previously |
296 // loaded document. | 296 // loaded document. |
297 virtual void didClearWindowObject(WebLocalFrame* frame) { } | 297 virtual void didClearWindowObject(WebLocalFrame* frame) { } |
298 | 298 |
299 // The document element has been created. | 299 // The document element has been created. |
| 300 // This method may not invalidate the frame, nor execute JavaScript code. |
300 virtual void didCreateDocumentElement(WebLocalFrame*) { } | 301 virtual void didCreateDocumentElement(WebLocalFrame*) { } |
301 | 302 |
| 303 // Like |didCreateDocumentElement|, except this method may run JavaScript |
| 304 // code (and possibly invalidate the frame). |
| 305 virtual void runScriptsAtDocumentElementAvailable(WebLocalFrame*) { } |
| 306 |
302 // The page title is available. | 307 // The page title is available. |
303 virtual void didReceiveTitle(WebLocalFrame* frame, const WebString& title, W
ebTextDirection direction) { } | 308 virtual void didReceiveTitle(WebLocalFrame* frame, const WebString& title, W
ebTextDirection direction) { } |
304 | 309 |
305 // The icon for the page have changed. | 310 // The icon for the page have changed. |
306 virtual void didChangeIcon(WebLocalFrame*, WebIconURL::Type) { } | 311 virtual void didChangeIcon(WebLocalFrame*, WebIconURL::Type) { } |
307 | 312 |
308 // The frame's document finished loading. | 313 // The frame's document finished loading. |
| 314 // This method may not execute JavaScript code. |
309 virtual void didFinishDocumentLoad(WebLocalFrame*, bool documentIsEmpty) { } | 315 virtual void didFinishDocumentLoad(WebLocalFrame*, bool documentIsEmpty) { } |
310 | 316 |
| 317 // Like |didFinishDocumentLoad|, except this method may run JavaScript |
| 318 // code (and possibly invalidate the frame). |
| 319 virtual void runScriptsAtDocumentReady(WebLocalFrame*) { } |
| 320 |
311 // The 'load' event was dispatched. | 321 // The 'load' event was dispatched. |
312 virtual void didHandleOnloadEvents(WebLocalFrame*) { } | 322 virtual void didHandleOnloadEvents(WebLocalFrame*) { } |
313 | 323 |
314 // The frame's document or one of its subresources failed to load. The | 324 // The frame's document or one of its subresources failed to load. The |
315 // WebHistoryCommitType is the commit type that would have been used had the | 325 // WebHistoryCommitType is the commit type that would have been used had the |
316 // load succeeded. | 326 // load succeeded. |
317 virtual void didFailLoad(WebLocalFrame*, const WebURLError&, WebHistoryCommi
tType) { } | 327 virtual void didFailLoad(WebLocalFrame*, const WebURLError&, WebHistoryCommi
tType) { } |
318 | 328 |
319 // The frame's document and all of its subresources succeeded to load. | 329 // The frame's document and all of its subresources succeeded to load. |
320 virtual void didFinishLoad(WebLocalFrame*) { } | 330 virtual void didFinishLoad(WebLocalFrame*) { } |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 // This method takes ownership of the callbacks pointer. | 709 // This method takes ownership of the callbacks pointer. |
700 virtual void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId,
const WebSecurityOrigin&, WebSetSinkIdCallbacks*) { BLINK_ASSERT_NOT_REACHED();
} | 710 virtual void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId,
const WebSecurityOrigin&, WebSetSinkIdCallbacks*) { BLINK_ASSERT_NOT_REACHED();
} |
701 | 711 |
702 protected: | 712 protected: |
703 virtual ~WebFrameClient() { } | 713 virtual ~WebFrameClient() { } |
704 }; | 714 }; |
705 | 715 |
706 } // namespace blink | 716 } // namespace blink |
707 | 717 |
708 #endif | 718 #endif |
OLD | NEW |