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

Unified Diff: runtime/bin/builtin.h

Issue 1916793003: - Allow for loading dart:html and friends into the standalone (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rebase. Created 4 years, 8 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 | « runtime/bin/bin.gypi ('k') | runtime/bin/builtin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin.h
diff --git a/runtime/bin/builtin.h b/runtime/bin/builtin.h
index ab871af350041f321347ce3f5f45d66da04665b9..863237a3b79653ada1bf014a556001c39f473821 100644
--- a/runtime/bin/builtin.h
+++ b/runtime/bin/builtin.h
@@ -30,7 +30,20 @@ class Builtin {
enum BuiltinLibraryId {
kBuiltinLibrary = 0,
kIOLibrary,
-
+#if defined(DART_NO_SNAPSHOT)
+ // Only include these libraries in the dart_bootstrap case for now.
+ kHTMLLibrary,
+ kHTMLCommonLibrary,
+ kJSLibrary,
+ kBlinkLibrary,
+ kIndexedDbLibrary,
+ kCachedPatchesLibrary,
+ kWebGlLibrary,
+ kMetaDataLibrary,
+ kWebSqlLibrary,
+ kSvgLibrary,
+ kWebAudioLibrary,
+#endif // defined(DART_NO_SNAPSHOT)
kInvalidLibrary,
};
@@ -44,6 +57,7 @@ class Builtin {
static void SetNativeResolver(BuiltinLibraryId id);
static Dart_Handle LoadLibrary(Dart_Handle url, BuiltinLibraryId id);
+ static BuiltinLibraryId FindId(const char* url_string);
// Check if built in library specified in 'id' is already loaded, if not
// load it.
@@ -66,6 +80,18 @@ class Builtin {
static const char* _builtin_source_paths_[];
static const char* io_source_paths_[];
static const char* io_patch_paths_[];
+ static const char* html_source_paths_[];
+ static const char* html_common_source_paths_[];
+ static const char* js_source_paths_[];
+ static const char* blink_source_paths_[];
+ static const char* indexeddb_source_paths_[];
+ static const char* cached_patches_source_paths_[];
+ static const char* web_gl_source_paths_[];
+ static const char* metadata_source_paths_[];
+ static const char* websql_source_paths_[];
+ static const char* svg_source_paths_[];
+ static const char* webaudio_source_paths_[];
+
static Dart_Port load_port_;
typedef struct {
« no previous file with comments | « runtime/bin/bin.gypi ('k') | runtime/bin/builtin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698