| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // The callback might have deleted the frame, do not use |this|! | 181 // The callback might have deleted the frame, do not use |this|! |
| 182 } | 182 } |
| 183 | 183 |
| 184 void FrameLoaderClientImpl::runScriptsAtDocumentReady(bool documentIsEmpty) { | 184 void FrameLoaderClientImpl::runScriptsAtDocumentReady(bool documentIsEmpty) { |
| 185 if (m_webFrame->client()) | 185 if (m_webFrame->client()) |
| 186 m_webFrame->client()->runScriptsAtDocumentReady(m_webFrame, | 186 m_webFrame->client()->runScriptsAtDocumentReady(m_webFrame, |
| 187 documentIsEmpty); | 187 documentIsEmpty); |
| 188 // The callback might have deleted the frame, do not use |this|! | 188 // The callback might have deleted the frame, do not use |this|! |
| 189 } | 189 } |
| 190 | 190 |
| 191 void FrameLoaderClientImpl::runScriptsAtDocumentIdle() { |
| 192 if (m_webFrame->client()) |
| 193 m_webFrame->client()->runScriptsAtDocumentIdle(m_webFrame); |
| 194 } |
| 195 |
| 191 void FrameLoaderClientImpl::didCreateScriptContext( | 196 void FrameLoaderClientImpl::didCreateScriptContext( |
| 192 v8::Local<v8::Context> context, | 197 v8::Local<v8::Context> context, |
| 193 int worldId) { | 198 int worldId) { |
| 194 if (m_webFrame->client()) | 199 if (m_webFrame->client()) |
| 195 m_webFrame->client()->didCreateScriptContext(m_webFrame, context, worldId); | 200 m_webFrame->client()->didCreateScriptContext(m_webFrame, context, worldId); |
| 196 } | 201 } |
| 197 | 202 |
| 198 void FrameLoaderClientImpl::willReleaseScriptContext( | 203 void FrameLoaderClientImpl::willReleaseScriptContext( |
| 199 v8::Local<v8::Context> context, | 204 v8::Local<v8::Context> context, |
| 200 int worldId) { | 205 int worldId) { |
| (...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1002 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { | 1007 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { |
| 1003 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); | 1008 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); |
| 1004 } | 1009 } |
| 1005 | 1010 |
| 1006 void FrameLoaderClientImpl::setHasReceivedUserGesture() { | 1011 void FrameLoaderClientImpl::setHasReceivedUserGesture() { |
| 1007 if (m_webFrame->client()) | 1012 if (m_webFrame->client()) |
| 1008 m_webFrame->client()->setHasReceivedUserGesture(); | 1013 m_webFrame->client()->setHasReceivedUserGesture(); |
| 1009 } | 1014 } |
| 1010 | 1015 |
| 1011 } // namespace blink | 1016 } // namespace blink |
| OLD | NEW |