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

Unified Diff: sky/engine/core/app/AbstractModule.cpp

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/app/AbstractModule.h ('k') | sky/engine/core/app/AbstractModule.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/app/AbstractModule.cpp
diff --git a/sky/engine/core/app/AbstractModule.cpp b/sky/engine/core/app/AbstractModule.cpp
index fccb59bf2216a456a4b555a5018f6ad3b664d239..3cd17cf515565793e5c7b103edb8e843b2adce52 100644
--- a/sky/engine/core/app/AbstractModule.cpp
+++ b/sky/engine/core/app/AbstractModule.cpp
@@ -26,22 +26,4 @@ ExecutionContext* AbstractModule::executionContext() const {
return ContextLifecycleObserver::executionContext();
}
-ScriptPromise AbstractModule::import(ScriptState* script_state,
- const String& url_string) {
- KURL url = document()->completeURL(url_string);
- RefPtr<ScriptPromiseResolver> resolver =
- ScriptPromiseResolver::create(script_state);
- OwnPtr<ModuleLoader> loader =
- adoptPtr(new ModuleLoader(this, GetApplication(), url));
- loaders_.set(loader.release(), resolver);
- return resolver->promise();
-}
-
-void AbstractModule::OnModuleLoadComplete(ModuleLoader* loader,
- Module* module) {
- RefPtr<ScriptPromiseResolver> resolver = loaders_.take(loader);
- ScriptState::Scope scope(resolver->scriptState());
- resolver->resolve(module->exports(resolver->scriptState()).v8Value());
-}
-
} // namespace blink
« no previous file with comments | « sky/engine/core/app/AbstractModule.h ('k') | sky/engine/core/app/AbstractModule.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698