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

Unified Diff: sky/engine/bindings-dart/dart/scripts/templates/dart_blink.template

Issue 918273002: Remove bindings-dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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: sky/engine/bindings-dart/dart/scripts/templates/dart_blink.template
diff --git a/sky/engine/bindings-dart/dart/scripts/templates/dart_blink.template b/sky/engine/bindings-dart/dart/scripts/templates/dart_blink.template
deleted file mode 100644
index 98bf3c5deefbbbd6114bd2a0af277a7893707734..0000000000000000000000000000000000000000
--- a/sky/engine/bindings-dart/dart/scripts/templates/dart_blink.template
+++ /dev/null
@@ -1,100 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-library dart.dom._blink;
-
-// This is a place to put custom renames if we need them.
-final resolverMap = {
-};
-
-dynamic resolver(String s) {
-{% for interface in interfaces %}
- if (s == "{{interface.name}}") return Blink{{interface.name}}.instance;
-{% endfor %}
- // Failed to find it, check for custom renames
- dynamic obj = resolverMap[s];
- if (obj != null) return obj;
- throw("No such interface exposed in blink: ${s}");
-}
-
-{% from 'methods_cpp.template' import resolver_method_name with context %}
-{% for interface in interfaces %}
-class Blink{{interface.name}}{% if interface.parent_interface %} extends Blink{{interface.parent_interface}}{% endif %} {
- static final instance = new Blink{{interface.name}}();
-
- {% for native_entry in interface.native_entries %}
- {% set blink_entry = native_entry.blink_entry %}
- {% set args = native_entry.argument_names | join(", ") %}
- {% set resolver_string = native_entry.resolver_string %}
- static {{blink_entry}}({{args}}) native "{{resolver_string}}";
- {{blink_entry}}_({{args}}) => {{blink_entry}}({{args}});
-
- {% endfor %}
-}
-
-{% endfor %}
-
-// _Utils native entry points
-class Blink_Utils {
- static window() native "Utils_window";
-
- static forwardingPrint(message) native "Utils_forwardingPrint";
-
- static spawnDomUri(uri) native "Utils_spawnDomUri";
-
- static register(document, tag, customType, extendsTagName) native "Utils_register";
-
- static createElement(document, tagName) native "Utils_createElement";
-
- static initializeCustomElement(element) native "Utils_initializeCustomElement";
-
- static changeElementWrapper(element, type) native "Utils_changeElementWrapper";
-}
-
-class Blink_DOMWindowCrossFrame {
- // FIXME: Return to using explicit cross frame entry points after roll to M35
- static get_history(_DOMWindowCrossFrame) native "Window_history_cross_frame_Getter";
-
- static get_location(_DOMWindowCrossFrame) native "Window_location_cross_frame_Getter";
-
- static get_closed(_DOMWindowCrossFrame) native "Window_closed_Getter";
-
- static get_opener(_DOMWindowCrossFrame) native "Window_opener_Getter";
-
- static get_parent(_DOMWindowCrossFrame) native "Window_parent_Getter";
-
- static get_top(_DOMWindowCrossFrame) native "Window_top_Getter";
-
- static close(_DOMWindowCrossFrame) native "Window_close_Callback";
-
- static postMessage(_DOMWindowCrossFrame, message, targetOrigin, [messagePorts]) native "Window_postMessage_Callback";
-}
-
-class Blink_HistoryCrossFrame {
- // _HistoryCrossFrame native entry points
- static back(_HistoryCrossFrame) native "History_back_Callback";
-
- static forward(_HistoryCrossFrame) native "History_forward_Callback";
-
- static go(_HistoryCrossFrame, distance) native "History_go_Callback";
-}
-
-class Blink_LocationCrossFrame {
- // _LocationCrossFrame native entry points
- static set_href(_LocationCrossFrame, h) native "Location_href_Setter";
-}
-
-class Blink_DOMStringMap {
- // _DOMStringMap native entry points
- static containsKey(_DOMStringMap, key) native "DOMStringMap_containsKey_Callback";
-
- static item(_DOMStringMap, key) native "DOMStringMap_item_Callback";
-
- static setItem(_DOMStringMap, key, value) native "DOMStringMap_setItem_Callback";
-
- static remove(_DOMStringMap, key) native "DOMStringMap_remove_Callback";
-
- static get_keys(_DOMStringMap) native "DOMStringMap_getKeys_Callback";
-}

Powered by Google App Engine
This is Rietveld 408576698