mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement hiding of interface members via Pref annotations.
This commit is contained in:
parent
88059acd7e
commit
cb5bad63dc
8 changed files with 225 additions and 26 deletions
|
@ -402,4 +402,26 @@ interface TestBinding {
|
|||
static void receiveVoidStatic();
|
||||
boolean BooleanMozPreference(DOMString pref_name);
|
||||
DOMString StringMozPreference(DOMString pref_name);
|
||||
|
||||
[Pref="dom.testbinding.prefcontrolled.enabled"]
|
||||
readonly attribute boolean prefControlledAttributeDisabled;
|
||||
[Pref="dom.testbinding.prefcontrolled.enabled"]
|
||||
static readonly attribute boolean prefControlledStaticAttributeDisabled;
|
||||
[Pref="dom.testbinding.prefcontrolled.enabled"]
|
||||
void prefControlledMethodDisabled();
|
||||
[Pref="dom.testbinding.prefcontrolled.enabled"]
|
||||
static void prefControlledStaticMethodDisabled();
|
||||
[Pref="dom.testbinding.prefcontrolled.enabled"]
|
||||
const unsigned short prefControlledConstDisabled = 0;
|
||||
|
||||
[Pref="dom.testbinding.prefcontrolled2.enabled"]
|
||||
readonly attribute boolean prefControlledAttributeEnabled;
|
||||
[Pref="dom.testbinding.prefcontrolled2.enabled"]
|
||||
static readonly attribute boolean prefControlledStaticAttributeEnabled;
|
||||
[Pref="dom.testbinding.prefcontrolled2.enabled"]
|
||||
void prefControlledMethodEnabled();
|
||||
[Pref="dom.testbinding.prefcontrolled2.enabled"]
|
||||
static void prefControlledStaticMethodEnabled();
|
||||
[Pref="dom.testbinding.prefcontrolled2.enabled"]
|
||||
const unsigned short prefControlledConstEnabled = 0;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue