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

Unified Diff: remoting/host/local_input_monitor.h

Issue 10447041: Fix Ctrl+Alt+Esc keyboard shortcut in Me2Me host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « remoting/host/host_user_interface.cc ('k') | remoting/host/local_input_monitor_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/local_input_monitor.h
diff --git a/remoting/host/local_input_monitor.h b/remoting/host/local_input_monitor.h
index 39de156507afcf5c1486e603e7d6affe87039d38..0c36da7175fa6dd73a62e61dabbcc2e701fd283a 100644
--- a/remoting/host/local_input_monitor.h
+++ b/remoting/host/local_input_monitor.h
@@ -5,23 +5,27 @@
#ifndef REMOTING_LOCAL_INPUT_MONITOR_H_
#define REMOTING_LOCAL_INPUT_MONITOR_H_
+#include "base/callback_forward.h"
#include "base/memory/scoped_ptr.h"
namespace remoting {
-class ChromotingHost;
+class MouseMoveObserver;
class LocalInputMonitor {
public:
virtual ~LocalInputMonitor() {}
- virtual void Start(ChromotingHost* host) = 0;
+ // Starts local input monitoring. This class is also responsible for
+ // of catching the disconnection keyboard shortcut on Mac and Linux
+ // (Ctlr-Alt-Esc). The |disconnect_callback| is called when this key
+ // combination is pressed.
+ //
+ // TODO(sergeyu): Refactor shortcut code to a separate class.
+ virtual void Start(MouseMoveObserver* mouse_move_observer,
+ const base::Closure& disconnect_callback) = 0;
virtual void Stop() = 0;
- // TODO(sergeyu): This is a short-term hack to disable disconnection
- // shortcut on Mac.
- virtual void DisableShortcutOnMac() {};
-
static scoped_ptr<LocalInputMonitor> Create();
};
« no previous file with comments | « remoting/host/host_user_interface.cc ('k') | remoting/host/local_input_monitor_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698