[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

commit-queue at webkit.org commit-queue at webkit.org
Wed Dec 22 12:51:20 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit da77adb181e011a73940509aec393fa6c92a1b3f
Author: commit-queue at webkit.org <commit-queue at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Aug 31 18:39:45 2010 +0000

    2010-08-31  Patrick Gansterer  <paroga at paroga.com>
    
            Reviewed by Kenneth Rohde Christiansen.
    
            Add EditorClientWinCE
            https://bugs.webkit.org/show_bug.cgi?id=44822
    
            * WebCoreSupport/EditorClientWinCE.cpp: Added.
            (WebKit::EditorClient::EditorClient):
            (WebKit::EditorClient::~EditorClient):
            (WebKit::EditorClient::setInputMethodState):
            (WebKit::EditorClient::shouldDeleteRange):
            (WebKit::EditorClient::shouldShowDeleteInterface):
            (WebKit::EditorClient::isContinuousSpellCheckingEnabled):
            (WebKit::EditorClient::isGrammarCheckingEnabled):
            (WebKit::EditorClient::spellCheckerDocumentTag):
            (WebKit::EditorClient::shouldBeginEditing):
            (WebKit::EditorClient::shouldEndEditing):
            (WebKit::EditorClient::shouldInsertText):
            (WebKit::EditorClient::shouldChangeSelectedRange):
            (WebKit::EditorClient::shouldApplyStyle):
            (WebKit::EditorClient::shouldMoveRangeAfterDelete):
            (WebKit::EditorClient::didBeginEditing):
            (WebKit::EditorClient::respondToChangedContents):
            (WebKit::EditorClient::respondToChangedSelection):
            (WebKit::EditorClient::didEndEditing):
            (WebKit::EditorClient::didWriteSelectionToPasteboard):
            (WebKit::EditorClient::didSetSelectionTypesForPasteboard):
            (WebKit::EditorClient::isEditable):
            (WebKit::EditorClient::registerCommandForUndo):
            (WebKit::EditorClient::registerCommandForRedo):
            (WebKit::EditorClient::clearUndoRedoOperations):
            (WebKit::EditorClient::canUndo):
            (WebKit::EditorClient::canRedo):
            (WebKit::EditorClient::undo):
            (WebKit::EditorClient::redo):
            (WebKit::EditorClient::shouldInsertNode):
            (WebKit::EditorClient::pageDestroyed):
            (WebKit::EditorClient::smartInsertDeleteEnabled):
            (WebKit::EditorClient::isSelectTrailingWhitespaceEnabled):
            (WebKit::EditorClient::toggleContinuousSpellChecking):
            (WebKit::EditorClient::toggleGrammarChecking):
            (WebKit::EditorClient::handleKeyboardEvent):
            (WebKit::EditorClient::handleInputMethodKeydown):
            (WebKit::EditorClient::textFieldDidBeginEditing):
            (WebKit::EditorClient::textFieldDidEndEditing):
            (WebKit::EditorClient::textDidChangeInTextField):
            (WebKit::EditorClient::doTextFieldCommandFromEvent):
            (WebKit::EditorClient::textWillBeDeletedInTextField):
            (WebKit::EditorClient::textDidChangeInTextArea):
            (WebKit::EditorClient::ignoreWordInSpellDocument):
            (WebKit::EditorClient::learnWord):
            (WebKit::EditorClient::checkSpellingOfString):
            (WebKit::EditorClient::getAutoCorrectSuggestionForMisspelledWord):
            (WebKit::EditorClient::checkGrammarOfString):
            (WebKit::EditorClient::updateSpellingUIWithGrammarString):
            (WebKit::EditorClient::updateSpellingUIWithMisspelledWord):
            (WebKit::EditorClient::showSpellingUI):
            (WebKit::EditorClient::spellingUIIsShowing):
            (WebKit::EditorClient::getGuessesForWord):
            (WebKit::EditorClient::willSetInputMethodState):
            * WebCoreSupport/EditorClientWinCE.h: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66512 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit/wince/ChangeLog b/WebKit/wince/ChangeLog
index 6240fb1..ea106fe 100644
--- a/WebKit/wince/ChangeLog
+++ b/WebKit/wince/ChangeLog
@@ -2,6 +2,69 @@
 
         Reviewed by Kenneth Rohde Christiansen.
 
+        Add EditorClientWinCE
+        https://bugs.webkit.org/show_bug.cgi?id=44822
+
+        * WebCoreSupport/EditorClientWinCE.cpp: Added.
+        (WebKit::EditorClient::EditorClient):
+        (WebKit::EditorClient::~EditorClient):
+        (WebKit::EditorClient::setInputMethodState):
+        (WebKit::EditorClient::shouldDeleteRange):
+        (WebKit::EditorClient::shouldShowDeleteInterface):
+        (WebKit::EditorClient::isContinuousSpellCheckingEnabled):
+        (WebKit::EditorClient::isGrammarCheckingEnabled):
+        (WebKit::EditorClient::spellCheckerDocumentTag):
+        (WebKit::EditorClient::shouldBeginEditing):
+        (WebKit::EditorClient::shouldEndEditing):
+        (WebKit::EditorClient::shouldInsertText):
+        (WebKit::EditorClient::shouldChangeSelectedRange):
+        (WebKit::EditorClient::shouldApplyStyle):
+        (WebKit::EditorClient::shouldMoveRangeAfterDelete):
+        (WebKit::EditorClient::didBeginEditing):
+        (WebKit::EditorClient::respondToChangedContents):
+        (WebKit::EditorClient::respondToChangedSelection):
+        (WebKit::EditorClient::didEndEditing):
+        (WebKit::EditorClient::didWriteSelectionToPasteboard):
+        (WebKit::EditorClient::didSetSelectionTypesForPasteboard):
+        (WebKit::EditorClient::isEditable):
+        (WebKit::EditorClient::registerCommandForUndo):
+        (WebKit::EditorClient::registerCommandForRedo):
+        (WebKit::EditorClient::clearUndoRedoOperations):
+        (WebKit::EditorClient::canUndo):
+        (WebKit::EditorClient::canRedo):
+        (WebKit::EditorClient::undo):
+        (WebKit::EditorClient::redo):
+        (WebKit::EditorClient::shouldInsertNode):
+        (WebKit::EditorClient::pageDestroyed):
+        (WebKit::EditorClient::smartInsertDeleteEnabled):
+        (WebKit::EditorClient::isSelectTrailingWhitespaceEnabled):
+        (WebKit::EditorClient::toggleContinuousSpellChecking):
+        (WebKit::EditorClient::toggleGrammarChecking):
+        (WebKit::EditorClient::handleKeyboardEvent):
+        (WebKit::EditorClient::handleInputMethodKeydown):
+        (WebKit::EditorClient::textFieldDidBeginEditing):
+        (WebKit::EditorClient::textFieldDidEndEditing):
+        (WebKit::EditorClient::textDidChangeInTextField):
+        (WebKit::EditorClient::doTextFieldCommandFromEvent):
+        (WebKit::EditorClient::textWillBeDeletedInTextField):
+        (WebKit::EditorClient::textDidChangeInTextArea):
+        (WebKit::EditorClient::ignoreWordInSpellDocument):
+        (WebKit::EditorClient::learnWord):
+        (WebKit::EditorClient::checkSpellingOfString):
+        (WebKit::EditorClient::getAutoCorrectSuggestionForMisspelledWord):
+        (WebKit::EditorClient::checkGrammarOfString):
+        (WebKit::EditorClient::updateSpellingUIWithGrammarString):
+        (WebKit::EditorClient::updateSpellingUIWithMisspelledWord):
+        (WebKit::EditorClient::showSpellingUI):
+        (WebKit::EditorClient::spellingUIIsShowing):
+        (WebKit::EditorClient::getGuessesForWord):
+        (WebKit::EditorClient::willSetInputMethodState):
+        * WebCoreSupport/EditorClientWinCE.h: Added.
+
+2010-08-31  Patrick Gansterer  <paroga at paroga.com>
+
+        Reviewed by Kenneth Rohde Christiansen.
+
         Add DragClientWinCE
         https://bugs.webkit.org/show_bug.cgi?id=44821
 
diff --git a/WebKit/wince/WebCoreSupport/EditorClientWinCE.cpp b/WebKit/wince/WebCoreSupport/EditorClientWinCE.cpp
new file mode 100644
index 0000000..d81fc02
--- /dev/null
+++ b/WebKit/wince/WebCoreSupport/EditorClientWinCE.cpp
@@ -0,0 +1,315 @@
+/*
+ * Copyright (C) 2010 Patrick Gansterer <paroga at paroga.com>
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "EditorClientWinCE.h"
+
+#include "EditCommand.h"
+#include "NotImplemented.h"
+
+using namespace WebCore;
+
+namespace WebKit {
+
+EditorClient::EditorClient(WebView* webView)
+    : m_webView(webView)
+{
+}
+
+EditorClient::~EditorClient()
+{
+}
+
+void EditorClient::setInputMethodState(bool active)
+{
+    notImplemented();
+}
+
+bool EditorClient::shouldDeleteRange(Range*)
+{
+    notImplemented();
+    return true;
+}
+
+bool EditorClient::shouldShowDeleteInterface(HTMLElement*)
+{
+    return false;
+}
+
+bool EditorClient::isContinuousSpellCheckingEnabled()
+{
+    notImplemented();
+    return false;
+}
+
+bool EditorClient::isGrammarCheckingEnabled()
+{
+    notImplemented();
+    return false;
+}
+
+int EditorClient::spellCheckerDocumentTag()
+{
+    notImplemented();
+    return 0;
+}
+
+bool EditorClient::shouldBeginEditing(WebCore::Range*)
+{
+    notImplemented();
+    return true;
+}
+
+bool EditorClient::shouldEndEditing(WebCore::Range*)
+{
+    notImplemented();
+    return true;
+}
+
+bool EditorClient::shouldInsertText(const String&, Range*, EditorInsertAction)
+{
+    notImplemented();
+    return true;
+}
+
+bool EditorClient::shouldChangeSelectedRange(Range*, Range*, EAffinity, bool)
+{
+    notImplemented();
+    return true;
+}
+
+bool EditorClient::shouldApplyStyle(WebCore::CSSStyleDeclaration*, WebCore::Range*)
+{
+    notImplemented();
+    return true;
+}
+
+bool EditorClient::shouldMoveRangeAfterDelete(WebCore::Range*, WebCore::Range*)
+{
+    notImplemented();
+    return true;
+}
+
+void EditorClient::didBeginEditing()
+{
+    notImplemented();
+}
+
+void EditorClient::respondToChangedContents()
+{
+    notImplemented();
+}
+
+void EditorClient::respondToChangedSelection()
+{
+    notImplemented();
+}
+
+void EditorClient::didEndEditing()
+{
+    notImplemented();
+}
+
+void EditorClient::didWriteSelectionToPasteboard()
+{
+    notImplemented();
+}
+
+void EditorClient::didSetSelectionTypesForPasteboard()
+{
+    notImplemented();
+}
+
+bool EditorClient::isEditable()
+{
+    notImplemented();
+    return false;
+}
+
+void EditorClient::registerCommandForUndo(WTF::PassRefPtr<WebCore::EditCommand> command)
+{
+    notImplemented();
+}
+
+void EditorClient::registerCommandForRedo(WTF::PassRefPtr<WebCore::EditCommand> command)
+{
+    notImplemented();
+}
+
+void EditorClient::clearUndoRedoOperations()
+{
+    notImplemented();
+}
+
+bool EditorClient::canUndo() const
+{
+    notImplemented();
+    return false;
+}
+
+bool EditorClient::canRedo() const
+{
+    notImplemented();
+    return false;
+}
+
+void EditorClient::undo()
+{
+    notImplemented();
+}
+
+void EditorClient::redo()
+{
+    notImplemented();
+}
+
+bool EditorClient::shouldInsertNode(Node*, Range*, EditorInsertAction)
+{
+    notImplemented();
+    return true;
+}
+
+void EditorClient::pageDestroyed()
+{
+    delete this;
+}
+
+bool EditorClient::smartInsertDeleteEnabled()
+{
+    notImplemented();
+    return false;
+}
+
+bool EditorClient::isSelectTrailingWhitespaceEnabled()
+{
+    notImplemented();
+    return false;
+}
+
+void EditorClient::toggleContinuousSpellChecking()
+{
+    notImplemented();
+}
+
+void EditorClient::toggleGrammarChecking()
+{
+    notImplemented();
+}
+
+void EditorClient::handleKeyboardEvent(KeyboardEvent* event)
+{
+    notImplemented();
+}
+
+void EditorClient::handleInputMethodKeydown(KeyboardEvent* event)
+{
+    notImplemented();
+}
+
+void EditorClient::textFieldDidBeginEditing(Element*)
+{
+}
+
+void EditorClient::textFieldDidEndEditing(Element*)
+{
+}
+
+void EditorClient::textDidChangeInTextField(Element*)
+{
+}
+
+bool EditorClient::doTextFieldCommandFromEvent(Element*, KeyboardEvent*)
+{
+    return false;
+}
+
+void EditorClient::textWillBeDeletedInTextField(Element*)
+{
+    notImplemented();
+}
+
+void EditorClient::textDidChangeInTextArea(Element*)
+{
+    notImplemented();
+}
+
+void EditorClient::ignoreWordInSpellDocument(const String& text)
+{
+    notImplemented();
+}
+
+void EditorClient::learnWord(const String& text)
+{
+    notImplemented();
+}
+
+void EditorClient::checkSpellingOfString(const UChar* text, int length, int* misspellingLocation, int* misspellingLength)
+{
+    notImplemented();
+}
+
+String EditorClient::getAutoCorrectSuggestionForMisspelledWord(const String& inputWord)
+{
+    // This method can be implemented using customized algorithms for the particular browser.
+    // Currently, it computes an empty string.
+    return String();
+}
+
+void EditorClient::checkGrammarOfString(const UChar*, int, Vector<GrammarDetail>&, int*, int*)
+{
+    notImplemented();
+}
+
+void EditorClient::updateSpellingUIWithGrammarString(const String&, const GrammarDetail&)
+{
+    notImplemented();
+}
+
+void EditorClient::updateSpellingUIWithMisspelledWord(const String&)
+{
+    notImplemented();
+}
+
+void EditorClient::showSpellingUI(bool)
+{
+    notImplemented();
+}
+
+bool EditorClient::spellingUIIsShowing()
+{
+    notImplemented();
+    return false;
+}
+
+void EditorClient::getGuessesForWord(const String& word, WTF::Vector<String>& guesses)
+{
+    notImplemented();
+}
+
+void EditorClient::willSetInputMethodState()
+{
+    notImplemented();
+}
+
+} // namespace WebKit
diff --git a/WebKit/wince/WebCoreSupport/EditorClientWinCE.h b/WebKit/wince/WebCoreSupport/EditorClientWinCE.h
new file mode 100644
index 0000000..943f591
--- /dev/null
+++ b/WebKit/wince/WebCoreSupport/EditorClientWinCE.h
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2010 Patrick Gansterer <paroga at paroga.com>
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef EditorClientWinCE_h
+#define EditorClientWinCE_h
+
+#include "EditorClient.h"
+
+class WebView;
+
+namespace WebKit {
+
+class EditorClient : public WebCore::EditorClient {
+public:
+    EditorClient(WebView*);
+    ~EditorClient();
+
+    virtual void pageDestroyed();
+
+    virtual bool shouldDeleteRange(WebCore::Range*);
+    virtual bool shouldShowDeleteInterface(WebCore::HTMLElement*);
+    virtual bool smartInsertDeleteEnabled();
+    virtual bool isSelectTrailingWhitespaceEnabled();
+    virtual bool isContinuousSpellCheckingEnabled();
+    virtual void toggleContinuousSpellChecking();
+    virtual bool isGrammarCheckingEnabled();
+    virtual void toggleGrammarChecking();
+    virtual int spellCheckerDocumentTag();
+
+    virtual bool isEditable();
+
+    virtual bool shouldBeginEditing(WebCore::Range*);
+    virtual bool shouldEndEditing(WebCore::Range*);
+    virtual bool shouldInsertNode(WebCore::Node*, WebCore::Range*, WebCore::EditorInsertAction);
+    virtual bool shouldInsertText(const WTF::String&, WebCore::Range*, WebCore::EditorInsertAction);
+    virtual bool shouldChangeSelectedRange(WebCore::Range*, WebCore::Range*, WebCore::EAffinity, bool);
+
+    virtual bool shouldApplyStyle(WebCore::CSSStyleDeclaration*, WebCore::Range*);
+    virtual bool shouldMoveRangeAfterDelete(WebCore::Range*, WebCore::Range*);
+
+    virtual void didBeginEditing();
+    virtual void respondToChangedContents();
+    virtual void respondToChangedSelection();
+    virtual void didEndEditing();
+    virtual void didWriteSelectionToPasteboard();
+    virtual void didSetSelectionTypesForPasteboard();
+
+    virtual void registerCommandForUndo(WTF::PassRefPtr<WebCore::EditCommand>);
+    virtual void registerCommandForRedo(WTF::PassRefPtr<WebCore::EditCommand>);
+    virtual void clearUndoRedoOperations();
+
+    virtual bool canUndo() const;
+    virtual bool canRedo() const;
+
+    virtual void undo();
+    virtual void redo();
+
+    virtual void handleKeyboardEvent(WebCore::KeyboardEvent*);
+    virtual void handleInputMethodKeydown(WebCore::KeyboardEvent*);
+
+    virtual void textFieldDidBeginEditing(WebCore::Element*);
+    virtual void textFieldDidEndEditing(WebCore::Element*);
+    virtual void textDidChangeInTextField(WebCore::Element*);
+    virtual bool doTextFieldCommandFromEvent(WebCore::Element*, WebCore::KeyboardEvent*);
+    virtual void textWillBeDeletedInTextField(WebCore::Element*);
+    virtual void textDidChangeInTextArea(WebCore::Element*);
+
+    virtual void ignoreWordInSpellDocument(const WTF::String&);
+    virtual void learnWord(const WTF::String&);
+    virtual void checkSpellingOfString(const UChar*, int, int*, int*);
+    virtual WTF::String getAutoCorrectSuggestionForMisspelledWord(const WTF::String&);
+    virtual void checkGrammarOfString(const UChar*, int, WTF::Vector<WebCore::GrammarDetail>&, int*, int*);
+    virtual void updateSpellingUIWithGrammarString(const WTF::String&, const WebCore::GrammarDetail&);
+    virtual void updateSpellingUIWithMisspelledWord(const WTF::String&);
+    virtual void showSpellingUI(bool);
+    virtual bool spellingUIIsShowing();
+    virtual void getGuessesForWord(const WTF::String&, WTF::Vector<WTF::String>&);
+    virtual void willSetInputMethodState();
+    virtual void setInputMethodState(bool);
+
+private:
+    WebView* m_webView;
+};
+
+} // namespace WebKit
+
+#endif // EditorClientWinCE_h

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list