Title: [99535] trunk/Source/WebKit/qt
Revision
99535
Author
[email protected]
Date
2011-11-08 01:01:39 -0800 (Tue, 08 Nov 2011)

Log Message

[Qt] Removing qwebkitglobal.h inclusion from qwebkitplatformplugin.h
https://bugs.webkit.org/show_bug.cgi?id=71759

Patch by Luiz Agostini <[email protected]> on 2011-11-08
Reviewed by Simon Hausmann.

qwebkitplatformplugin.h must not depend on qwebkitglobal.h.

* Api/qwebkitplatformplugin.h:

Updating the copy of qwebkitplatformplugin.h that is used by the example plugin. The previous
one was very outdated.

* examples/platformplugin/qwebkitplatformplugin.h:

Modified Paths

Diff

Modified: trunk/Source/WebKit/qt/Api/qwebkitplatformplugin.h (99534 => 99535)


--- trunk/Source/WebKit/qt/Api/qwebkitplatformplugin.h	2011-11-08 08:57:20 UTC (rev 99534)
+++ trunk/Source/WebKit/qt/Api/qwebkitplatformplugin.h	2011-11-08 09:01:39 UTC (rev 99535)
@@ -21,8 +21,6 @@
 #ifndef QWEBKITPLATFORMPLUGIN_H
 #define QWEBKITPLATFORMPLUGIN_H
 
-#include "qwebkitglobal.h"
-
 /*
  *  Warning: The contents of this file is not  part of the public QtWebKit API
  *  and may be changed from version to version or even be completely removed.
@@ -136,7 +134,7 @@
 };
 #endif
 
-class QWEBKIT_EXPORT QWebSpellChecker : public QObject {
+class QWebSpellChecker : public QObject {
     Q_OBJECT
 public:
     struct GrammarDetail {

Modified: trunk/Source/WebKit/qt/ChangeLog (99534 => 99535)


--- trunk/Source/WebKit/qt/ChangeLog	2011-11-08 08:57:20 UTC (rev 99534)
+++ trunk/Source/WebKit/qt/ChangeLog	2011-11-08 09:01:39 UTC (rev 99535)
@@ -1,3 +1,19 @@
+2011-11-08  Luiz Agostini  <[email protected]>
+
+        [Qt] Removing qwebkitglobal.h inclusion from qwebkitplatformplugin.h
+        https://bugs.webkit.org/show_bug.cgi?id=71759
+
+        Reviewed by Simon Hausmann.
+
+        qwebkitplatformplugin.h must not depend on qwebkitglobal.h.
+
+        * Api/qwebkitplatformplugin.h:
+
+        Updating the copy of qwebkitplatformplugin.h that is used by the example plugin. The previous
+        one was very outdated.
+
+        * examples/platformplugin/qwebkitplatformplugin.h:
+
 2011-11-07  Adam Barth  <[email protected]>
 
         Move DomainRelaxationForbidden scheme registry to SchemeRegistry

Modified: trunk/Source/WebKit/qt/examples/platformplugin/qwebkitplatformplugin.h (99534 => 99535)


--- trunk/Source/WebKit/qt/examples/platformplugin/qwebkitplatformplugin.h	2011-11-08 08:57:20 UTC (rev 99534)
+++ trunk/Source/WebKit/qt/examples/platformplugin/qwebkitplatformplugin.h	2011-11-08 09:01:39 UTC (rev 99535)
@@ -26,14 +26,14 @@
  *  and may be changed from version to version or even be completely removed.
 */
 
-#include <QObject>
-#include <QUrl>
 #if defined(WTF_USE_QT_MULTIMEDIA) && WTF_USE_QT_MULTIMEDIA
 #include <QMediaPlayer>
 #endif
+#include <QtCore/QObject>
+#include <QtCore/QUrl>
+#include <QtGui/QColor>
 
-class QWebSelectData
-{
+class QWebSelectData {
 public:
     virtual ~QWebSelectData() {}
 
@@ -46,10 +46,13 @@
     virtual bool itemIsSelected(int index) const = 0;
     virtual int itemCount() const = 0;
     virtual bool multiple() const = 0;
+    virtual QColor backgroundColor() const = 0;
+    virtual QColor foregroundColor() const = 0;
+    virtual QColor itemBackgroundColor(int index) const = 0;
+    virtual QColor itemForegroundColor(int index) const = 0;
 };
 
-class QWebSelectMethod : public QObject
-{
+class QWebSelectMethod : public QObject {
     Q_OBJECT
 public:
     virtual ~QWebSelectMethod() {}
@@ -62,8 +65,7 @@
     void didHide();
 };
 
-class QWebNotificationData
-{
+class QWebNotificationData {
 public:
     virtual ~QWebNotificationData() {}
 
@@ -73,8 +75,7 @@
     virtual const QUrl openerPageUrl() const = 0;
 };
 
-class QWebNotificationPresenter : public QObject
-{
+class QWebNotificationPresenter : public QObject {
     Q_OBJECT
 public:
     QWebNotificationPresenter() {}
@@ -87,8 +88,7 @@
     void notificationClicked();
 };
 
-class QWebHapticFeedbackPlayer: public QObject
-{
+class QWebHapticFeedbackPlayer: public QObject {
     Q_OBJECT
 public:
     QWebHapticFeedbackPlayer() {}
@@ -105,8 +105,7 @@
     virtual void playHapticFeedback(const HapticEvent, const QString& hapticType, const HapticStrength) = 0;
 };
 
-class QWebTouchModifier : public QObject
-{
+class QWebTouchModifier : public QObject {
     Q_OBJECT
 public:
     virtual ~QWebTouchModifier() {}
@@ -135,9 +134,32 @@
 };
 #endif
 
-class QWebKitPlatformPlugin
-{
+class QWebSpellChecker : public QObject {
+    Q_OBJECT
 public:
+    struct GrammarDetail {
+        int location;
+        int length;
+        QStringList guesses;
+        QString userDescription;
+    };
+
+    virtual bool isContinousSpellCheckingEnabled() const = 0;
+    virtual void toggleContinousSpellChecking() = 0;
+
+    virtual void learnWord(const QString& word) = 0;
+    virtual void ignoreWordInSpellDocument(const QString& word) = 0;
+    virtual void checkSpellingOfString(const QString& word, int* misspellingLocation, int* misspellingLength) = 0;
+    virtual QString autoCorrectSuggestionForMisspelledWord(const QString& word) = 0;
+    virtual void guessesForWord(const QString& word, const QString& context, QStringList& guesses) = 0;
+
+    virtual bool isGrammarCheckingEnabled() = 0;
+    virtual void toggleGrammarChecking() = 0;
+    virtual void checkGrammarOfString(const QString&, QList<GrammarDetail>&, int* badGrammarLocation, int* badGrammarLength) = 0;
+};
+
+class QWebKitPlatformPlugin {
+public:
     virtual ~QWebKitPlatformPlugin() {}
 
     enum Extension {
@@ -145,11 +167,12 @@
         Notifications,
         Haptics,
         TouchInteraction,
-        FullScreenVideoPlayer
+        FullScreenVideoPlayer,
+        SpellChecker
     };
 
-    virtual bool supportsExtension(Extension extension) const = 0;
-    virtual QObject* createExtension(Extension extension) const = 0;
+    virtual bool supportsExtension(Extension) const = 0;
+    virtual QObject* createExtension(Extension) const = 0;
 };
 
 QT_BEGIN_NAMESPACE
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to