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

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

Issue 444373004: Add Audible support to the whispernet client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | components/copresence/public/whispernet_client.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // Use the <code>chrome.copresencePrivate</code> API to interface with Chrome 5 // Use the <code>chrome.copresencePrivate</code> API to interface with Chrome
6 // from the whispernet_proxy extension. 6 // from the whispernet_proxy extension.
7 namespace copresencePrivate { 7 namespace copresencePrivate {
8 8
9 dictionary PlayParameters { 9 dictionary PlayParameters {
10 double sampleRate; 10 double sampleRate;
(...skipping 22 matching lines...) Expand all
33 // Send an array buffer of samples encoded for the specified token. 33 // Send an array buffer of samples encoded for the specified token.
34 static void sendSamples(DOMString token, ArrayBuffer samples); 34 static void sendSamples(DOMString token, ArrayBuffer samples);
35 // Send a boolean indicating whether we detected a broadcast or not. 35 // Send a boolean indicating whether we detected a broadcast or not.
36 static void sendDetect(boolean detected); 36 static void sendDetect(boolean detected);
37 }; 37 };
38 38
39 interface Events { 39 interface Events {
40 // Fired to request initialization of the whisper.net library. 40 // Fired to request initialization of the whisper.net library.
41 static void onInitialize(AudioParameters audioParams); 41 static void onInitialize(AudioParameters audioParams);
42 // Fired to request encoding of the given token. 42 // Fired to request encoding of the given token.
43 static void onEncodeTokenRequest(DOMString base64Token); 43 static void onEncodeTokenRequest(DOMString base64Token, boolean audible);
44 // Fired when we have new samples to decode. 44 // Fired when we have new samples to decode.
45 static void onDecodeSamplesRequest(ArrayBuffer audioSamples); 45 static void onDecodeSamplesRequest(ArrayBuffer audioSamples);
46 // Fired to request a DetectBroadcast. 46 // Fired to request a DetectBroadcast.
47 static void onDetectBroadcastRequest(); 47 static void onDetectBroadcastRequest();
48 }; 48 };
49 }; 49 };
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | components/copresence/public/whispernet_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698