Changeset 74037 in webkit
- Timestamp:
- Dec 14, 2010 9:54:39 AM (13 years ago)
- Location:
- trunk/WebKit2
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit2/ChangeLog
r74015 r74037 1 2010-12-13 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Kevin Decker. 4 5 Pass the complex text input status to the WKView 6 https://bugs.webkit.org/show_bug.cgi?id=50993 7 8 * UIProcess/API/mac/PageClientImpl.h: 9 * UIProcess/API/mac/PageClientImpl.mm: 10 (WebKit::PageClientImpl::setComplexTextInputEnabled): 11 * UIProcess/API/mac/WKView.mm: 12 (-[WKView _setComplexTextInputEnabled:pluginComplexTextInputIdentifier:]): 13 * UIProcess/API/mac/WKViewInternal.h: 14 * UIProcess/PageClient.h: 15 * UIProcess/WebPageProxy.cpp: 16 (WebKit::WebPageProxy::setComplexTextInputEnabled): 17 1 18 2010-12-14 Benjamin Poulain <benjamin.poulain@nokia.com> 2 19 -
trunk/WebKit2/UIProcess/API/mac/PageClientImpl.h
r73796 r74037 77 77 #endif 78 78 79 virtual void setComplexTextInputEnabled(uint64_t pluginComplexTextInputIdentifier, bool complexTextInputEnabled); 80 79 81 virtual void didCommitLoadForMainFrame(bool useCustomRepresentation); 80 82 virtual void didFinishLoadingDataForCustomRepresentation(const CoreIPC::DataReference&); -
trunk/WebKit2/UIProcess/API/mac/PageClientImpl.mm
r73796 r74037 275 275 #endif // USE(ACCELERATED_COMPOSITING) 276 276 277 void PageClientImpl::setComplexTextInputEnabled(uint64_t pluginComplexTextInputIdentifier, bool complexTextInputEnabled) 278 { 279 [m_wkView _setComplexTextInputEnabled:complexTextInputEnabled pluginComplexTextInputIdentifier:pluginComplexTextInputIdentifier]; 280 } 281 277 282 void PageClientImpl::didCommitLoadForMainFrame(bool useCustomRepresentation) 278 283 { -
trunk/WebKit2/UIProcess/API/mac/WKView.mm
r73986 r74037 108 108 Vector<KeypressCommand> _commandsList; 109 109 110 // The identifier of the plug-in we want to send complex text input to, or 0 if there is none. 111 uint64_t _pluginComplexTextInputIdentifier; 112 110 113 BOOL _isSelectionNone; 111 114 BOOL _isSelectionEditable; … … 1150 1153 #endif // USE(ACCELERATED_COMPOSITING) 1151 1154 1155 - (void)_setComplexTextInputEnabled:(BOOL)complexTextInputEnabled pluginComplexTextInputIdentifier:(uint64_t)pluginComplexTextInputIdentifier 1156 { 1157 BOOL inputSourceChanged = _data->_pluginComplexTextInputIdentifier; 1158 1159 if (complexTextInputEnabled) { 1160 // Check if we're already allowing text input for this plug-in. 1161 if (pluginComplexTextInputIdentifier == _data->_pluginComplexTextInputIdentifier) 1162 return; 1163 1164 _data->_pluginComplexTextInputIdentifier = pluginComplexTextInputIdentifier; 1165 1166 } else { 1167 // Check if we got a request to disable complex text input for a plug-in that is not the current plug-in. 1168 if (pluginComplexTextInputIdentifier != _data->_pluginComplexTextInputIdentifier) 1169 return; 1170 1171 _data->_pluginComplexTextInputIdentifier = 0; 1172 } 1173 1174 if (inputSourceChanged) { 1175 // Inform the out of line window that the input source changed. 1176 } 1177 } 1178 1152 1179 - (void)_setPageHasCustomRepresentation:(BOOL)pageHasCustomRepresentation 1153 1180 { -
trunk/WebKit2/UIProcess/API/mac/WKViewInternal.h
r73796 r74037 55 55 #endif 56 56 57 - (void)_setComplexTextInputEnabled:(BOOL)complexTextInputEnabled pluginComplexTextInputIdentifier:(uint64_t)pluginComplexTextInputIdentifier; 58 57 59 - (void)_setPageHasCustomRepresentation:(BOOL)pageHasCustomRepresentation; 58 60 - (void)_didFinishLoadingDataForCustomRepresentation:(const CoreIPC::DataReference&)dataReference; -
trunk/WebKit2/UIProcess/PageClient.h
r73796 r74037 94 94 #endif 95 95 96 #if PLATFORM(MAC) 97 virtual void setComplexTextInputEnabled(uint64_t pluginComplexTextInputIdentifier, bool complexTextInputEnabled) = 0; 98 #endif 99 96 100 // Custom representations. 97 101 virtual void didCommitLoadForMainFrame(bool useCustomRepresentation) = 0; -
trunk/WebKit2/UIProcess/WebPageProxy.cpp
r74000 r74037 1698 1698 void WebPageProxy::setComplexTextInputEnabled(uint64_t pluginComplexTextInputIdentifier, bool complexTextInputEnabled) 1699 1699 { 1700 // FIXME: Call the page client.1700 m_pageClient->setComplexTextInputEnabled(pluginComplexTextInputIdentifier, complexTextInputEnabled); 1701 1701 } 1702 1702 #endif
Note: See TracChangeset
for help on using the changeset viewer.