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

Unified Diff: remoting/host/single_window_desktop_environment.h

Issue 422503004: Adding ability to stream windows and inject events to them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added exit code to remoting_host when unable to parse window_id Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/single_window_desktop_environment.h
diff --git a/remoting/host/single_window_desktop_environment.h b/remoting/host/single_window_desktop_environment.h
new file mode 100644
index 0000000000000000000000000000000000000000..eee773e7bc00d7e8814b4dbf649afe4b5496f020
--- /dev/null
+++ b/remoting/host/single_window_desktop_environment.h
@@ -0,0 +1,37 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_HOST_SINGLE_WINDOW_DESKTOP_ENVIRONMENT_H_
+#define REMOTING_HOST_SINGLE_WINDOW_DESKTOP_ENVIRONMENT_H_
+
+#include "remoting/host/basic_desktop_environment.h"
+#include "third_party/webrtc/modules/desktop_capture/desktop_capture_types.h"
+
+namespace remoting {
+
+// Passed to the ChromotingHost to remote an individual window's contents,
+// rather than a whole desktop.
+class SingleWindowDesktopEnvironmentFactory
+ : public BasicDesktopEnvironmentFactory {
+ public:
+ SingleWindowDesktopEnvironmentFactory(
+ scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
+ webrtc::WindowId window_id);
+ virtual ~SingleWindowDesktopEnvironmentFactory();
+
+ // DesktopEnvironmentFactory interface.
+ virtual scoped_ptr<DesktopEnvironment> Create(
+ base::WeakPtr<ClientSessionControl> client_session_control) OVERRIDE;
+
+ private:
+ webrtc::WindowId window_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(SingleWindowDesktopEnvironmentFactory);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_SINGLE_WINDOW_DESKTOP_ENVIRONMENT_H_

Powered by Google App Engine
This is Rietveld 408576698