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/common/native_types.mojom"; |
7 import "content/public/common/window_container_type.mojom"; | 8 import "content/public/common/window_container_type.mojom"; |
8 import "third_party/WebKit/public/platform/referrer.mojom"; | 9 import "third_party/WebKit/public/platform/referrer.mojom"; |
9 import "third_party/WebKit/public/web/window_features.mojom"; | 10 import "third_party/WebKit/public/web/window_features.mojom"; |
10 import "ui/base/mojo/window_open_disposition.mojom"; | 11 import "ui/base/mojo/window_open_disposition.mojom"; |
11 import "url/mojo/url.mojom"; | 12 import "url/mojo/url.mojom"; |
12 | 13 |
13 struct CreateNewWindowParams { | 14 struct CreateNewWindowParams { |
14 // Routing ID of the view initiating the open. | 15 // Routing ID of the view initiating the open. |
15 int32 opener_id; | 16 int32 opener_id; |
16 | 17 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 76 |
76 interface RenderMessageFilter { | 77 interface RenderMessageFilter { |
77 // Synchronously generates a new routing ID for the caller. | 78 // Synchronously generates a new routing ID for the caller. |
78 [Sync] GenerateRoutingID() => (int32 routing_id); | 79 [Sync] GenerateRoutingID() => (int32 routing_id); |
79 | 80 |
80 // Sent by the renderer when it is creating a new window. The browser creates | 81 // 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 // a tab for it. If |reply.route_id| is MSG_ROUTING_NONE, the view couldn't |
82 // be created. | 83 // be created. |
83 [Sync] CreateNewWindow(CreateNewWindowParams params) | 84 [Sync] CreateNewWindow(CreateNewWindowParams params) |
84 => (CreateNewWindowReply reply); | 85 => (CreateNewWindowReply reply); |
| 86 |
| 87 // Similar to CreateWindow, except used for sub-widgets, like <select> |
| 88 // dropdowns. |
| 89 [Sync] CreateNewWidget(int32 opener_id, content.mojom.WebPopupType popup_type) |
| 90 => (int32 route_id); |
85 }; | 91 }; |
OLD | NEW |