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

Side by Side Diff: services/ui/ws/window_tree.cc

Issue 2481263002: Introduce Display Compositor mojo interface. Use InProcessContextProvider. (Closed)
Patch Set: Make ContextProvider NON_EXPORTED_BASE of InProcessContextProvider Created 4 years, 1 month 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/ws/window_tree.h" 5 #include "services/ui/ws/window_tree.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink, 1366 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink,
1367 cc::mojom::MojoCompositorFrameSinkClientPtr client) { 1367 cc::mojom::MojoCompositorFrameSinkClientPtr client) {
1368 ServerWindow* window = 1368 ServerWindow* window =
1369 GetWindowByClientId(ClientWindowId(transport_window_id)); 1369 GetWindowByClientId(ClientWindowId(transport_window_id));
1370 const bool success = 1370 const bool success =
1371 window && access_policy_->CanSetWindowCompositorFrameSink(window, type); 1371 window && access_policy_->CanSetWindowCompositorFrameSink(window, type);
1372 if (!success) { 1372 if (!success) {
1373 DVLOG(1) << "request to AttachCompositorFrameSink failed"; 1373 DVLOG(1) << "request to AttachCompositorFrameSink failed";
1374 return; 1374 return;
1375 } 1375 }
1376 window->CreateCompositorFrameSink(type, gfx::kNullAcceleratedWidget, nullptr, 1376 window->CreateCompositorFrameSink(type, gfx::kNullAcceleratedWidget,
1377 nullptr, std::move(compositor_frame_sink), 1377 std::move(compositor_frame_sink),
1378 std::move(client)); 1378 std::move(client));
1379 } 1379 }
1380 1380
1381 void WindowTree::SetWindowTextInputState(Id transport_window_id, 1381 void WindowTree::SetWindowTextInputState(Id transport_window_id,
1382 mojo::TextInputStatePtr state) { 1382 mojo::TextInputStatePtr state) {
1383 ServerWindow* window = 1383 ServerWindow* window =
1384 GetWindowByClientId(ClientWindowId(transport_window_id)); 1384 GetWindowByClientId(ClientWindowId(transport_window_id));
1385 bool success = window && access_policy_->CanSetWindowTextInputState(window); 1385 bool success = window && access_policy_->CanSetWindowTextInputState(window);
1386 if (success) 1386 if (success)
1387 window->SetTextInputState(state.To<ui::TextInputState>()); 1387 window->SetTextInputState(state.To<ui::TextInputState>());
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1945 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset, 1945 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset,
1946 effect_bitmask, callback); 1946 effect_bitmask, callback);
1947 } 1947 }
1948 1948
1949 void WindowTree::PerformOnDragDropDone() { 1949 void WindowTree::PerformOnDragDropDone() {
1950 client()->OnDragDropDone(); 1950 client()->OnDragDropDone();
1951 } 1951 }
1952 1952
1953 } // namespace ws 1953 } // namespace ws
1954 } // namespace ui 1954 } // namespace ui
OLDNEW
« services/ui/ws/gpu_service_proxy.cc ('K') | « services/ui/ws/window_server.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698