blob: 7b3efca7f5bfaf90bf89b3e3b4f48e4d5a49f6b0 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module content.mojom;
import "ui/gfx/geometry/mojom/geometry.mojom";
import "cc/mojom/render_frame_metadata.mojom";
import "content/common/frame.mojom";
import "services/viz/public/mojom/compositing/frame_sink_id.mojom";
// Mojo interface for communicating from RenderFrameProxy to
// RenderFrameProxyHost. Implemented by the browser process, called by renderer
// processes.
interface RenderFrameProxyHost {
// TODO(dtapuska): Keep this interface for now. All methods have moved to
// blink::RemoteFrameHost but we might still need this.
// Requests that the given URL be opened in the specified manner.
OpenURL(OpenURLParams params);
};
// Mojo interface for communicating from RenderFrameProxyHost to
// RenderFrameProxy. Implemented by renderer processes, called by the browser
// process.
interface RenderFrameProxy {
// Notifies the remote frame that the process rendering the child frame's
// contents has terminated.
ChildProcessGone();
// This function enables auto-resize mode from the parent renderer.
EnableAutoResize(gfx.mojom.Size min_size, gfx.mojom.Size max_size);
// This function disables auto-resize-mode from the parent renderer.
DisableAutoResize();
// Informs the completion of an autoresize transaction from the parent
// renderer and updates with the provided viz::LocalSurfaceId.
DidUpdateVisualProperties(cc.mojom.RenderFrameMetadata metadata);
// This function notifies the remote frame that its associated
// compositing destination (RenderWidgetHostView) has changed.
SetFrameSinkId(viz.mojom.FrameSinkId frame_sink_id);
};