Confirmed users
716
edits
| Line 9: | Line 9: | ||
interface SettingsManager : EventTarget | interface SettingsManager : EventTarget | ||
{ | { | ||
// SettingsRequest.result contains the new value of the setting. | // SettingsRequest.result contains the new value of the setting. | ||
DOMRequest set(any settings); | |||
// SettingsRequest.result contains the value of the setting. | // SettingsRequest.result contains the value of the setting. | ||
SettingsRequest get(DOMString | DOMRequest get(DOMString name); | ||
// SettingsRequest.result contains JSON object with name/value pairs. | |||
DOMRequest get(DOMString[] names); | |||
attribute Function? onchange; | attribute Function? onchange; | ||
} | } | ||
/* | /* Same as used in other specs. */ | ||
interface | interface DOMRequest | ||
{ | { | ||
readonly attribute DOMString readyState; // "processing" or "done" | readonly attribute DOMString readyState; // "processing" or "done" | ||
| Line 35: | Line 35: | ||
{ | { | ||
readonly attribute DOMString settingName; | readonly attribute DOMString settingName; | ||
readonly attribute | readonly attribute any settingValue; | ||
}; | }; | ||
dictionary SettingsEventInit : EventInit { | dictionary SettingsEventInit : EventInit { | ||
DOMString settingName; | DOMString settingName; | ||
any settingValue; | |||
} | } | ||