| 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/common/native_types.mojom"; |
| 8 import "content/public/common/window_container_type.mojom"; | 8 import "content/public/common/window_container_type.mojom"; |
| 9 import "gpu/ipc/common/mailbox.mojom"; |
| 9 import "third_party/WebKit/public/platform/referrer.mojom"; | 10 import "third_party/WebKit/public/platform/referrer.mojom"; |
| 10 import "third_party/WebKit/public/web/window_features.mojom"; | 11 import "third_party/WebKit/public/web/window_features.mojom"; |
| 11 import "ui/base/mojo/window_open_disposition.mojom"; | 12 import "ui/base/mojo/window_open_disposition.mojom"; |
| 12 import "url/mojo/url.mojom"; | 13 import "url/mojo/url.mojom"; |
| 13 | 14 |
| 14 struct CreateNewWindowParams { | 15 struct CreateNewWindowParams { |
| 15 // Routing ID of the view initiating the open. | 16 // Routing ID of the view initiating the open. |
| 16 int32 opener_id; | 17 int32 opener_id; |
| 17 | 18 |
| 18 // True if this open request came in the context of a user gesture. | 19 // True if this open request came in the context of a user gesture. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 => (CreateNewWindowReply reply); | 86 => (CreateNewWindowReply reply); |
| 86 | 87 |
| 87 // Similar to CreateWindow, except used for sub-widgets, like <select> | 88 // Similar to CreateWindow, except used for sub-widgets, like <select> |
| 88 // dropdowns. | 89 // dropdowns. |
| 89 [Sync] CreateNewWidget(int32 opener_id, content.mojom.WebPopupType popup_type) | 90 [Sync] CreateNewWidget(int32 opener_id, content.mojom.WebPopupType popup_type) |
| 90 => (int32 route_id); | 91 => (int32 route_id); |
| 91 | 92 |
| 92 // Similar to CreateWidget except the widget is a full screen window. | 93 // Similar to CreateWidget except the widget is a full screen window. |
| 93 [Sync] CreateFullscreenWidget(int32 opener_id) | 94 [Sync] CreateFullscreenWidget(int32 opener_id) |
| 94 => (int32 route_id); | 95 => (int32 route_id); |
| 96 |
| 97 // The 2 following methods belong to a future CC related mojom. |
| 98 // For now they need to be part of this channel associated interface to |
| 99 // prevent running into message ordering issues (CC trying to access a shared |
| 100 // bitmap before the registration message below made it to the browser). |
| 101 // |
| 102 // Informs the browser that the child allocated a shared bitmap. |
| 103 AllocatedSharedBitmap(handle<shared_buffer> buffer, gpu.mojom.Mailbox id); |
| 104 |
| 105 // Informs the browser that the child deleted a shared bitmap. |
| 106 DeletedSharedBitmap(gpu.mojom.Mailbox id); |
| 95 }; | 107 }; |
| OLD | NEW |