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

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

Side-by-side diff isn't available for this file because of its large size.
Issue 11196020: Force named arguments in constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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:
Download patch
« no previous file with comments | « no previous file | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/dart2js/html_dart2js.dart
diff --git a/lib/html/dart2js/html_dart2js.dart b/lib/html/dart2js/html_dart2js.dart
index 4f2bae94ce243ff19c01c51166a8768a8a4d0ef6..636e19914f6e0c91a0dc1c432c80606e8bb50a5d 100644
--- a/lib/html/dart2js/html_dart2js.dart
+++ b/lib/html/dart2js/html_dart2js.dart
@@ -100,7 +100,7 @@ class _AbstractWorkerEventsImpl extends _EventsImpl implements AbstractWorkerEve
/// @domName HTMLAnchorElement
abstract class AnchorElement implements Element {
- factory AnchorElement([String href]) {
+ factory AnchorElement({String href}) {
if (!?href) {
return _Elements.createAnchorElement();
}
@@ -7271,7 +7271,7 @@ class _CSSValueListImpl extends _CSSValueImpl implements List<CSSValue>, JavaScr
/// @domName HTMLCanvasElement
abstract class CanvasElement implements Element {
- factory CanvasElement([int width, int height]) {
+ factory CanvasElement({int width, int height}) {
if (!?width) {
return _Elements.createCanvasElement();
}
@@ -16616,7 +16616,7 @@ class _ImageDataImpl implements ImageData native "*ImageData" {
/// @domName HTMLImageElement
abstract class ImageElement implements Element {
- factory ImageElement([String src, int width, int height]) {
+ factory ImageElement({String src, int width, int height}) {
if (!?src) {
return _Elements.createImageElement();
}
@@ -16736,7 +16736,7 @@ class _ImageElementImpl extends _ElementImpl implements ImageElement native "*HT
/// @domName HTMLInputElement
abstract class InputElement implements Element {
- factory InputElement([String type]) {
+ factory InputElement({String type}) {
if (!?type) {
return _Elements.createInputElement();
}
« no previous file with comments | « no previous file | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698