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

Unified Diff: tools/json_schema_compiler/dart_test/basic_event.dart

Issue 12218151: Added unit tests for the Dart Chrome.* API wrappers. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove print statement if outputting to file. Created 7 years, 10 months 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 side-by-side diff with in-line comments
Download patch
Index: tools/json_schema_compiler/dart_test/basic_event.dart
diff --git a/tools/json_schema_compiler/dart_test/basic_event.dart b/tools/json_schema_compiler/dart_test/basic_event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..905ab7fd34c621a3be729c76d89cdda9eb5d414b
--- /dev/null
+++ b/tools/json_schema_compiler/dart_test/basic_event.dart
@@ -0,0 +1,40 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// Generated from namespace: basic_event
+
+part of chrome;
+/**
+ * Events
+ */
+
+/// Documentation for basicEvent.
+class Event_basic_event_basicEvent extends Event {
+ void addListener(void callback()) => super.addListener(callback);
+
+ void removeListener(void callback()) => super.removeListener(callback);
+
+ bool hasListener(void callback()) => super.hasListener(callback);
+
+ Event_basic_event_basicEvent(jsObject) : super._(jsObject, 0);
+}
+
+/**
+ * Functions
+ */
+
+class API_basic_event {
+ /*
+ * API connection
+ */
+ Object _jsObject;
+
+ /*
+ * Events
+ */
+ Event_basic_event_basicEvent basicEvent;
+ API_basic_event(this._jsObject) {
+ basicEvent = new Event_basic_event_basicEvent(JS('', '#.basicEvent', this._jsObject));
+ }
+}
« no previous file with comments | « tools/json_schema_compiler/dart_generator_test.py ('k') | tools/json_schema_compiler/dart_test/basic_event.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698