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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 12049097: Adding supported checks for CssMatrix and Point. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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:
Download patch
« no previous file with comments | « samples/swarm/swarm_ui_lib/touch/FxUtil.dart ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index e1340e28788fdb9e9865eb1eb867808bbfe2a2f4..0556bc29f95e32487eda4ce891c6443840315bb9 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -1888,6 +1888,9 @@ class CssKeyframesRule extends CssRule native "*WebKitCSSKeyframesRule" {
@DocsEditable
@DomName('WebKitCSSMatrix')
+@SupportedBrowser(SupportedBrowser.CHROME)
+@SupportedBrowser(SupportedBrowser.SAFARI)
+@Experimental
class CssMatrix native "*WebKitCSSMatrix" {
@DocsEditable
@@ -1904,6 +1907,9 @@ class CssMatrix native "*WebKitCSSMatrix" {
return JS('CssMatrix', 'new WebKitCSSMatrix(#)', cssValue);
}
+ /// Checks if this type is supported on the current platform.
+ static bool get supported => JS('bool', '!!(window.WebKitCSSMatrix)');
+
@DomName('WebKitCSSMatrix.a')
@DocsEditable
num a;
@@ -7407,6 +7413,33 @@ class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati
@DocsEditable
+@DomName('WebKitPoint')
+@SupportedBrowser(SupportedBrowser.CHROME)
+@SupportedBrowser(SupportedBrowser.SAFARI)
+@Experimental
+class DomPoint native "*WebKitPoint" {
+
+ @DocsEditable
+ factory DomPoint(num x, num y) => DomPoint._create(x, y);
+ static DomPoint _create(num x, num y) => JS('DomPoint', 'new WebKitPoint(#,#)', x, y);
+
+ /// Checks if this type is supported on the current platform.
+ static bool get supported => JS('bool', '!!(window.WebKitPoint)');
+
+ @DomName('WebKitPoint.x')
+ @DocsEditable
+ num x;
+
+ @DomName('WebKitPoint.y')
+ @DocsEditable
+ num y;
+}
+// Copyright (c) 2012, 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.
+
+
+@DocsEditable
@DomName('Selection')
class DomSelection native "*Selection" {
@@ -18238,27 +18271,6 @@ class PerformanceTiming native "*PerformanceTiming" {
@DocsEditable
-@DomName('WebKitPoint')
-class Point native "*WebKitPoint" {
-
- @DocsEditable
- factory Point(num x, num y) => Point._create(x, y);
- static Point _create(num x, num y) => JS('Point', 'new WebKitPoint(#,#)', x, y);
-
- @DomName('WebKitPoint.x')
- @DocsEditable
- num x;
-
- @DomName('WebKitPoint.y')
- @DocsEditable
- num y;
-}
-// Copyright (c) 2012, 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.
-
-
-@DocsEditable
@DomName('PopStateEvent')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.FIREFOX)
@@ -26105,13 +26117,15 @@ class Window extends EventTarget implements WindowBase native "@*DOMWindow" {
@DocsEditable
void stop() native;
+ @JSName('webkitConvertPointFromNodeToPage')
@DomName('DOMWindow.webkitConvertPointFromNodeToPage')
@DocsEditable
- Point webkitConvertPointFromNodeToPage(Node node, Point p) native;
+ DomPoint convertPointFromNodeToPage(Node node, DomPoint p) native;
+ @JSName('webkitConvertPointFromPageToNode')
@DomName('DOMWindow.webkitConvertPointFromPageToNode')
@DocsEditable
- Point webkitConvertPointFromPageToNode(Node node, Point p) native;
+ DomPoint convertPointFromPageToNode(Node node, DomPoint p) native;
@JSName('webkitRequestFileSystem')
@DomName('DOMWindow.webkitRequestFileSystem')
« no previous file with comments | « samples/swarm/swarm_ui_lib/touch/FxUtil.dart ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698