1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WebRemoteFrameClient_h
6 #define WebRemoteFrameClient_h
8 #include "public/web/WebDOMMessageEvent.h"
9 #include "public/web/WebSecurityOrigin.h"
17 class WebRemoteFrameClient {
19 // Notify the embedder that it should remove this frame from the frame tree
20 // and release any resources associated with it.
21 virtual void frameDetached() { }
23 // Notifies the embedder that a postMessage was issued to a remote frame.
24 virtual void postMessageEvent(
25 WebLocalFrame* sourceFrame,
26 WebRemoteFrame* targetFrame,
27 WebSecurityOrigin targetOrigin,
28 WebDOMMessageEvent) { }
30 // Send initial drawing parameters to a child frame that is being rendered
32 virtual void initializeChildFrame(
33 const WebRect& frameRect,
34 float scaleFactor) { }
36 // A remote frame was asked to start a navigation.
37 virtual void navigate(const WebURLRequest& request, bool shouldReplaceCurrentEntry) { }
39 // FIXME: Remove this method once we have input routing in the browser
40 // process. See http://crbug.com/339659.
41 virtual void forwardInputEvent(const WebInputEvent*) { }
46 #endif // WebRemoteFrameClient_h