Changeset 64557 in webkit
- Timestamp:
- Aug 3, 2010 8:26:55 AM (14 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/Api/qwebkitplatformplugin.h
r61487 r64557 82 82 }; 83 83 84 class QWebHapticFeedbackPlayer 85 { 86 public: 87 enum HapticStrength { 88 None, Weak, Medium, Strong 89 }; 90 91 enum HapticEvent { 92 Press, Release 93 }; 94 95 virtual void playHapticFeedback(const HapticEvent, const QString& hapticType, const HapticStrength) = 0; 96 }; 97 84 98 class QWebKitPlatformPlugin 85 99 { … … 89 103 enum Extension { 90 104 MultipleSelections, 91 Notifications 105 Notifications, 106 Haptics 92 107 }; 93 108 … … 95 110 virtual QWebSelectMethod* createSelectInputMethod() const = 0; 96 111 virtual QWebNotificationPresenter* createNotificationPresenter() const = 0; 112 virtual QWebHapticFeedbackPlayer* createHapticFeedbackPlayer() const = 0; 97 113 98 114 }; 99 115 100 Q_DECLARE_INTERFACE(QWebKitPlatformPlugin, "com.nokia.Qt.WebKit.PlatformPlugin/1. 2");116 Q_DECLARE_INTERFACE(QWebKitPlatformPlugin, "com.nokia.Qt.WebKit.PlatformPlugin/1.3"); 101 117 102 118 #endif // QWEBKITPLATFORMPLUGIN_H -
trunk/WebKit/qt/ChangeLog
r64513 r64557 1 2010-08-03 Kim Grönholm <kim.1.gronholm@nokia.com> 2 3 Reviewed by Simon Hausmann. 4 5 [Qt] Platform plugin interface for Haptics 6 https://bugs.webkit.org/show_bug.cgi?id=43143 7 8 Platform plugin interface for playing haptic feedback 9 10 * Api/qwebkitplatformplugin.h: 11 (QWebHapticFeedbackPlayer::): 12 (QWebKitPlatformPlugin::): 13 * examples/platformplugin/WebPlugin.h: 14 (WebPlugin::createHapticFeedbackPlayer): 15 * examples/platformplugin/qwebkitplatformplugin.h: 16 (QWebHapticFeedbackPlayer::): 17 (QWebKitPlatformPlugin::): 18 1 19 2010-07-27 Luiz Agostini <luiz.agostini@openbossa.org> 2 20 -
trunk/WebKit/qt/examples/platformplugin/WebPlugin.h
r61121 r64557 93 93 return new WebNotificationPresenter(); 94 94 } 95 virtual QWebHapticFeedbackPlayer* createHapticFeedbackPlayer() const { 96 return 0; 97 } 95 98 }; 96 99 -
trunk/WebKit/qt/examples/platformplugin/qwebkitplatformplugin.h
r61487 r64557 82 82 }; 83 83 84 class QWebHapticFeedbackPlayer 85 { 86 public: 87 enum HapticStrength { 88 None, Weak, Medium, Strong 89 }; 90 91 enum HapticEvent { 92 Press, Release 93 }; 94 95 virtual void playHapticFeedback(const HapticEvent, const QString& hapticType, const HapticStrength) = 0; 96 }; 97 84 98 class QWebKitPlatformPlugin 85 99 { … … 89 103 enum Extension { 90 104 MultipleSelections, 91 Notifications 105 Notifications, 106 Haptics 92 107 }; 93 108 … … 95 110 virtual QWebSelectMethod* createSelectInputMethod() const = 0; 96 111 virtual QWebNotificationPresenter* createNotificationPresenter() const = 0; 112 virtual QWebHapticFeedbackPlayer* createHapticFeedbackPlayer() const = 0; 97 113 98 114 }; 99 115 100 Q_DECLARE_INTERFACE(QWebKitPlatformPlugin, "com.nokia.Qt.WebKit.PlatformPlugin/1. 2");116 Q_DECLARE_INTERFACE(QWebKitPlatformPlugin, "com.nokia.Qt.WebKit.PlatformPlugin/1.3"); 101 117 102 118 #endif // QWEBKITPLATFORMPLUGIN_H
Note: See TracChangeset
for help on using the changeset viewer.