| OLD | NEW |
| 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 factory Point(num x, num y) { | 26 factory Point(num x, num y) { |
| 27 return new PointWrappingImplementation._wrap(new dom.WebKitPoint(x, y)); | 27 return new PointWrappingImplementation._wrap(new dom.WebKitPoint(x, y)); |
| 28 } | 28 } |
| 29 } | 29 } |
| OLD | NEW |