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

Unified Diff: tools/dom/src/html_native_DOMImplementation.dart

Issue 319283003: Refactor dart:_blink into classes to improve startup time (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 6 years, 6 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: tools/dom/src/html_native_DOMImplementation.dart
diff --git a/tools/dom/src/html_native_DOMImplementation.dart b/tools/dom/src/html_native_DOMImplementation.dart
index 4ac5eff90ae8d0a60aa46e7c25d6839b7c3da703..75ba90f543731180fe0cd590f42b1901ed10b6d9 100644
--- a/tools/dom/src/html_native_DOMImplementation.dart
+++ b/tools/dom/src/html_native_DOMImplementation.dart
@@ -185,11 +185,11 @@ class _Utils {
return element;
}
- static window() => _blink.Native_Utils_window();
- static forwardingPrint(String message) => _blink.Native_Utils_forwardingPrint(message);
+ static window() => _blink.Blink_Utils.window();
+ static forwardingPrint(String message) => _blink.Blink_Utils.forwardingPrint(message);
// TODO(vsm): Make this API compatible with spawnUri. It should also
// return a Future<Isolate>.
- static spawnDomUri(String uri) => _blink.Native_Utils_spawnDomUri(uri);
+ static spawnDomUri(String uri) => _blink.Blink_Utils.spawnDomUri(uri);
// The following methods were added for debugger integration to make working
// with the Dart C mirrors API simpler.
@@ -793,16 +793,16 @@ class _Utils {
}
static void _register(Document document, String tag, Type customType,
- String extendsTagName) => _blink.Native_Utils_register(document, tag, customType, extendsTagName);
+ String extendsTagName) => _blink.Blink_Utils.register(document, tag, customType, extendsTagName);
static Element createElement(Document document, String tagName) =>
- _blink.Native_Utils_createElement(document, tagName);
+ _blink.Blink_Utils.createElement(document, tagName);
static void initializeCustomElement(HtmlElement element) =>
- _blink.Native_Utils_initializeCustomElement(element);
+ _blink.Blink_Utils.initializeCustomElement(element);
static Element changeElementWrapper(HtmlElement element, Type type) =>
- _blink.Native_Utils_changeElementWrapper(element, type);
+ _blink.Blink_Utils.changeElementWrapper(element, type);
}
class _DOMWindowCrossFrame extends NativeFieldWrapperClass2 implements
@@ -810,17 +810,17 @@ class _DOMWindowCrossFrame extends NativeFieldWrapperClass2 implements
_DOMWindowCrossFrame.internal();
// Fields.
- HistoryBase get history => _blink.Native_DOMWindowCrossFrame_get_history(this);
- LocationBase get location => _blink.Native_DOMWindowCrossFrame_get_location(this);
- bool get closed => _blink.Native_DOMWindowCrossFrame_get_closed(this);
- WindowBase get opener => _blink.Native_DOMWindowCrossFrame_get_opener(this);
- WindowBase get parent => _blink.Native_DOMWindowCrossFrame_get_parent(this);
- WindowBase get top => _blink.Native_DOMWindowCrossFrame_get_top(this);
+ HistoryBase get history => _blink.Blink_DOMWindowCrossFrame.get_history(this);
+ LocationBase get location => _blink.Blink_DOMWindowCrossFrame.get_location(this);
+ bool get closed => _blink.Blink_DOMWindowCrossFrame.get_closed(this);
+ WindowBase get opener => _blink.Blink_DOMWindowCrossFrame.get_opener(this);
+ WindowBase get parent => _blink.Blink_DOMWindowCrossFrame.get_parent(this);
+ WindowBase get top => _blink.Blink_DOMWindowCrossFrame.get_top(this);
// Methods.
- void close() => _blink.Native_DOMWindowCrossFrame_close(this);
+ void close() => _blink.Blink_DOMWindowCrossFrame.close(this);
void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) =>
- _blink.Native_DOMWindowCrossFrame_postMessage(this, message, targetOrigin, messagePorts);
+ _blink.Blink_DOMWindowCrossFrame.postMessage(this, message, targetOrigin, messagePorts);
// Implementation support.
String get typeName => "Window";
@@ -845,9 +845,9 @@ class _HistoryCrossFrame extends NativeFieldWrapperClass2 implements HistoryBase
_HistoryCrossFrame.internal();
// Methods.
- void back() => _blink.Native_HistoryCrossFrame_back(this);
- void forward() => _blink.Native_HistoryCrossFrame_forward(this);
- void go(int distance) => _blink.Native_HistoryCrossFrame_go(this, distance);
+ void back() => _blink.Blink_HistoryCrossFrame.back(this);
+ void forward() => _blink.Blink_HistoryCrossFrame.forward(this);
+ void go(int distance) => _blink.Blink_HistoryCrossFrame.go(this, distance);
// Implementation support.
String get typeName => "History";
@@ -857,7 +857,7 @@ class _LocationCrossFrame extends NativeFieldWrapperClass2 implements LocationBa
_LocationCrossFrame.internal();
// Fields.
- void set href(String h) => _blink.Native_LocationCrossFrame_set_href(this, h);
+ void set href(String h) => _blink.Blink_LocationCrossFrame.set_href(this, h);
// Implementation support.
String get typeName => "Location";
@@ -867,14 +867,14 @@ class _DOMStringMap extends NativeFieldWrapperClass2 implements Map<String, Stri
_DOMStringMap.internal();
bool containsValue(String value) => Maps.containsValue(this, value);
- bool containsKey(String key) => _blink.Native_DOMStringMap_containsKey(this, key);
- String operator [](String key) => _blink.Native_DOMStringMap_item(this, key);
- void operator []=(String key, String value) => _blink.Native_DOMStringMap_setItem(this, key, value);
+ bool containsKey(String key) => _blink.Blink_DOMStringMap.containsKey(this, key);
+ String operator [](String key) => _blink.Blink_DOMStringMap.item(this, key);
+ void operator []=(String key, String value) => _blink.Blink_DOMStringMap.setItem(this, key, value);
String putIfAbsent(String key, String ifAbsent()) => Maps.putIfAbsent(this, key, ifAbsent);
- String remove(String key) => _blink.Native_DOMStringMap_remove(this, key);
+ String remove(String key) => _blink.Blink_DOMStringMap.remove(this, key);
void clear() => Maps.clear(this);
void forEach(void f(String key, String value)) => Maps.forEach(this, f);
- Iterable<String> get keys => _blink.Native_DOMStringMap_get_keys(this);
+ Iterable<String> get keys => _blink.Blink_DOMStringMap.get_keys(this);
Iterable<String> get values => Maps.getValues(this);
int get length => Maps.length(this);
bool get isEmpty => Maps.isEmpty(this);
« no previous file with comments | « tools/dom/src/blink_native_DOMImplementation.dart ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698