summaryrefslogtreecommitdiffstats
path: root/dom/bindings/test/TestBindingHeader.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
commitd8bbc7858622b6d9c278469aab701ca0b609cddf (patch)
treeeff41dc61d9f714852212739e6b3738b82a2af87 /dom/bindings/test/TestBindingHeader.h
parentReleasing progress-linux version 125.0.3-1~progress7.99u1. (diff)
downloadfirefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz
firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--dom/bindings/test/TestBindingHeader.h65
1 files changed, 42 insertions, 23 deletions
diff --git a/dom/bindings/test/TestBindingHeader.h b/dom/bindings/test/TestBindingHeader.h
index 77053d9ba6..2e8c496758 100644
--- a/dom/bindings/test/TestBindingHeader.h
+++ b/dom/bindings/test/TestBindingHeader.h
@@ -131,29 +131,6 @@ class TestInterface : public nsISupports, public nsWrapperCache {
JS::Handle<JS::Value>, const Optional<JS::Handle<JSObject*>>&,
const Optional<JS::Handle<JSObject*>>&, ErrorResult&);
- static already_AddRefed<TestInterface> Test3(const GlobalObject&,
- const LongOrStringAnyRecord&,
- ErrorResult&);
-
- static already_AddRefed<TestInterface> Test4(
- const GlobalObject&, const Record<nsString, Record<nsString, JS::Value>>&,
- ErrorResult&);
-
- static already_AddRefed<TestInterface> Test5(
- const GlobalObject&,
- const Record<
- nsString,
- Sequence<Record<nsString,
- Record<nsString, Sequence<Sequence<JS::Value>>>>>>&,
- ErrorResult&);
-
- static already_AddRefed<TestInterface> Test6(
- const GlobalObject&,
- const Sequence<Record<
- nsCString,
- Sequence<Sequence<Record<nsCString, Record<nsString, JS::Value>>>>>>&,
- ErrorResult&);
-
// Integer types
int8_t ReadonlyByte();
int8_t WritableByte();
@@ -1394,6 +1371,48 @@ class TestInterface : public nsISupports, public nsWrapperCache {
void PassString(OwningNonNull<nsAString>&) = delete;
};
+class TestLegacyFactoryFunctionInterface : public nsISupports,
+ public nsWrapperCache {
+ public:
+ NS_DECL_ISUPPORTS
+
+ // We need a GetParentObject to make binding codegen happy
+ virtual nsISupports* GetParentObject();
+
+ // And now our actual WebIDL API
+ static already_AddRefed<TestLegacyFactoryFunctionInterface> Test3(
+ const GlobalObject&, const LongOrStringAnyRecord&, ErrorResult&);
+
+ static already_AddRefed<TestLegacyFactoryFunctionInterface> Test4(
+ const GlobalObject&, const Record<nsString, Record<nsString, JS::Value>>&,
+ ErrorResult&);
+};
+
+class TestLegacyFactoryFunctionInterface2 : public nsISupports,
+ public nsWrapperCache {
+ public:
+ NS_DECL_ISUPPORTS
+
+ // We need a GetParentObject to make binding codegen happy
+ virtual nsISupports* GetParentObject();
+
+ // And now our actual WebIDL API
+ static already_AddRefed<TestLegacyFactoryFunctionInterface2> Test5(
+ const GlobalObject&,
+ const Record<
+ nsString,
+ Sequence<Record<nsString,
+ Record<nsString, Sequence<Sequence<JS::Value>>>>>>&,
+ ErrorResult&);
+
+ static already_AddRefed<TestLegacyFactoryFunctionInterface2> Test6(
+ const GlobalObject&,
+ const Sequence<Record<
+ nsCString,
+ Sequence<Sequence<Record<nsCString, Record<nsString, JS::Value>>>>>>&,
+ ErrorResult&);
+};
+
class TestIndexedGetterInterface : public nsISupports, public nsWrapperCache {
public:
NS_DECL_ISUPPORTS