| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 if (devToolsFrontend) | 143 if (devToolsFrontend) |
| 144 devToolsFrontend->didClearWindowObject(m_webFrame); | 144 devToolsFrontend->didClearWindowObject(m_webFrame); |
| 145 } | 145 } |
| 146 | 146 |
| 147 void FrameLoaderClientImpl::documentElementAvailable() | 147 void FrameLoaderClientImpl::documentElementAvailable() |
| 148 { | 148 { |
| 149 if (m_webFrame->client()) | 149 if (m_webFrame->client()) |
| 150 m_webFrame->client()->didCreateDocumentElement(m_webFrame); | 150 m_webFrame->client()->didCreateDocumentElement(m_webFrame); |
| 151 } | 151 } |
| 152 | 152 |
| 153 void FrameLoaderClientImpl::didCreateScriptContext(v8::Handle<v8::Context> conte
xt, int extensionGroup, int worldId) | 153 void FrameLoaderClientImpl::didCreateScriptContext(v8::Local<v8::Context> contex
t, int extensionGroup, int worldId) |
| 154 { | 154 { |
| 155 if (m_webFrame->client()) | 155 if (m_webFrame->client()) |
| 156 m_webFrame->client()->didCreateScriptContext(m_webFrame, context, extens
ionGroup, worldId); | 156 m_webFrame->client()->didCreateScriptContext(m_webFrame, context, extens
ionGroup, worldId); |
| 157 } | 157 } |
| 158 | 158 |
| 159 void FrameLoaderClientImpl::willReleaseScriptContext(v8::Handle<v8::Context> con
text, int worldId) | 159 void FrameLoaderClientImpl::willReleaseScriptContext(v8::Local<v8::Context> cont
ext, int worldId) |
| 160 { | 160 { |
| 161 if (m_webFrame->client()) | 161 if (m_webFrame->client()) |
| 162 m_webFrame->client()->willReleaseScriptContext(m_webFrame, context, worl
dId); | 162 m_webFrame->client()->willReleaseScriptContext(m_webFrame, context, worl
dId); |
| 163 } | 163 } |
| 164 | 164 |
| 165 bool FrameLoaderClientImpl::allowScriptExtension(const String& extensionName, | 165 bool FrameLoaderClientImpl::allowScriptExtension(const String& extensionName, |
| 166 int extensionGroup, | 166 int extensionGroup, |
| 167 int worldId) | 167 int worldId) |
| 168 { | 168 { |
| 169 if (m_webFrame->contentSettingsClient()) | 169 if (m_webFrame->contentSettingsClient()) |
| (...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 966 | 966 |
| 967 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 967 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
| 968 { | 968 { |
| 969 if (m_webFrame->client()) { | 969 if (m_webFrame->client()) { |
| 970 m_webFrame->client()->suddenTerminationDisablerChanged( | 970 m_webFrame->client()->suddenTerminationDisablerChanged( |
| 971 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 971 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
| 972 } | 972 } |
| 973 } | 973 } |
| 974 | 974 |
| 975 } // namespace blink | 975 } // namespace blink |
| OLD | NEW |