Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Side by Side Diff: content/common/renderer.mojom

Issue 2383853003: Move FrameMsg_NewFrame/NewFrameProxy to mojom (Closed)
Patch Set: Move FrameMsg_NewFrame/NewFrameProxy to mojom Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/native_types.typemap ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module content.mojom; 5 module content.mojom;
6 6
7 import "content/common/native_types.mojom"; 7 import "content/common/native_types.mojom";
8 import "ipc/ipc.mojom"; 8 import "ipc/ipc.mojom";
9 import "ui/gfx/geometry/mojo/geometry.mojom"; 9 import "ui/gfx/geometry/mojo/geometry.mojom";
10 import "ui/gfx/mojo/icc_profile.mojom"; 10 import "ui/gfx/mojo/icc_profile.mojom";
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // The maximum size to layout the page if auto-resize is enabled. 71 // The maximum size to layout the page if auto-resize is enabled.
72 gfx.mojom.Size max_size; 72 gfx.mojom.Size max_size;
73 73
74 // The page zoom level. 74 // The page zoom level.
75 double page_zoom_level; 75 double page_zoom_level;
76 76
77 // The ICC profile of the output color space to use for image decode. 77 // The ICC profile of the output color space to use for image decode.
78 gfx.mojom.ICCProfile image_decode_color_space; 78 gfx.mojom.ICCProfile image_decode_color_space;
79 }; 79 };
80 80
81 struct CreateFrameWidgetParams {
82 // Gives the routing ID for the RenderWidget that will be attached to the
83 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this
84 // is MSG_ROUTING_NONE and the other parameters are not read.
85 int32 routing_id;
86
87 // Tells the new RenderWidget whether it is initially hidden.
88 bool hidden;
89 };
90
91 struct CreateFrameParams {
92 // Specifies the routing ID of the new RenderFrame object.
93 int32 routing_id;
94
95 // If a valid |proxy_routing_id| is provided, the new frame will be
96 // configured to replace the proxy on commit.
97 int32 proxy_routing_id;
98
99 // Specifies the new frame's opener. The opener will be null if this is
100 // MSG_ROUTING_NONE.
101 int32 opener_routing_id;
102
103 // The new frame should be created as a child of the object
104 // identified by |parent_routing_id| or as top level if that is
105 // MSG_ROUTING_NONE.
106 int32 parent_routing_id;
107
108 // Identifies the previous sibling of the new frame, so that the new frame is
109 // inserted into the correct place in the frame tree. If this is
110 // MSG_ROUTING_NONE, the frame will be created as the leftmost child of its
111 // parent frame, in front of any other children.
112 int32 previous_sibling_routing_id;
113
114 // When the new frame has a parent, |replication_state| holds the new frame's
115 // properties replicated from the process rendering the parent frame, such as
116 // the new frame's sandbox flags.
117 FrameReplicationState replication_state;
118
119 // When the new frame has a parent, |frame_owner_properties| holds the
120 // properties of the HTMLFrameOwnerElement from the parent process.
121 // Note that unlike FrameReplicationState, this is not replicated for remote
122 // frames.
123 FrameOwnerProperties frame_owner_properties;
124
125 // Specifies properties for a new RenderWidget that will be attached to the
126 // new RenderFrame (if one is needed).
127 CreateFrameWidgetParams widget_params;
128 };
129
130
81 // The primordial Channel-associated interface implemented by a render process. 131 // The primordial Channel-associated interface implemented by a render process.
82 // This should be used for implementing browser-to-renderer control messages 132 // This should be used for implementing browser-to-renderer control messages
83 // which need to retain FIFO with respect to legacy IPC messages. 133 // which need to retain FIFO with respect to legacy IPC messages.
84 interface Renderer { 134 interface Renderer {
85 // Tells the renderer to create a new view. 135 // Tells the renderer to create a new view.
86 CreateView(CreateViewParams params); 136 CreateView(CreateViewParams params);
137
138 // Tells the renderer to create a new RenderFrame.
139 CreateFrame(CreateFrameParams params);
140
141 // Tells the renderer to create a new RenderFrameProxy object with
142 // |routing_id|. |render_view_routing_id| identifies the
143 // RenderView to be associated with this proxy. The new proxy's opener should
144 // be set to the object identified by |opener_routing_id|, or to null if that
145 // is MSG_ROUTING_NONE. The new proxy should be created as a child of the
146 // object identified by |parent_routing_id| or as top level if that is
147 // MSG_ROUTING_NONE.
148 CreateFrameProxy(int32 routing_id, int32 render_view_routing_id,
149 int32 opener_routing_id, int32 parent_routing_id,
150 FrameReplicationState replication_state);
87 }; 151 };
OLDNEW
« no previous file with comments | « content/common/native_types.typemap ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698