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

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

Issue 10823215: Curtain mode implementation for Mac OS X. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed linter warnings. Created 8 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
« no previous file with comments | « no previous file | remoting/host/curtain_mode_mac.cc » ('j') | remoting/host/curtain_mode_mac.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « no previous file | remoting/host/curtain_mode_mac.cc » ('j') | remoting/host/curtain_mode_mac.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698