| Index: third_party/WebKit/Source/bindings/scripts/idl_types.py
|
| diff --git a/third_party/WebKit/Source/bindings/scripts/idl_types.py b/third_party/WebKit/Source/bindings/scripts/idl_types.py
|
| index b5933322a3bb6100db9f885726f10242449d0712..b757d2284ee14bb7d56a3ece51358a53041e7e1d 100644
|
| --- a/third_party/WebKit/Source/bindings/scripts/idl_types.py
|
| +++ b/third_party/WebKit/Source/bindings/scripts/idl_types.py
|
| @@ -140,6 +140,7 @@ class IdlType(IdlTypeBase):
|
| # to support types like short?[] vs. short[]?, instead of treating these
|
| # as orthogonal properties (via flags).
|
| callback_functions = set(STANDARD_CALLBACK_FUNCTIONS)
|
| + experimental_callback_functions = set()
|
| callback_interfaces = set()
|
| dictionaries = set()
|
| enums = {} # name -> values
|
| @@ -171,6 +172,10 @@ class IdlType(IdlTypeBase):
|
| return self.base_type in IdlType.callback_functions
|
|
|
| @property
|
| + def is_experimental_callback_function(self): # pylint: disable=C0103
|
| + return self.base_type in IdlType.experimental_callback_functions
|
| +
|
| + @property
|
| def is_callback_interface(self):
|
| return self.base_type in IdlType.callback_interfaces
|
|
|
| @@ -236,6 +241,10 @@ class IdlType(IdlTypeBase):
|
| cls.callback_functions.update(new_callback_functions)
|
|
|
| @classmethod
|
| + def set_experimental_callback_functions(cls, new_callback_functions):
|
| + cls.experimental_callback_functions.update(new_callback_functions)
|
| +
|
| + @classmethod
|
| def set_callback_interfaces(cls, new_callback_interfaces):
|
| cls.callback_interfaces.update(new_callback_interfaces)
|
|
|
|
|