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

Side by Side Diff: client/dom/generated/src/wrapping/_DatabaseCallbackWrappingImplementation.dart

Issue 8786016: Generate callbacks as typedefs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add missing newline Created 9 years 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
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698