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

Side by Side Diff: client/html/src/_FactoryProviders.dart

Issue 8548019: Add a script for determining which DOM methods correspond to which HTML methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More code review changes Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 5
6 // These factory methods could all live in one factory provider class but dartc 6 // These factory methods could all live in one factory provider class but dartc
7 // has a bug (5399939) preventing that. 7 // has a bug (5399939) preventing that.
8 8
9 class _FileReaderFactoryProvider { 9 class _FileReaderFactoryProvider {
10 10
11 factory FileReader() { 11 factory FileReader() {
12 return new dom.FileReader(); 12 return new dom.FileReader();
13 } 13 }
14 } 14 }
15 15
16 class _CSSMatrixFactoryProvider { 16 class _CSSMatrixFactoryProvider {
17 17
18 factory CSSMatrix([String spec = '']) { 18 factory CSSMatrix([String spec = '']) {
19 return new CSSMatrixWrappingImplementation._wrap( 19 return new CSSMatrixWrappingImplementation._wrap(
20 new dom.WebKitCSSMatrix(spec)); 20 new dom.WebKitCSSMatrix(spec));
21 } 21 }
22 } 22 }
23 23
24 class _PointFactoryProvider { 24 class _PointFactoryProvider {
25 25
26 /** @domName DOMWindow.createWebKitPoint */
26 factory Point(num x, num y) { 27 factory Point(num x, num y) {
27 return new PointWrappingImplementation._wrap(new dom.WebKitPoint(x, y)); 28 return new PointWrappingImplementation._wrap(new dom.WebKitPoint(x, y));
28 } 29 }
29 } 30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698