| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 // FrameLoaderClient ---------------------------------------------- | 55 // FrameLoaderClient ---------------------------------------------- |
| 56 | 56 |
| 57 void didCreateNewDocument() override; | 57 void didCreateNewDocument() override; |
| 58 // Notifies the WebView delegate that the JS window object has been cleared, | 58 // Notifies the WebView delegate that the JS window object has been cleared, |
| 59 // giving it a chance to bind native objects to the window before script | 59 // giving it a chance to bind native objects to the window before script |
| 60 // parsing begins. | 60 // parsing begins. |
| 61 void dispatchDidClearWindowObjectInMainWorld() override; | 61 void dispatchDidClearWindowObjectInMainWorld() override; |
| 62 void documentElementAvailable() override; | 62 void documentElementAvailable() override; |
| 63 void runScriptsAtDocumentElementAvailable() override; | 63 void runScriptsAtDocumentElementAvailable() override; |
| 64 void runScriptsAtDocumentReady() override; | 64 void runScriptsAtDocumentReady(bool documentIsEmpty) override; |
| 65 | 65 |
| 66 void didCreateScriptContext(v8::Local<v8::Context>, int extensionGroup, int
worldId) override; | 66 void didCreateScriptContext(v8::Local<v8::Context>, int extensionGroup, int
worldId) override; |
| 67 void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) override; | 67 void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) override; |
| 68 | 68 |
| 69 // Returns true if we should allow the given V8 extension to be added to | 69 // Returns true if we should allow the given V8 extension to be added to |
| 70 // the script context at the currently loading page and given extension grou
p. | 70 // the script context at the currently loading page and given extension grou
p. |
| 71 bool allowScriptExtension(const String& extensionName, int extensionGroup, i
nt worldId) override; | 71 bool allowScriptExtension(const String& extensionName, int extensionGroup, i
nt worldId) override; |
| 72 | 72 |
| 73 bool hasWebView() const override; | 73 bool hasWebView() const override; |
| 74 bool inShadowTree() const override; | 74 bool inShadowTree() const override; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 90 void dispatchDidHandleOnloadEvents() override; | 90 void dispatchDidHandleOnloadEvents() override; |
| 91 void dispatchDidReceiveServerRedirectForProvisionalLoad() override; | 91 void dispatchDidReceiveServerRedirectForProvisionalLoad() override; |
| 92 void dispatchDidNavigateWithinPage(HistoryItem*, HistoryCommitType) override
; | 92 void dispatchDidNavigateWithinPage(HistoryItem*, HistoryCommitType) override
; |
| 93 void dispatchWillClose() override; | 93 void dispatchWillClose() override; |
| 94 void dispatchDidStartProvisionalLoad(double triggeringEventTime) override; | 94 void dispatchDidStartProvisionalLoad(double triggeringEventTime) override; |
| 95 void dispatchDidReceiveTitle(const String&) override; | 95 void dispatchDidReceiveTitle(const String&) override; |
| 96 void dispatchDidChangeIcons(IconType) override; | 96 void dispatchDidChangeIcons(IconType) override; |
| 97 void dispatchDidCommitLoad(HistoryItem*, HistoryCommitType) override; | 97 void dispatchDidCommitLoad(HistoryItem*, HistoryCommitType) override; |
| 98 void dispatchDidFailProvisionalLoad(const ResourceError&, HistoryCommitType)
override; | 98 void dispatchDidFailProvisionalLoad(const ResourceError&, HistoryCommitType)
override; |
| 99 void dispatchDidFailLoad(const ResourceError&, HistoryCommitType) override; | 99 void dispatchDidFailLoad(const ResourceError&, HistoryCommitType) override; |
| 100 void dispatchDidFinishDocumentLoad(bool documentIsEmpty) override; | 100 void dispatchDidFinishDocumentLoad() override; |
| 101 void dispatchDidFinishLoad() override; | 101 void dispatchDidFinishLoad() override; |
| 102 | 102 |
| 103 void dispatchDidChangeThemeColor() override; | 103 void dispatchDidChangeThemeColor() override; |
| 104 NavigationPolicy decidePolicyForNavigation(const ResourceRequest&, DocumentL
oader*, NavigationType, NavigationPolicy, bool shouldReplaceCurrentEntry, bool i
sClientRedirect) override; | 104 NavigationPolicy decidePolicyForNavigation(const ResourceRequest&, DocumentL
oader*, NavigationType, NavigationPolicy, bool shouldReplaceCurrentEntry, bool i
sClientRedirect) override; |
| 105 bool hasPendingNavigation() override; | 105 bool hasPendingNavigation() override; |
| 106 void dispatchWillSendSubmitEvent(HTMLFormElement*) override; | 106 void dispatchWillSendSubmitEvent(HTMLFormElement*) override; |
| 107 void dispatchWillSubmitForm(HTMLFormElement*) override; | 107 void dispatchWillSubmitForm(HTMLFormElement*) override; |
| 108 void didStartLoading(LoadStartType) override; | 108 void didStartLoading(LoadStartType) override; |
| 109 void didStopLoading() override; | 109 void didStopLoading() override; |
| 110 void progressEstimateChanged(double progressEstimate) override; | 110 void progressEstimateChanged(double progressEstimate) override; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // The WebFrame that owns this object and manages its lifetime. Therefore, | 192 // The WebFrame that owns this object and manages its lifetime. Therefore, |
| 193 // the web frame object is guaranteed to exist. | 193 // the web frame object is guaranteed to exist. |
| 194 RawPtrWillBeMember<WebLocalFrameImpl> m_webFrame; | 194 RawPtrWillBeMember<WebLocalFrameImpl> m_webFrame; |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr
ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); | 197 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr
ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); |
| 198 | 198 |
| 199 } // namespace blink | 199 } // namespace blink |
| 200 | 200 |
| 201 #endif | 201 #endif |
| OLD | NEW |