| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 WebLocalFrameImpl* webFrame() const { return m_webFrame.get(); } | 53 WebLocalFrameImpl* webFrame() const { return m_webFrame.get(); } |
| 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; |
| 64 void runScriptsAtDocumentReady() override; |
| 63 | 65 |
| 64 void didCreateScriptContext(v8::Local<v8::Context>, int extensionGroup, int
worldId) override; | 66 void didCreateScriptContext(v8::Local<v8::Context>, int extensionGroup, int
worldId) override; |
| 65 void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) override; | 67 void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) override; |
| 66 | 68 |
| 67 // 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 |
| 68 // 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. |
| 69 bool allowScriptExtension(const String& extensionName, int extensionGroup, i
nt worldId) override; | 71 bool allowScriptExtension(const String& extensionName, int extensionGroup, i
nt worldId) override; |
| 70 | 72 |
| 71 bool hasWebView() const override; | 73 bool hasWebView() const override; |
| 72 bool inShadowTree() const override; | 74 bool inShadowTree() const override; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // The WebFrame that owns this object and manages its lifetime. Therefore, | 189 // The WebFrame that owns this object and manages its lifetime. Therefore, |
| 188 // the web frame object is guaranteed to exist. | 190 // the web frame object is guaranteed to exist. |
| 189 RawPtrWillBeMember<WebLocalFrameImpl> m_webFrame; | 191 RawPtrWillBeMember<WebLocalFrameImpl> m_webFrame; |
| 190 }; | 192 }; |
| 191 | 193 |
| 192 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr
ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); | 194 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr
ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); |
| 193 | 195 |
| 194 } // namespace blink | 196 } // namespace blink |
| 195 | 197 |
| 196 #endif | 198 #endif |
| OLD | NEW |