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

Side by Side Diff: remoting/host/me2me_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: uploaded to remove lint errors 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
Lambros 2014/07/30 00:14:49 I'm not sure if we need this new class? Maybe it's
ronakvora do not use 2014/07/30 20:55:36 See my other comment in remoting_me2me_host.cc :)!
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_WINDOW_DESKTOP_ENVIRONMENT_H_
6 #define REMOTING_HOST_WINDOW_DESKTOP_ENVIRONMENT_H_
7
8 #include "remoting/host/basic_desktop_environment.h"
9 #include "remoting/host/input_injector.h"
Lambros 2014/07/30 00:14:49 nit: Don't need full definition of InputInjector c
ronakvora do not use 2014/07/30 20:55:36 Done.
10 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_types.h"
11
12 namespace remoting {
13
14 // Enables capturing and streaming of windows.
15 class Me2MeWindowDesktopEnvironment : public BasicDesktopEnvironment {
16 public:
17 virtual ~Me2MeWindowDesktopEnvironment();
18
19 // DesktopEnvironment interface.
20 virtual scoped_ptr<webrtc::ScreenCapturer> CreateVideoCapturer() OVERRIDE;
21 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE;
22
23 protected:
24 friend class Me2MeWindowDesktopEnvironmentFactory;
25 Me2MeWindowDesktopEnvironment(
26 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
27 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
28 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
29
30 void SetWindowId(webrtc::WindowId windowIdEnvironment);
31
32 void SetEnableWindowCapture(bool enable_window_capture);
33
34 private:
35 webrtc::WindowId windowIdEnvironment_;
36 bool enable_window_capture_environment_;
37
38 DISALLOW_COPY_AND_ASSIGN(Me2MeWindowDesktopEnvironment);
39 };
40
41 // Used to create |Me2MeWindowDesktopEnvironment| instances.
42 class Me2MeWindowDesktopEnvironmentFactory : public BasicDesktopEnvironmentFacto ry {
Lambros 2014/07/30 00:14:49 This breaks 80-char limit. Put ": public BasicD...
ronakvora do not use 2014/07/30 20:55:36 Done.
43 public:
44 Me2MeWindowDesktopEnvironmentFactory(
45 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
46 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
47 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
48 webrtc::WindowId windowId,
49 bool enable_window_capture);
50 virtual ~Me2MeWindowDesktopEnvironmentFactory();
51
52 // DesktopEnvironmentFactory interface.
53 virtual scoped_ptr<DesktopEnvironment> Create(
54 base::WeakPtr<ClientSessionControl> client_session_control) OVERRIDE;
55
56 private:
57 webrtc::WindowId windowIdEnvironmentFactory_;
58 bool enable_window_capture_environment_factory_;
59
60 DISALLOW_COPY_AND_ASSIGN(Me2MeWindowDesktopEnvironmentFactory);
61 };
62
63 } // namespace remoting
64
65 #endif // REMOTING_HOST_WINDOW_DESKTOP_ENVIRONMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698