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

Unified Diff: chrome/browser/ui/ash/event_rewriter.h

Issue 144423006: Rewrite release event only if press event was rewritten for a given device. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | chrome/browser/ui/ash/event_rewriter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/event_rewriter.h
diff --git a/chrome/browser/ui/ash/event_rewriter.h b/chrome/browser/ui/ash/event_rewriter.h
index 68ef9180f65596ee3ca5331c71a37d924bbca0f5..f08507582a83135d4e6027e22b6762f449777bf4 100644
--- a/chrome/browser/ui/ash/event_rewriter.h
+++ b/chrome/browser/ui/ash/event_rewriter.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_ASH_EVENT_REWRITER_H_
#include <map>
+#include <set>
#include <string>
#include "ash/event_rewriter_delegate.h"
@@ -78,6 +79,7 @@ class EventRewriter : public ash::EventRewriterDelegate,
private:
friend class EventRewriterAshTest;
+ friend class EventRewriterTest;
// ash::EventRewriterDelegate overrides:
virtual ash::EventRewriterDelegate::Action RewriteOrFilterKeyEvent(
@@ -223,6 +225,9 @@ class EventRewriter : public ash::EventRewriterDelegate,
// A mapping from X11 KeySym keys to KeyCode values.
base::hash_map<unsigned long, unsigned long> keysym_to_keycode_map_;
+ // A set of device IDs whose press event has been rewritten.
+ std::set<int> pressed_device_ids_;
+
chromeos::input_method::XKeyboard* xkeyboard_for_testing_;
scoped_ptr<chromeos::KeyboardDrivenEventRewriter>
« no previous file with comments | « no previous file | chrome/browser/ui/ash/event_rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698