Changeset 73968 in webkit
- Timestamp:
- Dec 13, 2010 3:01:44 PM (13 years ago)
- Location:
- trunk/WebKit2
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit2/ChangeLog
r73965 r73968 1 2010-12-13 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Darin Adler. 4 5 Pass the complex text input state all the way to the UI process 6 https://bugs.webkit.org/show_bug.cgi?id=50980 7 8 * PluginProcess/PluginControllerProxy.cpp: 9 (WebKit::PluginControllerProxy::setComplexTextInputEnabled): 10 * UIProcess/WebPageProxy.cpp: 11 (WebKit::WebPageProxy::setComplexTextInputEnabled): 12 * UIProcess/WebPageProxy.h: 13 * UIProcess/WebPageProxy.messages.in: 14 * WebProcess/Plugins/Netscape/NetscapePlugin.h: 15 * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm: 16 (WebKit::NetscapePlugin::pluginComplexTextInputIdentifier): 17 * WebProcess/Plugins/Plugin.h: 18 * WebProcess/Plugins/PluginProxy.cpp: 19 (WebKit::PluginProxy::pluginComplexTextInputIdentifier): 20 (WebKit::PluginProxy::setComplexTextInputEnabled): 21 * WebProcess/Plugins/PluginProxy.h: 22 * WebProcess/Plugins/PluginProxy.messages.in: 23 * WebProcess/Plugins/PluginView.cpp: 24 (WebKit::PluginView::setComplexTextInputEnabled): 25 1 26 2010-12-13 Sam Weinig <sam@webkit.org> 2 27 -
trunk/WebKit2/PluginProcess/PluginControllerProxy.cpp
r73956 r73968 242 242 243 243 m_isComplexTextInputEnabled = complexTextInputEnabled; 244 // FIXME: Let the web process know that this plug-in wants complex text input enabled. 244 245 m_connection->connection()->send(Messages::PluginProxy::SetComplexTextInputEnabled(complexTextInputEnabled), m_pluginInstanceID); 245 246 } 246 247 -
trunk/WebKit2/UIProcess/WebPageProxy.cpp
r73965 r73968 1676 1676 } 1677 1677 1678 #if PLATFORM(MAC) 1679 void WebPageProxy::setComplexTextInputEnabled(uint64_t pluginComplexTextInputIdentifier, bool complexTextInputEnabled) 1680 { 1681 // FIXME: Call the page client. 1682 } 1683 #endif 1684 1678 1685 } // namespace WebKit -
trunk/WebKit2/UIProcess/WebPageProxy.h
r73965 r73968 396 396 void didFinishLoadingDataForCustomRepresentation(const CoreIPC::DataReference& data); 397 397 398 void setComplexTextInputEnabled(uint64_t pluginComplexTextInputIdentifier, bool complexTextInputEnabled); 399 398 400 PageClient* m_pageClient; 399 401 WebLoaderClient m_loaderClient; -
trunk/WebKit2/UIProcess/WebPageProxy.messages.in
r73796 r73968 152 152 # Databases 153 153 ExceededDatabaseQuota(uint64_t frameID, WTF::String originIdentifier, WTF::String databaseName, WTF::String databaseDisplayName, uint64_t currentQuota, uint64_t currentUsage, uint64_t expectedUsage) -> (uint64_t newQuota) 154 155 # Complex text input support for plug-ins. 156 #if PLATFORM(MAC) 157 SetComplexTextInputEnabled(uint64_t pluginComplexTextInputIdentifier, bool complexTextInputEnabled) 158 #endif 154 159 } -
trunk/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.h
r73956 r73968 162 162 virtual void windowAndViewFramesChanged(const WebCore::IntRect& windowFrameInScreenCoordinates, const WebCore::IntRect& viewFrameInWindowCoordinates); 163 163 virtual void windowVisibilityChanged(bool); 164 165 virtual uint64_t pluginComplexTextInputIdentifier() const; 164 166 #endif 165 167 -
trunk/WebKit2/WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm
r73956 r73968 710 710 // FIXME: Implement. 711 711 } 712 712 713 uint64_t NetscapePlugin::pluginComplexTextInputIdentifier() const 714 { 715 // This is never called for NetscapePlugin. 716 ASSERT_NOT_REACHED(); 717 return 0; 718 } 719 713 720 PlatformLayer* NetscapePlugin::pluginLayer() 714 721 { -
trunk/WebKit2/WebProcess/Plugins/Plugin.h
r73090 r73968 151 151 // Tells the plug-in about window visibility changes. 152 152 virtual void windowVisibilityChanged(bool) = 0; 153 154 // Get the per complex text input identifier. 155 virtual uint64_t pluginComplexTextInputIdentifier() const = 0; 153 156 #endif 154 157 -
trunk/WebKit2/WebProcess/Plugins/PluginProxy.cpp
r73195 r73968 318 318 m_connection->connection()->send(Messages::PluginControllerProxy::WindowVisibilityChanged(isVisible), m_pluginInstanceID); 319 319 } 320 321 uint64_t PluginProxy::pluginComplexTextInputIdentifier() const 322 { 323 return m_pluginInstanceID; 324 } 325 320 326 #endif 321 327 … … 407 413 m_pluginController->setStatusbarText(statusbarText); 408 414 } 415 416 #if PLATFORM(MAC) 417 void PluginProxy::setComplexTextInputEnabled(bool complexTextInputEnabled) 418 { 419 m_pluginController->setComplexTextInputEnabled(complexTextInputEnabled); 420 } 421 #endif 409 422 410 423 void PluginProxy::update(const IntRect& paintedRect) -
trunk/WebKit2/WebProcess/Plugins/PluginProxy.h
r73090 r73968 96 96 virtual void windowAndViewFramesChanged(const WebCore::IntRect& windowFrameInScreenCoordinates, const WebCore::IntRect& viewFrameInWindowCoordinates); 97 97 virtual void windowVisibilityChanged(bool); 98 virtual uint64_t pluginComplexTextInputIdentifier() const; 98 99 #endif 99 100 … … 116 117 void cancelManualStreamLoad(); 117 118 void setStatusbarText(const String& statusbarText); 119 #if PLATFORM(MAC) 120 void setComplexTextInputEnabled(bool); 121 #endif 118 122 119 123 RefPtr<PluginProcessConnection> m_connection; -
trunk/WebKit2/WebProcess/Plugins/PluginProxy.messages.in
r73083 r73968 56 56 # Set the status bar text. 57 57 SetStatusbarText(WTF::String statusbarText) 58 59 #if PLATFORM(MAC) 60 # Change whether complext text input is enabled for this plug-in. 61 SetComplexTextInputEnabled(bool complexTextInputEnabled) 62 #endif 58 63 } 59 64 -
trunk/WebKit2/WebProcess/Plugins/PluginView.cpp
r73956 r73968 30 30 #include "WebEvent.h" 31 31 #include "WebPage.h" 32 #include "WebPageProxyMessages.h" 32 33 #include <WebCore/Chrome.h> 33 34 #include <WebCore/CookieJar.h> … … 871 872 872 873 #if PLATFORM(MAC) 873 void PluginView::setComplexTextInputEnabled(bool) 874 { 875 // This should never be called. 876 ASSERT_NOT_REACHED(); 874 void PluginView::setComplexTextInputEnabled(bool complexTextInputEnabled) 875 { 876 m_webPage->send(Messages::WebPageProxy::SetComplexTextInputEnabled(m_plugin->pluginComplexTextInputIdentifier(), complexTextInputEnabled)); 877 877 } 878 878 #endif
Note: See TracChangeset
for help on using the changeset viewer.