OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
Wez
2014/08/06 04:10:16
This file should be called single_window_desktop_e
ronakvora do not use
2014/08/06 20:56:18
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_ | |
Lambros
2014/08/05 22:47:24
nit: REMOTING_HOST_ME2ME_SINGLE_WINDOW_DESKTOP_ENV
Wez
2014/08/06 04:10:16
REMOTING_HOST_SINGLE_WINDOW_DESKTOP_ENVIRONMENT_H_
ronakvora do not use
2014/08/06 20:56:17
Done.
ronakvora do not use
2014/08/06 20:56:18
Done.
| |
6 #define REMOTING_HOST_WINDOW_DESKTOP_ENVIRONMENT_H_ | |
7 | |
8 #include "remoting/host/basic_desktop_environment.h" | |
9 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_types.h" | |
10 | |
11 namespace remoting { | |
12 | |
13 // Enables capturing and streaming of windows. | |
14 class SingleWindowDesktopEnvironment : | |
Wez
2014/08/06 04:10:16
This doesn't need to be defined in the header - it
ronakvora do not use
2014/08/06 20:56:18
Done.
| |
15 public BasicDesktopEnvironment { | |
Lambros
2014/08/05 22:47:24
nit: This will fit on one line.
ronakvora do not use
2014/08/06 20:56:18
Done.
| |
16 | |
17 public: | |
18 virtual ~SingleWindowDesktopEnvironment(); | |
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 SingleWindowDesktopEnvironmentFactory; | |
26 SingleWindowDesktopEnvironment( | |
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); | |
Lambros
2014/08/05 22:47:24
nit: s/windowIdEnvironment/window_id
(and also in
Wez
2014/08/06 04:10:16
Why not pass this directly to the ctor, like you d
ronakvora do not use
2014/08/06 20:56:18
I believe this was just easier for me at the time
ronakvora do not use
2014/08/06 20:56:18
Just removed it as wez suggested.
| |
32 | |
33 private: | |
34 webrtc::WindowId window_id_; | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(SingleWindowDesktopEnvironment); | |
Wez
2014/08/06 04:10:16
nit: Indentation should be two spaces.
ronakvora do not use
2014/08/06 20:56:18
Done.
| |
37 }; | |
38 | |
39 // Used to create |SingleWindowDesktopEnvironment| instances. | |
Wez
2014/08/06 04:10:16
This is already implicit in the name of the class.
ronakvora do not use
2014/08/06 20:56:18
Done.
| |
40 class SingleWindowDesktopEnvironmentFactory : | |
Wez
2014/08/06 04:10:15
nit: Wrap before the :
ronakvora do not use
2014/08/06 20:56:17
Done.
| |
41 public BasicDesktopEnvironmentFactory { | |
42 public: | |
43 SingleWindowDesktopEnvironmentFactory( | |
44 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | |
45 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | |
46 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | |
47 webrtc::WindowId windowId); | |
Wez
2014/08/06 04:10:15
window_id
ronakvora do not use
2014/08/06 20:56:18
Done.
| |
48 virtual ~SingleWindowDesktopEnvironmentFactory(); | |
49 | |
50 // DesktopEnvironmentFactory interface. | |
51 virtual scoped_ptr<DesktopEnvironment> Create( | |
52 base::WeakPtr<ClientSessionControl> client_session_control) OVERRIDE; | |
53 | |
54 private: | |
55 webrtc::WindowId window_id_; | |
56 | |
57 DISALLOW_COPY_AND_ASSIGN(SingleWindowDesktopEnvironmentFactory); | |
Wez
2014/08/06 04:10:15
nit: Indentation should be two spaces.
ronakvora do not use
2014/08/06 20:56:17
Done.
| |
58 }; | |
59 | |
60 } // namespace remoting | |
61 | |
62 #endif // REMOTING_HOST_WINDOW_DESKTOP_ENVIRONMENT_H_ | |
OLD | NEW |