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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/curtain_mode_mac.cc » ('j') | remoting/host/curtain_mode_mac.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/curtain_mode_mac.h
diff --git a/remoting/host/curtain_mode_mac.h b/remoting/host/curtain_mode_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..9973b14a43dc29290c8b7723711eeb48f8326c06
--- /dev/null
+++ b/remoting/host/curtain_mode_mac.h
@@ -0,0 +1,41 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_HOST_CURTAIN_MODE_MAC_H_
+#define REMOTING_HOST_CURTAIN_MODE_MAC_H_
+
+#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.
+#include <string>
+
+#include "base/callback.h"
+#include "base/compiler_specific.h"
+#include "remoting/host/host_status_observer.h"
+
+namespace remoting {
+
+class CurtainMode : public HostStatusObserver {
+ public:
+ CurtainMode();
+ virtual ~CurtainMode();
+
+ // Set the callback to be invoked when the switched-out remote session is
+ // switched back to the console.
+ bool Init(const base::Closure& on_session_activate);
+
+ // Overridden from HostStatusObserver
+ virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE;
+
+ private:
+ static OSStatus SessionActivateHandler(EventHandlerCallRef handler,
+ EventRef event,
+ void* user_data);
+ void OnSessionActivate();
+
+ base::Closure on_session_activate_;
+ EventHandlerRef event_handler_;
+};
+
+}
+
+#endif
« 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