diff options
author | jamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-08 23:41:27 +0000 |
---|---|---|
committer | jamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-08 23:41:27 +0000 |
commit | 2dca6d1de029acdb2b82711d77e0e57b732af276 (patch) | |
tree | f1a0417d2b3905c44c8f0fbbde5341c5e7ee318f /remoting/client/input_handler.h | |
parent | 1fbe00aa54304d316e0ebd8f43553b390294da64 (diff) | |
download | chromium_src-2dca6d1de029acdb2b82711d77e0e57b732af276.zip chromium_src-2dca6d1de029acdb2b82711d77e0e57b732af276.tar.gz chromium_src-2dca6d1de029acdb2b82711d77e0e57b732af276.tar.bz2 |
Release all keys on blur.
BUG=84285
TEST=Manual
Review URL: http://codereview.chromium.org/7316011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91914 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client/input_handler.h')
-rw-r--r-- | remoting/client/input_handler.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/remoting/client/input_handler.h b/remoting/client/input_handler.h index f3f647e..f65ede1 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); }; |