Title: [144745] trunk/Source/WebKit2
Revision
144745
Author
[email protected]
Date
2013-03-05 02:38:48 -0800 (Tue, 05 Mar 2013)

Log Message

[WK2][EFL] Add requestCheckingOfString implementation.
https://bugs.webkit.org/show_bug.cgi?id=108172

Reviewed by Hajime Morrita.

Provide implementation of 'requestCheckingOfString' for WK2-EFL.
It uses the unified text checker feature.

* UIProcess/efl/TextCheckerEfl.cpp:
(WebKit::TextChecker::requestCheckingOfString):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (144744 => 144745)


--- trunk/Source/WebKit2/ChangeLog	2013-03-05 10:27:35 UTC (rev 144744)
+++ trunk/Source/WebKit2/ChangeLog	2013-03-05 10:38:48 UTC (rev 144745)
@@ -1,3 +1,16 @@
+2013-03-03  Grzegorz Czajkowski  <[email protected]>
+
+        [WK2][EFL] Add requestCheckingOfString implementation.
+        https://bugs.webkit.org/show_bug.cgi?id=108172
+
+        Reviewed by Hajime Morrita.
+
+        Provide implementation of 'requestCheckingOfString' for WK2-EFL.
+        It uses the unified text checker feature.
+
+        * UIProcess/efl/TextCheckerEfl.cpp:
+        (WebKit::TextChecker::requestCheckingOfString):
+
 2013-03-04  Chris Fleizach  <[email protected]>
 
         Support WebSpeech - Speech Synthesis

Modified: trunk/Source/WebKit2/UIProcess/efl/TextCheckerEfl.cpp (144744 => 144745)


--- trunk/Source/WebKit2/UIProcess/efl/TextCheckerEfl.cpp	2013-03-05 10:27:35 UTC (rev 144744)
+++ trunk/Source/WebKit2/UIProcess/efl/TextCheckerEfl.cpp	2013-03-05 10:38:48 UTC (rev 144745)
@@ -28,7 +28,6 @@
 #include "config.h"
 #include "TextChecker.h"
 
-#include "NotImplemented.h"
 #include "TextCheckerState.h"
 
 #if ENABLE(SPELLCHECK)
@@ -291,9 +290,23 @@
 #endif
 }
 
-void TextChecker::requestCheckingOfString(PassRefPtr<TextCheckerCompletion>)
+void TextChecker::requestCheckingOfString(PassRefPtr<TextCheckerCompletion> completion)
 {
-    notImplemented();
+#if ENABLE(SPELLCHECK)
+    if (!completion)
+        return;
+
+    TextCheckingRequestData request = completion->textCheckingRequestData();
+    ASSERT(request.sequence() != unrequestedTextCheckingSequence);
+    ASSERT(request.mask() != TextCheckingTypeNone);
+
+    String text = request.text();
+    Vector<TextCheckingResult> result = checkTextOfParagraph(completion->spellDocumentTag(), text.characters(), text.length(), request.mask());
+
+    completion->didFinishCheckingText(result);
+#else
+    UNUSED_PARAM(completion);
+#endif
 }
 
 } // namespace WebKit
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to