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

Unified Diff: sky/engine/core/script/dart_controller.h

Issue 1130353009: Teach SkyView how to load the main script (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | sky/engine/core/script/dart_controller.cc » ('j') | sky/engine/public/sky/sky_view.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/script/dart_controller.h
diff --git a/sky/engine/core/script/dart_controller.h b/sky/engine/core/script/dart_controller.h
index 2266a8d7c8728f8266b59bfa3658272b68e818ea..ece69b2eb61ece97fab387395850959cfee0ad92 100644
--- a/sky/engine/core/script/dart_controller.h
+++ b/sky/engine/core/script/dart_controller.h
@@ -7,6 +7,7 @@
#include "base/callback_forward.h"
#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
#include "dart/runtime/include/dart_api.h"
#include "sky/engine/wtf/OwnPtr.h"
#include "sky/engine/wtf/text/AtomicString.h"
@@ -19,6 +20,7 @@ class DOMDartState;
class DartValue;
class Document;
class HTMLScriptElement;
+class KURL;
class DartController {
public:
@@ -30,6 +32,8 @@ class DartController {
typedef base::Callback<void(RefPtr<AbstractModule>, RefPtr<DartValue>)>
LoadFinishedCallback;
+ void LoadMainLibrary(const KURL& url);
+
void LoadScriptInModule(AbstractModule* module,
const String& source,
const TextPosition& textPosition,
@@ -49,9 +53,13 @@ class DartController {
const String& source,
const TextPosition& position);
+ void DidLoadMainLibrary(KURL url);
+
OwnPtr<DOMDartState> dom_dart_state_;
OwnPtr<BuiltinSky> builtin_sky_;
+ base::WeakPtrFactory<DartController> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(DartController);
};
« no previous file with comments | « no previous file | sky/engine/core/script/dart_controller.cc » ('j') | sky/engine/public/sky/sky_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698