Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_LOCAL_INPUT_MONITOR_H_ | 5 #ifndef REMOTING_LOCAL_INPUT_MONITOR_H_ |
| 6 #define REMOTING_LOCAL_INPUT_MONITOR_H_ | 6 #define REMOTING_LOCAL_INPUT_MONITOR_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | |
| 8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 9 | 10 |
| 10 namespace remoting { | 11 namespace remoting { |
| 11 | 12 |
| 12 class ChromotingHost; | 13 class MouseMoveObserver; |
| 13 | 14 |
| 14 class LocalInputMonitor { | 15 class LocalInputMonitor { |
| 15 public: | 16 public: |
| 16 virtual ~LocalInputMonitor() {} | 17 virtual ~LocalInputMonitor() {} |
| 17 | 18 |
| 18 virtual void Start(ChromotingHost* host) = 0; | 19 virtual void Start(MouseMoveObserver* mouse_move_observer, |
|
Wez
2012/05/25 23:32:18
MouseMoveObserver only has a single method, so why
Sergey Ulanov
2012/05/26 01:06:15
You can't store callbacks in stl containers and th
Wez
2012/05/29 16:57:33
An alternative would be to allow LocalInputMonitor
| |
| 20 const base::Closure& disconnect_callback) = 0; | |
|
Wez
2012/05/25 23:32:18
This looks a little odd; can you add a comment to
Sergey Ulanov
2012/05/26 01:06:15
Done.
| |
| 19 virtual void Stop() = 0; | 21 virtual void Stop() = 0; |
| 20 | 22 |
| 21 // TODO(sergeyu): This is a short-term hack to disable disconnection | |
| 22 // shortcut on Mac. | |
| 23 virtual void DisableShortcutOnMac() {}; | |
| 24 | |
| 25 static scoped_ptr<LocalInputMonitor> Create(); | 23 static scoped_ptr<LocalInputMonitor> Create(); |
| 26 }; | 24 }; |
| 27 | 25 |
| 28 } // namespace remoting | 26 } // namespace remoting |
| 29 | 27 |
| 30 #endif | 28 #endif |
| OLD | NEW |