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

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

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
Index: lib/html/dartium/html_dartium.dart
diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
index 9c41146fae5e95a228f9c84460f53ae4672cfa6b..8fe53e41504ad4af6f646af44226a220f30ecc0d 100644
--- a/lib/html/dartium/html_dartium.dart
+++ b/lib/html/dartium/html_dartium.dart
@@ -122,7 +122,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();
}
@@ -7894,7 +7894,7 @@ class _CSSValueListImpl extends _CSSValueImpl implements List<CSSValue> {
/// @domName HTMLCanvasElement
abstract class CanvasElement implements Element {
- factory CanvasElement([int width, int height]) {
+ factory CanvasElement({int width, int height}) {
if (!?width) {
return _Elements.createCanvasElement();
}
@@ -18381,7 +18381,7 @@ class _ImageDataImpl extends NativeFieldWrapperClass1 implements 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();
}
@@ -18535,7 +18535,7 @@ class _HTMLImageElementImpl extends _HTMLElementImpl implements ImageElement {
/// @domName HTMLInputElement
abstract class InputElement implements Element {
- factory InputElement([String type]) {
+ factory InputElement({String type}) {
if (!?type) {
return _Elements.createInputElement();
}

Powered by Google App Engine
This is Rietveld 408576698