| Index: services/ui/public/cpp/window_tree_client.cc
|
| diff --git a/services/ui/public/cpp/window_tree_client.cc b/services/ui/public/cpp/window_tree_client.cc
|
| index bd2d3578d7a1033c33fd34e85b2c038d8d93a14c..43098a21ea1d543cebef6d2b11364d3ec200041f 100644
|
| --- a/services/ui/public/cpp/window_tree_client.cc
|
| +++ b/services/ui/public/cpp/window_tree_client.cc
|
| @@ -356,6 +356,13 @@ void WindowTreeClient::AttachSurface(
|
| tree_->AttachSurface(window_id, type, std::move(surface), std::move(client));
|
| }
|
|
|
| +void WindowTreeClient::ReturnSurfaceReference(
|
| + Id window_id,
|
| + const cc::SurfaceSequence& sequence) {
|
| + DCHECK(tree_);
|
| + tree_->ReturnSurfaceReference(window_id, sequence);
|
| +}
|
| +
|
| void WindowTreeClient::LocalSetCapture(Window* window) {
|
| if (capture_window_ == window)
|
| return;
|
| @@ -1092,6 +1099,19 @@ void WindowTreeClient::OnWindowPredefinedCursorChanged(
|
| WindowPrivate(window).LocalSetPredefinedCursor(cursor);
|
| }
|
|
|
| +void WindowTreeClient::OnWindowSurfaceCreated(
|
| + Id window_id,
|
| + const cc::SurfaceId& surface_id,
|
| + const cc::SurfaceSequence& surface_sequence,
|
| + const gfx::Size& frame_size,
|
| + float device_scale_factor) {
|
| + Window* window = GetWindowByServerId(window_id);
|
| + if (!window)
|
| + return;
|
| + WindowPrivate(window).LocalSetSurfaceId(surface_id, surface_sequence,
|
| + frame_size, device_scale_factor);
|
| +}
|
| +
|
| void WindowTreeClient::OnDragDropStart(
|
| mojo::Map<mojo::String, mojo::Array<uint8_t>> mime_data) {
|
| mime_drag_data_ = std::move(mime_data);
|
|
|