| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 if (m_webFrame->client()) | 87 if (m_webFrame->client()) |
| 88 m_webFrame->client()->didCreateScriptContext(m_webFrame, context); | 88 m_webFrame->client()->didCreateScriptContext(m_webFrame, context); |
| 89 } | 89 } |
| 90 | 90 |
| 91 void FrameLoaderClientImpl::willReleaseScriptContext(v8::Handle<v8::Context> con
text) | 91 void FrameLoaderClientImpl::willReleaseScriptContext(v8::Handle<v8::Context> con
text) |
| 92 { | 92 { |
| 93 if (m_webFrame->client()) | 93 if (m_webFrame->client()) |
| 94 m_webFrame->client()->willReleaseScriptContext(m_webFrame, context); | 94 m_webFrame->client()->willReleaseScriptContext(m_webFrame, context); |
| 95 } | 95 } |
| 96 | 96 |
| 97 void FrameLoaderClientImpl::didChangeScrollOffset() | |
| 98 { | |
| 99 if (m_webFrame->client()) | |
| 100 m_webFrame->client()->didChangeScrollOffset(m_webFrame); | |
| 101 } | |
| 102 | |
| 103 void FrameLoaderClientImpl::detachedFromParent() | 97 void FrameLoaderClientImpl::detachedFromParent() |
| 104 { | 98 { |
| 105 // Alert the client that the frame is being detached. This is the last | 99 // Alert the client that the frame is being detached. This is the last |
| 106 // chance we have to communicate with the client. | 100 // chance we have to communicate with the client. |
| 107 RefPtr<WebLocalFrameImpl> protector(m_webFrame); | 101 RefPtr<WebLocalFrameImpl> protector(m_webFrame); |
| 108 | 102 |
| 109 WebFrameClient* client = m_webFrame->client(); | 103 WebFrameClient* client = m_webFrame->client(); |
| 110 if (!client) | 104 if (!client) |
| 111 return; | 105 return; |
| 112 | 106 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte
xtLostReason); | 264 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte
xtLostReason); |
| 271 } | 265 } |
| 272 | 266 |
| 273 void FrameLoaderClientImpl::dispatchDidChangeManifest() | 267 void FrameLoaderClientImpl::dispatchDidChangeManifest() |
| 274 { | 268 { |
| 275 if (m_webFrame->client()) | 269 if (m_webFrame->client()) |
| 276 m_webFrame->client()->didChangeManifest(m_webFrame); | 270 m_webFrame->client()->didChangeManifest(m_webFrame); |
| 277 } | 271 } |
| 278 | 272 |
| 279 } // namespace blink | 273 } // namespace blink |
| OLD | NEW |