| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 } | 183 } |
| 184 | 184 |
| 185 void LocalFrameClientImpl::runScriptsAtDocumentReady(bool documentIsEmpty) { | 185 void LocalFrameClientImpl::runScriptsAtDocumentReady(bool documentIsEmpty) { |
| 186 if (m_webFrame->client()) { | 186 if (m_webFrame->client()) { |
| 187 m_webFrame->client()->runScriptsAtDocumentReady(m_webFrame, | 187 m_webFrame->client()->runScriptsAtDocumentReady(m_webFrame, |
| 188 documentIsEmpty); | 188 documentIsEmpty); |
| 189 } | 189 } |
| 190 // The callback might have deleted the frame, do not use |this|! | 190 // The callback might have deleted the frame, do not use |this|! |
| 191 } | 191 } |
| 192 | 192 |
| 193 void LocalFrameClientImpl::runScriptsAtDocumentIdle() { |
| 194 if (m_webFrame->client()) |
| 195 m_webFrame->client()->runScriptsAtDocumentIdle(m_webFrame); |
| 196 // The callback might have deleted the frame, do not use |this|! |
| 197 } |
| 198 |
| 193 void LocalFrameClientImpl::didCreateScriptContext( | 199 void LocalFrameClientImpl::didCreateScriptContext( |
| 194 v8::Local<v8::Context> context, | 200 v8::Local<v8::Context> context, |
| 195 int worldId) { | 201 int worldId) { |
| 196 if (m_webFrame->client()) | 202 if (m_webFrame->client()) |
| 197 m_webFrame->client()->didCreateScriptContext(m_webFrame, context, worldId); | 203 m_webFrame->client()->didCreateScriptContext(m_webFrame, context, worldId); |
| 198 } | 204 } |
| 199 | 205 |
| 200 void LocalFrameClientImpl::willReleaseScriptContext( | 206 void LocalFrameClientImpl::willReleaseScriptContext( |
| 201 v8::Local<v8::Context> context, | 207 v8::Local<v8::Context> context, |
| 202 int worldId) { | 208 int worldId) { |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1020 KURL LocalFrameClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { | 1026 KURL LocalFrameClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { |
| 1021 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); | 1027 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); |
| 1022 } | 1028 } |
| 1023 | 1029 |
| 1024 void LocalFrameClientImpl::setHasReceivedUserGesture() { | 1030 void LocalFrameClientImpl::setHasReceivedUserGesture() { |
| 1025 if (m_webFrame->client()) | 1031 if (m_webFrame->client()) |
| 1026 m_webFrame->client()->setHasReceivedUserGesture(); | 1032 m_webFrame->client()->setHasReceivedUserGesture(); |
| 1027 } | 1033 } |
| 1028 | 1034 |
| 1029 } // namespace blink | 1035 } // namespace blink |
| OLD | NEW |