PluginProxy.messages.in 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # Copyright (C) 2010 Apple Inc. All rights reserved.
  2. #
  3. # Redistribution and use in source and binary forms, with or without
  4. # modification, are permitted provided that the following conditions
  5. # are met:
  6. # 1. Redistributions of source code must retain the above copyright
  7. # notice, this list of conditions and the following disclaimer.
  8. # 2. Redistributions in binary form must reproduce the above copyright
  9. # notice, this list of conditions and the following disclaimer in the
  10. # documentation and/or other materials provided with the distribution.
  11. #
  12. # THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
  13. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  14. # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  15. # DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
  16. # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  17. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  18. # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  19. # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  21. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  22. #if ENABLE(PLUGIN_PROCESS)
  23. messages -> PluginProxy LegacyReceiver {
  24. # Asks the web process to load a URL.
  25. LoadURL(uint64_t requestID, WTF::String method, WTF::String urlString, WTF::String target, WebCore::HTTPHeaderMap headerFields, Vector<uint8_t> httpBody, bool allowPopups);
  26. # Called when the plug-in has painted into its backing store. The painted rect is in plug-in coordinates.
  27. Update(WebCore::IntRect paintedRect)
  28. # Returns a PAC style string with proxies for the given URL.
  29. ProxiesForURL(WTF::String urlString) -> (WTF::String proxiesString)
  30. # Returns the cookies for the given URL.
  31. CookiesForURL(WTF::String urlString) -> (WTF::String cookieString)
  32. # Sets the cookies for the given URL.
  33. SetCookiesForURL(WTF::String urlString, WTF::String cookieString)
  34. # Gets the authentication info for the given protection space.
  35. GetAuthenticationInfo(WebCore::ProtectionSpace protectionSpace) -> (bool returnValue, WTF::String username, WTF::String password)
  36. # Gets a reference to the plug-in element NPObject.
  37. GetPluginElementNPObject() -> (uint64_t pluginElementNPObjectID)
  38. # Evaluates the given JavaScript string.
  39. Evaluate(WebKit::NPVariantData npObjectAsVariantData, WTF::String scriptString, bool allowPopups) -> (bool returnValue, WebKit::NPVariantData resultData)
  40. # Cancels the given stream load.
  41. CancelStreamLoad(uint64_t streamID)
  42. # Cancel the manual stream load.
  43. CancelManualStreamLoad()
  44. # Set the status bar text.
  45. SetStatusbarText(WTF::String statusbarText)
  46. #if PLATFORM(MAC)
  47. # Called when the plug-in's focus or its containing window focus changes.
  48. PluginFocusOrWindowFocusChanged(bool pluginHasFocusAndWindowHasFocus)
  49. # Change whether complex text input is enabled for this plug-in.
  50. SetComplexTextInputState(uint64_t complexTextInputState)
  51. # Update the layer hosting context ID. Called whenever the layer hosting state changes.
  52. SetLayerHostingContextID(uint32_t layerHostingContextID)
  53. #endif
  54. #if PLUGIN_ARCHITECTURE(X11)
  55. # Create the plugin container for windowed plugins
  56. CreatePluginContainer() -> (uint64_t windowID)
  57. # Update geometry of windowed plugin widget
  58. WindowedPluginGeometryDidChange(WebCore::IntRect frameRect, WebCore::IntRect clipRect, uint64_t windowID)
  59. #endif
  60. # Tells the WebProcess that the plug-in was successfully initialized asynchronously
  61. DidCreatePlugin(bool wantsWheelEvents, uint32_t remoteLayerClientID) -> ()
  62. # Tells the WebProcess that the plug-in failed to initialize.
  63. DidFailToCreatePlugin() -> ()
  64. }
  65. #endif