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

Side by Side Diff: chrome/common/extensions/api/experimental_idltest.idl

Issue 10272021: Files generated by the JSON schema compiler are named incorrectly (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Renamed json files Created 8 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // An API to test IDL schema specifications. 5 // An API to test IDL schema specifications.
6 6
7 [nodoc] namespace experimental.idltest { 7 [nodoc] namespace experimental.idltest {
8 8
9 callback LongArrayCallback = void(long[] array); 9 callback LongArrayCallback = void(long[] array);
10 callback ArrayBufferCallback = void([instanceOf=ArrayBuffer] object buffer); 10 callback ArrayBufferCallback = void([instanceOf=ArrayBuffer] object buffer);
11 11
12 interface Functions { 12 interface Functions {
13 // Functions for testing binary data request/response parameters. The first 13 // Functions for testing binary data request/response parameters. The first
14 // two just return back the bytes they were passed in an array. 14 // two just return back the bytes they were passed in an array.
15 static void sendArrayBuffer([instanceOf=ArrayBuffer] object input, 15 static void sendArrayBuffer([instanceOf=ArrayBuffer] object input,
16 LongArrayCallback cb); 16 LongArrayCallback cb);
17 // TODO(asargent) - we currently can't have [instanceOf=ArrayBufferView], 17 // TODO(asargent) - we currently can't have [instanceOf=ArrayBufferView],
18 // I think because ArrayBufferView isn't an instantiable type. The best 18 // I think because ArrayBufferView isn't an instantiable type. The best
19 // we might be able to do is have a 'choices' list including all the 19 // we might be able to do is have a 'choices' list including all the
20 // typed array subclasses like Uint8Array, Uint16Array, Float32Array, etc. 20 // typed array subclasses like Uint8Array, Uint16Array, Float32Array, etc.
21 static void sendArrayBufferView([instanceOf=Uint8Array] object input, 21 static void sendArrayBufferView([instanceOf=Uint8Array] object input,
22 LongArrayCallback cb); 22 LongArrayCallback cb);
23 static void getArrayBuffer(ArrayBufferCallback cb); 23 static void getArrayBuffer(ArrayBufferCallback cb);
24 }; 24 };
25 25
26 }; 26 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698