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

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

Issue 2481263002: Introduce Display Compositor mojo interface. Use InProcessContextProvider. (Closed)
Patch Set: Speculative fix for android build issue Created 4 years 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 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink, 1386 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink,
1387 cc::mojom::MojoCompositorFrameSinkClientPtr client) { 1387 cc::mojom::MojoCompositorFrameSinkClientPtr client) {
1388 ServerWindow* window = 1388 ServerWindow* window =
1389 GetWindowByClientId(ClientWindowId(transport_window_id)); 1389 GetWindowByClientId(ClientWindowId(transport_window_id));
1390 const bool success = 1390 const bool success =
1391 window && access_policy_->CanSetWindowCompositorFrameSink(window, type); 1391 window && access_policy_->CanSetWindowCompositorFrameSink(window, type);
1392 if (!success) { 1392 if (!success) {
1393 DVLOG(1) << "request to AttachCompositorFrameSink failed"; 1393 DVLOG(1) << "request to AttachCompositorFrameSink failed";
1394 return; 1394 return;
1395 } 1395 }
1396 window->CreateCompositorFrameSink(type, gfx::kNullAcceleratedWidget, nullptr, 1396 window->CreateCompositorFrameSink(type, gfx::kNullAcceleratedWidget,
1397 nullptr, std::move(compositor_frame_sink), 1397 std::move(compositor_frame_sink),
1398 std::move(client)); 1398 std::move(client));
1399 } 1399 }
1400 1400
1401 void WindowTree::SetWindowTextInputState(Id transport_window_id, 1401 void WindowTree::SetWindowTextInputState(Id transport_window_id,
1402 mojo::TextInputStatePtr state) { 1402 mojo::TextInputStatePtr state) {
1403 ServerWindow* window = 1403 ServerWindow* window =
1404 GetWindowByClientId(ClientWindowId(transport_window_id)); 1404 GetWindowByClientId(ClientWindowId(transport_window_id));
1405 bool success = window && access_policy_->CanSetWindowTextInputState(window); 1405 bool success = window && access_policy_->CanSetWindowTextInputState(window);
1406 if (success) 1406 if (success)
1407 window->SetTextInputState(state.To<ui::TextInputState>()); 1407 window->SetTextInputState(state.To<ui::TextInputState>());
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
1966 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset, 1966 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset,
1967 effect_bitmask, callback); 1967 effect_bitmask, callback);
1968 } 1968 }
1969 1969
1970 void WindowTree::PerformOnDragDropDone() { 1970 void WindowTree::PerformOnDragDropDone() {
1971 client()->OnDragDropDone(); 1971 client()->OnDragDropDone();
1972 } 1972 }
1973 1973
1974 } // namespace ws 1974 } // namespace ws
1975 } // namespace ui 1975 } // namespace ui
OLDNEW
« services/ui/surfaces/direct_output_surface.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