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

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

Issue 1695563002: Media Galleries Partial Deprecation: Remove scan functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « chrome/common/chrome_paths_mac.mm ('k') | chrome/common/extensions/api/media_galleries.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 namespace idltest { 6 namespace idltest {
7 7
8 callback LongArrayCallback = void(long[] array); 8 callback LongArrayCallback = void(long[] array);
9 callback ArrayBufferCallback = void(ArrayBuffer buffer); 9 callback ArrayBufferCallback = void(ArrayBuffer buffer);
10 10
11 interface Functions { 11 interface Functions {
12 // Functions for testing binary data request/response parameters. The first 12 // Functions for testing binary data request/response parameters. The first
13 // two just return back the bytes they were passed in an array. 13 // two just return back the bytes they were passed in an array.
14 static void sendArrayBuffer(ArrayBuffer input, LongArrayCallback cb); 14 static void sendArrayBuffer(ArrayBuffer input, LongArrayCallback cb);
15 15
16 // TODO(asargent) - we currently can't have [instanceOf=ArrayBufferView], 16 // TODO(asargent) - we currently can't have [instanceOf=ArrayBufferView],
17 // I think because ArrayBufferView isn't an instantiable type. The best 17 // I think because ArrayBufferView isn't an instantiable type. The best
18 // we might be able to do is have a 'choices' list including all the 18 // we might be able to do is have a 'choices' list including all the
19 // typed array subclasses like Uint8Array, Uint16Array, Float32Array, etc. 19 // typed array subclasses like Uint8Array, Uint16Array, Float32Array, etc.
20 static void sendArrayBufferView([instanceOf=Uint8Array] object input, 20 static void sendArrayBufferView([instanceOf=Uint8Array] object input,
21 LongArrayCallback cb); 21 LongArrayCallback cb);
22 static void getArrayBuffer(ArrayBufferCallback cb); 22 static void getArrayBuffer(ArrayBufferCallback cb);
23 23
24 // This function should not have C++ code autogenerated (the variable name 24 // This function should not have C++ code autogenerated (the variable name
25 // |switch| should cause compile errors if it does). But the name should 25 // |switch| should cause compile errors if it does). But the name should
26 // get defined and made visible from within extensions/apps code. 26 // get defined and made visible from within extensions/apps code.
27 [nocompile] static void nocompileFunc(long switch); 27 [nocompile] static void nocompileFunc(long switch);
28
29 // This function should not have C++ code autogenerated (the variable name
30 // |switch| should cause compile errors if it does). The name should also
31 // never be defined in Javascript and invisible to extensions/apps code.
32 [nodefine] static void nodefineFunc(long switch);
28 }; 33 };
29 34
30 }; 35 };
OLDNEW
« no previous file with comments | « chrome/common/chrome_paths_mac.mm ('k') | chrome/common/extensions/api/media_galleries.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698