Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: sky/engine/web/FrameLoaderClientImpl.cpp

Issue 776143003: Remove Isolated Worlds from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/web/FrameLoaderClientImpl.h ('k') | sky/engine/web/WebLocalFrameImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « sky/engine/web/FrameLoaderClientImpl.h ('k') | sky/engine/web/WebLocalFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698