Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/public/common/window_container_type.mojom"; | |
| 8 import "third_party/WebKit/public/platform/referrer.mojom"; | |
| 9 import "third_party/WebKit/public/web/window_features.mojom"; | |
| 10 import "ui/base/mojo/window_open_disposition.mojom"; | |
| 11 import "url/mojo/url.mojom"; | |
| 12 | |
| 13 struct CreateNewWindowParams { | |
| 14 // Routing ID of the view initiating the open. | |
| 15 int32 opener_id; | |
| 16 | |
| 17 // True if this open request came in the context of a user gesture. | |
| 18 bool user_gesture; | |
| 19 | |
| 20 // Type of window requested. | |
| 21 WindowContainerType window_container_type; | |
| 22 | |
| 23 // The session storage namespace ID this view should use. | |
| 24 int64 session_storage_namespace_id; | |
| 25 | |
| 26 // The name of the resulting frame that should be created (empty if none | |
| 27 // has been specified). UTF8 encoded string. | |
| 28 string frame_name; | |
| 29 | |
| 30 // The routing id of the frame initiating the open. | |
| 31 int32 opener_render_frame_id; | |
| 32 | |
| 33 // The URL of the frame initiating the open. | |
| 34 url.mojom.Url opener_url; | |
| 35 | |
| 36 // The URL of the top frame containing the opener. | |
| 37 url.mojom.Url opener_top_level_frame_url; | |
| 38 | |
| 39 // The security origin of the frame initiating the open. | |
| 40 url.mojom.Url opener_security_origin; | |
| 41 | |
| 42 // Whether the opener will be suppressed in the new window, in which case | |
| 43 // scripting the new window is not allowed. | |
| 44 bool opener_suppressed; | |
| 45 | |
| 46 // Whether the window should be opened in the foreground, background, etc. | |
| 47 ui.mojom.WindowOpenDisposition disposition; | |
| 48 | |
| 49 // The URL that will be loaded in the new window (empty if none has been | |
| 50 // sepcified). | |
| 51 url.mojom.Url target_url; | |
| 52 | |
| 53 // The referrer that will be used to load |target_url| (empty if none has | |
| 54 // been specified). | |
| 55 blink.mojom.Referrer referrer; | |
| 56 | |
| 57 // The window features to use for the new view. | |
| 58 blink.mojom.WindowFeatures features; | |
|
ncarter (slow)
2016/09/27 20:32:41
I double checked, and removing |additional_feature
Ken Rockot(use gerrit already)
2016/09/27 21:05:41
Ack.
| |
| 59 }; | |
| 60 | |
| 61 struct CreateNewWindowReply { | |
| 62 // The ID of the view to be created. If the ID is MSG_ROUTING_NONE, then the | |
| 63 // view couldn't be created. | |
| 64 int32 route_id; | |
| 65 | |
| 66 // The ID of the main frame hosted in the view. | |
| 67 int32 main_frame_route_id; | |
|
ncarter (slow)
2016/09/27 20:32:41
Long-term, do you think we'll eventually be return
Ken Rockot(use gerrit already)
2016/09/27 21:05:41
Yes, that's the idea. I may even try to start pair
ncarter (slow)
2016/09/27 22:47:52
Looking forward to seeing that happen.
I still ha
| |
| 68 | |
| 69 // The ID of the widget for the main frame. | |
| 70 int32 main_frame_widget_route_id; | |
| 71 | |
| 72 // Duplicated from CreateNewWindowParams because legacy code. | |
| 73 int64 cloned_session_storage_namespace_id; | |
| 74 }; | |
| 75 | |
| 7 interface RenderMessageFilter { | 76 interface RenderMessageFilter { |
| 8 // Synchronously generates a new routing ID for the caller. | 77 // Synchronously generates a new routing ID for the caller. |
| 9 [Sync] GenerateRoutingID() => (int32 routing_id); | 78 [Sync] GenerateRoutingID() => (int32 routing_id); |
| 79 | |
| 80 // Sent by the renderer when it is creating a new window. The browser creates | |
| 81 // a tab for it. If |reply.route_id| is MSG_ROUTING_NONE, the view couldn't | |
| 82 // be created. | |
| 83 [Sync] CreateNewWindow(CreateNewWindowParams params) | |
| 84 => (CreateNewWindowReply reply); | |
| 10 }; | 85 }; |
| OLD | NEW |