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_EVENT_EXECUTOR_FAKE_H_ |
| 6 #define REMOTING_HOST_EVENT_EXECUTOR_FAKE_H_ |
| 7 |
| 8 #include "remoting/host/event_executor.h" |
| 9 |
| 10 namespace remoting { |
| 11 |
| 12 // A dummy implementation of |EventExecutor| that does nothing. |
| 13 class EventExecutorFake : public EventExecutor { |
| 14 public: |
| 15 EventExecutorFake(); |
| 16 virtual ~EventExecutorFake(); |
| 17 |
| 18 // ClipboardStub interface. |
| 19 virtual void InjectClipboardEvent( |
| 20 const protocol::ClipboardEvent& event) OVERRIDE; |
| 21 |
| 22 // InputStub interface. |
| 23 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE; |
| 24 virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE; |
| 25 |
| 26 virtual void Start( |
| 27 scoped_ptr<protocol::ClipboardStub> client_clipboard) OVERRIDE; |
| 28 virtual void StopAndDelete() OVERRIDE; |
| 29 |
| 30 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(EventExecutorFake); |
| 32 }; |
| 33 |
| 34 } // namespace remoting |
| 35 |
| 36 #endif // REMOTING_HOST_EVENT_EXECUTOR_FAKE_H_ |
OLD | NEW |