summaryrefslogtreecommitdiffstats
path: root/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-06-15 19:36:43 +0100
committerBen Murdoch <benm@google.com>2010-06-16 14:52:28 +0100
commit545e470e52f0ac6a3a072bf559c796b42c6066b6 (patch)
treec0c14763654d84d37577dde512c3d3b4699a9e86 /WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h
parent719298a66237d38ea5c05f1547123ad8aacbc237 (diff)
downloadexternal_webkit-545e470e52f0ac6a3a072bf559c796b42c6066b6.zip
external_webkit-545e470e52f0ac6a3a072bf559c796b42c6066b6.tar.gz
external_webkit-545e470e52f0ac6a3a072bf559c796b42c6066b6.tar.bz2
Merge webkit.org at r61121: Initial merge by git.
Change-Id: Icd6db395c62285be384d137164d95d7466c98760
Diffstat (limited to 'WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h')
-rw-r--r--WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h b/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h
index 0d348cf..e3408e3 100644
--- a/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h
+++ b/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h
@@ -29,6 +29,7 @@
class QWebElement;
class QWebFrame;
class QWebPage;
+class QWebHistoryItem;
enum NotificationPermission {
NotificationAllowed,
@@ -37,7 +38,7 @@ enum NotificationPermission {
};
typedef void (CheckPermissionFunctionType) (QObject* receiver, const QUrl&, NotificationPermission&);
-typedef void (RequestPermissionFunctionType) (QObject* receiver, QWebPage* page, const QString&);
+typedef void (RequestPermissionFunctionType) (QObject* receiver, const QString&);
extern CheckPermissionFunctionType* checkPermissionFunction;
extern RequestPermissionFunctionType* requestPermissionFunction;
@@ -96,6 +97,9 @@ public:
static void removeWhiteListAccessFromOrigin(const QString& sourceOrigin, const QString& destinationProtocol, const QString& destinationHost, bool allowDestinationSubdomains);
static void resetOriginAccessWhiteLists();
+ static void setMockGeolocationPosition(double latitude, double longitude, double accuracy);
+ static void setMockGeolocationError(int errorCode, const QString& message);
+
static int workerThreadCount();
static QString markerTextForListItem(const QWebElement& listItem);
@@ -114,10 +118,16 @@ public:
static void dumpNotification(bool b);
// These functions should eventually turn into public API
// and the "receiver" concept would go away
- static void setNotificationsReceiver(QWebPage* page, QObject* receiver);
- static void allowNotificationForOrigin(QWebPage* page, const QString& origin);
+ static void setNotificationsReceiver(QObject* receiver);
+ static void allowNotificationForOrigin(const QString& origin);
static void setCheckPermissionFunction(CheckPermissionFunctionType*);
static void setRequestPermissionFunction(RequestPermissionFunctionType*);
+
+ static QList<QWebHistoryItem> getChildHistoryItems(const QWebHistoryItem& historyItem);
+ static bool isTargetItem(const QWebHistoryItem& historyItem);
+ static QString historyItemTarget(const QWebHistoryItem& historyItem);
+
+ static bool shouldClose(QWebFrame* frame);
};
#endif