1 # Copyright (C) 2010 Apple Inc. All rights reserved.
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions
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.
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.
23 #if ENABLE(PLUGIN_PROCESS)
25 messages -> PluginControllerProxy {
26 # Sent when the plug-in geometry changes.
27 GeometryDidChange(WebCore::IntRect frameRect, WebCore::IntRect clipRect, WebKit::ShareableBitmap::Handle backingStoreHandle)
29 # Sent when a frame has finished loading.
30 FrameDidFinishLoading(uint64_t requestID)
32 # Sent when a frame dfailed to load.
33 FrameDidFail(uint64_t requestID, bool wasCancelled)
35 # Sent when JavaScript that the plug-in asked to be evaluated has been evaluated.
36 DidEvaluateJavaScript(uint64_t requestID, WTF::String result)
38 # Sent when the plug-in receives a response for a stream.
39 StreamDidReceiveResponse(uint64_t streamID, WTF::String responseURLString, uint32_t streamLength, uint32_t lastModifiedTime, WTF::String mimeType, WTF::String headers)
41 # Sent when the plug-in receives data for a stream.
42 StreamDidReceiveData(uint64_t streamID, CoreIPC::DataReference data)
44 # Sent when a plug-in stream has finishes loading.
45 StreamDidFinishLoading(uint64_t streamID)
47 # Sent when a plug-in stream has failed to load.
48 StreamDidFail(uint64_t streamID, bool wasCancelled)
50 # Sent when the plug-in receives a response for the manual stream.
51 ManualStreamDidReceiveResponse(WTF::String responseURLString, uint32_t streamLength, uint32_t lastModifiedTime, WTF::String mimeType, WTF::String headers)
53 # Sent when the plug-in receives data for the manual stream.
54 ManualStreamDidReceiveData(CoreIPC::DataReference data)
56 # Sent when the plug-in manual stream has finishes loading.
57 ManualStreamDidFinishLoading()
59 # Sent when the plug-in manual stream has failed to load.
60 ManualStreamDidFail(bool wasCancelled)
62 # Sent when a mouse event (that isn't a mouse enter/leave event or a wheel event) should be processed.
63 HandleMouseEvent(WebKit::WebMouseEvent mouseEvent) -> (bool handled) Delayed
65 # Sent when a mouse wheel event should be processed.
66 HandleWheelEvent(WebKit::WebWheelEvent wheelEvent) -> (bool handled)
68 # Sent when a mouse enter event should be processed.
69 HandleMouseEnterEvent(WebKit::WebMouseEvent mouseEvent) -> (bool handled)
71 # Sent when a mouse leave event should be processed.
72 HandleMouseLeaveEvent(WebKit::WebMouseEvent mouseEvent) -> (bool handled)
74 # Sent when a keyboard should be processed.
75 HandleKeyboardEvent(WebKit::WebKeyboardEvent keyboardEvent) -> (bool handled)
77 # Sent when the plug-in focus changes.
78 SetFocus(bool isFocused)
80 # Sent when the update requested by Update has been painted.
83 # Paint the entire plug-in.
84 PaintEntirePlugin() -> ()
86 # Get a reference to the plug-in's scriptable NPObject.
87 GetPluginScriptableNPObject() -> (uint64_t pluginScriptableNPObjectID)
90 # Send the complex text input to the plug-in.
91 SendComplexTextInput(WTF::String textInput)
93 # Sent when the containing NSWindow's focus changes
94 WindowFocusChanged(bool hasFocus)
96 # Sent when the containing NSWindow or NSView frame changes
97 WindowAndViewFramesChanged(WebCore::IntRect windowFrameInScreenCoordinates, WebCore::IntRect viewFrameInWindowCoordinates)
99 # Sent when the containing NSWindow's visibility changes
100 WindowVisibilityChanged(bool isVisible)
103 # Return a snapshot of the plugin
104 Snapshot() -> (WebKit::ShareableBitmap::Handle backingStoreHandle)
106 # Sent when private browsing is enabled or disabled
107 PrivateBrowsingStateChanged(bool isPrivateBrowsingEnabled)
109 # Gets the string representating the form value of the plug-in
110 GetFormValue() -> (bool returnValue, WTF::String formValue)