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/ws/window_server.h" | 5 #include "services/ui/ws/window_server.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 void WindowServer::SetFrameSinkManager( | 105 void WindowServer::SetFrameSinkManager( |
106 std::unique_ptr<cc::mojom::FrameSinkManager> frame_sink_manager) { | 106 std::unique_ptr<cc::mojom::FrameSinkManager> frame_sink_manager) { |
107 frame_sink_manager_ = std::move(frame_sink_manager); | 107 frame_sink_manager_ = std::move(frame_sink_manager); |
108 } | 108 } |
109 | 109 |
110 void WindowServer::SetGpuHost(std::unique_ptr<GpuHost> gpu_host) { | 110 void WindowServer::SetGpuHost(std::unique_ptr<GpuHost> gpu_host) { |
111 gpu_host_ = std::move(gpu_host); | 111 gpu_host_ = std::move(gpu_host); |
112 } | 112 } |
113 | 113 |
| 114 scoped_refptr<base::SingleThreadTaskRunner>& WindowServer::GetResourceRunner() { |
| 115 return delegate()->GetResourceRunner(); |
| 116 } |
| 117 |
| 118 base::WeakPtr<ui::ImageCursors> WindowServer::GetImageCursorsWeakPtr() { |
| 119 return delegate()->GetImageCursorsWeakPtr(); |
| 120 } |
| 121 |
114 ServerWindow* WindowServer::CreateServerWindow( | 122 ServerWindow* WindowServer::CreateServerWindow( |
115 const WindowId& id, | 123 const WindowId& id, |
116 const std::map<std::string, std::vector<uint8_t>>& properties) { | 124 const std::map<std::string, std::vector<uint8_t>>& properties) { |
117 ServerWindow* window = new ServerWindow(this, id, properties); | 125 ServerWindow* window = new ServerWindow(this, id, properties); |
118 window->AddObserver(this); | 126 window->AddObserver(this); |
119 return window; | 127 return window; |
120 } | 128 } |
121 | 129 |
122 ClientSpecificId WindowServer::GetAndAdvanceNextClientId() { | 130 ClientSpecificId WindowServer::GetAndAdvanceNextClientId() { |
123 const ClientSpecificId id = next_client_id_++; | 131 const ClientSpecificId id = next_client_id_++; |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 void WindowServer::OnUserIdAdded(const UserId& id) { | 914 void WindowServer::OnUserIdAdded(const UserId& id) { |
907 activity_monitor_map_[id] = base::MakeUnique<UserActivityMonitor>(nullptr); | 915 activity_monitor_map_[id] = base::MakeUnique<UserActivityMonitor>(nullptr); |
908 } | 916 } |
909 | 917 |
910 void WindowServer::OnUserIdRemoved(const UserId& id) { | 918 void WindowServer::OnUserIdRemoved(const UserId& id) { |
911 activity_monitor_map_.erase(id); | 919 activity_monitor_map_.erase(id); |
912 } | 920 } |
913 | 921 |
914 } // namespace ws | 922 } // namespace ws |
915 } // namespace ui | 923 } // namespace ui |
OLD | NEW |