Home | History | Annotate | Download | only in PluginProcess
      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 
     23 #if ENABLE(PLUGIN_PROCESS)
     24 
     25 messages -> PluginControllerProxy {
     26     # Sent when the plug-in geometry changes.
     27     GeometryDidChange(WebCore::IntRect frameRect, WebCore::IntRect clipRect, WebKit::ShareableBitmap::Handle backingStoreHandle)
     28 
     29     # Sent when a frame has finished loading.
     30     FrameDidFinishLoading(uint64_t requestID)
     31 
     32     # Sent when a frame dfailed to load.
     33     FrameDidFail(uint64_t requestID, bool wasCancelled)
     34 
     35     # Sent when JavaScript that the plug-in asked to be evaluated has been evaluated.
     36     DidEvaluateJavaScript(uint64_t requestID, WTF::String requestURLString, WTF::String result)
     37 
     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)
     40 
     41     # Sent when the plug-in receives data for a stream.
     42     StreamDidReceiveData(uint64_t streamID, CoreIPC::DataReference data)
     43 
     44     # Sent when a plug-in stream has finishes loading.
     45     StreamDidFinishLoading(uint64_t streamID)
     46 
     47     # Sent when a plug-in stream has failed to load.
     48     StreamDidFail(uint64_t streamID, bool wasCancelled)
     49 
     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)
     52 
     53     # Sent when the plug-in receives data for the manual stream.
     54     ManualStreamDidReceiveData(CoreIPC::DataReference data)
     55 
     56     # Sent when the plug-in manual stream has finishes loading.
     57     ManualStreamDidFinishLoading()
     58 
     59     # Sent when the plug-in manual stream has failed to load.
     60     ManualStreamDidFail(bool wasCancelled)
     61 
     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
     64     
     65     # Sent when a mouse wheel event should be processed.
     66     HandleWheelEvent(WebKit::WebWheelEvent wheelEvent) -> (bool handled)
     67 
     68     # Sent when a mouse enter event should be processed.
     69     HandleMouseEnterEvent(WebKit::WebMouseEvent mouseEvent) -> (bool handled)
     70     
     71     # Sent when a mouse leave event should be processed.
     72     HandleMouseLeaveEvent(WebKit::WebMouseEvent mouseEvent) -> (bool handled)
     73 
     74     # Sent when a keyboard should be processed.
     75     HandleKeyboardEvent(WebKit::WebKeyboardEvent keyboardEvent) -> (bool handled)
     76 
     77     # Sent when the plug-in focus changes.
     78     SetFocus(bool isFocused)
     79 
     80     # Sent when the update requested by Update has been painted.
     81     DidUpdate()
     82 
     83     # Paint the entire plug-in.
     84     PaintEntirePlugin() -> ()
     85 
     86     # Get a reference to the plug-in's scriptable NPObject.
     87     GetPluginScriptableNPObject() -> (uint64_t pluginScriptableNPObjectID)
     88 
     89 #if PLATFORM(MAC)
     90     # Send the complex text input to the plug-in.
     91     SendComplexTextInput(WTF::String textInput)
     92 
     93     # Sent when the containing NSWindow's focus changes
     94     WindowFocusChanged(bool hasFocus)
     95 
     96     # Sent when the containing NSWindow or NSView frame changes
     97     WindowAndViewFramesChanged(WebCore::IntRect windowFrameInScreenCoordinates, WebCore::IntRect viewFrameInWindowCoordinates)
     98 
     99     # Sent when the containing NSWindow's visibility changes
    100     WindowVisibilityChanged(bool isVisible)
    101 #endif
    102 
    103     # Return a snapshot of the plugin
    104     Snapshot() -> (WebKit::ShareableBitmap::Handle backingStoreHandle)
    105     
    106     # Sent when private browsing is enabled or disabled
    107     PrivateBrowsingStateChanged(bool isPrivateBrowsingEnabled)
    108 }
    109 
    110 #endif
    111