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

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

Issue 843213003: Remove dart generator code from json schema compiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « tools/json_schema_compiler/dart_test/events.idl ('k') | tools/json_schema_compiler/dart_test/functions.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/dart_test/functions.dart
diff --git a/tools/json_schema_compiler/dart_test/functions.dart b/tools/json_schema_compiler/dart_test/functions.dart
deleted file mode 100644
index 7ee9db97e0fbe3f535e2db3290bf8778cd223d0d..0000000000000000000000000000000000000000
--- a/tools/json_schema_compiler/dart_test/functions.dart
+++ /dev/null
@@ -1,93 +0,0 @@
-// Copyright (c) 2015, 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: functions
-
-part of chrome;
-
-/**
- * Types
- */
-
-class FunctionsDictType extends ChromeObject {
- /*
- * Private constructor
- */
- FunctionsDictType._proxy(_jsObject) : super._proxy(_jsObject);
-
- /*
- * Public accessors
- */
- /// A field.
- int get a => JS('int', '#.a', this._jsObject);
-
- void set a(int a) {
- JS('void', '#.a = #', this._jsObject, a);
- }
-
-
- /*
- * Methods
- */
- /// A parameter.
- void voidFunc() => JS('void', '#.voidFunc()', this._jsObject);
-
-}
-
-/**
- * Functions
- */
-
-class API_functions {
- /*
- * API connection
- */
- Object _jsObject;
-
- /*
- * Functions
- */
- /// Simple function.
- void voidFunc() => JS('void', '#.voidFunc()', this._jsObject);
-
- /// Function taking a non-optional argument.
- void argFunc(String s) => JS('void', '#.argFunc(#)', this._jsObject, s);
-
- /// Function taking an optional argument.
- void optionalArgFunc([String s]) => JS('void', '#.optionalArgFunc(#)', this._jsObject, s);
-
- /// Function taking a non-optional dictionary argument.
- void dictArgFunc(FunctionsDictType d) => JS('void', '#.dictArgFunc(#)', this._jsObject, convertArgument(d));
-
- /// Function taking an optional dictionary argument.
- void optionalDictArgFunc([FunctionsDictType d]) => JS('void', '#.optionalDictArgFunc(#)', this._jsObject, convertArgument(d));
-
- /// Function taking an entry argument.
- void entryArgFunc(Object entry) => JS('void', '#.entryArgFunc(#)', this._jsObject, convertArgument(entry));
-
- /// Function taking a simple callback.
- void callbackFunc(void c()) => JS('void', '#.callbackFunc(#)', this._jsObject, convertDartClosureToJS(c, 0));
-
- /// Function taking an optional simple callback.
- void optionalCallbackFunc([void c()]) => JS('void', '#.optionalCallbackFunc(#)', this._jsObject, convertDartClosureToJS(c, 0));
-
- /// Function taking a primitive callback.
- void primitiveCallbackFunc(void c(int i)) => JS('void', '#.primitiveCallbackFunc(#)', this._jsObject, convertDartClosureToJS(c, 1));
-
- /// Function taking a dictionary callback.
- void dictCallbackFunc(void c(DictType dict)) {
- void __proxy_callback(dict) {
- if (c != null) {
- c(new DictType._proxy(dict));
- }
- }
- JS('void', '#.dictCallbackFunc(#)', this._jsObject, convertDartClosureToJS(__proxy_callback, 1));
- }
-
- /// Function returning a dictionary.
- FunctionsDictType dictRetFunc() => new FunctionsDictType._proxy(JS('', '#.dictRetFunc()', this._jsObject));
-
- API_functions(this._jsObject) {
- }
-}
« no previous file with comments | « tools/json_schema_compiler/dart_test/events.idl ('k') | tools/json_schema_compiler/dart_test/functions.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698