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

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: Review comments. 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
Index: runtime/bin/builtin.h
diff --git a/runtime/bin/builtin.h b/runtime/bin/builtin.h
index ab871af350041f321347ce3f5f45d66da04665b9..ec249a91a23e57fbc3b9dd4f5ac52249b27c8570 100644
--- a/runtime/bin/builtin.h
+++ b/runtime/bin/builtin.h
@@ -30,6 +30,17 @@ class Builtin {
enum BuiltinLibraryId {
kBuiltinLibrary = 0,
kIOLibrary,
+ kHTMLLibrary,
+ kHTMLCommonLibrary,
+ kJSLibrary,
+ kBlinkLibrary,
+ kIndexedDbLibrary,
+ kCachedPatchesLibrary,
+ kWebGlLibrary,
+ kMetaDataLibrary,
+ kWebSqlLibrary,
+ kSvgLibrary,
+ kWebAudioLibrary,
kInvalidLibrary,
};
@@ -44,6 +55,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 +78,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 {

Powered by Google App Engine
This is Rietveld 408576698