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

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

Issue 167273003: Revert 251382 "event-rewrite: Clean up how events are rewritten." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/chrome/browser/chromeos/keyboard_driven_event_rewriter.h
===================================================================
--- trunk/src/chrome/browser/chromeos/keyboard_driven_event_rewriter.h (revision 251431)
+++ trunk/src/chrome/browser/chromeos/keyboard_driven_event_rewriter.h (working copy)
@@ -7,7 +7,9 @@
#include "base/basictypes.h"
-typedef union _XEvent XEvent;
+namespace ui {
+class KeyEvent;
+}
namespace chromeos {
@@ -22,13 +24,13 @@
// 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(XEvent* event);
+ bool RewriteIfKeyboardDrivenOnLoginScreen(ui::KeyEvent* event);
// Calls RewriteEvent for testing.
- bool RewriteForTesting(XEvent* event);
+ bool RewriteForTesting(ui::KeyEvent* event);
private:
- bool RewriteEvent(XEvent* event);
+ bool RewriteEvent(ui::KeyEvent* event);
DISALLOW_COPY_AND_ASSIGN(KeyboardDrivenEventRewriter);
};

Powered by Google App Engine
This is Rietveld 408576698