| 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 // WARNING: Do not edit - generated code. | |
| 6 | |
| 7 class _DatabaseCallbackWrappingImplementation extends DOMWrapperBase implements
DatabaseCallback { | |
| 8 _DatabaseCallbackWrappingImplementation() : super() {} | |
| 9 | |
| 10 static create__DatabaseCallbackWrappingImplementation() native { | |
| 11 return new _DatabaseCallbackWrappingImplementation(); | |
| 12 } | |
| 13 | |
| 14 bool handleEvent(var database) { | |
| 15 if (database is Database) { | |
| 16 return _handleEvent(this, database); | |
| 17 } else { | |
| 18 if (database is DatabaseSync) { | |
| 19 return _handleEvent_2(this, database); | |
| 20 } | |
| 21 } | |
| 22 throw "Incorrect number or type of arguments"; | |
| 23 } | |
| 24 static bool _handleEvent(receiver, database) native; | |
| 25 static bool _handleEvent_2(receiver, database) native; | |
| 26 | |
| 27 String get typeName() { return "DatabaseCallback"; } | |
| 28 } | |
| OLD | NEW |