Created
June 8, 2009 12:52
-
-
Save torarnv/125796 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/WebKit/qt/Api/qwebframe.h b/WebKit/qt/Api/qwebframe.h | |
index 18ae697..2f2e5e6 100644 | |
--- a/WebKit/qt/Api/qwebframe.h | |
+++ b/WebKit/qt/Api/qwebframe.h | |
@@ -1,5 +1,5 @@ | |
/* | |
- Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | |
+ Copyright (C) 2008,2009 Nokia Corporation and/or its subsidiary(-ies) | |
Copyright (C) 2007 Staikos Computing Services Inc. | |
This library is free software; you can redistribute it and/or | |
@@ -49,6 +49,7 @@ class QWebPage; | |
class QWebHitTestResult; | |
class QWebHistoryItem; | |
class QWebSecurityOrigin; | |
+class QWebElement; | |
namespace WebCore { | |
class WidgetPrivate; | |
@@ -71,12 +72,14 @@ public: | |
QPoint pos() const; | |
QRect boundingRect() const; | |
+ QRect enclosingBlock() const; | |
QString title() const; | |
QString linkText() const; | |
QUrl linkUrl() const; | |
QUrl linkTitle() const; | |
QWebFrame *linkTargetFrame() const; | |
+ QString linkTarget() const; | |
QString alternateText() const; // for img, area, input and applet | |
@@ -86,8 +89,12 @@ public: | |
bool isContentEditable() const; | |
bool isContentSelected() const; | |
+ QWebElement element() const; | |
+ | |
QWebFrame *frame() const; | |
+ bool isScrollBar() const; | |
+ | |
private: | |
QWebHitTestResult(QWebHitTestResultPrivate *priv); | |
QWebHitTestResultPrivate *d; | |
@@ -150,6 +157,7 @@ public: | |
int scrollBarValue(Qt::Orientation orientation) const; | |
int scrollBarMinimum(Qt::Orientation orientation) const; | |
int scrollBarMaximum(Qt::Orientation orientation) const; | |
+ QRect scrollBarGeometry(Qt::Orientation orientation) const; | |
void scroll(int, int); | |
QPoint scrollPosition() const; | |
@@ -157,6 +165,7 @@ public: | |
void render(QPainter *painter, const QRegion &clip); | |
void render(QPainter *painter); | |
+ void renderContents(QPainter *painter, const QRegion &contents); | |
void setTextSizeMultiplier(qreal factor); | |
qreal textSizeMultiplier() const; | |
@@ -168,6 +177,10 @@ public: | |
QRect geometry() const; | |
QSize contentsSize() const; | |
+ QWebElement documentElement() const; | |
+ QList<QWebElement> findAllElements(const QString &selectorQuery) const; | |
+ QWebElement findFirstElement(const QString &selectorQuery) const; | |
+ | |
QWebHitTestResult hitTestContent(const QPoint &pos) const; | |
virtual bool event(QEvent *); | |
@@ -191,6 +204,8 @@ Q_SIGNALS: | |
void iconChanged(); | |
+ void contentsSizeChanged(const QSize &size); | |
+ | |
private: | |
friend class QWebPage; | |
friend class QWebPagePrivate; | |
diff --git a/WebKit/qt/Api/qwebpage.h b/WebKit/qt/Api/qwebpage.h | |
index 7253cee..2152865 100644 | |
--- a/WebKit/qt/Api/qwebpage.h | |
+++ b/WebKit/qt/Api/qwebpage.h | |
@@ -52,10 +52,11 @@ namespace WebCore { | |
class ChromeClientQt; | |
class EditorClientQt; | |
class FrameLoaderClientQt; | |
- class FrameLoadRequest; | |
class InspectorClientQt; | |
class ResourceHandle; | |
class HitTestResult; | |
+ | |
+ struct FrameLoadRequest; | |
} | |
class QWEBKIT_EXPORT QWebPage : public QObject | |
@@ -65,6 +66,8 @@ class QWEBKIT_EXPORT QWebPage : public QObject | |
Q_PROPERTY(bool modified READ isModified) | |
Q_PROPERTY(QString selectedText READ selectedText) | |
Q_PROPERTY(QSize viewportSize READ viewportSize WRITE setViewportSize) | |
+ Q_PROPERTY(QSize fixedLayoutSize READ fixedLayoutSize WRITE setFixedLayoutSize) | |
+ Q_PROPERTY(bool useFixedLayout READ useFixedLayout WRITE setUseFixedLayout) | |
Q_PROPERTY(bool forwardUnsupportedContent READ forwardUnsupportedContent WRITE setForwardUnsupportedContent) | |
Q_PROPERTY(LinkDelegationPolicy linkDelegationPolicy READ linkDelegationPolicy WRITE setLinkDelegationPolicy) | |
Q_PROPERTY(QPalette palette READ palette WRITE setPalette) | |
@@ -148,6 +151,22 @@ public: | |
SelectAll, | |
+ PasteAndMatchStyle, | |
+ RemoveFormat, | |
+ | |
+ ToggleStrikethrough, | |
+ ToggleSubscript, | |
+ ToggleSuperscript, | |
+ InsertUnorderedList, | |
+ InsertOrderedList, | |
+ Indent, | |
+ Outdent, | |
+ | |
+ AlignCenter, | |
+ AlignJustified, | |
+ AlignLeft, | |
+ AlignRight, | |
+ | |
WebActionCount | |
}; | |
@@ -215,6 +234,12 @@ public: | |
QSize viewportSize() const; | |
void setViewportSize(const QSize &size) const; | |
+ QSize fixedLayoutSize() const; | |
+ void setFixedLayoutSize(const QSize &size) const; | |
+ | |
+ bool useFixedLayout() const; | |
+ void setUseFixedLayout(bool useFixedLayout); | |
+ | |
virtual bool event(QEvent*); | |
bool focusNextPrevChild(bool next); | |
@@ -317,6 +342,9 @@ protected: | |
private: | |
Q_PRIVATE_SLOT(d, void _q_onLoadProgressChanged(int)) | |
Q_PRIVATE_SLOT(d, void _q_webActionTriggered(bool checked)) | |
+#ifndef NDEBUG | |
+ Q_PRIVATE_SLOT(d, void _q_cleanupLeakMessages()) | |
+#endif | |
QWebPagePrivate *d; | |
friend class QWebFrame; | |
diff --git a/WebKit/qt/Api/qwebsettings.h b/WebKit/qt/Api/qwebsettings.h | |
index 3d0660b..5610797 100644 | |
--- a/WebKit/qt/Api/qwebsettings.h | |
+++ b/WebKit/qt/Api/qwebsettings.h | |
@@ -63,7 +63,8 @@ public: | |
PrintElementBackgrounds, | |
OfflineStorageDatabaseEnabled, | |
OfflineWebApplicationCacheEnabled, | |
- LocalStorageDatabaseEnabled | |
+ LocalStorageDatabaseEnabled, | |
+ AllowUniversalAccessFromFileUrls | |
}; | |
enum WebGraphic { | |
MissingImageGraphic, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment