OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef REMOTING_HOST_CURTAIN_MODE_MAC_H_ | |
6 #define REMOTING_HOST_CURTAIN_MODE_MAC_H_ | |
7 | |
8 #include <Carbon/Carbon.h> | |
Lambros
2012/08/08 00:48:29
nit: blank line between C and C++ headers
Jamie
2012/08/08 01:39:43
Done.
| |
9 #include <string> | |
10 | |
11 #include "base/callback.h" | |
12 #include "base/compiler_specific.h" | |
13 #include "remoting/host/host_status_observer.h" | |
14 | |
15 namespace remoting { | |
16 | |
17 class CurtainMode : public HostStatusObserver { | |
18 public: | |
19 CurtainMode(); | |
20 virtual ~CurtainMode(); | |
21 | |
22 // Set the callback to be invoked when the switched-out remote session is | |
23 // switched back to the console. | |
24 bool Init(const base::Closure& on_session_activate); | |
25 | |
26 // Overridden from HostStatusObserver | |
27 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; | |
28 | |
29 private: | |
30 static OSStatus SessionActivateHandler(EventHandlerCallRef handler, | |
31 EventRef event, | |
32 void* user_data); | |
33 void OnSessionActivate(); | |
34 | |
35 base::Closure on_session_activate_; | |
36 EventHandlerRef event_handler_; | |
37 }; | |
38 | |
39 } | |
40 | |
41 #endif | |
OLD | NEW |