summaryrefslogtreecommitdiff
path: root/Source/WebKit/qt/WidgetApi/qwebpage.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/qt/WidgetApi/qwebpage.h')
-rw-r--r--Source/WebKit/qt/WidgetApi/qwebpage.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/Source/WebKit/qt/WidgetApi/qwebpage.h b/Source/WebKit/qt/WidgetApi/qwebpage.h
index a9c71fd42..b1de7d6c6 100644
--- a/Source/WebKit/qt/WidgetApi/qwebpage.h
+++ b/Source/WebKit/qt/WidgetApi/qwebpage.h
@@ -80,7 +80,7 @@ class QWEBKITWIDGETS_EXPORT QWebPage : public QObject {
Q_PROPERTY(QPalette palette READ palette WRITE setPalette)
Q_PROPERTY(bool contentEditable READ isContentEditable WRITE setContentEditable)
Q_PROPERTY(VisibilityState visibilityState READ visibilityState WRITE setVisibilityState)
- Q_ENUMS(LinkDelegationPolicy NavigationType VisibilityState WebAction)
+ Q_ENUMS(LinkDelegationPolicy MessageLevel MessageSource NavigationType VisibilityState WebAction)
public:
enum NavigationType {
NavigationTypeLinkClicked,
@@ -233,6 +233,28 @@ public:
VisibilityStateUnloaded
};
+ enum MessageSource {
+ XmlMessageSource,
+ JSMessageSource,
+ NetworkMessageSource,
+ ConsoleAPIMessageSource,
+ StorageMessageSource,
+ AppCacheMessageSource,
+ RenderingMessageSource,
+ CSSMessageSource,
+ SecurityMessageSource,
+ ContentBlockerMessageSource,
+ OtherMessageSource,
+ };
+
+ enum MessageLevel {
+ LogMessageLevel = 1,
+ WarningMessageLevel = 2,
+ ErrorMessageLevel = 3,
+ DebugMessageLevel = 4,
+ InfoMessageLevel = 5,
+ };
+
class QWEBKITWIDGETS_EXPORT ViewportAttributes {
public:
ViewportAttributes();
@@ -426,6 +448,8 @@ Q_SIGNALS:
void featurePermissionRequested(QWebFrame* frame, QWebPage::Feature feature);
void featurePermissionRequestCanceled(QWebFrame* frame, QWebPage::Feature feature);
+ void consoleMessageReceived(MessageSource source, MessageLevel level, const QString& message, int lineNumber, const QString& sourceID);
+
protected:
virtual QWebPage *createWindow(WebWindowType type);
virtual QObject *createPlugin(const QString &classid, const QUrl &url, const QStringList &paramNames, const QStringList &paramValues);