| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 FrameLoaderClientImpl::~FrameLoaderClientImpl() | 74 FrameLoaderClientImpl::~FrameLoaderClientImpl() |
| 75 { | 75 { |
| 76 } | 76 } |
| 77 | 77 |
| 78 void FrameLoaderClientImpl::documentElementAvailable() | 78 void FrameLoaderClientImpl::documentElementAvailable() |
| 79 { | 79 { |
| 80 if (m_webFrame->client()) | 80 if (m_webFrame->client()) |
| 81 m_webFrame->client()->didCreateDocumentElement(m_webFrame); | 81 m_webFrame->client()->didCreateDocumentElement(m_webFrame); |
| 82 } | 82 } |
| 83 | 83 |
| 84 void FrameLoaderClientImpl::didCreateScriptContext(v8::Handle<v8::Context> conte
xt, int extensionGroup, int worldId) | 84 void FrameLoaderClientImpl::didCreateScriptContext(v8::Handle<v8::Context> conte
xt) |
| 85 { | 85 { |
| 86 // FIXME: We shouldn't need separate debugger ids in sky since | 86 // FIXME: We shouldn't need separate debugger ids in sky since |
| 87 // we should have at most one DocumentView per process, no? | 87 // we should have at most one DocumentView per process, no? |
| 88 m_webFrame->frame()->script().setWorldDebugId(worldId, 1); | 88 m_webFrame->frame()->script().setWorldDebugId(1); |
| 89 | 89 |
| 90 if (m_webFrame->client()) | 90 if (m_webFrame->client()) |
| 91 m_webFrame->client()->didCreateScriptContext(m_webFrame, context, extens
ionGroup, worldId); | 91 m_webFrame->client()->didCreateScriptContext(m_webFrame, context); |
| 92 } | 92 } |
| 93 | 93 |
| 94 void FrameLoaderClientImpl::willReleaseScriptContext(v8::Handle<v8::Context> con
text, int worldId) | 94 void FrameLoaderClientImpl::willReleaseScriptContext(v8::Handle<v8::Context> con
text) |
| 95 { | 95 { |
| 96 if (m_webFrame->client()) | 96 if (m_webFrame->client()) |
| 97 m_webFrame->client()->willReleaseScriptContext(m_webFrame, context, worl
dId); | 97 m_webFrame->client()->willReleaseScriptContext(m_webFrame, context); |
| 98 } | 98 } |
| 99 | 99 |
| 100 void FrameLoaderClientImpl::didChangeScrollOffset() | 100 void FrameLoaderClientImpl::didChangeScrollOffset() |
| 101 { | 101 { |
| 102 if (m_webFrame->client()) | 102 if (m_webFrame->client()) |
| 103 m_webFrame->client()->didChangeScrollOffset(m_webFrame); | 103 m_webFrame->client()->didChangeScrollOffset(m_webFrame); |
| 104 } | 104 } |
| 105 | 105 |
| 106 void FrameLoaderClientImpl::detachedFromParent() | 106 void FrameLoaderClientImpl::detachedFromParent() |
| 107 { | 107 { |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte
xtLostReason); | 274 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte
xtLostReason); |
| 275 } | 275 } |
| 276 | 276 |
| 277 void FrameLoaderClientImpl::dispatchDidChangeManifest() | 277 void FrameLoaderClientImpl::dispatchDidChangeManifest() |
| 278 { | 278 { |
| 279 if (m_webFrame->client()) | 279 if (m_webFrame->client()) |
| 280 m_webFrame->client()->didChangeManifest(m_webFrame); | 280 m_webFrame->client()->didChangeManifest(m_webFrame); |
| 281 } | 281 } |
| 282 | 282 |
| 283 } // namespace blink | 283 } // namespace blink |
| OLD | NEW |