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

Side by Side Diff: remoting/host/fake_desktop_environment.cc

Issue 2092483002: Provide access to the ID for the remoted Windows session in the network process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rsk_main
Patch Set: Addressing CR Feedback Created 4 years, 5 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
« no previous file with comments | « remoting/host/fake_desktop_environment.h ('k') | remoting/host/host_mock_objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "remoting/host/fake_desktop_environment.h" 5 #include "remoting/host/fake_desktop_environment.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "remoting/host/audio_capturer.h" 10 #include "remoting/host/audio_capturer.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 FakeDesktopEnvironment::CreateMouseCursorMonitor() { 85 FakeDesktopEnvironment::CreateMouseCursorMonitor() {
86 return base::WrapUnique(new FakeMouseCursorMonitor()); 86 return base::WrapUnique(new FakeMouseCursorMonitor());
87 } 87 }
88 88
89 std::string FakeDesktopEnvironment::GetCapabilities() const { 89 std::string FakeDesktopEnvironment::GetCapabilities() const {
90 return std::string(); 90 return std::string();
91 } 91 }
92 92
93 void FakeDesktopEnvironment::SetCapabilities(const std::string& capabilities) {} 93 void FakeDesktopEnvironment::SetCapabilities(const std::string& capabilities) {}
94 94
95 uint32_t FakeDesktopEnvironment::GetDesktopSessionId() const {
96 return UINT32_MAX;
97 }
98
95 FakeDesktopEnvironmentFactory::FakeDesktopEnvironmentFactory() {} 99 FakeDesktopEnvironmentFactory::FakeDesktopEnvironmentFactory() {}
96 FakeDesktopEnvironmentFactory::~FakeDesktopEnvironmentFactory() {} 100 FakeDesktopEnvironmentFactory::~FakeDesktopEnvironmentFactory() {}
97 101
98 // DesktopEnvironmentFactory implementation. 102 // DesktopEnvironmentFactory implementation.
99 std::unique_ptr<DesktopEnvironment> FakeDesktopEnvironmentFactory::Create( 103 std::unique_ptr<DesktopEnvironment> FakeDesktopEnvironmentFactory::Create(
100 base::WeakPtr<ClientSessionControl> client_session_control) { 104 base::WeakPtr<ClientSessionControl> client_session_control) {
101 std::unique_ptr<FakeDesktopEnvironment> result(new FakeDesktopEnvironment()); 105 std::unique_ptr<FakeDesktopEnvironment> result(new FakeDesktopEnvironment());
102 result->set_frame_generator(frame_generator_); 106 result->set_frame_generator(frame_generator_);
103 last_desktop_environment_ = result->AsWeakPtr(); 107 last_desktop_environment_ = result->AsWeakPtr();
104 return std::move(result); 108 return std::move(result);
105 } 109 }
106 110
107 void FakeDesktopEnvironmentFactory::SetEnableCurtaining(bool enable) {} 111 void FakeDesktopEnvironmentFactory::SetEnableCurtaining(bool enable) {}
108 112
109 bool FakeDesktopEnvironmentFactory::SupportsAudioCapture() const { 113 bool FakeDesktopEnvironmentFactory::SupportsAudioCapture() const {
110 return false; 114 return false;
111 } 115 }
112 116
113 } // namespace remoting 117 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/fake_desktop_environment.h ('k') | remoting/host/host_mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698