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

Unified Diff: remoting/client/input_handler.h

Issue 7316011: Release all keys on blur. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Avoid error messages on blur before the session is created. Created 9 years, 5 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 | « no previous file | remoting/client/input_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | remoting/client/input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698