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

Unified Diff: lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 10544111: Some HTML API cleanup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add new template Created 8 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:
Download patch
Index: lib/html/dartium/html_dartium.dart
diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
index 8b0b3d8a0487f4a1c982b89716f168a42b036d48..2e2361e1c901e48e322494962082dba9e18c6c84 100644
--- a/lib/html/dartium/html_dartium.dart
+++ b/lib/html/dartium/html_dartium.dart
@@ -39,6 +39,9 @@ Document get document() {
Document get _document() => _window.document;
+Element query(String selector) => _document.query(selector);
+ElementList queryAll(String selector) => _document.queryAll(selector);
+
class _Null {
const _Null();
}
@@ -8644,8 +8647,6 @@ class _HTMLButtonElementImpl extends _HTMLElementImpl implements ButtonElement {
// 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.
-
class _HTMLCanvasElementImpl extends _HTMLElementImpl implements CanvasElement {
int get height() native "HTMLCanvasElement_height_Getter";
@@ -8660,6 +8661,8 @@ class _HTMLCanvasElementImpl extends _HTMLElementImpl implements CanvasElement {
String toDataURL(String type) native "HTMLCanvasElement_toDataURL_Callback";
+
+ CanvasRenderingContext2D get context2d() => getContext('2d');
}
// 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
@@ -24820,6 +24823,8 @@ interface CanvasElement extends Element default _Elements {
/** @domName HTMLCanvasElement.toDataURL */
String toDataURL(String type);
+
+ final CanvasRenderingContext2D context2d;
}
// 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

Powered by Google App Engine
This is Rietveld 408576698