|
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
|
4 * You can obtain one at http://mozilla.org/MPL/2.0/. |
|
5 */ |
|
6 |
|
7 interface nsIVariant; |
|
8 |
|
9 [ChromeOnly] |
|
10 interface DataContainerEvent : Event { |
|
11 /** |
|
12 * Return the data associated with the given key. |
|
13 * |
|
14 * @param key the key |
|
15 * @return the data associated with the key |
|
16 */ |
|
17 nsIVariant? getData(DOMString? key); |
|
18 |
|
19 /** |
|
20 * Set the data for the given key. |
|
21 * |
|
22 * @param key the data key |
|
23 * @param data the data |
|
24 * @throws NS_ERROR_UNEXPECTED if the method is called during event |
|
25 * dispatch |
|
26 */ |
|
27 [Throws] |
|
28 void setData(DOMString? key, any data); |
|
29 }; |
|
30 |