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

Unified Diff: chrome/browser/chromeos/keyboard_driven_event_rewriter.h

Issue 165463002: event-rewrite: Clean up how events are rewritten. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix-debug Created 6 years, 10 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
Index: chrome/browser/chromeos/keyboard_driven_event_rewriter.h
diff --git a/chrome/browser/chromeos/keyboard_driven_event_rewriter.h b/chrome/browser/chromeos/keyboard_driven_event_rewriter.h
index d55aeab9585c96a7992c50af2a066e0ece0d9ede..96e053d12f8fdc2c6f6c3b167540d04e7837d808 100644
--- a/chrome/browser/chromeos/keyboard_driven_event_rewriter.h
+++ b/chrome/browser/chromeos/keyboard_driven_event_rewriter.h
@@ -7,9 +7,7 @@
#include "base/basictypes.h"
-namespace ui {
-class KeyEvent;
-}
+typedef union _XEvent XEvent;
namespace chromeos {
@@ -24,13 +22,13 @@ class KeyboardDrivenEventRewriter {
// Calls RewriteEvent to modify |event| if it is on login screen and the
// keyboard driven flag is enabled. Returns true if the event is changed
// and no further changes should happen.
- bool RewriteIfKeyboardDrivenOnLoginScreen(ui::KeyEvent* event);
+ bool RewriteIfKeyboardDrivenOnLoginScreen(XEvent* event);
// Calls RewriteEvent for testing.
- bool RewriteForTesting(ui::KeyEvent* event);
+ bool RewriteForTesting(XEvent* event);
private:
- bool RewriteEvent(ui::KeyEvent* event);
+ bool RewriteEvent(XEvent* event);
DISALLOW_COPY_AND_ASSIGN(KeyboardDrivenEventRewriter);
};
« no previous file with comments | « chrome/browser/chromeos/event_rewriter_unittest.cc ('k') | chrome/browser/chromeos/keyboard_driven_event_rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698