Changeset 164112 in webkit
- Timestamp:
- Feb 14, 2014 11:38:17 AM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r164111 r164112 1 2014-02-14 Dan Bernstein <mitz@apple.com> 2 3 Stop using PLATFORM(MAC) in WebKit2/PluginProcess except where it means “OS X but not iOS” 4 https://bugs.webkit.org/show_bug.cgi?id=128802 5 6 Reviewed by Darin Adler. 7 8 * PluginProcess/PluginControllerProxy.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 9 (WebKit::PluginControllerProxy::PluginControllerProxy): 10 (WebKit::PluginControllerProxy::paint): 11 * PluginProcess/PluginControllerProxy.h: Ditto. 12 * PluginProcess/PluginControllerProxy.messages.in: Ditto. 13 * PluginProcess/PluginProcess.cpp: 14 (WebKit::PluginProcess::PluginProcess): Ditto. 15 (WebKit::PluginProcess::netscapePluginModule): Added && !PLATFORM(IOS) around Mac-specific 16 quirk. 17 (WebKit::PluginProcess::createWebProcessConnection): Changed PLATFORM(MAC) to OS(DARWIN) 18 around use of Mach-based IPC. 19 * PluginProcess/PluginProcess.h: Changed PLATFORM(MAC) to PLATFORM(COCOA), and to 20 USE(APPKIT) around override of stopRunLoop, which is implemented using AppKit. 21 * PluginProcess/PluginProcess.messages.in: Removed PLATFORM(MAC) guard around 22 SetProcessSuppressionEnabled. Changed it to PLATFORM(COCOA) around SetQOS. 23 * PluginProcess/WebProcessConnection.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 24 (WebKit::WebProcessConnection::createPluginInternal): 25 (WebKit::WebProcessConnection::createPlugin): 26 1 27 2014-02-14 Anders Carlsson <andersca@apple.com> 2 28 -
trunk/Source/WebKit2/PluginProcess/PluginControllerProxy.cpp
r163079 r164112 47 47 #include <wtf/text/WTFString.h> 48 48 49 #if PLATFORM( MAC)49 #if PLATFORM(COCOA) 50 50 #include "LayerHostingContext.h" 51 51 #endif … … 67 67 , m_waitingForDidUpdate(false) 68 68 , m_pluginCanceledManualStreamLoad(false) 69 #if PLATFORM( MAC)69 #if PLATFORM(COCOA) 70 70 , m_isComplexTextInputEnabled(false) 71 71 #endif … … 179 179 auto graphicsContext = m_backingStore->createGraphicsContext(); 180 180 181 #if PLATFORM( MAC)181 #if PLATFORM(COCOA) 182 182 // FIXME: We should really call applyDeviceScaleFactor instead of scale, but that ends up calling into WKSI 183 183 // which we currently don't have initiated in the plug-in process. -
trunk/Source/WebKit2/PluginProcess/PluginControllerProxy.h
r162139 r164112 67 67 bool wantsWheelEvents() const; 68 68 69 #if PLATFORM( MAC)69 #if PLATFORM(COCOA) 70 70 uint32_t remoteLayerClientID() const; 71 71 #endif … … 99 99 virtual void didFailToInitializePlugin() override; 100 100 101 #if PLATFORM( MAC)101 #if PLATFORM(COCOA) 102 102 virtual void pluginFocusOrWindowFocusChanged(bool) override; 103 103 virtual void setComplexTextInputState(PluginComplexTextInputState) override; … … 147 147 void getPluginScriptableNPObject(uint64_t& pluginScriptableNPObjectID); 148 148 149 #if PLATFORM( MAC)149 #if PLATFORM(COCOA) 150 150 void windowFocusChanged(bool); 151 151 void windowAndViewFramesChanged(const WebCore::IntRect& windowFrameInScreenCoordinates, const WebCore::IntRect& viewFrameInWindowCoordinates); … … 200 200 bool m_pluginCanceledManualStreamLoad; 201 201 202 #if PLATFORM( MAC)202 #if PLATFORM(COCOA) 203 203 // Whether complex text input is enabled for this plug-in. 204 204 bool m_isComplexTextInputEnabled; -
trunk/Source/WebKit2/PluginProcess/PluginControllerProxy.messages.in
r161148 r164112 96 96 GetPluginScriptableNPObject() -> (uint64_t pluginScriptableNPObjectID) 97 97 98 #if PLATFORM( MAC)98 #if PLATFORM(COCOA) 99 99 # Send the complex text input to the plug-in. 100 100 SendComplexTextInput(String textInput) -
trunk/Source/WebKit2/PluginProcess/PluginProcess.cpp
r163591 r164112 41 41 #include <wtf/RunLoop.h> 42 42 43 #if PLATFORM(MAC) 43 #if PLATFORM(MAC) && !PLATFORM(IOS) 44 44 #include <crt_externs.h> 45 45 #endif … … 58 58 : m_supportsAsynchronousPluginInitialization(false) 59 59 , m_minimumLifetimeTimer(RunLoop::main(), this, &PluginProcess::minimumLifetimeTimerFired) 60 #if PLATFORM( MAC)60 #if PLATFORM(COCOA) 61 61 , m_compositingRenderServerPort(MACH_PORT_NULL) 62 62 #endif … … 107 107 m_pluginModule = NetscapePluginModule::getOrCreate(m_pluginPath); 108 108 109 #if PLATFORM(MAC) 109 #if PLATFORM(MAC) && !PLATFORM(IOS) 110 110 if (m_pluginModule) { 111 111 if (m_pluginModule->pluginQuirks().contains(PluginQuirks::PrognameShouldBeWebKitPluginHost)) … … 154 154 bool didHaveAnyWebProcessConnections = !m_webProcessConnections.isEmpty(); 155 155 156 #if PLATFORM(MAC)156 #if OS(DARWIN) 157 157 // Create the listening port. 158 158 mach_port_t listeningPort; … … 227 227 } 228 228 229 #if !PLATFORM( MAC)229 #if !PLATFORM(COCOA) 230 230 void PluginProcess::initializeProcessName(const ChildProcessInitializationParameters&) 231 231 { -
trunk/Source/WebKit2/PluginProcess/PluginProcess.h
r163591 r164112 52 52 const String& pluginPath() const { return m_pluginPath; } 53 53 54 #if PLATFORM( MAC)54 #if PLATFORM(COCOA) 55 55 void setModalWindowIsShowing(bool); 56 56 void setFullscreenWindowIsShowing(bool); … … 77 77 void platformInitializeProcess(const ChildProcessInitializationParameters&); 78 78 79 #if PLATFORM(MAC)79 #if USE(APPKIT) 80 80 virtual void stopRunLoop() override; 81 81 #endif … … 103 103 String m_pluginPath; 104 104 105 #if PLATFORM( MAC)105 #if PLATFORM(COCOA) 106 106 String m_pluginBundleIdentifier; 107 107 #endif … … 114 114 RunLoop::Timer<PluginProcess> m_minimumLifetimeTimer; 115 115 116 #if PLATFORM( MAC)116 #if PLATFORM(COCOA) 117 117 // The Mach port used for accelerated compositing. 118 118 mach_port_t m_compositingRenderServerPort; -
trunk/Source/WebKit2/PluginProcess/PluginProcess.messages.in
r162578 r164112 40 40 ClearSiteData(Vector<String> sites, uint64_t flags, uint64_t maxAgeInSeconds, uint64_t callbackID) 41 41 42 #if PLATFORM(MAC)43 42 SetProcessSuppressionEnabled(bool flag) 43 #if PLATFORM(COCOA) 44 44 SetQOS(int latencyQOS, int throughputQOS) 45 45 #endif -
trunk/Source/WebKit2/PluginProcess/WebProcessConnection.cpp
r164015 r164112 225 225 226 226 wantsWheelEvents = pluginControllerProxyPtr->wantsWheelEvents(); 227 #if PLATFORM( MAC)227 #if PLATFORM(COCOA) 228 228 remoteLayerClientID = pluginControllerProxyPtr->remoteLayerClientID(); 229 229 #else … … 248 248 249 249 // If its initialization is complete then we need to respond to this message with the correct information about its creation. 250 #if PLATFORM( MAC)250 #if PLATFORM(COCOA) 251 251 reply->send(true, pluginControllerProxy->wantsWheelEvents(), pluginControllerProxy->remoteLayerClientID()); 252 252 #else
Note: See TracChangeset
for help on using the changeset viewer.