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

Side by Side Diff: remoting/host/me2me_desktop_environment.h

Issue 13461029: The continue window is owned by the desktop environment now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/it2me_host_user_interface.cc ('k') | remoting/host/me2me_desktop_environment.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef REMOTING_HOST_ME2ME_DESKTOP_ENVIRONMENT_H_ 5 #ifndef REMOTING_HOST_ME2ME_DESKTOP_ENVIRONMENT_H_
6 #define REMOTING_HOST_ME2ME_DESKTOP_ENVIRONMENT_H_ 6 #define REMOTING_HOST_ME2ME_DESKTOP_ENVIRONMENT_H_
7 7
8 #include "remoting/host/basic_desktop_environment.h" 8 #include "remoting/host/basic_desktop_environment.h"
9 9
10 namespace remoting { 10 namespace remoting {
11 11
12 class HostWindow;
13 class LocalInputMonitor;
14
12 // Same as BasicDesktopEnvironment but supports desktop resizing and X DAMAGE 15 // Same as BasicDesktopEnvironment but supports desktop resizing and X DAMAGE
13 // notifications on Linux. 16 // notifications on Linux.
14 class Me2MeDesktopEnvironment : public BasicDesktopEnvironment { 17 class Me2MeDesktopEnvironment : public BasicDesktopEnvironment {
15 public: 18 public:
16 virtual ~Me2MeDesktopEnvironment(); 19 virtual ~Me2MeDesktopEnvironment();
17 20
18 // DesktopEnvironment interface. 21 // DesktopEnvironment interface.
19 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE; 22 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE;
20 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer() OVERRIDE; 23 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer() OVERRIDE;
21 24
22 protected: 25 protected:
23 friend class Me2MeDesktopEnvironmentFactory; 26 friend class Me2MeDesktopEnvironmentFactory;
24 Me2MeDesktopEnvironment( 27 Me2MeDesktopEnvironment(
25 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, 28 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
26 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, 29 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
27 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, 30 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
28 base::WeakPtr<ClientSessionControl> client_session_control, 31 base::WeakPtr<ClientSessionControl> client_session_control,
29 const UiStrings* ui_strings); 32 const UiStrings& ui_strings);
30 33
31 private: 34 private:
35 // Presents the disconnect window to the local user.
36 scoped_ptr<HostWindow> disconnect_window_;
37
38 // Notifies the client session about the local mouse movements.
39 scoped_ptr<LocalInputMonitor> local_input_monitor_;
40
32 DISALLOW_COPY_AND_ASSIGN(Me2MeDesktopEnvironment); 41 DISALLOW_COPY_AND_ASSIGN(Me2MeDesktopEnvironment);
33 }; 42 };
34 43
35 // Used to create |Me2MeDesktopEnvironment| instances. 44 // Used to create |Me2MeDesktopEnvironment| instances.
36 class Me2MeDesktopEnvironmentFactory : public BasicDesktopEnvironmentFactory { 45 class Me2MeDesktopEnvironmentFactory : public BasicDesktopEnvironmentFactory {
37 public: 46 public:
38 Me2MeDesktopEnvironmentFactory( 47 Me2MeDesktopEnvironmentFactory(
39 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, 48 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
40 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, 49 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
41 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, 50 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
42 const UiStrings& ui_strings); 51 const UiStrings& ui_strings);
43 virtual ~Me2MeDesktopEnvironmentFactory(); 52 virtual ~Me2MeDesktopEnvironmentFactory();
44 53
45 // DesktopEnvironmentFactory interface. 54 // DesktopEnvironmentFactory interface.
46 virtual scoped_ptr<DesktopEnvironment> Create( 55 virtual scoped_ptr<DesktopEnvironment> Create(
47 base::WeakPtr<ClientSessionControl> client_session_control) OVERRIDE; 56 base::WeakPtr<ClientSessionControl> client_session_control) OVERRIDE;
48 57
49 private: 58 private:
50 DISALLOW_COPY_AND_ASSIGN(Me2MeDesktopEnvironmentFactory); 59 DISALLOW_COPY_AND_ASSIGN(Me2MeDesktopEnvironmentFactory);
51 }; 60 };
52 61
53 } // namespace remoting 62 } // namespace remoting
54 63
55 #endif // REMOTING_HOST_ME2ME_DESKTOP_ENVIRONMENT_H_ 64 #endif // REMOTING_HOST_ME2ME_DESKTOP_ENVIRONMENT_H_
OLDNEW
« no previous file with comments | « remoting/host/it2me_host_user_interface.cc ('k') | remoting/host/me2me_desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698