Changeset 136126 in webkit
- Timestamp:
- Nov 29, 2012, 6:17:30 AM (14 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 12 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/API/qt/raw/qrawwebview.cpp (modified) (1 diff)
-
UIProcess/API/qt/raw/qrawwebview_p_p.h (modified) (1 diff)
-
UIProcess/PageClient.h (modified) (1 diff)
-
UIProcess/WebPageProxy.h (modified) (1 diff)
-
UIProcess/WebPageProxy.messages.in (modified) (1 diff)
-
UIProcess/qt/QtPageClient.cpp (modified) (1 diff)
-
UIProcess/qt/QtPageClient.h (modified) (1 diff)
-
UIProcess/qt/QtWebPageEventHandler.cpp (modified) (1 diff)
-
UIProcess/qt/QtWebPageEventHandler.h (modified) (1 diff)
-
UIProcess/qt/WebPageProxyQt.cpp (modified) (1 diff)
-
WebProcess/WebCoreSupport/WebEditorClient.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r136119 r136126 1 2012-11-29 Michael Brüning <michael.bruning@digia.com> 2 3 [Qt][WK2] Commit the preedit string in the input method when focus is about to be moved. 4 https://bugs.webkit.org/show_bug.cgi?id=97774 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 Implements the handler for willSetInputMethodState in WebKit2 in Qt. 9 This is needed to tell the input method instance in Qt to commit its 10 preedit content when the focus has moved to another node to prevent a 11 bug where the old preedit string was kept as the preedit string and 12 the editor moved focus back to the old node when continuing to enter 13 text via the input method. 14 15 This behavior is analog to the behavior of the QtQuick text input 16 elements. 17 18 * UIProcess/API/qt/raw/qrawwebview.cpp: 19 (QRawWebViewPrivate::handleWillSetInputMethodState): 20 * UIProcess/API/qt/raw/qrawwebview_p_p.h: 21 (QRawWebViewPrivate): 22 * UIProcess/PageClient.h: 23 (PageClient): 24 * UIProcess/WebPageProxy.h: 25 (WebPageProxy): 26 * UIProcess/WebPageProxy.messages.in: 27 * UIProcess/qt/QtPageClient.cpp: 28 (WebKit::QtPageClient::handleWillSetInputMethodState): 29 (WebKit): 30 * UIProcess/qt/QtPageClient.h: 31 (QtPageClient): 32 * UIProcess/qt/QtWebPageEventHandler.cpp: 33 (WebKit::QtWebPageEventHandler::handleWillSetInputMethodState): 34 (WebKit): 35 * UIProcess/qt/QtWebPageEventHandler.h: 36 (QtWebPageEventHandler): 37 * UIProcess/qt/WebPageProxyQt.cpp: 38 (WebKit::WebPageProxy::willSetInputMethodState): 39 (WebKit): 40 * WebProcess/WebCoreSupport/WebEditorClient.cpp: 41 (WebKit::WebEditorClient::willSetInputMethodState): 42 1 43 2012-11-28 Jocelyn Turcotte <jocelyn.turcotte@digia.com> 2 44 -
trunk/Source/WebKit2/UIProcess/API/qt/raw/qrawwebview.cpp
r135401 r136126 131 131 } 132 132 133 void QRawWebViewPrivate::handleWillSetInputMethodState() 134 { 135 notImplemented(); 136 } 137 133 138 #if ENABLE(GESTURE_EVENTS) 134 139 void QRawWebViewPrivate::doneWithGestureEvent(const WebKit::WebGestureEvent& event, bool wasEventHandled) -
trunk/Source/WebKit2/UIProcess/API/qt/raw/qrawwebview_p_p.h
r130031 r136126 72 72 73 73 virtual void updateTextInputState(); 74 virtual void handleWillSetInputMethodState(); 74 75 #if ENABLE(GESTURE_EVENTS) 75 76 virtual void doneWithGestureEvent(const WebKit::WebGestureEvent& event, bool wasEventHandled); -
trunk/Source/WebKit2/UIProcess/PageClient.h
r136075 r136126 128 128 virtual void handleCertificateVerificationRequest(const String& hostname, bool& ignoreErrors) = 0; 129 129 virtual void handleProxyAuthenticationRequiredRequest(const String& hostname, uint16_t port, const String& prefilledUsername, String& username, String& password) = 0; 130 virtual void handleWillSetInputMethodState() = 0; 130 131 #endif // PLATFORM(QT). 131 132 -
trunk/Source/WebKit2/UIProcess/WebPageProxy.h
r136095 r136126 896 896 897 897 void editorStateChanged(const EditorState&); 898 #if PLATFORM(QT) 899 void willSetInputMethodState(); 900 #endif 898 901 899 902 // Back/Forward list management -
trunk/Source/WebKit2/UIProcess/WebPageProxy.messages.in
r136075 r136126 206 206 DidChangeCompositionSelection(bool hasChanged) 207 207 #endif 208 208 #if PLATFORM(QT) 209 WillSetInputMethodState() 210 #endif 209 211 # Find messages 210 212 DidCountStringMatches(WTF::String string, uint32_t matchCount) -
trunk/Source/WebKit2/UIProcess/qt/QtPageClient.cpp
r130629 r136126 257 257 } 258 258 259 void QtPageClient::handleWillSetInputMethodState() 260 { 261 ASSERT(m_eventHandler); 262 m_eventHandler->handleWillSetInputMethodState(); 263 } 264 259 265 #if ENABLE(GESTURE_EVENTS) 260 266 void QtPageClient::doneWithGestureEvent(const WebGestureEvent& event, bool wasEventHandled) -
trunk/Source/WebKit2/UIProcess/qt/QtPageClient.h
r130031 r136126 104 104 virtual void didFindZoomableArea(const WebCore::IntPoint&, const WebCore::IntRect&); 105 105 virtual void updateTextInputState(); 106 virtual void handleWillSetInputMethodState(); 106 107 virtual void doneWithGestureEvent(const WebGestureEvent&, bool wasEventHandled); 107 108 #if ENABLE(TOUCH_EVENTS) -
trunk/Source/WebKit2/UIProcess/qt/QtWebPageEventHandler.cpp
r133153 r136126 436 436 } 437 437 438 void QtWebPageEventHandler::handleWillSetInputMethodState() 439 { 440 if (qApp->inputMethod()->isVisible()) 441 qApp->inputMethod()->commit(); 442 } 443 438 444 void QtWebPageEventHandler::doneWithGestureEvent(const WebGestureEvent& event, bool wasEventHandled) 439 445 { -
trunk/Source/WebKit2/UIProcess/qt/QtWebPageEventHandler.h
r129496 r136126 90 90 #endif 91 91 void handleInputEvent(const QInputEvent*); 92 void handleWillSetInputMethodState(); 92 93 void resetGestureRecognizers(); 93 94 -
trunk/Source/WebKit2/UIProcess/qt/WebPageProxyQt.cpp
r132228 r136126 172 172 } 173 173 174 void WebPageProxy::willSetInputMethodState() 175 { 176 m_pageClient->handleWillSetInputMethodState(); 177 } 178 174 179 } // namespace WebKit -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp
r132032 r136126 470 470 void WebEditorClient::willSetInputMethodState() 471 471 { 472 notImplemented(); 472 #if PLATFORM(QT) 473 m_page->send(Messages::WebPageProxy::WillSetInputMethodState()); 474 #else 475 notImplemented(); 476 #endif 473 477 } 474 478
Note:
See TracChangeset
for help on using the changeset viewer.