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

Unified Diff: ash/sticky_keys/sticky_keys_unittest.cc

Issue 404203003: Distinguish between keystroke and character events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IsCharFromNative() for Mac build Created 6 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 | « ash/shelf/shelf_tooltip_manager_unittest.cc ('k') | ash/wm/window_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/sticky_keys/sticky_keys_unittest.cc
diff --git a/ash/sticky_keys/sticky_keys_unittest.cc b/ash/sticky_keys/sticky_keys_unittest.cc
index 6e2fa182cc87071f252728f9b15b5d01d46c9df5..6505b656dedb1df4c1ae11cdb84386fdf947f676 100644
--- a/ash/sticky_keys/sticky_keys_unittest.cc
+++ b/ash/sticky_keys/sticky_keys_unittest.cc
@@ -58,7 +58,7 @@ class StickyKeysTest : public test::AshTestBase {
ui::KeyEvent* GenerateKey(ui::EventType type, ui::KeyboardCode code) {
scoped_xevent_.InitKeyEvent(type, code, 0);
- ui::KeyEvent* event = new ui::KeyEvent(scoped_xevent_, false);
+ ui::KeyEvent* event = new ui::KeyEvent(scoped_xevent_);
return event;
}
@@ -122,7 +122,7 @@ class StickyKeysTest : public test::AshTestBase {
// Creates a synthesized KeyEvent that is not backed by a native event.
ui::KeyEvent* GenerateSynthesizedKeyEvent(ui::EventType type,
ui::KeyboardCode code) {
- return new ui::KeyEvent(type, code, 0, true);
+ return new ui::KeyEvent(type, code, ui::EF_NONE);
}
// Creates a synthesized MouseEvent that is not backed by a native event.
« no previous file with comments | « ash/shelf/shelf_tooltip_manager_unittest.cc ('k') | ash/wm/window_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698