diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-04 10:28:38 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:50:14 -0500 |
commit | df23f78ad16b40c244f518dba28a8555d61bdd0c (patch) | |
tree | 0d0806f435a548df4dd2d2af0df531e93bd3bc77 /dom/bindings/test/TestBindingHeader.h | |
parent | 20799ce18c18ff1ad3125ad4e8a7a679b57a858f (diff) | |
download | UXP-df23f78ad16b40c244f518dba28a8555d61bdd0c.tar UXP-df23f78ad16b40c244f518dba28a8555d61bdd0c.tar.gz UXP-df23f78ad16b40c244f518dba28a8555d61bdd0c.tar.lz UXP-df23f78ad16b40c244f518dba28a8555d61bdd0c.tar.xz UXP-df23f78ad16b40c244f518dba28a8555d61bdd0c.zip |
Bug 1309147 - Part 3: Implement the support for CEReactions in Codegen.
Tag UXP Issue #1344
Diffstat (limited to 'dom/bindings/test/TestBindingHeader.h')
-rw-r--r-- | dom/bindings/test/TestBindingHeader.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dom/bindings/test/TestBindingHeader.h b/dom/bindings/test/TestBindingHeader.h index 9bd3e407f..7d9963700 100644 --- a/dom/bindings/test/TestBindingHeader.h +++ b/dom/bindings/test/TestBindingHeader.h @@ -939,6 +939,11 @@ public: void NeedsCallerTypeMethod(CallerType); bool NeedsCallerTypeAttr(CallerType); void SetNeedsCallerTypeAttr(bool, CallerType); + void CeReactionsMethod(); + void CeReactionsMethodOverload(); + void CeReactionsMethodOverload(const nsAString&); + bool CeReactionsAttr() const; + void SetCeReactionsAttr(bool); int16_t LegacyCall(const JS::Value&, uint32_t, TestInterface&); void PassArgsWithDefaults(JSContext*, const Optional<int32_t>&, TestInterface*, const Dict&, double, @@ -1431,6 +1436,25 @@ public: virtual nsISupports* GetParentObject(); }; +class TestCEReactionsInterface : public nsISupports, + public nsWrapperCache +{ +public: + NS_DECL_ISUPPORTS + + // We need a GetParentObject to make binding codegen happy + virtual nsISupports* GetParentObject(); + + int32_t Item(uint32_t); + uint32_t Length() const; + int32_t IndexedGetter(uint32_t, bool &); + void IndexedSetter(uint32_t, int32_t); + void NamedDeleter(const nsAString&, bool &); + void NamedGetter(const nsAString&, bool &, nsString&); + void NamedSetter(const nsAString&, const nsAString&); + void GetSupportedNames(nsTArray<nsString>&); +}; + } // namespace dom } // namespace mozilla |