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

Unified Diff: Source/WebCore/bindings/dart/resources/dom_implementation.dart

Issue 9188009: Things to unfork. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 8 years, 11 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: Source/WebCore/bindings/dart/resources/dom_implementation.dart
diff --git a/Source/WebCore/bindings/dart/resources/dom_implementation.dart b/Source/WebCore/bindings/dart/resources/dom_implementation.dart
deleted file mode 100644
index 5e7aa8b47aecc8de143f94d538d573864bca06e9..0000000000000000000000000000000000000000
--- a/Source/WebCore/bindings/dart/resources/dom_implementation.dart
+++ /dev/null
@@ -1,76 +0,0 @@
-class Utils {
- static List convertToList(List list) {
- // FIXME: [possible optimization]: do not copy the array if Dart_IsArray is fine w/ it.
- final length = list.length;
- List result = new List(length);
- result.copyFrom(list, 0, 0, length);
- return result;
- }
-
- static makeNotImplementedException() {
- return const NotImplementedException();
- }
-
- static window() native "TopLevel_Window";
-
- static SendPort spawnDomIsolate(Window window, String entryPoint) native "Utils_spawnDomIsolate";
-}
-
-/*
- * [NPObjectBase] is native wrapper class injected from embedder's code.
- */
-class NPObject extends DOMWrapperBase {
- static NPObject retrieve(String key) native "NPObject_retrieve";
- property(String propertyName) native "NPObject_property";
- invoke(String methodName, [ObjectArray args = null]) native "NPObject_invoke";
-
- static _createNPObject() => new NPObject._createNPObject();
- NPObject._createNPObject();
-}
-
-class DOMWindowCrossFrameImplementation extends DOMType implements DOMWindow {
- // Fields.
- History get history() native "DOMWindow_history_cross_frame_Getter";
- Location get location() native "DOMWindow_location_cross_frame_Getter";
- bool get closed() native "DOMWindow_closed_Getter";
- int get length() native "DOMWindow_length_Getter";
- DOMWindow get opener() native "DOMWindow_opener_Getter";
- DOMWindow get parent() native "DOMWindow_parent_Getter";
- DOMWindow get top() native "DOMWindow_top_Getter";
-
- // Methods.
- void focus() native "DOMWindow_focus_Callback";
- void blur() native "DOMWindow_blur_Callback";
- void close() native "DOMWindow_close_Callback";
- void postMessage([_arg0, _arg1, _arg2]) native "DOMWindow_postMessage_Callback";
-
- // Implementation support.
- static DOMWindowCrossFrameImplementation _createDOMWindowCrossFrameImplementation() => new DOMWindowCrossFrameImplementation._createDOMWindowCrossFrameImplementation();
- DOMWindowCrossFrameImplementation._createDOMWindowCrossFrameImplementation();
-
- String get typeName() => "DOMWindow";
-}
-
-class HistoryCrossFrameImplementation extends DOMType implements History {
- // Methods.
- void back() native "History_back_Callback";
- void forward() native "History_forward_Callback";
- void go(int distance) native "History_go_Callback";
-
- // Implementation support.
- static HistoryCrossFrameImplementation _createHistoryCrossFrameImplementation() => new HistoryCrossFrameImplementation._createHistoryCrossFrameImplementation();
- HistoryCrossFrameImplementation._createHistoryCrossFrameImplementation();
-
- String get typeName() => "History";
-}
-
-class LocationCrossFrameImplementation extends DOMType implements Location {
- // Fields.
- void set href(String) native "Location_href_Setter";
-
- // Implementation support.
- static LocationCrossFrameImplementation _createLocationCrossFrameImplementation() => new LocationCrossFrameImplementation._createLocationCrossFrameImplementation();
- LocationCrossFrameImplementation._createLocationCrossFrameImplementation();
-
- String get typeName() => "Location";
-}
« no previous file with comments | « Source/WebCore/bindings/dart/resources/builtin.dart ('k') | Source/WebCore/bindings/dart/resources/dom_public.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698