Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 include protocol PFMRadio;
7 namespace mozilla {
8 namespace dom {
10 struct ErrorResponse
11 {
12 nsString error;
13 };
15 struct SuccessResponse
16 {
17 };
19 union FMRadioResponseType
20 {
21 ErrorResponse;
22 SuccessResponse;
23 };
25 /**
26 * The protocol is used for sending asynchronous operation requests of
27 * FM radio HW from child to parent, and the type of the request is defined in
28 * FMRadioRequestArgs.
29 *
30 * When the request completed, the result, i.e. FMRadioResponseType, will be
31 * sent back to child from parent in the `__delete__` message.
32 */
33 async protocol PFMRadioRequest
34 {
35 manager PFMRadio;
37 child:
38 __delete__(FMRadioResponseType response);
39 };
41 } // namespace dom
42 } // namespace mozilla