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

Side by Side Diff: remoting/host/it2me_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: Fix Mac. 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_IT2ME_DESKTOP_ENVIRONMENT_H_
6 #define REMOTING_HOST_IT2ME_DESKTOP_ENVIRONMENT_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h"
10 #include "remoting/host/basic_desktop_environment.h"
11
12 namespace remoting {
13
14 class HostWindow;
15 struct UiStrings;
16
17 // Same as BasicDesktopEnvironment but also presents the Continue window to
18 // the local user.
19 class It2MeDesktopEnvironment : public BasicDesktopEnvironment {
20 public:
21 virtual ~It2MeDesktopEnvironment();
22
23 protected:
24 friend class It2MeDesktopEnvironmentFactory;
25 It2MeDesktopEnvironment(
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 base::WeakPtr<ClientSessionControl> client_session_control,
30 const UiStrings& ui_strings);
31
32 private:
33 // Presents the continue window to the local user.
34 scoped_ptr<HostWindow> continue_window_;
35
36 DISALLOW_COPY_AND_ASSIGN(It2MeDesktopEnvironment);
37 };
38
39 // Used to create |It2MeDesktopEnvironment| instances.
40 class It2MeDesktopEnvironmentFactory : public BasicDesktopEnvironmentFactory {
41 public:
42 It2MeDesktopEnvironmentFactory(
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 const UiStrings& ui_strings);
47 virtual ~It2MeDesktopEnvironmentFactory();
48
49 // DesktopEnvironmentFactory interface.
50 virtual scoped_ptr<DesktopEnvironment> Create(
51 base::WeakPtr<ClientSessionControl> client_session_control) OVERRIDE;
52
53 private:
54 DISALLOW_COPY_AND_ASSIGN(It2MeDesktopEnvironmentFactory);
55 };
56
57 } // namespace remoting
58
59 #endif // REMOTING_HOST_IT2ME_DESKTOP_ENVIRONMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698