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

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: I updated the code with almost all of the comments Lambros had. The exceptions are the redesign of … 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) 2014 The Chromium Authors. All rights reserved.
Wez 2014/08/01 23:41:54 nit: No (c) please.
ronakvora do not use 2014/08/05 19:54:50 Done.
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"
Wez 2014/08/01 23:41:54 Why do you need this?
ronakvora do not use 2014/08/05 19:54:50 I needed it for me2me_window_desktop_environment.c
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 :
Wez 2014/08/01 23:41:54 Suggest SingleWindowDesktopEnvironment
Wez 2014/08/01 23:41:54 This is a definition of a class that is only creat
ronakvora do not use 2014/08/05 19:54:50 The reason I did it this way is because it's decla
ronakvora do not use 2014/08/05 19:54:50 Done.
16 public BasicDesktopEnvironment {
17 public:
18 virtual ~Me2MeWindowDesktopEnvironment();
19
20 // DesktopEnvironment interface.
21 virtual scoped_ptr<webrtc::ScreenCapturer> CreateVideoCapturer() OVERRIDE;
22 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE;
23
24 protected:
25 friend class Me2MeWindowDesktopEnvironmentFactory;
26 Me2MeWindowDesktopEnvironment(
27 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
28 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
29 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
30
31 void SetWindowId(webrtc::WindowId windowIdEnvironment);
32
33 private:
34 webrtc::WindowId windowIdEnvironment_;
Wez 2014/08/01 23:41:54 Do you mean window_id_?
ronakvora do not use 2014/08/05 19:54:50 Done.
35
36 DISALLOW_COPY_AND_ASSIGN(Me2MeWindowDesktopEnvironment);
37 };
38
39 // Used to create |Me2MeWindowDesktopEnvironment| instances.
40 class Me2MeWindowDesktopEnvironmentFactory : public BasicDesktopEnvironmentFacto ry {
Wez 2014/08/01 23:41:54 Line too long; presubmit should have caught this?
ronakvora do not use 2014/08/05 19:54:50 It did. Thought I had changed it. Done.
41 public:
42 Me2MeWindowDesktopEnvironmentFactory(
43 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
44 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
45 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
46 webrtc::WindowId windowId);
47 virtual ~Me2MeWindowDesktopEnvironmentFactory();
48
49 // DesktopEnvironmentFactory interface.
50 virtual scoped_ptr<DesktopEnvironment> Create(
51 base::WeakPtr<ClientSessionControl> client_session_control) OVERRIDE;
52
53 private:
54 webrtc::WindowId windowIdEnvironmentFactory_;
Wez 2014/08/01 23:41:54 Do you mean window_id_?
ronakvora do not use 2014/08/05 19:54:50 Done.
55
56 DISALLOW_COPY_AND_ASSIGN(Me2MeWindowDesktopEnvironmentFactory);
57 };
58
59 } // namespace remoting
60
61 #endif // REMOTING_HOST_WINDOW_DESKTOP_ENVIRONMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698