ipc_screen_controls.cc 778 B

12345678910111213141516171819202122232425
  1. // Copyright (c) 2013 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "remoting/host/ipc_screen_controls.h"
  5. #include "remoting/host/desktop_session_proxy.h"
  6. namespace remoting {
  7. IpcScreenControls::IpcScreenControls(
  8. scoped_refptr<DesktopSessionProxy> desktop_session_proxy)
  9. : desktop_session_proxy_(desktop_session_proxy) {
  10. }
  11. IpcScreenControls::~IpcScreenControls() = default;
  12. void IpcScreenControls::SetScreenResolution(
  13. const ScreenResolution& resolution,
  14. absl::optional<webrtc::ScreenId> screen_id) {
  15. // TODO(crbug.com/1326339): Pass |screen_id| over IPC.
  16. desktop_session_proxy_->SetScreenResolution(resolution);
  17. }
  18. } // namespace remoting