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