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

Unified Diff: tools/dom/templates/html/dartium/html_dartium.darttemplate

Issue 1402233002: Move make_dart_rectangle to html_common (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove the dart2js version. It's never called Created 5 years, 2 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 | « sdk/lib/html/html_common/conversions_dartium.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/dartium/html_dartium.darttemplate
diff --git a/tools/dom/templates/html/dartium/html_dartium.darttemplate b/tools/dom/templates/html/dartium/html_dartium.darttemplate
index 25122510e5f92dae540c07f8e6fc25233d7d8157..70fd100ef881467b1306038ff289f52213ea7bd8 100644
--- a/tools/dom/templates/html/dartium/html_dartium.darttemplate
+++ b/tools/dom/templates/html/dartium/html_dartium.darttemplate
@@ -356,7 +356,7 @@ Function _getSvgFunction(String key) {
var _knownCustomElements = new Map<String, Map<Type, String>>();
void _addCustomElementType(String tagName, Type dartClass, [String extendTag]) {
- _knownCustomElements[tagName] =
+ _knownCustomElements[tagName] =
{'type': dartClass, 'extends': extendTag != null ? extendTag : "" };
}
@@ -446,13 +446,6 @@ String _getCustomElementName(element) {
return tag;
}
-Rectangle make_dart_rectangle(r) =>
- r == null ? null : new Rectangle(
- js.JsNative.getProperty(r, 'left'),
- js.JsNative.getProperty(r, 'top'),
- js.JsNative.getProperty(r, 'width'),
- js.JsNative.getProperty(r, 'height'));
-
/// An abstract class for all DOM objects we wrap in dart:html and related
/// libraries.
class DartHtmlDomObject {
@@ -821,7 +814,6 @@ class DartHtmlDomObject extends NativeFieldWrapperClass2 {}
unwrap_jso(dartClass_instance) => dartClass_instance;
wrap_jso(jsObject) => jsObject;
-make_dart_rectangle(r) => r;
convertDartToNative_Dictionary(Map dict) => dict;
List convertDartToNative_StringArray(List<String> input) => input;
convertDartToNative_List(List input) => input;
« no previous file with comments | « sdk/lib/html/html_common/conversions_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698