summaryrefslogtreecommitdiffstats
path: root/WebKit/qt/examples/platformplugin/qwebkitplatformplugin.h
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-08-11 14:44:44 +0100
committerBen Murdoch <benm@google.com>2010-08-12 19:15:41 +0100
commitdd8bb3de4f353a81954234999f1fea748aee2ea9 (patch)
tree729b52bf09294f0d6c67cd5ea80aee1b727b7bd8 /WebKit/qt/examples/platformplugin/qwebkitplatformplugin.h
parentf3d41ba51d86bf719c7a65ab5297aea3c17e2d98 (diff)
downloadexternal_webkit-dd8bb3de4f353a81954234999f1fea748aee2ea9.zip
external_webkit-dd8bb3de4f353a81954234999f1fea748aee2ea9.tar.gz
external_webkit-dd8bb3de4f353a81954234999f1fea748aee2ea9.tar.bz2
Merge WebKit at r65072 : Initial merge by git.
Change-Id: Ibcf418498376b2660aacb7f8d46ea7085ef91585
Diffstat (limited to 'WebKit/qt/examples/platformplugin/qwebkitplatformplugin.h')
-rw-r--r--WebKit/qt/examples/platformplugin/qwebkitplatformplugin.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/WebKit/qt/examples/platformplugin/qwebkitplatformplugin.h b/WebKit/qt/examples/platformplugin/qwebkitplatformplugin.h
index 32d22d4..3c56c98 100644
--- a/WebKit/qt/examples/platformplugin/qwebkitplatformplugin.h
+++ b/WebKit/qt/examples/platformplugin/qwebkitplatformplugin.h
@@ -81,6 +81,20 @@ Q_SIGNALS:
void notificationClosed();
};
+class QWebHapticFeedbackPlayer
+{
+public:
+ enum HapticStrength {
+ None, Weak, Medium, Strong
+ };
+
+ enum HapticEvent {
+ Press, Release
+ };
+
+ virtual void playHapticFeedback(const HapticEvent, const QString& hapticType, const HapticStrength) = 0;
+};
+
class QWebKitPlatformPlugin
{
public:
@@ -88,15 +102,17 @@ public:
enum Extension {
MultipleSelections,
- Notifications
+ Notifications,
+ Haptics
};
virtual bool supportsExtension(Extension extension) const = 0;
virtual QWebSelectMethod* createSelectInputMethod() const = 0;
virtual QWebNotificationPresenter* createNotificationPresenter() const = 0;
+ virtual QWebHapticFeedbackPlayer* createHapticFeedbackPlayer() const = 0;
};
-Q_DECLARE_INTERFACE(QWebKitPlatformPlugin, "com.nokia.Qt.WebKit.PlatformPlugin/1.2");
+Q_DECLARE_INTERFACE(QWebKitPlatformPlugin, "com.nokia.Qt.WebKit.PlatformPlugin/1.3");
#endif // QWEBKITPLATFORMPLUGIN_H