OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "services/ui/public/cpp/window_tree_client.h" | 5 #include "services/ui/public/cpp/window_tree_client.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 } | 345 } |
346 | 346 |
347 void WindowTreeClient::RequestClose(Window* window) { | 347 void WindowTreeClient::RequestClose(Window* window) { |
348 if (window_manager_internal_client_) | 348 if (window_manager_internal_client_) |
349 window_manager_internal_client_->WmRequestClose(server_id(window)); | 349 window_manager_internal_client_->WmRequestClose(server_id(window)); |
350 } | 350 } |
351 | 351 |
352 void WindowTreeClient::AttachSurface( | 352 void WindowTreeClient::AttachSurface( |
353 Id window_id, | 353 Id window_id, |
354 mojom::SurfaceType type, | 354 mojom::SurfaceType type, |
355 mojo::InterfaceRequest<mojom::Surface> surface, | 355 mojo::InterfaceRequest<cc::mojom::MojoCompositorFrameSink> surface, |
356 mojom::SurfaceClientPtr client) { | 356 cc::mojom::MojoCompositorFrameSinkClientPtr client) { |
357 DCHECK(tree_); | 357 DCHECK(tree_); |
358 tree_->AttachSurface(window_id, type, std::move(surface), std::move(client)); | 358 tree_->AttachSurface(window_id, type, std::move(surface), std::move(client)); |
359 } | 359 } |
360 | 360 |
361 void WindowTreeClient::OnWindowSurfaceDetached( | 361 void WindowTreeClient::OnWindowSurfaceDetached( |
362 Id window_id, | 362 Id window_id, |
363 const cc::SurfaceSequence& sequence) { | 363 const cc::SurfaceSequence& sequence) { |
364 DCHECK(tree_); | 364 DCHECK(tree_); |
365 tree_->OnWindowSurfaceDetached(window_id, sequence); | 365 tree_->OnWindowSurfaceDetached(window_id, sequence); |
366 } | 366 } |
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1432 Window* window, | 1432 Window* window, |
1433 const gfx::Vector2d& offset, | 1433 const gfx::Vector2d& offset, |
1434 const gfx::Insets& hit_area) { | 1434 const gfx::Insets& hit_area) { |
1435 if (window_manager_internal_client_) { | 1435 if (window_manager_internal_client_) { |
1436 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( | 1436 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( |
1437 server_id(window), offset.x(), offset.y(), hit_area); | 1437 server_id(window), offset.x(), offset.y(), hit_area); |
1438 } | 1438 } |
1439 } | 1439 } |
1440 | 1440 |
1441 } // namespace ui | 1441 } // namespace ui |
OLD | NEW |