diff options
| author | Ben Murdoch <benm@google.com> | 2011-05-13 16:23:25 +0100 |
|---|---|---|
| committer | Ben Murdoch <benm@google.com> | 2011-05-16 11:35:02 +0100 |
| commit | 65f03d4f644ce73618e5f4f50dd694b26f55ae12 (patch) | |
| tree | f478babb801e720de7bfaee23443ffe029f58731 /WebKit/wince | |
| parent | 47de4a2fb7262c7ebdb9cd133ad2c54c187454d0 (diff) | |
| download | external_webkit-65f03d4f644ce73618e5f4f50dd694b26f55ae12.zip external_webkit-65f03d4f644ce73618e5f4f50dd694b26f55ae12.tar.gz external_webkit-65f03d4f644ce73618e5f4f50dd694b26f55ae12.tar.bz2 | |
Merge WebKit at r75993: Initial merge by git.
Change-Id: I602bbdc3974787a3b0450456a30a7868286921c3
Diffstat (limited to 'WebKit/wince')
20 files changed, 0 insertions, 4395 deletions
diff --git a/WebKit/wince/CMakeListsWinCE.txt b/WebKit/wince/CMakeListsWinCE.txt deleted file mode 100644 index 28feaf3..0000000 --- a/WebKit/wince/CMakeListsWinCE.txt +++ /dev/null @@ -1,25 +0,0 @@ -LIST(APPEND WebKit_INCLUDE_DIRECTORIES - "${WEBCORE_DIR}/page/win" - "${WEBCORE_DIR}/platform/graphics/wince" - "${WEBCORE_DIR}/platform/network/win" - "${WEBCORE_DIR}/platform/win" - - wince - wince/WebCoreSupport -) - -LIST(APPEND WebKit_SOURCES - wince/WebView.h - wince/WebView.cpp - - wince/WebCoreSupport/ChromeClientWinCE.cpp - wince/WebCoreSupport/ContextMenuClientWinCE.cpp - wince/WebCoreSupport/DragClientWinCE.cpp - wince/WebCoreSupport/EditorClientWinCE.cpp - wince/WebCoreSupport/FrameLoaderClientWinCE.cpp - wince/WebCoreSupport/FrameNetworkingContextWinCE.cpp - wince/WebCoreSupport/InspectorClientWinCE.cpp - wince/WebCoreSupport/PlatformStrategiesWinCE.cpp -) - -SET(WebKit_LIBRARY_TYPE STATIC) diff --git a/WebKit/wince/ChangeLog b/WebKit/wince/ChangeLog deleted file mode 100644 index f44bddf..0000000 --- a/WebKit/wince/ChangeLog +++ /dev/null @@ -1,431 +0,0 @@ -2011-01-04 Patrick Gansterer <paroga@webkit.org> - - Unreviewed WinCE build fix. - - * WebCoreSupport/ChromeClientWinCE.cpp: - (WebKit::ChromeClientWinCE::exceededDatabaseQuota): Added missing semicolon. - (WebKit::ChromeClientWinCE::reachedApplicationCacheOriginQuota): - * WebCoreSupport/ChromeClientWinCE.h: - -2010-12-29 Patrick Gansterer <paroga@webkit.org> - - Unreviewed build fix for WinCE after r73802. - - * WebCoreSupport/ContextMenuClientWinCE.cpp: - (WebKit::ContextMenuClientWinCE::customizeMenu): - * WebCoreSupport/ContextMenuClientWinCE.h: - -2010-12-22 Sam Weinig <sam@webkit.org> - - Reviewed by Darin Adler. - - WebKit2 needs to mirror the frame tree in the UIProcess - https://bugs.webkit.org/show_bug.cgi?id=51546 - - - Add client functions to notify that a frame has been added or - removed from the page cache. - - * WebCoreSupport/FrameLoaderClientWinCE.cpp: - (WebKit::FrameLoaderClientWinCE::didSaveToPageCache): - (WebKit::FrameLoaderClientWinCE::didRestoreFromPageCache): - * WebCoreSupport/FrameLoaderClientWinCE.h: - -2010-12-22 Ryosuke Niwa <rniwa@webkit.org> - - Reviewed by Eric Seidel. - - Editor.h doesn't need to include SelectionController.h - https://bugs.webkit.org/show_bug.cgi?id=51441 - - Renamed SelectionController::EDirection to SelectionDirection. - - * WebCoreSupport/EditorClientWinCE.cpp: - (WebKit::EditorClientWinCE::handleEditingKeyboardEvent): - -2010-10-28 MORITA Hajime <morrita@google.com> - - Reviewed by Ojan Vafai. - - spellcheck does not check pasted text - https://bugs.webkit.org/show_bug.cgi?id=40092 - - Added a stub implememntation. - - * WebCoreSupport/EditorClientWinCE.h: - (WebKit::EditorClient::requestCheckingOfString): - -2010-12-07 Martin Robinson <mrobinson@igalia.com> - - Unreviewed, rolling out r73392. - http://trac.webkit.org/changeset/73392 - https://bugs.webkit.org/show_bug.cgi?id=50489 - - This commit caused crashes on the GTK+ bots - - * WebCoreSupport/FrameLoaderClientWinCE.cpp: - (WebKit::FrameLoaderClientWinCE::finishedLoading): - -2010-12-06 Nate Chapin <japhet@chromium.org> - - Reviewed by Adam Barth. - - Update calls to DocumentWriter. - https://bugs.webkit.org/show_bug.cgi?id=50489 - - * WebCoreSupport/FrameLoaderClientWinCE.cpp: - (WebKit::FrameLoaderClientWinCE::finishedLoading): - -2010-12-06 Patrick Gansterer <paroga@webkit.org> - - Reviewed by Andreas Kling. - - [WINCE] Add build system - https://bugs.webkit.org/show_bug.cgi?id=50522 - - * CMakeListsWinCE.txt: Added. - -2010-12-01 Jia Pu <jpu@apple.com> - - Reviewed by Darin Adler. - - Support multiple correction candidates panel for misspelled word on Mac OS X. - https://bugs.webkit.org/show_bug.cgi?id=50137 - <rdar://problem/8568059> - - Adopted new function signature defined in base class. - - * WebCoreSupport/EditorClientWinCE.cpp: - (WebKit::EditorClientWinCE::getGuessesForWord): - * WebCoreSupport/EditorClientWinCE.h: - -2010-11-30 Patrick Gansterer <paroga@webkit.org> - - Reviewed by Adam Roben. - - [WINCE] Add WebView - https://bugs.webkit.org/show_bug.cgi?id=50216 - - * WebView.cpp: Added. - * WebView.h: Added. - -2010-11-13 Patrick Gansterer <paroga@webkit.org> - - Unreviewed, build fix after r71541. - - * WebCoreSupport/ChromeClientWinCE.h: - -2010-11-08 Alexey Proskuryakov <ap@apple.com> - - Reviewed by Darin Adler. - - https://bugs.webkit.org/show_bug.cgi?id=48685 - Notify UI process about focused frame - - Added an empty implementation of the new ChromeClient method. - - * WebCoreSupport/ChromeClientWinCE.cpp: - (WebKit::ChromeClientWinCE::focusedFrameChanged): - * WebCoreSupport/ChromeClientWinCE.h: - -2010-11-02 Patrick Gansterer <paroga@webkit.org> - - Unreviewed, build fix after r71041. - - * WebCoreSupport/ChromeClientWinCE.h: - (WebKit::ChromeClientWinCE::showContextMenu): - -2010-10-30 Patrick Gansterer <paroga@webkit.org> - - Unreviewed, build fix after r70574. - - * WebCoreSupport/FrameLoaderClientWinCE.cpp: - (WebKit::FrameLoaderClientWinCE::transferLoadingResourceFromPage): - -2010-10-29 Alexey Proskuryakov <ap@apple.com> - - Reviewed by Darin Adler. - - https://bugs.webkit.org/show_bug.cgi?id=48576 - Let WebKit2 client know when a frame is a frameset - - Added a blank implementation of the new FrameLoaderClient method. - - * WebCoreSupport/FrameLoaderClientWinCE.h: - * WebCoreSupport/FrameLoaderClientWinCE.cpp: - (WebKit::FrameLoaderClientWinCE::dispatchDidBecomeFrameset): - -2010-10-26 Jenn Braithwaite <jennb@chromium.org> - - Reviewed by Dmitry Titov. - - Resource tracking failure when trying to move a frame between documents - https://bugs.webkit.org/show_bug.cgi?id=44713 - - * WebCoreSupport/FrameLoaderClientWinCE.cpp: - (WebKit::FrameLoaderClientWinCE::transferLoadingResourceFromPage): - Empty method. - * WebCoreSupport/FrameLoaderClientWinCE.h: - -2010-10-25 Patrick Gansterer <paroga@webkit.org> - - Reviewed by David Kilzer. - - Replace _countof with WTF_ARRAY_LENGTH - https://bugs.webkit.org/show_bug.cgi?id=48229 - - * WebCoreSupport/EditorClientWinCE.cpp: - (WebKit::EditorClientWinCE::interpretKeyEvent): - -2010-10-22 Sam Weinig <sam@webkit.org> - - Reviewed by Anders Carlsson. - - WebKit2 needs to pass the current event modifier flags when requesting a new window - https://bugs.webkit.org/show_bug.cgi?id=48140 - - * WebCoreSupport/ChromeClientWinCE.cpp: - (WebKit::ChromeClientWinCE::createWindow): - * WebCoreSupport/ChromeClientWinCE.h: - * WebCoreSupport/FrameLoaderClientWinCE.cpp: - (WebKit::FrameLoaderClientWinCE::dispatchCreatePage): - * WebCoreSupport/FrameLoaderClientWinCE.h: - Add NavigationAction parameter. - -2010-10-22 Patrick Gansterer <paroga@webkit.org> - - Reviewed by Adam Roben. - - [WINCE] Implement EditorClient::handleKeyboardEvent - https://bugs.webkit.org/show_bug.cgi?id=48118 - - Copy the implementation from the EFL port. - - * WebCoreSupport/EditorClientWinCE.cpp: - (WebKit::EditorClientWinCE::interpretKeyEvent): - (WebKit::EditorClientWinCE::handleEditingKeyboardEvent): - (WebKit::EditorClientWinCE::handleKeyboardEvent): - * WebCoreSupport/EditorClientWinCE.h: - -2010-10-15 Nikolas Zimmermann <nzimmermann@rim.com> - - Reviewed by Dirk Schulze. - - Replace some String::format() usages by StringConcatenate in WebKit - https://bugs.webkit.org/show_bug.cgi?id=47714 - - * WebCoreSupport/PlatformStrategiesWinCE.cpp: - (PlatformStrategiesWinCE::imageTitle): - (PlatformStrategiesWinCE::multipleFileUploadText): - -2010-09-28 Jenn Braithwaite <jennb@chromium.org> - - Reviewed by Dmitry Titov. - - Added oldPage param to FrameLoaderClient::didTransferChildFrameToNewDocument. - https://bugs.webkit.org/show_bug.cgi?id=46663 - - * WebCoreSupport/FrameLoaderClientWinCE.cpp: - (WebKit::FrameLoaderClientWinCE::didTransferChildFrameToNewDocument): - * WebCoreSupport/FrameLoaderClientWinCE.h: - -2010-09-23 Patrick Gansterer <paroga@webkit.org> - - Reviewed by Adam Roben. - - Add PlatformStrategiesWinCE - https://bugs.webkit.org/show_bug.cgi?id=46371 - - * WebCoreSupport/PlatformStrategiesWinCE.cpp: Copied from WebKit/win/WebCoreSupport/WebPlatformStrategies.cpp. - * WebCoreSupport/PlatformStrategiesWinCE.h: Copied from WebKit/win/WebCoreSupport/WebPlatformStrategies.h. - -2010-09-23 Patrick Gansterer <paroga@webkit.org> - - Reviewed by Adam Roben. - - Add ChromeClientWinCE - https://bugs.webkit.org/show_bug.cgi?id=46294 - - * WebCoreSupport/ChromeClientWinCE.cpp: Added. - * WebCoreSupport/ChromeClientWinCE.h: Added. - -2010-09-23 Patrick Gansterer <paroga@webkit.org> - - Unreviewed. - - Build fix for FrameLoaderClientWinCE. - - * WebCoreSupport/FrameLoaderClientWinCE.cpp: - (WebKit::FrameLoaderClientWinCE::canShowMIMETypeAsHTML): Add missing method. - * WebCoreSupport/FrameLoaderClientWinCE.h: - -2010-09-21 Patrick Gansterer <paroga@webkit.org> - - Reviewed by Adam Roben. - - Add "WinCE" to classname for all WebCoreSupport classes to match filename. - https://bugs.webkit.org/show_bug.cgi?id=46175 - - * WebCoreSupport/ContextMenuClientWinCE.cpp: Rename ContextMenuClient to ContextMenuClientWinCE. - * WebCoreSupport/ContextMenuClientWinCE.h: Ditto. - * WebCoreSupport/DragClientWinCE.cpp: Rename DragClient to DragClientWinCE. - * WebCoreSupport/DragClientWinCE.h: Ditto. - * WebCoreSupport/EditorClientWinCE.cpp: Rename EditorClient to EditorClientWinCE. - * WebCoreSupport/EditorClientWinCE.h: Ditto. - * WebCoreSupport/InspectorClientWinCE.cpp: Rename InspectorClient to InspectorClientWinCE. - * WebCoreSupport/InspectorClientWinCE.h: Ditto. - -2010-09-20 Patrick Gansterer <paroga@paroga.com> - - Reviewed by Adam Roben. - - Add FrameLoaderClientWinCE - https://bugs.webkit.org/show_bug.cgi?id=45682 - - * WebCoreSupport/FrameLoaderClientWinCE.cpp: Added. - * WebCoreSupport/FrameLoaderClientWinCE.h: Added. - -2010-09-16 Patrick Gansterer <paroga@paroga.com> - - Reviewed by Adam Roben. - - [WINCE] Add missing FrameNetworkingContextWinCE::blockedError - https://bugs.webkit.org/show_bug.cgi?id=45680 - - * WebCoreSupport/FrameNetworkingContextWinCE.cpp: - (WebKit::FrameNetworkingContextWinCE::blockedError): - * WebCoreSupport/FrameNetworkingContextWinCE.h: - -2010-09-13 Patrick Gansterer <paroga@paroga.com> - - Reviewed by Kenneth Rohde Christiansen. - - Add FrameNetworkingContextWinCE - https://bugs.webkit.org/show_bug.cgi?id=45474 - - * WebCoreSupport/FrameNetworkingContextWinCE.cpp: Added. - (WebKit::FrameNetworkingContextWinCE::FrameNetworkingContextWinCE): - (WebKit::FrameNetworkingContextWinCE::userAgent): - (WebKit::FrameNetworkingContextWinCE::referrer): - * WebCoreSupport/FrameNetworkingContextWinCE.h: Added. - (WebKit::FrameNetworkingContextWinCE::create): - -2010-08-31 Patrick Gansterer <paroga@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. - -2010-08-31 Patrick Gansterer <paroga@paroga.com> - - Reviewed by Kenneth Rohde Christiansen. - - Add DragClientWinCE - https://bugs.webkit.org/show_bug.cgi?id=44821 - - * WebCoreSupport/DragClientWinCE.cpp: Added. - (WebKit::DragClient::willPerformDragDestinationAction): - (WebKit::DragClient::willPerformDragSourceAction): - (WebKit::DragClient::actionMaskForDrag): - (WebKit::DragClient::dragSourceActionMaskForPoint): - (WebKit::DragClient::startDrag): - (WebKit::DragClient::createDragImageForLink): - (WebKit::DragClient::dragControllerDestroyed): - * WebCoreSupport/DragClientWinCE.h: Added. - -2010-08-31 Patrick Gansterer <paroga@paroga.com> - - Reviewed by Kenneth Rohde Christiansen. - - Add ContextMenuClientWinCE - https://bugs.webkit.org/show_bug.cgi?id=44820 - - * WebCoreSupport/ContextMenuClientWinCE.cpp: Added. - (WebKit::ContextMenuClient::ContextMenuClient): - (WebKit::ContextMenuClient::contextMenuDestroyed): - (WebKit::ContextMenuClient::getCustomMenuFromDefaultItems): - (WebKit::ContextMenuClient::contextMenuItemSelected): - (WebKit::ContextMenuClient::downloadURL): - (WebKit::ContextMenuClient::copyImageToClipboard): - (WebKit::ContextMenuClient::searchWithGoogle): - (WebKit::ContextMenuClient::lookUpInDictionary): - (WebKit::ContextMenuClient::speak): - (WebKit::ContextMenuClient::stopSpeaking): - (WebKit::ContextMenuClient::isSpeaking): - * WebCoreSupport/ContextMenuClientWinCE.h: Added. - -2010-08-28 Patrick Gansterer <paroga@paroga.com> - - Reviewed by Adam Roben. - - Add InspectorClientWinCE - https://bugs.webkit.org/show_bug.cgi?id=44819 - - * WebCoreSupport/InspectorClientWinCE.cpp: Added. - (WebKit::InspectorClient::InspectorClient): - (WebKit::InspectorClient::~InspectorClient): - (WebKit::InspectorClient::inspectorDestroyed): - (WebKit::InspectorClient::openInspectorFrontend): - (WebKit::InspectorClient::releaseFrontendPage): - (WebKit::InspectorClient::highlight): - (WebKit::InspectorClient::hideHighlight): - (WebKit::InspectorClient::populateSetting): - (WebKit::InspectorClient::storeSetting): - (WebKit::InspectorClient::sendMessageToFrontend): - * WebCoreSupport/InspectorClientWinCE.h: Added. diff --git a/WebKit/wince/WebCoreSupport/ChromeClientWinCE.cpp b/WebKit/wince/WebCoreSupport/ChromeClientWinCE.cpp deleted file mode 100644 index 659d246..0000000 --- a/WebKit/wince/WebCoreSupport/ChromeClientWinCE.cpp +++ /dev/null @@ -1,403 +0,0 @@ -/* - * Copyright (C) 2010 Patrick Gansterer <paroga@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 "ChromeClientWinCE.h" - -#include "FileChooser.h" -#include "Icon.h" -#include "NotImplemented.h" -#include "NavigationAction.h" -#include "PopupMenuWin.h" -#include "SearchPopupMenuWin.h" -#include "WebView.h" -#include <wtf/text/CString.h> - -using namespace WebCore; - -namespace WebKit { - -ChromeClientWinCE::ChromeClientWinCE(WebView* webView) - : m_webView(webView) -{ - ASSERT(m_webView); -} - -void ChromeClientWinCE::chromeDestroyed() -{ - delete this; -} - -FloatRect ChromeClientWinCE::windowRect() -{ - if (!m_webView) - return FloatRect(); - - RECT rect; - m_webView->frameRect(&rect); - return rect; -} - -void ChromeClientWinCE::setWindowRect(const FloatRect&) -{ - notImplemented(); -} - -FloatRect ChromeClientWinCE::pageRect() -{ - return windowRect(); -} - -float ChromeClientWinCE::scaleFactor() -{ - return 1.0; -} - -void ChromeClientWinCE::focus() -{ - notImplemented(); -} - -void ChromeClientWinCE::unfocus() -{ - notImplemented(); -} - -Page* ChromeClientWinCE::createWindow(Frame*, const FrameLoadRequest&, const WindowFeatures&, const NavigationAction&) -{ - notImplemented(); - return 0; -} - -void ChromeClientWinCE::show() -{ - notImplemented(); -} - -bool ChromeClientWinCE::canRunModal() -{ - notImplemented(); - return false; -} - -void ChromeClientWinCE::runModal() -{ - notImplemented(); -} - -void ChromeClientWinCE::setToolbarsVisible(bool) -{ - notImplemented(); -} - -bool ChromeClientWinCE::toolbarsVisible() -{ - return false; -} - -void ChromeClientWinCE::setStatusbarVisible(bool) -{ - notImplemented(); -} - -bool ChromeClientWinCE::statusbarVisible() -{ - notImplemented(); - return false; -} - -void ChromeClientWinCE::setScrollbarsVisible(bool) -{ - notImplemented(); -} - -bool ChromeClientWinCE::scrollbarsVisible() -{ - notImplemented(); - return false; -} - -void ChromeClientWinCE::setMenubarVisible(bool) -{ - notImplemented(); -} - -bool ChromeClientWinCE::menubarVisible() -{ - notImplemented(); - return false; -} - -void ChromeClientWinCE::setResizable(bool) -{ - notImplemented(); -} - -void ChromeClientWinCE::closeWindowSoon() -{ - PostMessageW(m_webView->windowHandle(), WM_CLOSE, 0, 0); -} - -bool ChromeClientWinCE::canTakeFocus(FocusDirection) -{ - return true; -} - -void ChromeClientWinCE::takeFocus(FocusDirection) -{ - unfocus(); -} - -void ChromeClientWinCE::focusedNodeChanged(Node*) -{ - notImplemented(); -} - -void ChromeClientWinCE::focusedFrameChanged(Frame*) -{ -} - -bool ChromeClientWinCE::canRunBeforeUnloadConfirmPanel() -{ - return true; -} - -bool ChromeClientWinCE::runBeforeUnloadConfirmPanel(const String& message, Frame* frame) -{ - return runJavaScriptConfirm(frame, message); -} - -void ChromeClientWinCE::addMessageToConsole(MessageSource, MessageType, MessageLevel, const String&, unsigned int, const String&) -{ - notImplemented(); -} - -void ChromeClientWinCE::runJavaScriptAlert(Frame*, const String& message) -{ - m_webView->runJavaScriptAlert(message); -} - -bool ChromeClientWinCE::runJavaScriptConfirm(Frame*, const String& message) -{ - return m_webView->runJavaScriptConfirm(message); -} - -bool ChromeClientWinCE::runJavaScriptPrompt(Frame*, const String& message, const String& defaultValue, String& result) -{ - return m_webView->runJavaScriptPrompt(message, defaultValue, result); -} - -void ChromeClientWinCE::setStatusbarText(const String&) -{ - notImplemented(); -} - -bool ChromeClientWinCE::shouldInterruptJavaScript() -{ - notImplemented(); - return false; -} - -bool ChromeClientWinCE::tabsToLinks() const -{ - return true; -} - -IntRect ChromeClientWinCE::windowResizerRect() const -{ - notImplemented(); - return IntRect(); -} - -void ChromeClientWinCE::invalidateWindow(const IntRect&, bool) -{ - notImplemented(); -} - -void ChromeClientWinCE::invalidateContentsAndWindow(const IntRect& updateRect, bool immediate) -{ - RECT rect = updateRect; - InvalidateRect(m_webView->windowHandle(), &rect, FALSE); - - if (immediate) - UpdateWindow(m_webView->windowHandle()); -} - -void ChromeClientWinCE::invalidateContentsForSlowScroll(const IntRect& updateRect, bool immediate) -{ - invalidateContentsAndWindow(updateRect, immediate); -} - -void ChromeClientWinCE::scroll(const IntSize&, const IntRect& rectToScroll, const IntRect&) -{ - invalidateContentsAndWindow(rectToScroll, false); -} - -IntRect ChromeClientWinCE::windowToScreen(const IntRect& rect) const -{ - notImplemented(); - return rect; -} - -IntPoint ChromeClientWinCE::screenToWindow(const IntPoint& point) const -{ - notImplemented(); - return point; -} - -PlatformPageClient ChromeClientWinCE::platformPageClient() const -{ - notImplemented(); - return 0; -} - -void ChromeClientWinCE::contentsSizeChanged(Frame*, const IntSize&) const -{ - notImplemented(); -} - -void ChromeClientWinCE::scrollRectIntoView(const IntRect&, const ScrollView*) const -{ - notImplemented(); -} - -void ChromeClientWinCE::scrollbarsModeDidChange() const -{ - notImplemented(); -} - -void ChromeClientWinCE::mouseDidMoveOverElement(const HitTestResult&, unsigned) -{ - notImplemented(); -} - -void ChromeClientWinCE::setToolTip(const String&, TextDirection) -{ - notImplemented(); -} - -void ChromeClientWinCE::print(Frame*) -{ - notImplemented(); -} - -#if ENABLE(DATABASE) -void ChromeClientWinCE::exceededDatabaseQuota(Frame*, const String&) -{ - notImplemented(); -} -#endif - -#if ENABLE(OFFLINE_WEB_APPLICATIONS) -void ChromeClientWinCE::reachedMaxAppCacheSize(int64_t) -{ - notImplemented(); -} - -void ChromeClientWinCE::reachedApplicationCacheOriginQuota(SecurityOrigin*) -{ - notImplemented(); -} -#endif - -#if ENABLE(TOUCH_EVENTS) -void ChromeClientWinCE::needTouchEvents(bool) -{ - notImplemented(); -} -#endif - -#if USE(ACCELERATED_COMPOSITING) -void ChromeClientWinCE::attachRootGraphicsLayer(Frame*, GraphicsLayer*) -{ - notImplemented(); -} - -void ChromeClientWinCE::setNeedsOneShotDrawingSynchronization() -{ - notImplemented(); -} - -void ChromeClientWinCE::scheduleCompositingLayerSync() -{ - notImplemented(); -} -#endif - -void ChromeClientWinCE::runOpenPanel(Frame*, PassRefPtr<FileChooser> prpFileChooser) -{ - notImplemented(); -} - -void ChromeClientWinCE::chooseIconForFiles(const Vector<String>& filenames, FileChooser* chooser) -{ - chooser->iconLoaded(Icon::createIconForFiles(filenames)); -} - -void ChromeClientWinCE::setCursor(const Cursor&) -{ - notImplemented(); -} - -void ChromeClientWinCE::setLastSetCursorToCurrentCursor() -{ - notImplemented(); -} - -void ChromeClientWinCE::formStateDidChange(const Node*) -{ - notImplemented(); -} - -PassOwnPtr<HTMLParserQuirks> ChromeClientWinCE::createHTMLParserQuirks() -{ - return 0; -} - -void ChromeClientWinCE::requestGeolocationPermissionForFrame(Frame*, Geolocation*) -{ - notImplemented(); -} - -void ChromeClientWinCE::cancelGeolocationPermissionRequestForFrame(Frame*, Geolocation*) -{ - notImplemented(); -} - -bool ChromeClientWinCE::selectItemWritingDirectionIsNatural() -{ - return false; -} - -PassRefPtr<PopupMenu> ChromeClientWinCE::createPopupMenu(PopupMenuClient* client) const -{ - return adoptRef(new PopupMenuWin(client)); -} - -PassRefPtr<SearchPopupMenu> ChromeClientWinCE::createSearchPopupMenu(PopupMenuClient* client) const -{ - return adoptRef(new SearchPopupMenuWin(client)); -} - -} // namespace WebKit diff --git a/WebKit/wince/WebCoreSupport/ChromeClientWinCE.h b/WebKit/wince/WebCoreSupport/ChromeClientWinCE.h deleted file mode 100644 index 4e7fb28..0000000 --- a/WebKit/wince/WebCoreSupport/ChromeClientWinCE.h +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright (C) 2010 Patrick Gansterer <paroga@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 ChromeClientWinCE_h -#define ChromeClientWinCE_h - -#include "ChromeClient.h" - -class WebView; - -namespace WebKit { - -class ChromeClientWinCE : public WebCore::ChromeClient { -public: - ChromeClientWinCE(WebView* webView); - - virtual void chromeDestroyed(); - - virtual void setWindowRect(const WebCore::FloatRect&); - virtual WebCore::FloatRect windowRect(); - - virtual WebCore::FloatRect pageRect(); - - virtual float scaleFactor(); - - virtual void focus(); - virtual void unfocus(); - - virtual bool canTakeFocus(WebCore::FocusDirection); - virtual void takeFocus(WebCore::FocusDirection); - - virtual void focusedNodeChanged(WebCore::Node*); - virtual void focusedFrameChanged(WebCore::Frame*); - - // The Frame pointer provides the ChromeClient with context about which - // Frame wants to create the new Page. Also, the newly created window - // should not be shown to the user until the ChromeClient of the newly - // created Page has its show method called. - virtual WebCore::Page* createWindow(WebCore::Frame*, const WebCore::FrameLoadRequest&, const WebCore::WindowFeatures&, const WebCore::NavigationAction&); - virtual void show(); - - virtual bool canRunModal(); - virtual void runModal(); - - virtual void setToolbarsVisible(bool); - virtual bool toolbarsVisible(); - - virtual void setStatusbarVisible(bool); - virtual bool statusbarVisible(); - - virtual void setScrollbarsVisible(bool); - virtual bool scrollbarsVisible(); - - virtual void setMenubarVisible(bool); - virtual bool menubarVisible(); - - virtual void setResizable(bool); - - virtual void addMessageToConsole(WebCore::MessageSource, WebCore::MessageType, WebCore::MessageLevel, const WTF::String& message, unsigned int lineNumber, const WTF::String& sourceID); - - virtual bool canRunBeforeUnloadConfirmPanel(); - virtual bool runBeforeUnloadConfirmPanel(const WTF::String& message, WebCore::Frame* frame); - - virtual void closeWindowSoon(); - - virtual void runJavaScriptAlert(WebCore::Frame*, const WTF::String&); - virtual bool runJavaScriptConfirm(WebCore::Frame*, const WTF::String&); - virtual bool runJavaScriptPrompt(WebCore::Frame*, const WTF::String& message, const WTF::String& defaultValue, WTF::String& result); - virtual void setStatusbarText(const WTF::String&); - virtual bool shouldInterruptJavaScript(); - virtual bool tabsToLinks() const; - - virtual WebCore::IntRect windowResizerRect() const; - - // Methods used by HostWindow. - virtual void invalidateWindow(const WebCore::IntRect&, bool); - virtual void invalidateContentsAndWindow(const WebCore::IntRect&, bool); - virtual void invalidateContentsForSlowScroll(const WebCore::IntRect&, bool); - virtual void scroll(const WebCore::IntSize&, const WebCore::IntRect&, const WebCore::IntRect&); - virtual WebCore::IntPoint screenToWindow(const WebCore::IntPoint&) const; - virtual WebCore::IntRect windowToScreen(const WebCore::IntRect&) const; - virtual PlatformPageClient platformPageClient() const; - virtual void contentsSizeChanged(WebCore::Frame*, const WebCore::IntSize&) const; - virtual void scrollRectIntoView(const WebCore::IntRect&, const WebCore::ScrollView*) const; // Currently only Mac has a non empty implementation. - virtual void scrollbarsModeDidChange() const; - virtual void setCursor(const WebCore::Cursor&); - // End methods used by HostWindow. - - virtual void mouseDidMoveOverElement(const WebCore::HitTestResult&, unsigned modifierFlags); - - virtual void setToolTip(const WTF::String&, WebCore::TextDirection); - - virtual void print(WebCore::Frame*); - -#if ENABLE(DATABASE) - virtual void exceededDatabaseQuota(WebCore::Frame*, const WTF::String& databaseName); -#endif - -#if ENABLE(OFFLINE_WEB_APPLICATIONS) - // Callback invoked when the application cache fails to save a cache object - // because storing it would grow the database file past its defined maximum - // size or past the amount of free space on the device. - // The chrome client would need to take some action such as evicting some - // old caches. - virtual void reachedMaxAppCacheSize(int64_t spaceNeeded); - - // Callback invoked when the application cache origin quota is reached. This - // means that the resources attempting to be cached via the manifest are - // more than allowed on this origin. This callback allows the chrome client - // to take action, such as prompting the user to ask to increase the quota - // for this origin. - virtual void reachedApplicationCacheOriginQuota(WebCore::SecurityOrigin*); -#endif - -#if ENABLE(CONTEXT_MENUS) - virtual void showContextMenu() { } -#endif - -#if ENABLE(NOTIFICATIONS) - virtual WebCore::NotificationPresenter* notificationPresenter() const; -#endif - - // This can be either a synchronous or asynchronous call. The ChromeClient can display UI asking the user for permission - // to use Geolocation. - virtual void requestGeolocationPermissionForFrame(WebCore::Frame*, WebCore::Geolocation*); - virtual void cancelGeolocationPermissionRequestForFrame(WebCore::Frame*, WebCore::Geolocation*); - - virtual void runOpenPanel(WebCore::Frame*, PassRefPtr<WebCore::FileChooser>); - // Asynchronous request to load an icon for specified filenames. - virtual void chooseIconForFiles(const Vector<WTF::String>&, WebCore::FileChooser*); - - // Notification that the given form element has changed. This function - // will be called frequently, so handling should be very fast. - virtual void formStateDidChange(const WebCore::Node*); - - virtual PassOwnPtr<WebCore::HTMLParserQuirks> createHTMLParserQuirks(); - -#if USE(ACCELERATED_COMPOSITING) - // Pass 0 as the GraphicsLayer to detatch the root layer. - virtual void attachRootGraphicsLayer(WebCore::Frame*, WebCore::GraphicsLayer*); - // Sets a flag to specify that the next time content is drawn to the window, - // the changes appear on the screen in synchrony with updates to GraphicsLayers. - virtual void setNeedsOneShotDrawingSynchronization(); - // Sets a flag to specify that the view needs to be updated, so we need - // to do an eager layout before the drawing. - virtual void scheduleCompositingLayerSync(); -#endif - - virtual void setLastSetCursorToCurrentCursor(); - -#if ENABLE(TOUCH_EVENTS) - virtual void needTouchEvents(bool); -#endif - - virtual bool selectItemWritingDirectionIsNatural(); - virtual PassRefPtr<WebCore::PopupMenu> createPopupMenu(WebCore::PopupMenuClient*) const; - virtual PassRefPtr<WebCore::SearchPopupMenu> createSearchPopupMenu(WebCore::PopupMenuClient*) const; - -private: - WebView* m_webView; -}; - -} // namespace WebKit - -#endif // ChromeClientWinCE_h diff --git a/WebKit/wince/WebCoreSupport/ContextMenuClientWinCE.cpp b/WebKit/wince/WebCoreSupport/ContextMenuClientWinCE.cpp deleted file mode 100644 index dda4d27..0000000 --- a/WebKit/wince/WebCoreSupport/ContextMenuClientWinCE.cpp +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (C) 2010 Patrick Gansterer <paroga@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 "ContextMenuClientWinCE.h" - -#include "ContextMenu.h" -#include "NotImplemented.h" - -using namespace WebCore; - -namespace WebKit { - -ContextMenuClientWinCE::ContextMenuClientWinCE(WebView *webView) - : m_webView(webView) -{ -} - -void ContextMenuClientWinCE::contextMenuDestroyed() -{ - delete this; -} - -PassOwnPtr<ContextMenu> ContextMenuClientWinCE::customizeMenu(PassOwnPtr<ContextMenu> menu) -{ - return menu; -} - -void ContextMenuClientWinCE::contextMenuItemSelected(ContextMenuItem*, const ContextMenu*) -{ - notImplemented(); -} - -void ContextMenuClientWinCE::downloadURL(const KURL& url) -{ - notImplemented(); -} - -void ContextMenuClientWinCE::copyImageToClipboard(const HitTestResult&) -{ - notImplemented(); -} - -void ContextMenuClientWinCE::searchWithGoogle(const Frame*) -{ - notImplemented(); -} - -void ContextMenuClientWinCE::lookUpInDictionary(Frame*) -{ - notImplemented(); -} - -void ContextMenuClientWinCE::speak(const String&) -{ - notImplemented(); -} - -void ContextMenuClientWinCE::stopSpeaking() -{ - notImplemented(); -} - -bool ContextMenuClientWinCE::isSpeaking() -{ - notImplemented(); - return false; -} - -} // namespace WebKit diff --git a/WebKit/wince/WebCoreSupport/ContextMenuClientWinCE.h b/WebKit/wince/WebCoreSupport/ContextMenuClientWinCE.h deleted file mode 100644 index 8cd1951..0000000 --- a/WebKit/wince/WebCoreSupport/ContextMenuClientWinCE.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2010 Patrick Gansterer <paroga@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 ContextMenuClientWinCE_h -#define ContextMenuClientWinCE_h - -#include "ContextMenuClient.h" - -class WebView; - -namespace WebKit { - -class ContextMenuClientWinCE : public WebCore::ContextMenuClient { -public: - ContextMenuClientWinCE(WebView*); - - virtual void contextMenuDestroyed(); - - virtual PassOwnPtr<WebCore::ContextMenu> customizeMenu(PassOwnPtr<WebCore::ContextMenu>); - virtual void contextMenuItemSelected(WebCore::ContextMenuItem*, const WebCore::ContextMenu*); - - virtual void downloadURL(const WebCore::KURL&); - virtual void copyImageToClipboard(const WebCore::HitTestResult&); - virtual void searchWithGoogle(const WebCore::Frame*); - virtual void lookUpInDictionary(WebCore::Frame*); - virtual void speak(const WTF::String&); - virtual void stopSpeaking(); - virtual bool isSpeaking(); - -private: - WebView* m_webView; -}; - -} // namespace WebKit - -#endif // ContextMenuClientWinCE_h diff --git a/WebKit/wince/WebCoreSupport/DragClientWinCE.cpp b/WebKit/wince/WebCoreSupport/DragClientWinCE.cpp deleted file mode 100644 index 1fc4379..0000000 --- a/WebKit/wince/WebCoreSupport/DragClientWinCE.cpp +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2010 Patrick Gansterer <paroga@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 "DragClientWinCE.h" - -#include "NotImplemented.h" - -using namespace WebCore; - -namespace WebKit { - -void DragClientWinCE::willPerformDragDestinationAction(DragDestinationAction, DragData*) -{ - notImplemented(); -} - -void DragClientWinCE::willPerformDragSourceAction(DragSourceAction, const IntPoint&, Clipboard*) -{ - notImplemented(); -} - -DragDestinationAction DragClientWinCE::actionMaskForDrag(DragData*) -{ - notImplemented(); - return DragDestinationActionAny; -} - -DragSourceAction DragClientWinCE::dragSourceActionMaskForPoint(const IntPoint&) -{ - notImplemented(); - return DragSourceActionAny; -} - -void DragClientWinCE::startDrag(DragImageRef, const IntPoint&, const IntPoint&, Clipboard*, Frame*, bool) -{ - notImplemented(); -} - -DragImageRef DragClientWinCE::createDragImageForLink(KURL&, const String& label, Frame*) -{ - notImplemented(); - return 0; -} - -void DragClientWinCE::dragControllerDestroyed() -{ - delete this; -} - -} // namespace WebKit diff --git a/WebKit/wince/WebCoreSupport/DragClientWinCE.h b/WebKit/wince/WebCoreSupport/DragClientWinCE.h deleted file mode 100644 index dc5168c..0000000 --- a/WebKit/wince/WebCoreSupport/DragClientWinCE.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2010 Patrick Gansterer <paroga@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 DragClientWinCE_h -#define DragClientWinCE_h - -#include "DragClient.h" - -namespace WebKit { - -class DragClientWinCE : public WebCore::DragClient { -public: - virtual void willPerformDragDestinationAction(WebCore::DragDestinationAction, WebCore::DragData*); - virtual void willPerformDragSourceAction(WebCore::DragSourceAction, const WebCore::IntPoint&, WebCore::Clipboard*); - virtual WebCore::DragDestinationAction actionMaskForDrag(WebCore::DragData*); - - virtual WebCore::DragSourceAction dragSourceActionMaskForPoint(const WebCore::IntPoint&); - - virtual void startDrag(WebCore::DragImageRef, const WebCore::IntPoint&, const WebCore::IntPoint&, WebCore::Clipboard*, WebCore::Frame*, bool = false); - virtual WebCore::DragImageRef createDragImageForLink(WebCore::KURL&, const WTF::String&, WebCore::Frame*); - - virtual void dragControllerDestroyed(); -}; - -} // namespace WebKit - -#endif // DragClientWinCE_h diff --git a/WebKit/wince/WebCoreSupport/EditorClientWinCE.cpp b/WebKit/wince/WebCoreSupport/EditorClientWinCE.cpp deleted file mode 100644 index 77cc720..0000000 --- a/WebKit/wince/WebCoreSupport/EditorClientWinCE.cpp +++ /dev/null @@ -1,500 +0,0 @@ -/* - * Copyright (C) 2007 Alp Toker <alp@atoker.com> - * Copyright (C) 2008 Nuanti Ltd. - * Copyright (C) 2008 INdT - Instituto Nokia de Tecnologia - * Copyright (C) 2009-2010 ProFUSION embedded systems - * Copyright (C) 2009-2010 Samsung Electronics - * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include "config.h" -#include "EditorClientWinCE.h" - -#include "EditCommand.h" -#include "Frame.h" -#include "KeyboardEvent.h" -#include "NotImplemented.h" -#include "PlatformKeyboardEvent.h" -#include "Settings.h" - -using namespace WebCore; - -namespace WebKit { - -EditorClientWinCE::EditorClientWinCE(WebView* webView) - : m_webView(webView) -{ -} - -EditorClientWinCE::~EditorClientWinCE() -{ -} - -void EditorClientWinCE::setInputMethodState(bool active) -{ - notImplemented(); -} - -bool EditorClientWinCE::shouldDeleteRange(Range*) -{ - notImplemented(); - return true; -} - -bool EditorClientWinCE::shouldShowDeleteInterface(HTMLElement*) -{ - return false; -} - -bool EditorClientWinCE::isContinuousSpellCheckingEnabled() -{ - notImplemented(); - return false; -} - -bool EditorClientWinCE::isGrammarCheckingEnabled() -{ - notImplemented(); - return false; -} - -int EditorClientWinCE::spellCheckerDocumentTag() -{ - notImplemented(); - return 0; -} - -bool EditorClientWinCE::shouldBeginEditing(WebCore::Range*) -{ - notImplemented(); - return true; -} - -bool EditorClientWinCE::shouldEndEditing(WebCore::Range*) -{ - notImplemented(); - return true; -} - -bool EditorClientWinCE::shouldInsertText(const String&, Range*, EditorInsertAction) -{ - notImplemented(); - return true; -} - -bool EditorClientWinCE::shouldChangeSelectedRange(Range*, Range*, EAffinity, bool) -{ - notImplemented(); - return true; -} - -bool EditorClientWinCE::shouldApplyStyle(WebCore::CSSStyleDeclaration*, WebCore::Range*) -{ - notImplemented(); - return true; -} - -bool EditorClientWinCE::shouldMoveRangeAfterDelete(WebCore::Range*, WebCore::Range*) -{ - notImplemented(); - return true; -} - -void EditorClientWinCE::didBeginEditing() -{ - notImplemented(); -} - -void EditorClientWinCE::respondToChangedContents() -{ - notImplemented(); -} - -void EditorClientWinCE::respondToChangedSelection() -{ - notImplemented(); -} - -void EditorClientWinCE::didEndEditing() -{ - notImplemented(); -} - -void EditorClientWinCE::didWriteSelectionToPasteboard() -{ - notImplemented(); -} - -void EditorClientWinCE::didSetSelectionTypesForPasteboard() -{ - notImplemented(); -} - -bool EditorClientWinCE::isEditable() -{ - notImplemented(); - return false; -} - -void EditorClientWinCE::registerCommandForUndo(WTF::PassRefPtr<WebCore::EditCommand> command) -{ - notImplemented(); -} - -void EditorClientWinCE::registerCommandForRedo(WTF::PassRefPtr<WebCore::EditCommand> command) -{ - notImplemented(); -} - -void EditorClientWinCE::clearUndoRedoOperations() -{ - notImplemented(); -} - -bool EditorClientWinCE::canUndo() const -{ - notImplemented(); - return false; -} - -bool EditorClientWinCE::canRedo() const -{ - notImplemented(); - return false; -} - -void EditorClientWinCE::undo() -{ - notImplemented(); -} - -void EditorClientWinCE::redo() -{ - notImplemented(); -} - -bool EditorClientWinCE::shouldInsertNode(Node*, Range*, EditorInsertAction) -{ - notImplemented(); - return true; -} - -void EditorClientWinCE::pageDestroyed() -{ - delete this; -} - -bool EditorClientWinCE::smartInsertDeleteEnabled() -{ - notImplemented(); - return false; -} - -bool EditorClientWinCE::isSelectTrailingWhitespaceEnabled() -{ - notImplemented(); - return false; -} - -void EditorClientWinCE::toggleContinuousSpellChecking() -{ - notImplemented(); -} - -void EditorClientWinCE::toggleGrammarChecking() -{ - notImplemented(); -} - -static const unsigned CtrlKey = 1 << 0; -static const unsigned AltKey = 1 << 1; -static const unsigned ShiftKey = 1 << 2; - -struct KeyDownEntry { - unsigned virtualKey; - unsigned modifiers; - const char* name; -}; - -struct KeyPressEntry { - unsigned charCode; - unsigned modifiers; - const char* name; -}; - -static const KeyDownEntry keyDownEntries[] = { - { VK_LEFT, 0, "MoveLeft" }, - { VK_LEFT, ShiftKey, "MoveLeftAndModifySelection" }, - { VK_LEFT, CtrlKey, "MoveWordLeft" }, - { VK_LEFT, CtrlKey | ShiftKey, "MoveWordLeftAndModifySelection" }, - { VK_RIGHT, 0, "MoveRight" }, - { VK_RIGHT, ShiftKey, "MoveRightAndModifySelection" }, - { VK_RIGHT, CtrlKey, "MoveWordRight" }, - { VK_RIGHT, CtrlKey | ShiftKey, "MoveWordRightAndModifySelection" }, - { VK_UP, 0, "MoveUp" }, - { VK_UP, ShiftKey, "MoveUpAndModifySelection" }, - { VK_PRIOR, ShiftKey, "MovePageUpAndModifySelection" }, - { VK_DOWN, 0, "MoveDown" }, - { VK_DOWN, ShiftKey, "MoveDownAndModifySelection" }, - { VK_NEXT, ShiftKey, "MovePageDownAndModifySelection" }, - { VK_PRIOR, 0, "MovePageUp" }, - { VK_NEXT, 0, "MovePageDown" }, - { VK_HOME, 0, "MoveToBeginningOfLine" }, - { VK_HOME, ShiftKey, "MoveToBeginningOfLineAndModifySelection" }, - { VK_HOME, CtrlKey, "MoveToBeginningOfDocument" }, - { VK_HOME, CtrlKey | ShiftKey, "MoveToBeginningOfDocumentAndModifySelection" }, - - { VK_END, 0, "MoveToEndOfLine" }, - { VK_END, ShiftKey, "MoveToEndOfLineAndModifySelection" }, - { VK_END, CtrlKey, "MoveToEndOfDocument" }, - { VK_END, CtrlKey | ShiftKey, "MoveToEndOfDocumentAndModifySelection" }, - - { VK_BACK, 0, "DeleteBackward" }, - { VK_BACK, ShiftKey, "DeleteBackward" }, - { VK_DELETE, 0, "DeleteForward" }, - { VK_BACK, CtrlKey, "DeleteWordBackward" }, - { VK_DELETE, CtrlKey, "DeleteWordForward" }, - - { 'B', CtrlKey, "ToggleBold" }, - { 'I', CtrlKey, "ToggleItalic" }, - - { VK_ESCAPE, 0, "Cancel" }, - { VK_TAB, 0, "InsertTab" }, - { VK_TAB, ShiftKey, "InsertBacktab" }, - { VK_RETURN, 0, "InsertNewline" }, - { VK_RETURN, CtrlKey, "InsertNewline" }, - { VK_RETURN, AltKey, "InsertNewline" }, - { VK_RETURN, AltKey | ShiftKey, "InsertNewline" }, - - // It's not quite clear whether clipboard shortcuts and Undo/Redo should be handled - // in the application or in WebKit. We chose WebKit for now. - { 'C', CtrlKey, "Copy" }, - { 'V', CtrlKey, "Paste" }, - { 'X', CtrlKey, "Cut" }, - { 'A', CtrlKey, "SelectAll" }, - { VK_INSERT, CtrlKey, "Copy" }, - { VK_DELETE, ShiftKey, "Cut" }, - { VK_INSERT, ShiftKey, "Paste" }, - { 'Z', CtrlKey, "Undo" }, - { 'Z', CtrlKey | ShiftKey, "Redo" } -}; - -static const KeyPressEntry keyPressEntries[] = { - { '\t', 0, "InsertTab" }, - { '\t', ShiftKey, "InsertBacktab" }, - { '\r', 0, "InsertNewline" }, - { '\r', CtrlKey, "InsertNewline" }, - { '\r', AltKey, "InsertNewline" }, - { '\r', AltKey | ShiftKey, "InsertNewline" } -}; - -const char* EditorClientWinCE::interpretKeyEvent(const KeyboardEvent* event) -{ - ASSERT(event->type() == eventNames().keydownEvent || event->type() == eventNames().keypressEvent); - - static HashMap<int, const char*>* keyDownCommandsMap = 0; - static HashMap<int, const char*>* keyPressCommandsMap = 0; - - if (!keyDownCommandsMap) { - keyDownCommandsMap = new HashMap<int, const char*>; - keyPressCommandsMap = new HashMap<int, const char*>; - - for (size_t i = 0; i < WTF_ARRAY_LENGTH(keyDownEntries); ++i) - keyDownCommandsMap->set(keyDownEntries[i].modifiers << 16 | keyDownEntries[i].virtualKey, keyDownEntries[i].name); - - for (size_t i = 0; i < WTF_ARRAY_LENGTH(keyPressEntries); ++i) - keyPressCommandsMap->set(keyPressEntries[i].modifiers << 16 | keyPressEntries[i].charCode, keyPressEntries[i].name); - } - - unsigned modifiers = 0; - if (event->shiftKey()) - modifiers |= ShiftKey; - if (event->altKey()) - modifiers |= AltKey; - if (event->ctrlKey()) - modifiers |= CtrlKey; - - if (event->type() == eventNames().keydownEvent) { - int mapKey = modifiers << 16 | event->keyCode(); - return mapKey ? keyDownCommandsMap->get(mapKey) : 0; - } - - int mapKey = modifiers << 16 | event->charCode(); - return mapKey ? keyPressCommandsMap->get(mapKey) : 0; -} - -bool EditorClientWinCE::handleEditingKeyboardEvent(KeyboardEvent* event) -{ - Node* node = event->target()->toNode(); - ASSERT(node); - Frame* frame = node->document()->frame(); - ASSERT(frame); - - const PlatformKeyboardEvent* keyEvent = event->keyEvent(); - if (!keyEvent) - return false; - - bool caretBrowsing = frame->settings()->caretBrowsingEnabled(); - if (caretBrowsing) { - switch (keyEvent->windowsVirtualKeyCode()) { - case VK_LEFT: - frame->selection()->modify(keyEvent->shiftKey() ? SelectionController::AlterationExtend : SelectionController::AlterationMove, - DirectionLeft, - keyEvent->ctrlKey() ? WordGranularity : CharacterGranularity, - true); - return true; - case VK_RIGHT: - frame->selection()->modify(keyEvent->shiftKey() ? SelectionController::AlterationExtend : SelectionController::AlterationMove, - DirectionRight, - keyEvent->ctrlKey() ? WordGranularity : CharacterGranularity, - true); - return true; - case VK_UP: - frame->selection()->modify(keyEvent->shiftKey() ? SelectionController::AlterationExtend : SelectionController::AlterationMove, - DirectionBackward, - keyEvent->ctrlKey() ? ParagraphGranularity : LineGranularity, - true); - return true; - case VK_DOWN: - frame->selection()->modify(keyEvent->shiftKey() ? SelectionController::AlterationExtend : SelectionController::AlterationMove, - DirectionForward, - keyEvent->ctrlKey() ? ParagraphGranularity : LineGranularity, - true); - return true; - } - } - - Editor::Command command = frame->editor()->command(interpretKeyEvent(event)); - - if (keyEvent->type() == PlatformKeyboardEvent::RawKeyDown) { - // WebKit doesn't have enough information about mode to decide how commands that just insert text if executed via Editor should be treated, - // so we leave it upon WebCore to either handle them immediately (e.g. Tab that changes focus) or let a keypress event be generated - // (e.g. Tab that inserts a Tab character, or Enter). - return !command.isTextInsertion() && command.execute(event); - } - - if (command.execute(event)) - return true; - - // Don't insert null or control characters as they can result in unexpected behaviour - if (event->charCode() < ' ') - return false; - - // Don't insert anything if a modifier is pressed - if (keyEvent->ctrlKey() || keyEvent->altKey()) - return false; - - return frame->editor()->insertText(event->keyEvent()->text(), event); -} - -void EditorClientWinCE::handleKeyboardEvent(KeyboardEvent* event) -{ - if (handleEditingKeyboardEvent(event)) - event->setDefaultHandled(); -} - -void EditorClientWinCE::handleInputMethodKeydown(KeyboardEvent* event) -{ - notImplemented(); -} - -void EditorClientWinCE::textFieldDidBeginEditing(Element*) -{ -} - -void EditorClientWinCE::textFieldDidEndEditing(Element*) -{ -} - -void EditorClientWinCE::textDidChangeInTextField(Element*) -{ -} - -bool EditorClientWinCE::doTextFieldCommandFromEvent(Element*, KeyboardEvent*) -{ - return false; -} - -void EditorClientWinCE::textWillBeDeletedInTextField(Element*) -{ - notImplemented(); -} - -void EditorClientWinCE::textDidChangeInTextArea(Element*) -{ - notImplemented(); -} - -void EditorClientWinCE::ignoreWordInSpellDocument(const String& text) -{ - notImplemented(); -} - -void EditorClientWinCE::learnWord(const String& text) -{ - notImplemented(); -} - -void EditorClientWinCE::checkSpellingOfString(const UChar* text, int length, int* misspellingLocation, int* misspellingLength) -{ - notImplemented(); -} - -String EditorClientWinCE::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 EditorClientWinCE::checkGrammarOfString(const UChar*, int, Vector<GrammarDetail>&, int*, int*) -{ - notImplemented(); -} - -void EditorClientWinCE::updateSpellingUIWithGrammarString(const String&, const GrammarDetail&) -{ - notImplemented(); -} - -void EditorClientWinCE::updateSpellingUIWithMisspelledWord(const String&) -{ - notImplemented(); -} - -void EditorClientWinCE::showSpellingUI(bool) -{ - notImplemented(); -} - -bool EditorClientWinCE::spellingUIIsShowing() -{ - notImplemented(); - return false; -} - -void EditorClientWinCE::getGuessesForWord(const String& word, const String& context, WTF::Vector<String>& guesses) -{ - notImplemented(); -} - -void EditorClientWinCE::willSetInputMethodState() -{ - notImplemented(); -} - -} // namespace WebKit diff --git a/WebKit/wince/WebCoreSupport/EditorClientWinCE.h b/WebKit/wince/WebCoreSupport/EditorClientWinCE.h deleted file mode 100644 index 8db8c16..0000000 --- a/WebKit/wince/WebCoreSupport/EditorClientWinCE.h +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright (C) 2010 Patrick Gansterer <paroga@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 EditorClientWinCE : public WebCore::EditorClient { -public: - EditorClientWinCE(WebView*); - ~EditorClientWinCE(); - - 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 const char* interpretKeyEvent(const WebCore::KeyboardEvent*); - virtual bool handleEditingKeyboardEvent(WebCore::KeyboardEvent*); - 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& word, const WTF::String& context, WTF::Vector<WTF::String>& guesses); - virtual void willSetInputMethodState(); - virtual void setInputMethodState(bool); - virtual void requestCheckingOfString(WebCore::SpellChecker*, int, const WTF::String&) {} - -private: - WebView* m_webView; -}; - -} // namespace WebKit - -#endif // EditorClientWinCE_h diff --git a/WebKit/wince/WebCoreSupport/FrameLoaderClientWinCE.cpp b/WebKit/wince/WebCoreSupport/FrameLoaderClientWinCE.cpp deleted file mode 100644 index 6a8fb74..0000000 --- a/WebKit/wince/WebCoreSupport/FrameLoaderClientWinCE.cpp +++ /dev/null @@ -1,650 +0,0 @@ -/* - * Copyright (C) 2010 Patrick Gansterer <paroga@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 "FrameLoaderClientWinCE.h" - -#include "DocumentLoader.h" -#include "FrameLoader.h" -#include "FrameNetworkingContextWinCE.h" -#include "FrameView.h" -#include "HTMLFormElement.h" -#include "MIMETypeRegistry.h" -#include "NotImplemented.h" -#include "Page.h" -#include "PluginDatabase.h" -#include "RenderPart.h" -#include "WebView.h" - -using namespace WebCore; - -namespace WebKit { - -FrameLoaderClientWinCE::FrameLoaderClientWinCE(WebView* view) - : m_webView(view) - , m_pluginView(0) -{ - ASSERT(m_webView); -} - -FrameLoaderClientWinCE::~FrameLoaderClientWinCE() -{ -} - -String FrameLoaderClientWinCE::userAgent(const KURL&) -{ - return "WebKitWinCE"; -} - -PassRefPtr<DocumentLoader> FrameLoaderClientWinCE::createDocumentLoader(const WebCore::ResourceRequest& request, const SubstituteData& substituteData) -{ - return DocumentLoader::create(request, substituteData); -} - -void FrameLoaderClientWinCE::committedLoad(DocumentLoader* loader, const char* data, int length) -{ - if (m_pluginView) { - if (!m_hasSentResponseToPlugin) { - m_pluginView->didReceiveResponse(loader->response()); - m_hasSentResponseToPlugin = true; - } - m_pluginView->didReceiveData(data, length); - } else - loader->commitData(data, length); -} - -bool FrameLoaderClientWinCE::shouldUseCredentialStorage(DocumentLoader*, unsigned long) -{ - notImplemented(); - return false; -} - -void FrameLoaderClientWinCE::dispatchDidReceiveAuthenticationChallenge(DocumentLoader*, unsigned long, const AuthenticationChallenge&) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidCancelAuthenticationChallenge(DocumentLoader*, unsigned long, const AuthenticationChallenge&) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchWillSendRequest(DocumentLoader*, unsigned long, WebCore::ResourceRequest&, const WebCore::ResourceResponse&) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::assignIdentifierToInitialRequest(unsigned long, DocumentLoader*, const WebCore::ResourceRequest&) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::postProgressStartedNotification() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::postProgressEstimateChangedNotification() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::postProgressFinishedNotification() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::frameLoaderDestroyed() -{ - m_webView = 0; - m_frame = 0; - delete this; -} - -void FrameLoaderClientWinCE::dispatchDidReceiveResponse(DocumentLoader*, unsigned long, const ResourceResponse& response) -{ - m_response = response; -} - -void FrameLoaderClientWinCE::dispatchDecidePolicyForMIMEType(FramePolicyFunction policyFunction, const String& mimeType, const WebCore::ResourceRequest&) -{ - if (canShowMIMEType(mimeType)) - (m_frame->loader()->policyChecker()->*policyFunction)(PolicyUse); - else - (m_frame->loader()->policyChecker()->*policyFunction)(PolicyDownload); -} - -void FrameLoaderClientWinCE::dispatchDecidePolicyForNewWindowAction(FramePolicyFunction policyFunction, const NavigationAction&, const WebCore::ResourceRequest&, PassRefPtr<FormState>, const String&) -{ - (m_frame->loader()->policyChecker()->*policyFunction)(PolicyUse); -} - -void FrameLoaderClientWinCE::dispatchDecidePolicyForNavigationAction(FramePolicyFunction policyFunction, const NavigationAction&, const WebCore::ResourceRequest&, PassRefPtr<FormState>) -{ - (m_frame->loader()->policyChecker()->*policyFunction)(PolicyUse); -} - -void FrameLoaderClientWinCE::dispatchWillSubmitForm(FramePolicyFunction policyFunction, PassRefPtr<FormState>) -{ - (m_frame->loader()->policyChecker()->*policyFunction)(PolicyUse); -} - -PassRefPtr<Widget> FrameLoaderClientWinCE::createPlugin(const IntSize&, HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool) -{ - return 0; -} - -PassRefPtr<Frame> FrameLoaderClientWinCE::createFrame(const KURL& url, const String& name, HTMLFrameOwnerElement* ownerElement, - const String& referrer, bool allowsScrolling, int marginWidth, int marginHeight) -{ - return m_webView->createFrame(url, name, ownerElement, referrer, allowsScrolling, marginWidth, marginHeight); -} - -void FrameLoaderClientWinCE::didTransferChildFrameToNewDocument(Page*) -{ -} - -void FrameLoaderClientWinCE::transferLoadingResourceFromPage(unsigned long, DocumentLoader*, const WebCore::ResourceRequest&, Page*) -{ -} - -void FrameLoaderClientWinCE::redirectDataToPlugin(Widget* pluginWidget) -{ - ASSERT(!m_pluginView); - m_pluginView = static_cast<PluginView*>(pluginWidget); - m_hasSentResponseToPlugin = false; -} - -PassRefPtr<Widget> FrameLoaderClientWinCE::createJavaAppletWidget(const IntSize&, HTMLAppletElement*, const KURL&, const Vector<String>&, const Vector<String>&) -{ - notImplemented(); - return 0; -} - -ObjectContentType FrameLoaderClientWinCE::objectContentType(const KURL& url, const String& mimeType) -{ - return FrameLoader::defaultObjectContentType(url, mimeType); -} - -String FrameLoaderClientWinCE::overrideMediaType() const -{ - notImplemented(); - return String(); -} - -void FrameLoaderClientWinCE::dispatchDidClearWindowObjectInWorld(DOMWrapperWorld*) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::documentElementAvailable() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::didPerformFirstNavigation() const -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::registerForIconNotification(bool) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::setMainFrameDocumentReady(bool) -{ - notImplemented(); -} - -bool FrameLoaderClientWinCE::hasWebView() const -{ - return true; -} - -void FrameLoaderClientWinCE::dispatchDidFinishLoad() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::frameLoadCompleted() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::saveViewStateToItem(HistoryItem*) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::restoreViewState() -{ - notImplemented(); -} - -bool FrameLoaderClientWinCE::shouldGoToHistoryItem(HistoryItem* item) const -{ - return item; -} - -void FrameLoaderClientWinCE::dispatchDidAddBackForwardItem(HistoryItem*) const -{ -} - -void FrameLoaderClientWinCE::dispatchDidRemoveBackForwardItem(HistoryItem*) const -{ -} - -void FrameLoaderClientWinCE::dispatchDidChangeBackForwardIndex() const -{ -} - -void FrameLoaderClientWinCE::didDisplayInsecureContent() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::didRunInsecureContent(SecurityOrigin*) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::makeRepresentation(DocumentLoader*) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::forceLayout() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::forceLayoutForNonHTML() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::setCopiesOnScroll() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::detachedFromParent2() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::detachedFromParent3() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidHandleOnloadEvents() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidReceiveServerRedirectForProvisionalLoad() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidCancelClientRedirect() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchWillPerformClientRedirect(const KURL&, double, double) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidChangeLocationWithinPage() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidPushStateWithinPage() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidReplaceStateWithinPage() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidPopStateWithinPage() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchWillClose() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidReceiveIcon() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidStartProvisionalLoad() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidReceiveTitle(const String&) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidChangeIcons() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidCommitLoad() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidFinishDocumentLoad() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidFirstLayout() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidFirstVisuallyNonEmptyLayout() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchShow() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::cancelPolicyCheck() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidLoadMainResource(DocumentLoader*) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::revertToProvisionalState(DocumentLoader*) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::willChangeTitle(DocumentLoader*) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::didChangeTitle(DocumentLoader* documentLoader) -{ - setTitle(documentLoader->title(), documentLoader->url()); -} - -bool FrameLoaderClientWinCE::canHandleRequest(const WebCore::ResourceRequest&) const -{ - notImplemented(); - return true; -} - -bool FrameLoaderClientWinCE::canShowMIMEType(const String& type) const -{ - return (MIMETypeRegistry::isSupportedImageMIMEType(type) - || MIMETypeRegistry::isSupportedNonImageMIMEType(type) - || MIMETypeRegistry::isSupportedMediaMIMEType(type) - || PluginDatabase::installedPlugins()->isMIMETypeRegistered(type)); -} - -bool FrameLoaderClientWinCE::canShowMIMETypeAsHTML(const String&) const -{ - notImplemented(); - return false; -} - -bool FrameLoaderClientWinCE::representationExistsForURLScheme(const String&) const -{ - notImplemented(); - return false; -} - -String FrameLoaderClientWinCE::generatedMIMETypeForURLScheme(const String&) const -{ - notImplemented(); - return String(); -} - -void FrameLoaderClientWinCE::finishedLoading(DocumentLoader* documentLoader) -{ - if (!m_pluginView) { - FrameLoader* loader = documentLoader->frameLoader(); - loader->writer()->setEncoding(m_response.textEncodingName(), false); - return; - } - - m_pluginView->didFinishLoading(); - m_pluginView = 0; - m_hasSentResponseToPlugin = false; -} - -void FrameLoaderClientWinCE::provisionalLoadStarted() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::didFinishLoad() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::prepareForDataSourceReplacement() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::setTitle(const String&, const KURL&) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidReceiveContentLength(DocumentLoader*, unsigned long, int) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidFinishLoading(DocumentLoader*, unsigned long) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::dispatchDidFailLoading(DocumentLoader*, unsigned long, const ResourceError&) -{ - notImplemented(); -} - -bool FrameLoaderClientWinCE::dispatchDidLoadResourceFromMemoryCache(DocumentLoader*, const WebCore::ResourceRequest&, const WebCore::ResourceResponse&, int) -{ - notImplemented(); - return false; -} - -void FrameLoaderClientWinCE::dispatchDidFailProvisionalLoad(const ResourceError& error) -{ - dispatchDidFailLoad(error); -} - -void FrameLoaderClientWinCE::dispatchDidFailLoad(const ResourceError&) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::download(ResourceHandle*, const WebCore::ResourceRequest&, const WebCore::ResourceRequest&, const WebCore::ResourceResponse&) -{ - notImplemented(); -} - -ResourceError FrameLoaderClientWinCE::cancelledError(const WebCore::ResourceRequest&) -{ - return ResourceError(); -} - -ResourceError FrameLoaderClientWinCE::blockedError(const WebCore::ResourceRequest&) -{ - return ResourceError(); -} - -ResourceError FrameLoaderClientWinCE::cannotShowURLError(const WebCore::ResourceRequest&) -{ - return ResourceError(); -} - -ResourceError FrameLoaderClientWinCE::interruptForPolicyChangeError(const WebCore::ResourceRequest&) -{ - return ResourceError(); -} - -ResourceError FrameLoaderClientWinCE::cannotShowMIMETypeError(const WebCore::ResourceResponse&) -{ - return ResourceError(); -} - -ResourceError FrameLoaderClientWinCE::fileDoesNotExistError(const WebCore::ResourceResponse&) -{ - return ResourceError(); -} - -ResourceError FrameLoaderClientWinCE::pluginWillHandleLoadError(const WebCore::ResourceResponse&) -{ - return ResourceError(); -} - -bool FrameLoaderClientWinCE::shouldFallBack(const ResourceError& error) -{ - return !(error.isCancellation()); -} - -bool FrameLoaderClientWinCE::canCachePage() const -{ - return true; -} - -Frame* FrameLoaderClientWinCE::dispatchCreatePage(const NavigationAction&) -{ - notImplemented(); - return 0; -} - -void FrameLoaderClientWinCE::dispatchUnableToImplementPolicy(const ResourceError&) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::setMainDocumentError(DocumentLoader*, const ResourceError& error) -{ - if (!m_pluginView) - return; - - m_pluginView->didFail(error); - m_pluginView = 0; - m_hasSentResponseToPlugin = false; -} - -void FrameLoaderClientWinCE::startDownload(const WebCore::ResourceRequest&) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::updateGlobalHistory() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::updateGlobalHistoryRedirectLinks() -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::savePlatformDataToCachedFrame(CachedFrame*) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::transitionToCommittedFromCachedFrame(CachedFrame*) -{ - notImplemented(); -} - -void FrameLoaderClientWinCE::transitionToCommittedForNewPage() -{ - Page* page = m_frame->page(); - ASSERT(page); - - bool isMainFrame = m_frame == page->mainFrame(); - - m_frame->setView(0); - - RefPtr<FrameView> frameView; - if (isMainFrame) { - RECT rect; - m_webView->frameRect(&rect); - frameView = FrameView::create(m_frame, IntRect(rect).size()); - } else - frameView = FrameView::create(m_frame); - - m_frame->setView(frameView); - - if (m_frame->ownerRenderer()) - m_frame->ownerRenderer()->setWidget(frameView); -} - -void FrameLoaderClientWinCE::didSaveToPageCache() -{ -} - -void FrameLoaderClientWinCE::didRestoreFromPageCache() -{ -} - -void FrameLoaderClientWinCE::dispatchDidBecomeFrameset(bool) -{ -} - -PassRefPtr<WebCore::FrameNetworkingContext> FrameLoaderClientWinCE::createNetworkingContext() -{ - return FrameNetworkingContextWinCE::create(m_frame, userAgent(KURL())); -} - -} // namespace WebKit diff --git a/WebKit/wince/WebCoreSupport/FrameLoaderClientWinCE.h b/WebKit/wince/WebCoreSupport/FrameLoaderClientWinCE.h deleted file mode 100644 index c4dcf6d..0000000 --- a/WebKit/wince/WebCoreSupport/FrameLoaderClientWinCE.h +++ /dev/null @@ -1,203 +0,0 @@ -/* - * Copyright (C) 2010 Patrick Gansterer <paroga@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 FrameLoaderClientWinCE_h -#define FrameLoaderClientWinCE_h - -#include "FrameLoaderClient.h" -#include "PluginView.h" -#include "ResourceResponse.h" - -class WebView; - -namespace WebKit { - -class FrameLoaderClientWinCE : public WebCore::FrameLoaderClient { -public: - FrameLoaderClientWinCE(WebView*); - virtual ~FrameLoaderClientWinCE(); - virtual void frameLoaderDestroyed(); - - WebView* webView() const { return m_webView; } - - virtual bool hasWebView() const; - - virtual void makeRepresentation(WebCore::DocumentLoader*); - virtual void forceLayout(); - virtual void forceLayoutForNonHTML(); - - virtual void setCopiesOnScroll(); - - virtual void detachedFromParent2(); - virtual void detachedFromParent3(); - - virtual void assignIdentifierToInitialRequest(unsigned long identifier, WebCore::DocumentLoader*, const WebCore::ResourceRequest&); - - virtual void dispatchWillSendRequest(WebCore::DocumentLoader*, unsigned long identifier, WebCore::ResourceRequest&, const WebCore::ResourceResponse& redirectResponse); - virtual bool shouldUseCredentialStorage(WebCore::DocumentLoader*, unsigned long identifier); - virtual void dispatchDidReceiveAuthenticationChallenge(WebCore::DocumentLoader*, unsigned long identifier, const WebCore::AuthenticationChallenge&); - virtual void dispatchDidCancelAuthenticationChallenge(WebCore::DocumentLoader*, unsigned long identifier, const WebCore::AuthenticationChallenge&); - virtual void dispatchDidReceiveResponse(WebCore::DocumentLoader*, unsigned long identifier, const WebCore::ResourceResponse&); - virtual void dispatchDidReceiveContentLength(WebCore::DocumentLoader*, unsigned long identifier, int lengthReceived); - virtual void dispatchDidFinishLoading(WebCore::DocumentLoader*, unsigned long identifier); - virtual void dispatchDidFailLoading(WebCore::DocumentLoader*, unsigned long identifier, const WebCore::ResourceError&); - virtual bool dispatchDidLoadResourceFromMemoryCache(WebCore::DocumentLoader*, const WebCore::ResourceRequest&, const WebCore::ResourceResponse&, int length); - - virtual void dispatchDidHandleOnloadEvents(); - virtual void dispatchDidReceiveServerRedirectForProvisionalLoad(); - virtual void dispatchDidCancelClientRedirect(); - virtual void dispatchWillPerformClientRedirect(const WebCore::KURL&, double, double); - virtual void dispatchDidChangeLocationWithinPage(); - virtual void dispatchDidPushStateWithinPage(); - virtual void dispatchDidReplaceStateWithinPage(); - virtual void dispatchDidPopStateWithinPage(); - virtual void dispatchWillClose(); - virtual void dispatchDidReceiveIcon(); - virtual void dispatchDidStartProvisionalLoad(); - virtual void dispatchDidReceiveTitle(const WTF::String&); - virtual void dispatchDidChangeIcons(); - virtual void dispatchDidCommitLoad(); - virtual void dispatchDidFailProvisionalLoad(const WebCore::ResourceError&); - virtual void dispatchDidFailLoad(const WebCore::ResourceError&); - virtual void dispatchDidFinishDocumentLoad(); - virtual void dispatchDidFinishLoad(); - virtual void dispatchDidFirstLayout(); - virtual void dispatchDidFirstVisuallyNonEmptyLayout(); - - virtual WebCore::Frame* dispatchCreatePage(const WebCore::NavigationAction&); - virtual void dispatchShow(); - - virtual void dispatchDecidePolicyForMIMEType(WebCore::FramePolicyFunction, const WTF::String& MIMEType, const WebCore::ResourceRequest&); - virtual void dispatchDecidePolicyForNewWindowAction(WebCore::FramePolicyFunction, const WebCore::NavigationAction&, const WebCore::ResourceRequest&, WTF::PassRefPtr<WebCore::FormState>, const WTF::String& frameName); - virtual void dispatchDecidePolicyForNavigationAction(WebCore::FramePolicyFunction, const WebCore::NavigationAction&, const WebCore::ResourceRequest&, WTF::PassRefPtr<WebCore::FormState>); - virtual void cancelPolicyCheck(); - - virtual void dispatchUnableToImplementPolicy(const WebCore::ResourceError&); - - virtual void dispatchWillSendSubmitEvent(WebCore::HTMLFormElement*) { } - virtual void dispatchWillSubmitForm(WebCore::FramePolicyFunction, WTF::PassRefPtr<WebCore::FormState>); - - virtual void dispatchDidLoadMainResource(WebCore::DocumentLoader*); - virtual void revertToProvisionalState(WebCore::DocumentLoader*); - virtual void setMainDocumentError(WebCore::DocumentLoader*, const WebCore::ResourceError&); - - virtual void postProgressStartedNotification(); - virtual void postProgressEstimateChangedNotification(); - virtual void postProgressFinishedNotification(); - - virtual PassRefPtr<WebCore::Frame> createFrame(const WebCore::KURL& url, const WTF::String& name, WebCore::HTMLFrameOwnerElement* ownerElement, - const WTF::String& referrer, bool allowsScrolling, int marginWidth, int marginHeight); - virtual void didTransferChildFrameToNewDocument(WebCore::Page*); - virtual void transferLoadingResourceFromPage(unsigned long, WebCore::DocumentLoader*, const WebCore::ResourceRequest&, WebCore::Page*); - virtual PassRefPtr<WebCore::Widget> createPlugin(const WebCore::IntSize&, WebCore::HTMLPlugInElement*, const WebCore::KURL&, const WTF::Vector<WTF::String>&, const WTF::Vector<WTF::String>&, const WTF::String&, bool); - virtual void redirectDataToPlugin(WebCore::Widget* pluginWidget); - virtual PassRefPtr<WebCore::Widget> createJavaAppletWidget(const WebCore::IntSize&, WebCore::HTMLAppletElement*, const WebCore::KURL& baseURL, const WTF::Vector<WTF::String>& paramNames, const WTF::Vector<WTF::String>& paramValues); - virtual WTF::String overrideMediaType() const; - virtual void dispatchDidClearWindowObjectInWorld(WebCore::DOMWrapperWorld*); - virtual void documentElementAvailable(); - virtual void didPerformFirstNavigation() const; - - virtual void registerForIconNotification(bool); - - virtual WebCore::ObjectContentType objectContentType(const WebCore::KURL& url, const WTF::String& mimeType); - - virtual void setMainFrameDocumentReady(bool); - - virtual void startDownload(const WebCore::ResourceRequest&); - - virtual void willChangeTitle(WebCore::DocumentLoader*); - virtual void didChangeTitle(WebCore::DocumentLoader*); - - virtual void committedLoad(WebCore::DocumentLoader*, const char*, int); - virtual void finishedLoading(WebCore::DocumentLoader*); - - virtual void updateGlobalHistory(); - virtual void updateGlobalHistoryRedirectLinks(); - virtual bool shouldGoToHistoryItem(WebCore::HistoryItem*) const; - virtual void dispatchDidAddBackForwardItem(WebCore::HistoryItem*) const; - virtual void dispatchDidRemoveBackForwardItem(WebCore::HistoryItem*) const; - virtual void dispatchDidChangeBackForwardIndex() const; - - virtual void didDisplayInsecureContent(); - virtual void didRunInsecureContent(WebCore::SecurityOrigin*); - - virtual WebCore::ResourceError cancelledError(const WebCore::ResourceRequest&); - virtual WebCore::ResourceError blockedError(const WebCore::ResourceRequest&); - virtual WebCore::ResourceError cannotShowURLError(const WebCore::ResourceRequest&); - virtual WebCore::ResourceError interruptForPolicyChangeError(const WebCore::ResourceRequest&); - - virtual WebCore::ResourceError cannotShowMIMETypeError(const WebCore::ResourceResponse&); - virtual WebCore::ResourceError fileDoesNotExistError(const WebCore::ResourceResponse&); - virtual WebCore::ResourceError pluginWillHandleLoadError(const WebCore::ResourceResponse&); - - virtual bool shouldFallBack(const WebCore::ResourceError&); - - virtual bool canHandleRequest(const WebCore::ResourceRequest&) const; - virtual bool canShowMIMEType(const WTF::String&) const; - virtual bool canShowMIMETypeAsHTML(const WTF::String&) const; - virtual bool representationExistsForURLScheme(const WTF::String&) const; - virtual WTF::String generatedMIMETypeForURLScheme(const WTF::String&) const; - - virtual void frameLoadCompleted(); - virtual void saveViewStateToItem(WebCore::HistoryItem*); - virtual void restoreViewState(); - virtual void provisionalLoadStarted(); - virtual void didFinishLoad(); - virtual void prepareForDataSourceReplacement(); - - virtual WTF::PassRefPtr<WebCore::DocumentLoader> createDocumentLoader(const WebCore::ResourceRequest&, const WebCore::SubstituteData&); - virtual void setTitle(const WTF::String& title, const WebCore::KURL&); - - virtual WTF::String userAgent(const WebCore::KURL&); - - virtual void savePlatformDataToCachedFrame(WebCore::CachedFrame*); - virtual void transitionToCommittedFromCachedFrame(WebCore::CachedFrame*); - virtual void transitionToCommittedForNewPage(); - - virtual void didSaveToPageCache(); - virtual void didRestoreFromPageCache(); - - virtual void dispatchDidBecomeFrameset(bool); - - virtual bool canCachePage() const; - virtual void download(WebCore::ResourceHandle*, const WebCore::ResourceRequest&, const WebCore::ResourceRequest&, const WebCore::ResourceResponse&); - - virtual PassRefPtr<WebCore::FrameNetworkingContext> createNetworkingContext(); - - void setFrame(WebCore::Frame *frame) { m_frame = frame; } - WebCore::Frame *frame() { return m_frame; } - -private: - WebView* m_webView; - WebCore::Frame* m_frame; - WebCore::ResourceResponse m_response; - - // Plugin view to redirect data to - WebCore::PluginView* m_pluginView; - bool m_hasSentResponseToPlugin; -}; - -} // namespace WebKit - -#endif // FrameLoaderClientWinCE_h diff --git a/WebKit/wince/WebCoreSupport/FrameNetworkingContextWinCE.cpp b/WebKit/wince/WebCoreSupport/FrameNetworkingContextWinCE.cpp deleted file mode 100644 index 477fe97..0000000 --- a/WebKit/wince/WebCoreSupport/FrameNetworkingContextWinCE.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2010 Patrick Gansterer <paroga@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 "FrameNetworkingContextWinCE.h" - -#include "NotImplemented.h" -#include "ResourceError.h" - -using namespace WebCore; - -namespace WebKit { - -FrameNetworkingContextWinCE::FrameNetworkingContextWinCE(Frame* frame, const String& userAgent) - : FrameNetworkingContext(frame) - , m_userAgent(userAgent) -{ -} - -String FrameNetworkingContextWinCE::userAgent() const -{ - return m_userAgent; -} - -String FrameNetworkingContextWinCE::referrer() const -{ - return frame()->loader()->referrer(); -} - -WebCore::ResourceError FrameNetworkingContextWinCE::blockedError(const WebCore::ResourceRequest&) const -{ - notImplemented(); - return WebCore::ResourceError(); -} - -} // namespace WebKit diff --git a/WebKit/wince/WebCoreSupport/FrameNetworkingContextWinCE.h b/WebKit/wince/WebCoreSupport/FrameNetworkingContextWinCE.h deleted file mode 100644 index 436aff7..0000000 --- a/WebKit/wince/WebCoreSupport/FrameNetworkingContextWinCE.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2010 Patrick Gansterer <paroga@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 FrameNetworkingContextWinCE_h -#define FrameNetworkingContextWinCE_h - -#include "FrameNetworkingContext.h" - -namespace WebKit { - -class FrameNetworkingContextWinCE : public WebCore::FrameNetworkingContext { -public: - static PassRefPtr<FrameNetworkingContextWinCE> create(WebCore::Frame* frame, const WTF::String& userAgent) - { - return adoptRef(new FrameNetworkingContextWinCE(frame, userAgent)); - } - - virtual WTF::String userAgent() const; - virtual WTF::String referrer() const; - virtual WebCore::ResourceError blockedError(const WebCore::ResourceRequest&) const; - -private: - FrameNetworkingContextWinCE(WebCore::Frame* frame, const WTF::String& userAgent); - - WTF::String m_userAgent; -}; - -} // namespace WebKit - -#endif // FrameNetworkingContextWinCE_h diff --git a/WebKit/wince/WebCoreSupport/InspectorClientWinCE.cpp b/WebKit/wince/WebCoreSupport/InspectorClientWinCE.cpp deleted file mode 100644 index 5168885..0000000 --- a/WebKit/wince/WebCoreSupport/InspectorClientWinCE.cpp +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2010 Patrick Gansterer <paroga@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 "InspectorClientWinCE.h" - -#include "NotImplemented.h" - -using namespace WebCore; - -namespace WebKit { - -InspectorClientWinCE::InspectorClientWinCE(WebView* webView) - : m_inspectedWebView(webView) -{ -} - -InspectorClientWinCE::~InspectorClientWinCE() -{ -} - -void InspectorClientWinCE::inspectorDestroyed() -{ - delete this; -} - -void InspectorClientWinCE::openInspectorFrontend(InspectorController* controller) -{ - notImplemented(); -} - -void InspectorClientWinCE::releaseFrontendPage() -{ - notImplemented(); -} - -void InspectorClientWinCE::highlight(Node* node) -{ - notImplemented(); -} - -void InspectorClientWinCE::hideHighlight() -{ - notImplemented(); -} - -void InspectorClientWinCE::populateSetting(const String& key, String* value) -{ - notImplemented(); -} - -void InspectorClientWinCE::storeSetting(const String& key, const String& value) -{ - notImplemented(); -} - -bool InspectorClientWinCE::sendMessageToFrontend(const String& message) -{ - notImplemented(); - return false; -} - -} // namespace WebKit diff --git a/WebKit/wince/WebCoreSupport/InspectorClientWinCE.h b/WebKit/wince/WebCoreSupport/InspectorClientWinCE.h deleted file mode 100644 index 37d7577..0000000 --- a/WebKit/wince/WebCoreSupport/InspectorClientWinCE.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2010 Patrick Gansterer <paroga@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 InspectorClientWinCE_h -#define InspectorClientWinCE_h - -#include "InspectorClient.h" - -class WebView; - -namespace WebKit { - -class InspectorClientWinCE : public WebCore::InspectorClient { -public: - InspectorClientWinCE(WebView* webView); - ~InspectorClientWinCE(); - - virtual void inspectorDestroyed(); - - virtual void openInspectorFrontend(WebCore::InspectorController*); - - virtual void highlight(WebCore::Node*); - virtual void hideHighlight(); - - virtual void populateSetting(const WTF::String& key, WTF::String* value); - virtual void storeSetting(const WTF::String& key, const WTF::String& value); - - virtual bool sendMessageToFrontend(const WTF::String&); - - void releaseFrontendPage(); - -private: - WebView* m_inspectedWebView; -}; - -} // namespace WebKit - -#endif // InspectorClientWinCE_h diff --git a/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.cpp b/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.cpp deleted file mode 100644 index 557d899..0000000 --- a/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.cpp +++ /dev/null @@ -1,665 +0,0 @@ -/* - * Copyright (C) 2010 Apple Inc. All rights reserved. - * Copyright (C) 2010 Patrick Gansterer <paroga@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 "PlatformStrategiesWinCE.h" - -#include "IntSize.h" -#include "Page.h" -#include "PageGroup.h" -#include "PluginDatabase.h" - -#include <wtf/MathExtras.h> -#include <wtf/text/CString.h> -#include <wtf/text/StringConcatenate.h> - -#define UI_STRING(text, description) text -#define UI_STRING_KEY(text, key, description) text - -using namespace WebCore; - -void PlatformStrategiesWinCE::initialize() -{ - DEFINE_STATIC_LOCAL(PlatformStrategiesWinCE, platformStrategies, ()); -} - -PlatformStrategiesWinCE::PlatformStrategiesWinCE() -{ - setPlatformStrategies(this); -} - -// PluginStrategy - -PluginStrategy* PlatformStrategiesWinCE::createPluginStrategy() -{ - return this; -} - -LocalizationStrategy* PlatformStrategiesWinCE::createLocalizationStrategy() -{ - return this; -} - -VisitedLinkStrategy* PlatformStrategiesWinCE::createVisitedLinkStrategy() -{ - return this; -} - -void PlatformStrategiesWinCE::refreshPlugins() -{ - PluginDatabase::installedPlugins()->refresh(); -} - -void PlatformStrategiesWinCE::getPluginInfo(const Page*, Vector<PluginInfo>& outPlugins) -{ - const Vector<PluginPackage*>& plugins = PluginDatabase::installedPlugins()->plugins(); - - outPlugins.resize(plugins.size()); - - for (size_t i = 0; i < plugins.size(); ++i) { - PluginPackage* package = plugins[i]; - - PluginInfo info; - info.name = package->name(); - info.file = package->fileName(); - info.desc = package->description(); - - const MIMEToDescriptionsMap& mimeToDescriptions = package->mimeToDescriptions(); - - info.mimes.reserveCapacity(mimeToDescriptions.size()); - - MIMEToDescriptionsMap::const_iterator end = mimeToDescriptions.end(); - for (MIMEToDescriptionsMap::const_iterator it = mimeToDescriptions.begin(); it != end; ++it) { - MimeClassInfo mime; - - mime.type = it->first; - mime.desc = it->second; - mime.extensions = package->mimeToExtensions().get(mime.type); - - info.mimes.append(mime); - } - - outPlugins[i] = info; - } -} - -// LocalizationStrategy - -String PlatformStrategiesWinCE::searchableIndexIntroduction() -{ - return UI_STRING("This is a searchable index. Enter search keywords: ", "text that appears at the start of nearly-obsolete web pages in the form of a 'searchable index'"); -} - -String PlatformStrategiesWinCE::submitButtonDefaultLabel() -{ - return UI_STRING("Submit", "default label for Submit buttons in forms on web pages"); -} - -String PlatformStrategiesWinCE::inputElementAltText() -{ - return UI_STRING_KEY("Submit", "Submit (input element)", "alt text for <input> elements with no alt, title, or value"); -} - -String PlatformStrategiesWinCE::resetButtonDefaultLabel() -{ - return UI_STRING("Reset", "default label for Reset buttons in forms on web pages"); -} - -String PlatformStrategiesWinCE::fileButtonChooseFileLabel() -{ - return UI_STRING("Choose File", "title for file button used in HTML forms"); -} - -String PlatformStrategiesWinCE::fileButtonNoFileSelectedLabel() -{ - return UI_STRING("no file selected", "text to display in file button used in HTML forms when no file is selected"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagOpenLinkInNewWindow() -{ - return UI_STRING("Open Link in New Window", "Open in New Window context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagDownloadLinkToDisk() -{ - return UI_STRING("Download Linked File", "Download Linked File context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagCopyLinkToClipboard() -{ - return UI_STRING("Copy Link", "Copy Link context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagOpenImageInNewWindow() -{ - return UI_STRING("Open Image in New Window", "Open Image in New Window context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagDownloadImageToDisk() -{ - return UI_STRING("Download Image", "Download Image context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagCopyImageToClipboard() -{ - return UI_STRING("Copy Image", "Copy Image context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagOpenVideoInNewWindow() -{ - return UI_STRING("Open Video in New Window", "Open Video in New Window context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagOpenAudioInNewWindow() -{ - return UI_STRING("Open Audio in New Window", "Open Audio in New Window context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagCopyVideoLinkToClipboard() -{ - return UI_STRING("Copy Video Address", "Copy Video Address Location context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagCopyAudioLinkToClipboard() -{ - return UI_STRING("Copy Audio Address", "Copy Audio Address Location context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagToggleMediaControls() -{ - return UI_STRING("Controls", "Media Controls context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagToggleMediaLoop() -{ - return UI_STRING("Loop", "Media Loop context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagEnterVideoFullscreen() -{ - return UI_STRING("Enter Fullscreen", "Video Enter Fullscreen context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagMediaPlay() -{ - return UI_STRING("Play", "Media Play context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagMediaPause() -{ - return UI_STRING("Pause", "Media Pause context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagMediaMute() -{ - return UI_STRING("Mute", "Media Mute context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagOpenFrameInNewWindow() -{ - return UI_STRING("Open Frame in New Window", "Open Frame in New Window context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagCopy() -{ - return UI_STRING("Copy", "Copy context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagGoBack() -{ - return UI_STRING("Back", "Back context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagGoForward() -{ - return UI_STRING("Forward", "Forward context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagStop() -{ - return UI_STRING("Stop", "Stop context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagReload() -{ - return UI_STRING("Reload", "Reload context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagCut() -{ - return UI_STRING("Cut", "Cut context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagPaste() -{ - return UI_STRING("Paste", "Paste context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagNoGuessesFound() -{ - return UI_STRING("No Guesses Found", "No Guesses Found context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagIgnoreSpelling() -{ - return UI_STRING("Ignore Spelling", "Ignore Spelling context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagLearnSpelling() -{ - return UI_STRING("Learn Spelling", "Learn Spelling context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagSearchWeb() -{ - return UI_STRING("Search with Google", "Search in Google context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagLookUpInDictionary() -{ - return UI_STRING("Look Up in Dictionary", "Look Up in Dictionary context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagOpenLink() -{ - return UI_STRING("Open Link", "Open Link context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagIgnoreGrammar() -{ - return UI_STRING("Ignore Grammar", "Ignore Grammar context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagSpellingMenu() -{ - return UI_STRING("Spelling and Grammar", "Spelling and Grammar context sub-menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagCheckSpelling() -{ - return UI_STRING("Check Document Now", "Check spelling context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagCheckSpellingWhileTyping() -{ - return UI_STRING("Check Spelling While Typing", "Check spelling while typing context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagCheckGrammarWithSpelling() -{ - return UI_STRING("Check Grammar With Spelling", "Check grammar with spelling context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagFontMenu() -{ - return UI_STRING("Font", "Font context sub-menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagBold() -{ - return UI_STRING("Bold", "Bold context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagItalic() -{ - return UI_STRING("Italic", "Italic context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagUnderline() -{ - return UI_STRING("Underline", "Underline context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagOutline() -{ - return UI_STRING("Outline", "Outline context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagWritingDirectionMenu() -{ - return UI_STRING("Paragraph Direction", "Paragraph direction context sub-menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagTextDirectionMenu() -{ - return UI_STRING("Selection Direction", "Selection direction context sub-menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagDefaultDirection() -{ - return UI_STRING("Default", "Default writing direction context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagLeftToRight() -{ - return UI_STRING("Left to Right", "Left to Right context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagRightToLeft() -{ - return UI_STRING("Right to Left", "Right to Left context menu item"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagShowSpellingPanel(bool show) -{ - if (show) - return UI_STRING("Show Spelling and Grammar", "menu item title"); - return UI_STRING("Hide Spelling and Grammar", "menu item title"); -} - -String PlatformStrategiesWinCE::contextMenuItemTagInspectElement() -{ - return UI_STRING("Inspect Element", "Inspect Element context menu item"); -} - -String PlatformStrategiesWinCE::searchMenuNoRecentSearchesText() -{ - return UI_STRING("No recent searches", "Label for only item in menu that appears when clicking on the search field image, when no searches have been performed"); -} - -String PlatformStrategiesWinCE::searchMenuRecentSearchesText() -{ - return UI_STRING("Recent Searches", "label for first item in the menu that appears when clicking on the search field image, used as embedded menu title"); -} - -String PlatformStrategiesWinCE::searchMenuClearRecentSearchesText() -{ - return UI_STRING("Clear Recent Searches", "menu item in Recent Searches menu that empties menu's contents"); -} - -String PlatformStrategiesWinCE::AXWebAreaText() -{ - return UI_STRING("web area", "accessibility role description for web area"); -} - -String PlatformStrategiesWinCE::AXLinkText() -{ - return UI_STRING("link", "accessibility role description for link"); -} - -String PlatformStrategiesWinCE::AXListMarkerText() -{ - return UI_STRING("list marker", "accessibility role description for list marker"); -} - -String PlatformStrategiesWinCE::AXImageMapText() -{ - return UI_STRING("image map", "accessibility role description for image map"); -} - -String PlatformStrategiesWinCE::AXHeadingText() -{ - return UI_STRING("heading", "accessibility role description for headings"); -} - -String PlatformStrategiesWinCE::AXDefinitionListTermText() -{ - return UI_STRING("term", "term word of a definition"); -} - -String PlatformStrategiesWinCE::AXDefinitionListDefinitionText() -{ - return UI_STRING("definition", "definition phrase"); -} - -String PlatformStrategiesWinCE::AXButtonActionVerb() -{ - return UI_STRING("press", "Verb stating the action that will occur when a button is pressed, as used by accessibility"); -} - -String PlatformStrategiesWinCE::AXRadioButtonActionVerb() -{ - return UI_STRING("select", "Verb stating the action that will occur when a radio button is clicked, as used by accessibility"); -} - -String PlatformStrategiesWinCE::AXTextFieldActionVerb() -{ - return UI_STRING("activate", "Verb stating the action that will occur when a text field is selected, as used by accessibility"); -} - -String PlatformStrategiesWinCE::AXCheckedCheckBoxActionVerb() -{ - return UI_STRING("uncheck", "Verb stating the action that will occur when a checked checkbox is clicked, as used by accessibility"); -} - -String PlatformStrategiesWinCE::AXUncheckedCheckBoxActionVerb() -{ - return UI_STRING("check", "Verb stating the action that will occur when an unchecked checkbox is clicked, as used by accessibility"); -} - -String PlatformStrategiesWinCE::AXLinkActionVerb() -{ - return UI_STRING("jump", "Verb stating the action that will occur when a link is clicked, as used by accessibility"); -} - -String PlatformStrategiesWinCE::AXMenuListActionVerb() -{ - return UI_STRING("open", "Verb stating the action that will occur when a select element is clicked, as used by accessibility"); -} - -String PlatformStrategiesWinCE::AXMenuListPopupActionVerb() -{ - return UI_STRING_KEY("press", "press (select element)", "Verb stating the action that will occur when a select element's popup list is clicked, as used by accessibility"); -} - -String PlatformStrategiesWinCE::unknownFileSizeText() -{ - return UI_STRING("Unknown", "Unknown filesize FTP directory listing item"); -} - -String PlatformStrategiesWinCE::uploadFileText() -{ - return UI_STRING("Upload file", "(Windows) Form submit file upload dialog title"); -} - -String PlatformStrategiesWinCE::allFilesText() -{ - return UI_STRING("All Files", "(Windows) Form submit file upload all files pop-up"); -} - -String PlatformStrategiesWinCE::missingPluginText() -{ - return UI_STRING("Missing Plug-in", "Label text to be used when a plugin is missing"); -} - -String PlatformStrategiesWinCE::crashedPluginText() -{ - return UI_STRING("Plug-in Failure", "Label text to be used if plugin host process has crashed"); -} - -String PlatformStrategiesWinCE::imageTitle(const String& filename, const IntSize& size) -{ - return UI_STRING(makeString(filename, ' ', String::number(size.width()), "\xC3\x97", String::number(size.height()), " pixels"), - "window title for a standalone image (uses multiplication symbol, not x)"); -} - -String PlatformStrategiesWinCE::multipleFileUploadText(unsigned numberOfFiles) -{ - return UI_STRING(makeString(String::number(numberOfFiles), " files"), "Label to describe the number of files selected in a file upload control that allows multiple files"); -} - -String PlatformStrategiesWinCE::mediaElementLoadingStateText() -{ - return UI_STRING("Loading...", "Media controller status message when the media is loading"); -} - -String PlatformStrategiesWinCE::mediaElementLiveBroadcastStateText() -{ - return UI_STRING("Live Broadcast", "Media controller status message when watching a live broadcast"); -} - -String PlatformStrategiesWinCE::localizedMediaControlElementString(const String& name) -{ - if (name == "AudioElement") - return UI_STRING("audio element controller", "accessibility role description for audio element controller"); - if (name == "VideoElement") - return UI_STRING("video element controller", "accessibility role description for video element controller"); - if (name == "MuteButton") - return UI_STRING("mute", "accessibility role description for mute button"); - if (name == "UnMuteButton") - return UI_STRING("unmute", "accessibility role description for turn mute off button"); - if (name == "PlayButton") - return UI_STRING("play", "accessibility role description for play button"); - if (name == "PauseButton") - return UI_STRING("pause", "accessibility role description for pause button"); - if (name == "Slider") - return UI_STRING("movie time", "accessibility role description for timeline slider"); - if (name == "SliderThumb") - return UI_STRING("timeline slider thumb", "accessibility role description for timeline thumb"); - if (name == "RewindButton") - return UI_STRING("back 30 seconds", "accessibility role description for seek back 30 seconds button"); - if (name == "ReturnToRealtimeButton") - return UI_STRING("return to realtime", "accessibility role description for return to real time button"); - if (name == "CurrentTimeDisplay") - return UI_STRING("elapsed time", "accessibility role description for elapsed time display"); - if (name == "TimeRemainingDisplay") - return UI_STRING("remaining time", "accessibility role description for time remaining display"); - if (name == "StatusDisplay") - return UI_STRING("status", "accessibility role description for movie status"); - if (name == "FullscreenButton") - return UI_STRING("fullscreen", "accessibility role description for enter fullscreen button"); - if (name == "SeekForwardButton") - return UI_STRING("fast forward", "accessibility role description for fast forward button"); - if (name == "SeekBackButton") - return UI_STRING("fast reverse", "accessibility role description for fast reverse button"); - if (name == "ShowClosedCaptionsButton") - return UI_STRING("show closed captions", "accessibility role description for show closed captions button"); - if (name == "HideClosedCaptionsButton") - return UI_STRING("hide closed captions", "accessibility role description for hide closed captions button"); - - ASSERT_NOT_REACHED(); - return String(); -} - -String PlatformStrategiesWinCE::localizedMediaControlElementHelpText(const String& name) -{ - if (name == "AudioElement") - return UI_STRING("audio element playback controls and status display", "accessibility role description for audio element controller"); - if (name == "VideoElement") - return UI_STRING("video element playback controls and status display", "accessibility role description for video element controller"); - if (name == "MuteButton") - return UI_STRING("mute audio tracks", "accessibility help text for mute button"); - if (name == "UnMuteButton") - return UI_STRING("unmute audio tracks", "accessibility help text for un mute button"); - if (name == "PlayButton") - return UI_STRING("begin playback", "accessibility help text for play button"); - if (name == "PauseButton") - return UI_STRING("pause playback", "accessibility help text for pause button"); - if (name == "Slider") - return UI_STRING("movie time scrubber", "accessibility help text for timeline slider"); - if (name == "SliderThumb") - return UI_STRING("movie time scrubber thumb", "accessibility help text for timeline slider thumb"); - if (name == "RewindButton") - return UI_STRING("seek movie back 30 seconds", "accessibility help text for jump back 30 seconds button"); - if (name == "ReturnToRealtimeButton") - return UI_STRING("return streaming movie to real time", "accessibility help text for return streaming movie to real time button"); - if (name == "CurrentTimeDisplay") - return UI_STRING("current movie time in seconds", "accessibility help text for elapsed time display"); - if (name == "TimeRemainingDisplay") - return UI_STRING("number of seconds of movie remaining", "accessibility help text for remaining time display"); - if (name == "StatusDisplay") - return UI_STRING("current movie status", "accessibility help text for movie status display"); - if (name == "SeekBackButton") - return UI_STRING("seek quickly back", "accessibility help text for fast rewind button"); - if (name == "SeekForwardButton") - return UI_STRING("seek quickly forward", "accessibility help text for fast forward button"); - if (name == "FullscreenButton") - return UI_STRING("Play movie in fullscreen mode", "accessibility help text for enter fullscreen button"); - if (name == "ShowClosedCaptionsButton") - return UI_STRING("start displaying closed captions", "accessibility help text for show closed captions button"); - if (name == "HideClosedCaptionsButton") - return UI_STRING("stop displaying closed captions", "accessibility help text for hide closed captions button"); - - ASSERT_NOT_REACHED(); - return String(); -} - -String PlatformStrategiesWinCE::localizedMediaTimeDescription(float time) -{ - if (!isfinite(time)) - return UI_STRING("indefinite time", "accessibility help text for an indefinite media controller time value"); - - int seconds = (int)fabsf(time); - int days = seconds / (60 * 60 * 24); - int hours = seconds / (60 * 60); - int minutes = (seconds / 60) % 60; - seconds %= 60; - - if (days) - return String::format(UI_STRING("%1$d days %2$d hours %3$d minutes %4$d seconds", "accessibility help text for media controller time value >= 1 day"), days, hours, minutes, seconds); - - if (hours) - return String::format(UI_STRING("%1$d hours %2$d minutes %3$d seconds", "accessibility help text for media controller time value >= 60 minutes"), hours, minutes, seconds); - - if (minutes) - return String::format(UI_STRING("%1$d minutes %2$d seconds", "accessibility help text for media controller time value >= 60 seconds"), minutes, seconds); - - return String::format(UI_STRING("%1$d seconds", "accessibility help text for media controller time value < 60 seconds"), seconds); -} - -String PlatformStrategiesWinCE::validationMessageValueMissingText() -{ - return UI_STRING("value missing", "Validation message for required form control elements that have no value"); -} - -String PlatformStrategiesWinCE::validationMessageTypeMismatchText() -{ - return UI_STRING("type mismatch", "Validation message for input form controls with a value not matching type"); -} - -String PlatformStrategiesWinCE::validationMessagePatternMismatchText() -{ - return UI_STRING("pattern mismatch", "Validation message for input form controls requiring a constrained value according to pattern"); -} - -String PlatformStrategiesWinCE::validationMessageTooLongText() -{ - return UI_STRING("too long", "Validation message for form control elements with a value longer than maximum allowed length"); -} - -String PlatformStrategiesWinCE::validationMessageRangeUnderflowText() -{ - return UI_STRING("range underflow", "Validation message for input form controls with value lower than allowed minimum"); -} - -String PlatformStrategiesWinCE::validationMessageRangeOverflowText() -{ - return UI_STRING("range overflow", "Validation message for input form controls with value higher than allowed maximum"); -} - -String PlatformStrategiesWinCE::validationMessageStepMismatchText() -{ - return UI_STRING("step mismatch", "Validation message for input form controls with value not respecting the step attribute"); -} - -bool PlatformStrategiesWinCE::isLinkVisited(Page* page, LinkHash hash) -{ - return page->group().isLinkVisited(hash); -} - -void PlatformStrategiesWinCE::addVisitedLink(Page* page, LinkHash hash) -{ - page->group().addVisitedLinkHash(hash); -} diff --git a/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.h b/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.h deleted file mode 100644 index 02d87d3..0000000 --- a/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.h +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright (C) 2010 Patrick Gansterer <paroga@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 PlatformStrategiesWinCE_h -#define PlatformStrategiesWinCE_h - -#include "LocalizationStrategy.h" -#include "PlatformStrategies.h" -#include "PluginStrategy.h" -#include "VisitedLinkStrategy.h" - -class PlatformStrategiesWinCE : public WebCore::PlatformStrategies, private WebCore::PluginStrategy, private WebCore::LocalizationStrategy, private WebCore::VisitedLinkStrategy { -public: - static void initialize(); - -private: - PlatformStrategiesWinCE(); - - // WebCore::PlatformStrategies - virtual WebCore::PluginStrategy* createPluginStrategy(); - virtual WebCore::LocalizationStrategy* createLocalizationStrategy(); - virtual WebCore::VisitedLinkStrategy* createVisitedLinkStrategy(); - - // WebCore::PluginStrategy - virtual void refreshPlugins(); - virtual void getPluginInfo(const WebCore::Page*, Vector<WebCore::PluginInfo>&); - - // WebCore::LocalizationStrategy - virtual WTF::String inputElementAltText(); - virtual WTF::String resetButtonDefaultLabel(); - virtual WTF::String searchableIndexIntroduction(); - virtual WTF::String submitButtonDefaultLabel(); - virtual WTF::String fileButtonChooseFileLabel(); - virtual WTF::String fileButtonNoFileSelectedLabel(); -#if ENABLE(CONTEXT_MENUS) - virtual WTF::String contextMenuItemTagOpenLinkInNewWindow(); - virtual WTF::String contextMenuItemTagDownloadLinkToDisk(); - virtual WTF::String contextMenuItemTagCopyLinkToClipboard(); - virtual WTF::String contextMenuItemTagOpenImageInNewWindow(); - virtual WTF::String contextMenuItemTagDownloadImageToDisk(); - virtual WTF::String contextMenuItemTagCopyImageToClipboard(); - virtual WTF::String contextMenuItemTagOpenFrameInNewWindow(); - virtual WTF::String contextMenuItemTagCopy(); - virtual WTF::String contextMenuItemTagGoBack(); - virtual WTF::String contextMenuItemTagGoForward(); - virtual WTF::String contextMenuItemTagStop(); - virtual WTF::String contextMenuItemTagReload(); - virtual WTF::String contextMenuItemTagCut(); - virtual WTF::String contextMenuItemTagPaste(); - virtual WTF::String contextMenuItemTagNoGuessesFound(); - virtual WTF::String contextMenuItemTagIgnoreSpelling(); - virtual WTF::String contextMenuItemTagLearnSpelling(); - virtual WTF::String contextMenuItemTagSearchWeb(); - virtual WTF::String contextMenuItemTagLookUpInDictionary(); - virtual WTF::String contextMenuItemTagOpenLink(); - virtual WTF::String contextMenuItemTagIgnoreGrammar(); - virtual WTF::String contextMenuItemTagSpellingMenu(); - virtual WTF::String contextMenuItemTagShowSpellingPanel(bool show); - virtual WTF::String contextMenuItemTagCheckSpelling(); - virtual WTF::String contextMenuItemTagCheckSpellingWhileTyping(); - virtual WTF::String contextMenuItemTagCheckGrammarWithSpelling(); - virtual WTF::String contextMenuItemTagFontMenu(); - virtual WTF::String contextMenuItemTagBold(); - virtual WTF::String contextMenuItemTagItalic(); - virtual WTF::String contextMenuItemTagUnderline(); - virtual WTF::String contextMenuItemTagOutline(); - virtual WTF::String contextMenuItemTagWritingDirectionMenu(); - virtual WTF::String contextMenuItemTagTextDirectionMenu(); - virtual WTF::String contextMenuItemTagDefaultDirection(); - virtual WTF::String contextMenuItemTagLeftToRight(); - virtual WTF::String contextMenuItemTagRightToLeft(); - virtual WTF::String contextMenuItemTagInspectElement(); - virtual WTF::String contextMenuItemTagOpenVideoInNewWindow(); - virtual WTF::String contextMenuItemTagOpenAudioInNewWindow(); - virtual WTF::String contextMenuItemTagCopyVideoLinkToClipboard(); - virtual WTF::String contextMenuItemTagCopyAudioLinkToClipboard(); - virtual WTF::String contextMenuItemTagToggleMediaControls(); - virtual WTF::String contextMenuItemTagToggleMediaLoop(); - virtual WTF::String contextMenuItemTagEnterVideoFullscreen(); - virtual WTF::String contextMenuItemTagMediaPlay(); - virtual WTF::String contextMenuItemTagMediaPause(); - virtual WTF::String contextMenuItemTagMediaMute(); -#endif // ENABLE(CONTEXT_MENUS) - virtual WTF::String searchMenuNoRecentSearchesText(); - virtual WTF::String searchMenuRecentSearchesText(); - virtual WTF::String searchMenuClearRecentSearchesText(); - virtual WTF::String AXWebAreaText(); - virtual WTF::String AXLinkText(); - virtual WTF::String AXListMarkerText(); - virtual WTF::String AXImageMapText(); - virtual WTF::String AXHeadingText(); - virtual WTF::String AXDefinitionListTermText(); - virtual WTF::String AXDefinitionListDefinitionText(); - virtual WTF::String AXButtonActionVerb(); - virtual WTF::String AXRadioButtonActionVerb(); - virtual WTF::String AXTextFieldActionVerb(); - virtual WTF::String AXCheckedCheckBoxActionVerb(); - virtual WTF::String AXUncheckedCheckBoxActionVerb(); - virtual WTF::String AXMenuListActionVerb(); - virtual WTF::String AXMenuListPopupActionVerb(); - virtual WTF::String AXLinkActionVerb(); - virtual WTF::String missingPluginText(); - virtual WTF::String crashedPluginText(); - virtual WTF::String multipleFileUploadText(unsigned numberOfFiles); - virtual WTF::String unknownFileSizeText(); - virtual WTF::String uploadFileText(); - virtual WTF::String allFilesText(); - virtual WTF::String imageTitle(const WTF::String& filename, const WebCore::IntSize&); - virtual WTF::String mediaElementLoadingStateText(); - virtual WTF::String mediaElementLiveBroadcastStateText(); - virtual WTF::String localizedMediaControlElementString(const WTF::String&); - virtual WTF::String localizedMediaControlElementHelpText(const WTF::String&); - virtual WTF::String localizedMediaTimeDescription(float); - virtual WTF::String validationMessageValueMissingText(); - virtual WTF::String validationMessageTypeMismatchText(); - virtual WTF::String validationMessagePatternMismatchText(); - virtual WTF::String validationMessageTooLongText(); - virtual WTF::String validationMessageRangeUnderflowText(); - virtual WTF::String validationMessageRangeOverflowText(); - virtual WTF::String validationMessageStepMismatchText(); - - // WebCore::VisitedLinkStrategy - virtual bool isLinkVisited(WebCore::Page*, WebCore::LinkHash); - virtual void addVisitedLink(WebCore::Page*, WebCore::LinkHash); -}; - -#endif // PlatformStrategiesWinCE_h diff --git a/WebKit/wince/WebView.cpp b/WebKit/wince/WebView.cpp deleted file mode 100644 index ce90149..0000000 --- a/WebKit/wince/WebView.cpp +++ /dev/null @@ -1,454 +0,0 @@ -/* - * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple, Inc. All rights reserved. - * Copyright (C) 2010 Patrick Gansterer <paroga@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 "WebView.h" - -#include "ChromeClientWinCE.h" -#include "ContextMenuClientWinCE.h" -#include "DragClientWinCE.h" -#include "EditorClientWinCE.h" -#include "FocusController.h" -#include "Frame.h" -#include "FrameLoader.h" -#include "FrameLoaderClientWinCE.h" -#include "FrameView.h" -#include "GraphicsContext.h" -#include "InitializeThreading.h" -#include "InspectorClientWinCE.h" -#include "IntSize.h" -#include "MainThread.h" -#include "NotImplemented.h" -#include "Page.h" -#include "PlatformKeyboardEvent.h" -#include "PlatformMouseEvent.h" -#include "PlatformStrategiesWinCE.h" -#include "PlatformWheelEvent.h" -#include "ResourceRequest.h" -#include "Settings.h" -#include "SharedBuffer.h" -#include "WebCoreInstanceHandle.h" - -using namespace WebCore; - -const LPCWSTR kWebViewWindowClassName = L"WebViewWindowClass"; - - -LRESULT CALLBACK WebView::webViewWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) -{ - if (WebView* webView = reinterpret_cast<WebView*>(GetWindowLong(hWnd, 0))) - return webView->wndProc(hWnd, message, wParam, lParam); - - return DefWindowProc(hWnd, message, wParam, lParam); -} - -PassRefPtr<SharedBuffer> loadResourceIntoBuffer(const char* name) -{ - notImplemented(); - return 0; -} - - -WebView::WebView(HWND hwnd, unsigned features) - : m_frame(0) - , m_page(0) - , m_parentWindowHandle(hwnd) - , m_enableDoubleBuffer(features & EnableDoubleBuffering) -{ - RECT rcClient; - GetClientRect(hwnd, &rcClient); - - m_windowHandle = CreateWindow(kWebViewWindowClassName, 0, WS_CHILD, - CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, hwnd, 0, WebCore::instanceHandle(), 0); - - SetWindowLong(m_windowHandle, 0, reinterpret_cast<LONG>(this)); - - MoveWindow(m_windowHandle, 0, 0, rcClient.right, rcClient.bottom, TRUE); - ShowWindow(m_windowHandle, SW_SHOW); - - Page::PageClients pageClients; - pageClients.chromeClient = new WebKit::ChromeClientWinCE(this); - pageClients.contextMenuClient = new WebKit::ContextMenuClientWinCE(this); - pageClients.editorClient = new WebKit::EditorClientWinCE(this); - pageClients.dragClient = new WebKit::DragClientWinCE(); - pageClients.inspectorClient = new WebKit::InspectorClientWinCE(this); - m_page = new Page(pageClients); - - Settings* settings = m_page->settings(); - settings->setDefaultFixedFontSize(14); - settings->setDefaultFontSize(14); - settings->setMinimumFontSize(8); - settings->setMinimumLogicalFontSize(8); - settings->setJavaScriptEnabled(true); - settings->setLoadsImagesAutomatically(true); - - WebKit::FrameLoaderClientWinCE* loaderClient = new WebKit::FrameLoaderClientWinCE(this); - RefPtr<Frame> frame = Frame::create(m_page, 0, loaderClient); - m_frame = frame.get(); - loaderClient->setFrame(m_frame); - - m_page->mainFrame()->init(); - - if (view()) { - RECT windowRect; - frameRect(&windowRect); - view()->resize(IntRect(windowRect).size()); - } -} - -WebView::~WebView() -{ - delete m_page; - DestroyWindow(m_windowHandle); -} - -void WebView::initialize(HINSTANCE instanceHandle) -{ - JSC::initializeThreading(); - WTF::initializeMainThread(); - PlatformStrategiesWinCE::initialize(); - - WebCore::setInstanceHandle(instanceHandle); - - WNDCLASS wc; - wc.style = CS_DBLCLKS; - wc.lpfnWndProc = WebView::webViewWndProc; - wc.cbClsExtra = 0; - wc.cbWndExtra = sizeof(void *); - wc.hInstance = instanceHandle; - wc.hIcon = 0; - wc.hCursor = LoadCursor(0, IDC_ARROW); - wc.hbrBackground = 0; - wc.lpszMenuName = 0; - wc.lpszClassName = kWebViewWindowClassName; - - RegisterClass(&wc); -} - -void WebView::cleanup() -{ - UnregisterClass(kWebViewWindowClassName, WebCore::instanceHandle()); -} - -PassRefPtr<Frame> WebView::createFrame(const KURL& url, const String& name, HTMLFrameOwnerElement* ownerElement, const String& referrer, - bool /*allowsScrolling*/, int /*marginWidth*/, int /*marginHeight*/) -{ - Frame* coreFrame = m_frame; - - WebKit::FrameLoaderClientWinCE *loaderClient = new WebKit::FrameLoaderClientWinCE(this); - RefPtr<Frame> childFrame = Frame::create(m_page, ownerElement, loaderClient); - loaderClient->setFrame(childFrame.get()); - - coreFrame->tree()->appendChild(childFrame); - childFrame->tree()->setName(name); - childFrame->init(); - - // The creation of the frame may have run arbitrary JavaScript that removed it from the page already. - if (!childFrame->page()) - return 0; - - childFrame->loader()->loadURLIntoChildFrame(url, referrer, childFrame.get()); - - // The frame's onload handler may have removed it from the document. - if (!childFrame->tree()->parent()) - return 0; - - return childFrame.release(); -} - -void WebView::runJavaScriptAlert(const String& message) -{ - notImplemented(); -} - -bool WebView::runJavaScriptConfirm(const String& message) -{ - notImplemented(); - return false; -} - -bool WebView::runJavaScriptPrompt(const String& message, const String& defaultValue, String& result) -{ - notImplemented(); - return false; -} - -void WebView::frameRect(RECT* rect) const -{ - GetWindowRect(m_windowHandle, rect); -} - -FrameView* WebView::view() const -{ - return m_frame ? m_frame->view() : 0; -} - -void WebView::load(LPCWSTR url) -{ - load(String(url)); -} - -void WebView::load(const String &url) -{ - load(WebCore::ResourceRequest(url)); -} - -void WebView::load(const WebCore::ResourceRequest &request) -{ - frame()->loader()->load(request, false); -} - -void WebView::reload() -{ - frame()->loader()->reload(); -} - -void WebView::stop() -{ - frame()->loader()->stopAllLoaders(); -} - -void WebView::paint(HDC hDC, const IntRect& clipRect) -{ - OwnPtr<HRGN> clipRgn(CreateRectRgn(clipRect.x(), clipRect.y(), clipRect.right(), clipRect.bottom())); - SelectClipRgn(hDC, clipRgn.get()); - - GraphicsContext gc(hDC); - view()->paint(&gc, clipRect); -} - -bool WebView::handlePaint(HWND hWnd) -{ - RECT updateRect; - if (!GetUpdateRect(hWnd, &updateRect, false)) - return false; - - PAINTSTRUCT ps; - HDC hDC = BeginPaint(m_windowHandle, &ps); - - IntRect clipRect(updateRect); - - if (m_enableDoubleBuffer) { - if (!m_doubleBufferDC) { - RECT rcClient; - GetClientRect(m_windowHandle, &rcClient); - - m_doubleBufferDC = adoptPtr(CreateCompatibleDC(hDC)); - m_doubleBufferBitmap = adoptPtr(CreateCompatibleBitmap(hDC, rcClient.right, rcClient.bottom)); - SelectObject(m_doubleBufferDC.get(), m_doubleBufferBitmap.get()); - } - - paint(m_doubleBufferDC.get(), clipRect); - - BitBlt(hDC, clipRect.x(), clipRect.y(), clipRect.width(), clipRect.height(), m_doubleBufferDC.get(), clipRect.x(), clipRect.y(), SRCCOPY); - } else - paint(hDC, clipRect); - - EndPaint(m_windowHandle, &ps); - return true; -} - -bool WebView::handleMouseEvent(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) -{ - static LONG globalClickCount; - static IntPoint globalPrevPoint; - static MouseButton globalPrevButton; - static LONG globalPrevMouseDownTime; - - // Create our event. - // On WM_MOUSELEAVE we need to create a mouseout event, so we force the position - // of the event to be at (MINSHORT, MINSHORT). - PlatformMouseEvent mouseEvent(hWnd, message, wParam, lParam); - - bool insideThreshold = abs(globalPrevPoint.x() - mouseEvent.pos().x()) < ::GetSystemMetrics(SM_CXDOUBLECLK) - && abs(globalPrevPoint.y() - mouseEvent.pos().y()) < ::GetSystemMetrics(SM_CYDOUBLECLK); - LONG messageTime = 0; - - bool handled = false; - if (message == WM_LBUTTONDOWN || message == WM_MBUTTONDOWN || message == WM_RBUTTONDOWN) { - // FIXME: I'm not sure if this is the "right" way to do this - // but without this call, we never become focused since we don't allow - // the default handling of mouse events. - SetFocus(m_windowHandle); - - PlatformMouseEvent moveEvent(hWnd, WM_MOUSEMOVE, 0, lParam, false); - moveEvent.setClickCount(0); - m_page->mainFrame()->eventHandler()->handleMouseMoveEvent(moveEvent); - - // Always start capturing events when the mouse goes down in our HWND. - SetCapture(m_windowHandle); - - if (insideThreshold && mouseEvent.button() == globalPrevButton) - globalClickCount++; - else - // Reset the click count. - globalClickCount = 1; - globalPrevMouseDownTime = messageTime; - globalPrevButton = mouseEvent.button(); - globalPrevPoint = mouseEvent.pos(); - - mouseEvent.setClickCount(globalClickCount); - handled = m_page->mainFrame()->eventHandler()->handleMousePressEvent(mouseEvent); - } else if (message == WM_LBUTTONDBLCLK || message == WM_MBUTTONDBLCLK || message == WM_RBUTTONDBLCLK) { - globalClickCount++; - mouseEvent.setClickCount(globalClickCount); - handled = m_page->mainFrame()->eventHandler()->handleMousePressEvent(mouseEvent); - } else if (message == WM_LBUTTONUP || message == WM_MBUTTONUP || message == WM_RBUTTONUP) { - // Record the global position and the button of the up. - globalPrevButton = mouseEvent.button(); - globalPrevPoint = mouseEvent.pos(); - mouseEvent.setClickCount(globalClickCount); - m_page->mainFrame()->eventHandler()->handleMouseReleaseEvent(mouseEvent); - ReleaseCapture(); - } else if (message == WM_MOUSEMOVE) { - if (!insideThreshold) - globalClickCount = 0; - mouseEvent.setClickCount(globalClickCount); - handled = m_page->mainFrame()->eventHandler()->mouseMoved(mouseEvent); - } - - return handled; -} - -bool WebView::handleMouseWheel(HWND hWnd, WPARAM wParam, LPARAM lParam, bool isHorizontal) -{ - PlatformWheelEvent wheelEvent(hWnd, wParam, lParam, isHorizontal); - return frame()->eventHandler()->handleWheelEvent(wheelEvent); -} - -bool WebView::handleKeyDown(WPARAM virtualKeyCode, LPARAM keyData, bool systemKeyDown) -{ - Frame* frame = m_page->focusController()->focusedOrMainFrame(); - if (virtualKeyCode == VK_CAPITAL) - frame->eventHandler()->capsLockStateMayHaveChanged(); - - PlatformKeyboardEvent keyEvent(m_windowHandle, virtualKeyCode, keyData, PlatformKeyboardEvent::RawKeyDown, systemKeyDown); - bool handled = frame->eventHandler()->keyEvent(keyEvent); - - // These events cannot be canceled, and we have no default handling for them. - // FIXME: match IE list more closely, see <http://msdn2.microsoft.com/en-us/library/ms536938.aspx>. - if (systemKeyDown && virtualKeyCode != VK_RETURN) - return false; - - if (handled) { - MSG msg; - if (!systemKeyDown) - ::PeekMessage(&msg, m_windowHandle, WM_CHAR, WM_CHAR, PM_REMOVE); - return true; - } - - return handled; -} - -bool WebView::handleKeyPress(WPARAM charCode, LPARAM keyData, bool systemKeyDown) -{ - Frame* frame = m_page->focusController()->focusedOrMainFrame(); - - PlatformKeyboardEvent keyEvent(m_windowHandle, charCode, keyData, PlatformKeyboardEvent::Char, systemKeyDown); - // IE does not dispatch keypress event for WM_SYSCHAR. - if (systemKeyDown) - return frame->eventHandler()->handleAccessKey(keyEvent); - if (frame->eventHandler()->keyEvent(keyEvent)) - return true; - - return false; -} - -bool WebView::handleKeyUp(WPARAM virtualKeyCode, LPARAM keyData, bool systemKeyDown) -{ - PlatformKeyboardEvent keyEvent(m_windowHandle, virtualKeyCode, keyData, PlatformKeyboardEvent::KeyUp, systemKeyDown); - - Frame* frame = m_page->focusController()->focusedOrMainFrame(); - return frame->eventHandler()->keyEvent(keyEvent); -} - -LRESULT WebView::wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) -{ - bool handled = false; - - if (view()) { - switch (message) { - case WM_PAINT: - handled = handlePaint(hWnd); - break; - - case WM_MOUSEMOVE: - case WM_LBUTTONDOWN: - case WM_MBUTTONDOWN: - case WM_RBUTTONDOWN: - case WM_LBUTTONDBLCLK: - case WM_MBUTTONDBLCLK: - case WM_RBUTTONDBLCLK: - case WM_LBUTTONUP: - case WM_MBUTTONUP: - case WM_RBUTTONUP: - if (frame()->eventHandler() && view()->didFirstLayout()) - handled = handleMouseEvent(hWnd, message, wParam, lParam); - break; - - case WM_MOUSEWHEEL: - if (frame()->eventHandler() && view()->didFirstLayout()) - handled = handleMouseWheel(hWnd, wParam, lParam, wParam & MK_SHIFT); - break; - - case WM_SYSKEYDOWN: - handled = handleKeyDown(wParam, lParam, true); - break; - - case WM_KEYDOWN: - handled = handleKeyDown(wParam, lParam, false); - break; - - case WM_SYSKEYUP: - handled = handleKeyUp(wParam, lParam, true); - break; - - case WM_KEYUP: - handled = handleKeyUp(wParam, lParam, false); - break; - - case WM_SYSCHAR: - handled = handleKeyPress(wParam, lParam, true); - break; - - case WM_CHAR: - handled = handleKeyPress(wParam, lParam, false); - break; - - case WM_CLOSE: - PostMessage(m_parentWindowHandle, WM_CLOSE, wParam, lParam); - handled = true; - break; - - default: - break; - } - } - - if (handled) - return 0; - - return DefWindowProc(hWnd, message, wParam, lParam); -} diff --git a/WebKit/wince/WebView.h b/WebKit/wince/WebView.h deleted file mode 100644 index c6e6684..0000000 --- a/WebKit/wince/WebView.h +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (C) 2010 Patrick Gansterer <paroga@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 WebView_h -#define WebView_h - -#include "IntRect.h" -#include "OwnPtr.h" -#include "PassRefPtr.h" - -namespace WTF { -class String; -} - -namespace WebCore { -class Frame; -class Page; -class FrameView; -class HTMLFrameOwnerElement; -class KURL; -class ResourceRequest; -} - -class WebView { -public: - enum Features { - NoFeature = 0, - EnableDoubleBuffering = 1 << 0 - }; - - WebView(HWND hwnd, unsigned features = EnableDoubleBuffering); - ~WebView(); - - static void initialize(HINSTANCE instanceHandle); - static void cleanup(); - - HWND windowHandle() const { return m_windowHandle; } - WebCore::Frame* frame() const { return m_frame; } - WebCore::Page* page() const { return m_page; } - WebCore::FrameView* view() const; - - void load(LPCWSTR url); - void load(const WTF::String &url); - void load(const WebCore::ResourceRequest &request); - void reload(); - void stop(); - - void frameRect(RECT* rect) const; - - PassRefPtr<WebCore::Frame> createFrame(const WebCore::KURL&, const WTF::String&, WebCore::HTMLFrameOwnerElement*, const WTF::String&, bool, int, int); - - // JavaScript Dialog - void runJavaScriptAlert(const WTF::String& message); - bool runJavaScriptConfirm(const WTF::String& message); - bool runJavaScriptPrompt(const WTF::String& message, const WTF::String& defaultValue, WTF::String& result); - -private: - static LRESULT CALLBACK webViewWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); - LRESULT wndProc(HWND, UINT, WPARAM, LPARAM); - - bool handlePaint(HWND hWnd); - bool handleMouseEvent(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); - bool handleMouseWheel(HWND hWnd, WPARAM wParam, LPARAM lParam, bool isHorizontal); - bool handleKeyDown(WPARAM virtualKeyCode, LPARAM keyData, bool systemKeyDown); - bool handleKeyPress(WPARAM charCode, LPARAM keyData, bool systemKeyDown); - bool handleKeyUp(WPARAM virtualKeyCode, LPARAM keyData, bool systemKeyDown); - - void paint(HDC hDC, const WebCore::IntRect& clipRect); - - WebCore::Frame* m_frame; - WebCore::Page* m_page; - HWND m_parentWindowHandle; - HWND m_windowHandle; - bool m_enableDoubleBuffer; - OwnPtr<HDC> m_doubleBufferDC; - OwnPtr<HBITMAP> m_doubleBufferBitmap; -}; - -#endif // WebView_h |
