diff options
Diffstat (limited to 'sources/pyside6/PySide6/QtWebEngineCore/typesystem_webenginecore.xml')
-rw-r--r-- | sources/pyside6/PySide6/QtWebEngineCore/typesystem_webenginecore.xml | 128 |
1 files changed, 79 insertions, 49 deletions
diff --git a/sources/pyside6/PySide6/QtWebEngineCore/typesystem_webenginecore.xml b/sources/pyside6/PySide6/QtWebEngineCore/typesystem_webenginecore.xml index 49f75a319..da9259ccc 100644 --- a/sources/pyside6/PySide6/QtWebEngineCore/typesystem_webenginecore.xml +++ b/sources/pyside6/PySide6/QtWebEngineCore/typesystem_webenginecore.xml @@ -1,56 +1,39 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- -/**************************************************************************** -** -** Copyright (C) 2018 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of Qt for Python. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ +// Copyright (C) 2018 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only --> -<typesystem package="PySide6.QtWebEngineCore"> +<typesystem package="PySide6.QtWebEngineCore" + namespace-begin="QT_BEGIN_NAMESPACE" namespace-end="QT_END_NAMESPACE"> <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/> <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/> <load-typesystem name="QtNetwork/typesystem_network.xml" generate="no"/> <load-typesystem name="QtPrintSupport/typesystem_printsupport.xml" generate="no"/> + <load-typesystem name="QtWebChannel/typesystem_webchannel.xml" generate="no"/> - <object-type name="QWebEngineCookieStore"/> + <rejection class="extensions"/> - <object-type name="QWebEngineCertificateError"> - <enum-type name="Type"/> + <function signature="qWebEngineChromiumVersion()"/> + <function signature="qWebEngineChromiumSecurityPatchVersion()"/> + <function signature="qWebEngineVersion()"/> + + <value-type name="QWebEngineClientCertificateSelection"/> + <object-type name="QWebEngineClientCertificateStore"/> + + <object-type name="QWebEngineCookieStore"> + <inject-code class="native" position="beginning" file="../glue/qtwebenginecore.cpp" + snippet="qwebenginecookiestore-functor"/> + <value-type name="FilterRequest" /> + <add-function signature="setCookieFilter(PyCallable* @filterCallback@)"> + <inject-code class="target" position="beginning" file="../glue/qtwebenginecore.cpp" + snippet="qwebenginecookiestore-setcookiefilter"/> + </add-function> </object-type> + <value-type name="QWebEngineCertificateError"> + <enum-type name="Type"/> + </value-type> + <object-type name="QWebEngineContextMenuRequest"> <enum-type name="EditFlag" flags="EditFlags"/> <enum-type name="MediaFlag" flags="MediaFlags"/> @@ -63,7 +46,14 @@ <enum-type name="SavePageFormat"/> </object-type> - <object-type name="QWebEngineFullScreenRequest"/> + <value-type name="QWebEngineFileSystemAccessRequest"> + <enum-type name="AccessFlag" flags="AccessFlags"/> + <enum-type name="HandleType"/> + <!-- No default constructor --> + <modify-function signature="swap(QWebEngineFileSystemAccessRequest&)" remove="all"/> + </value-type> + + <value-type name="QWebEngineFullScreenRequest"/> <object-type name="QWebEngineHistory"/> <value-type name="QWebEngineHistoryItem"> @@ -74,6 +64,11 @@ <enum-type name="Roles"/> </object-type> + <object-type name="QWebEngineNavigationRequest"> + <enum-type name="NavigationType"/> + <enum-type name="NavigationRequestAction"/> + </object-type> + <object-type name="QWebEngineNotification"/> <object-type name="QWebEnginePage"> @@ -87,6 +82,16 @@ <enum-type name="FileSelectionMode"/> <enum-type name="JavaScriptConsoleMessageLevel"/> <enum-type name="RenderProcessTerminationStatus"/> + <add-function signature="javaScriptPromptPyOverride(QUrl@securityOrigin@,QString@msg@,QString@defaultValue@)" + return-type="std::pair<bool,QString>" python-override="true"/> + <modify-function signature="javaScriptPrompt(QUrl,QString,QString,QString*)"> + <inject-code class="shell" position="override" file="../glue/qtwebenginecore.cpp" + snippet="qwebenginepage-javascriptprompt-virtual-redirect"/> + <modify-argument index="return" pyi-type="Tuple[bool, str]"/> + <modify-argument index="4"><remove-default-expression/><remove-argument/></modify-argument> + <inject-code class="target" position="beginning" file="../glue/qtwebenginecore.cpp" + snippet="qwebenginepage-javascriptprompt-return"/> + </modify-function> <add-function signature="findText(const QString &,QWebEnginePage::FindFlags,PyObject*)"> <inject-code class="target" position="beginning" file="../glue/qtwebenginewidgets.cpp" snippet="qwebenginepage-findtext"/> </add-function> @@ -102,10 +107,16 @@ </object-type> <object-type name="QWebEngineProfile"> + <extra-includes> + <include file-name="QtWebEngineCore/QWebEngineNotification" location="global"/> + </extra-includes> + <inject-code class="native" position="beginning" file="../glue/qtwebenginecore.cpp" + snippet="qwebengineprofile-functor"/> <enum-type name="HttpCacheType"/> <enum-type name="PersistentCookiesPolicy"/> - <!-- FIXME Left-over deprecated API, pending fix in qtwebengine repo --> - <modify-function signature="setRequestInterceptor(QWebEngineUrlRequestInterceptor*)" remove="all"/> + <add-function signature="setNotificationPresenter(PyCallable* @notificationPresenter@)"> + <inject-code class="target" position="beginning" file="../glue/qtwebenginecore.cpp" snippet="qwebengineprofile-setnotificationpresenter"/> + </add-function> </object-type> <object-type name="QWebEngineNewWindowRequest"> @@ -114,7 +125,7 @@ <value-type name="QWebEngineScript"> <enum-type name="InjectionPoint"/> - <enum-type name="ScriptWorldId"/> + <enum-type name="ScriptWorldId" python-type="IntEnum"/> </value-type> <object-type name="QWebEngineScriptCollection"/> @@ -122,7 +133,7 @@ <object-type name="QWebEngineSettings"> <enum-type name="FontFamily"/> <enum-type name="FontSize"/> - <enum-type name="UnknownUrlSchemePolicy" since="5.11"/> + <enum-type name="UnknownUrlSchemePolicy"/> <enum-type name="WebAttribute"/> </object-type> @@ -135,7 +146,7 @@ <enum-type name="LoadStatus"/> </value-type> - <object-type name="QWebEngineRegisterProtocolHandlerRequest"/> + <value-type name="QWebEngineRegisterProtocolHandlerRequest"/> <value-type name="QWebEngineFindTextResult"/> @@ -151,7 +162,7 @@ <object-type name="QWebEngineUrlRequestJob"> <enum-type name="Error"/> </object-type> - <value-type name="QWebEngineUrlScheme" since="5.12"> + <value-type name="QWebEngineUrlScheme"> <enum-type name="Syntax"/> <enum-type name="SpecialPort"/> <enum-type name="Flag" flags="Flags"/> @@ -159,4 +170,23 @@ <object-type name="QWebEngineUrlSchemeHandler"/> + <!-- FIXME not in snapshot yet + <value-type name="QWebEngineDesktopMediaRequest" since="6.7"/> + <object-type name="QWebEngineMediaSourceModel" since="6.7"/> + --> + <value-type name="QWebEngineWebAuthPinRequest" since="6.7"/> + <object-type name="QWebEngineWebAuthUxRequest" since="6.7"> + <enum-type name="WebAuthUxState"/> + <enum-type name="PinEntryReason"/> + <enum-type name="PinEntryError"/> + <enum-type name="RequestFailureReason"/> + </object-type> + <namespace-type name="QWebEngineGlobalSettings"> + <enum-type name="SecureDnsMode"/> + <value-type name="DnsMode"/> + </namespace-type> + + <!-- QtQml is pulled in via QtWebEngineCoreDepends. --> + <suppress-warning text="^Scoped enum 'QQml.*' does not have a type entry.*$"/> + </typesystem> |