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

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

Issue 21059003: Localized Chromoting Host on Mac and Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_IT2ME_DESKTOP_ENVIRONMENT_H_ 5 #ifndef REMOTING_HOST_IT2ME_DESKTOP_ENVIRONMENT_H_
6 #define REMOTING_HOST_IT2ME_DESKTOP_ENVIRONMENT_H_ 6 #define REMOTING_HOST_IT2ME_DESKTOP_ENVIRONMENT_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "remoting/host/basic_desktop_environment.h" 10 #include "remoting/host/basic_desktop_environment.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 class HostWindow; 14 class HostWindow;
15 class LocalInputMonitor; 15 class LocalInputMonitor;
16 16
17 // Same as BasicDesktopEnvironment but also presents the Continue window to 17 // Same as BasicDesktopEnvironment but also presents the Continue window to
18 // the local user. 18 // the local user.
19 class It2MeDesktopEnvironment : public BasicDesktopEnvironment { 19 class It2MeDesktopEnvironment : public BasicDesktopEnvironment {
20 public: 20 public:
21 virtual ~It2MeDesktopEnvironment(); 21 virtual ~It2MeDesktopEnvironment();
22 22
23 protected: 23 protected:
24 friend class It2MeDesktopEnvironmentFactory; 24 friend class It2MeDesktopEnvironmentFactory;
25 It2MeDesktopEnvironment( 25 It2MeDesktopEnvironment(
26 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, 26 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
27 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, 27 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
28 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, 28 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
29 base::WeakPtr<ClientSessionControl> client_session_control, 29 base::WeakPtr<ClientSessionControl> client_session_control);
30 const UiStrings& ui_strings);
31 30
32 private: 31 private:
33 // Presents the continue window to the local user. 32 // Presents the continue window to the local user.
34 scoped_ptr<HostWindow> continue_window_; 33 scoped_ptr<HostWindow> continue_window_;
35 34
36 // Presents the disconnect window to the local user. 35 // Presents the disconnect window to the local user.
37 scoped_ptr<HostWindow> disconnect_window_; 36 scoped_ptr<HostWindow> disconnect_window_;
38 37
39 // Notifies the client session about the local mouse movements. 38 // Notifies the client session about the local mouse movements.
40 scoped_ptr<LocalInputMonitor> local_input_monitor_; 39 scoped_ptr<LocalInputMonitor> local_input_monitor_;
41 40
42 DISALLOW_COPY_AND_ASSIGN(It2MeDesktopEnvironment); 41 DISALLOW_COPY_AND_ASSIGN(It2MeDesktopEnvironment);
43 }; 42 };
44 43
45 // Used to create |It2MeDesktopEnvironment| instances. 44 // Used to create |It2MeDesktopEnvironment| instances.
46 class It2MeDesktopEnvironmentFactory : public BasicDesktopEnvironmentFactory { 45 class It2MeDesktopEnvironmentFactory : public BasicDesktopEnvironmentFactory {
47 public: 46 public:
48 It2MeDesktopEnvironmentFactory( 47 It2MeDesktopEnvironmentFactory(
49 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, 48 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
50 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, 49 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
51 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, 50 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
52 const UiStrings& ui_strings);
53 virtual ~It2MeDesktopEnvironmentFactory(); 51 virtual ~It2MeDesktopEnvironmentFactory();
54 52
55 // DesktopEnvironmentFactory interface. 53 // DesktopEnvironmentFactory interface.
56 virtual scoped_ptr<DesktopEnvironment> Create( 54 virtual scoped_ptr<DesktopEnvironment> Create(
57 base::WeakPtr<ClientSessionControl> client_session_control) OVERRIDE; 55 base::WeakPtr<ClientSessionControl> client_session_control) OVERRIDE;
58 56
59 private: 57 private:
60 DISALLOW_COPY_AND_ASSIGN(It2MeDesktopEnvironmentFactory); 58 DISALLOW_COPY_AND_ASSIGN(It2MeDesktopEnvironmentFactory);
61 }; 59 };
62 60
63 } // namespace remoting 61 } // namespace remoting
64 62
65 #endif // REMOTING_HOST_IT2ME_DESKTOP_ENVIRONMENT_H_ 63 #endif // REMOTING_HOST_IT2ME_DESKTOP_ENVIRONMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698