OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module content.mojom; |
| 6 |
| 7 import "content/common/native_types.mojom"; |
| 8 import "ipc/ipc.mojom"; |
| 9 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 10 import "ui/gfx/mojo/icc_profile.mojom"; |
| 11 |
| 12 struct CreateViewParams { |
| 13 // Renderer-wide preferences. |
| 14 RendererPreferences renderer_preferences; |
| 15 |
| 16 // Preferences for this view. |
| 17 WebPreferences web_preferences; |
| 18 |
| 19 // The ID of the view to be created. |
| 20 int32 view_id = IPC.mojom.kRoutingIdNone; |
| 21 |
| 22 // The ID of the main frame hosted in the view. |
| 23 int32 main_frame_routing_id = IPC.mojom.kRoutingIdNone; |
| 24 |
| 25 // The ID of the widget for the main frame. |
| 26 int32 main_frame_widget_routing_id = IPC.mojom.kRoutingIdNone; |
| 27 |
| 28 // The session storage namespace ID this view should use. |
| 29 int64 session_storage_namespace_id; |
| 30 |
| 31 // The route ID of the opener RenderFrame or RenderFrameProxy, if we need to |
| 32 // set one (MSG_ROUTING_NONE otherwise). |
| 33 int32 opener_frame_route_id = IPC.mojom.kRoutingIdNone; |
| 34 |
| 35 // Whether the RenderView should initially be swapped out. |
| 36 bool swapped_out; |
| 37 |
| 38 // Carries replicated information, such as frame name and sandbox flags, for |
| 39 // this view's main frame, which will be a proxy in |swapped_out| |
| 40 // views when in --site-per-process mode, or a RenderFrame in all other |
| 41 // cases. |
| 42 FrameReplicationState replicated_frame_state; |
| 43 |
| 44 // The ID of the proxy object for the main frame in this view. It is only |
| 45 // used if |swapped_out| is true. |
| 46 int32 proxy_routing_id = IPC.mojom.kRoutingIdNone; |
| 47 |
| 48 // Whether the RenderView should initially be hidden. |
| 49 bool hidden; |
| 50 |
| 51 // Whether the RenderView will never be visible. |
| 52 bool never_visible; |
| 53 |
| 54 // Whether the window associated with this view was created with an opener. |
| 55 bool window_was_created_with_opener; |
| 56 |
| 57 // The initial page ID to use for this view, which must be larger than any |
| 58 // existing navigation that might be loaded in the view. Page IDs are unique |
| 59 // to a view and are only updated by the renderer after this initial value. |
| 60 int32 next_page_id; |
| 61 |
| 62 // The initial renderer size. |
| 63 ResizeParams initial_size; |
| 64 |
| 65 // Whether to enable auto-resize. |
| 66 bool enable_auto_resize; |
| 67 |
| 68 // The minimum size to layout the page if auto-resize is enabled. |
| 69 gfx.mojom.Size min_size; |
| 70 |
| 71 // The maximum size to layout the page if auto-resize is enabled. |
| 72 gfx.mojom.Size max_size; |
| 73 |
| 74 // The page zoom level. |
| 75 double page_zoom_level; |
| 76 |
| 77 // The ICC profile of the output color space to use for image decode. |
| 78 gfx.mojom.ICCProfile image_decode_color_space; |
| 79 }; |
| 80 |
| 81 // The primordial Channel-associated interface implemented by a render process. |
| 82 // This should be used for implementing browser-to-renderer control messages |
| 83 // which need to retain FIFO with respect to legacy IPC messages. |
| 84 interface Renderer { |
| 85 // Tells the renderer to create a new view. |
| 86 CreateView(CreateViewParams params); |
| 87 }; |
OLD | NEW |