Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: services/ui/public/cpp/window_tree_client.cc

Issue 2429173005: Mus+Ash: Replace (Server)WindowSurface with (Server)WindowCompositorFrameSink (Closed)
Patch Set: ui::CompositorFrameSink => ui::WindowCompositorFrameSink Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 const mojom::WindowTree::EmbedCallback& callback) { 342 const mojom::WindowTree::EmbedCallback& callback) {
343 DCHECK(tree_); 343 DCHECK(tree_);
344 tree_->Embed(window_id, std::move(client), flags, callback); 344 tree_->Embed(window_id, std::move(client), flags, callback);
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::AttachCompositorFrameSink(
353 Id window_id, 353 Id window_id,
354 mojom::SurfaceType type, 354 mojom::CompositorFrameSinkType type,
355 mojo::InterfaceRequest<cc::mojom::MojoCompositorFrameSink> surface, 355 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink,
356 cc::mojom::MojoCompositorFrameSinkClientPtr 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_->AttachCompositorFrameSink(
359 window_id, type, std::move(compositor_frame_sink), std::move(client));
359 } 360 }
360 361
361 void WindowTreeClient::OnWindowSurfaceDetached( 362 void WindowTreeClient::OnWindowSurfaceDetached(
362 Id window_id, 363 Id window_id,
363 const cc::SurfaceSequence& sequence) { 364 const cc::SurfaceSequence& sequence) {
364 DCHECK(tree_); 365 DCHECK(tree_);
365 tree_->OnWindowSurfaceDetached(window_id, sequence); 366 tree_->OnWindowSurfaceDetached(window_id, sequence);
366 } 367 }
367 368
368 void WindowTreeClient::LocalSetCapture(Window* window) { 369 void WindowTreeClient::LocalSetCapture(Window* window) {
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1432 Window* window, 1433 Window* window,
1433 const gfx::Vector2d& offset, 1434 const gfx::Vector2d& offset,
1434 const gfx::Insets& hit_area) { 1435 const gfx::Insets& hit_area) {
1435 if (window_manager_internal_client_) { 1436 if (window_manager_internal_client_) {
1436 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( 1437 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea(
1437 server_id(window), offset.x(), offset.y(), hit_area); 1438 server_id(window), offset.x(), offset.y(), hit_area);
1438 } 1439 }
1439 } 1440 }
1440 1441
1441 } // namespace ui 1442 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698