| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 | |
| 6 // These factory methods could all live in one factory provider class but dartc | |
| 7 // has a bug (5399939) preventing that. | |
| 8 | |
| 9 class FileReaderFactoryProvider { | |
| 10 | |
| 11 factory FileReader() { | |
| 12 return new dom.FileReader(); | |
| 13 } | |
| 14 } | |
| 15 | |
| 16 class CSSMatrixFactoryProvider { | |
| 17 | |
| 18 factory CSSMatrix([String spec = '']) { | |
| 19 return new CSSMatrixWrappingImplementation._wrap( | |
| 20 new dom.WebKitCSSMatrix(spec)); | |
| 21 } | |
| 22 } | |
| 23 | |
| 24 class PointFactoryProvider { | |
| 25 | |
| 26 factory Point(num x, num y) { | |
| 27 return new PointWrappingImplementation._wrap(new dom.WebKitPoint(x, y)); | |
| 28 } | |
| 29 } | |
| OLD | NEW |