| Index: remoting/client/input_handler.h
|
| diff --git a/remoting/client/input_handler.h b/remoting/client/input_handler.h
|
| index f3f647ea49d1cad25f5b3a727f74684250f71e4d..f65ede15b6e212e361aa9e459fd8abab70dadee4 100644
|
| --- a/remoting/client/input_handler.h
|
| +++ b/remoting/client/input_handler.h
|
| @@ -1,10 +1,12 @@
|
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 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_CLIENT_INPUT_HANDLER_H_
|
| #define REMOTING_CLIENT_INPUT_HANDLER_H_
|
|
|
| +#include <set>
|
| +
|
| #include "base/basictypes.h"
|
| #include "base/task.h"
|
| #include "remoting/proto/event.pb.h"
|
| @@ -23,10 +25,12 @@ class InputHandler {
|
| InputHandler(ClientContext* context,
|
| protocol::ConnectionToHost* connection,
|
| ChromotingView* view);
|
| - virtual ~InputHandler() {}
|
| + virtual ~InputHandler();
|
|
|
| virtual void Initialize() = 0;
|
|
|
| + void ReleaseAllKeys();
|
| +
|
| protected:
|
| void SendKeyEvent(bool press, int keycode);
|
| void SendMouseMoveEvent(int x, int y);
|
| @@ -38,6 +42,8 @@ class InputHandler {
|
| ChromotingView* view_;
|
|
|
| private:
|
| + std::set<int> pressed_keys_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(InputHandler);
|
| };
|
|
|
|
|