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

Unified Diff: ui/events/event_utils.h

Issue 308023002: Add EF_IS_REPEAT flag to KeyEvent to handle repeated accelerators correctly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use ui::EF_IS_REPEAT in test instead Created 6 years, 6 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 | « ui/events/event_unittest.cc ('k') | ui/views/focus/focus_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event_utils.h
diff --git a/ui/events/event_utils.h b/ui/events/event_utils.h
index dc958088a6ef6f39951db44b43cead89aef98294..ca5713b52d57fa250a21b934c89bbfa9012ed5be 100644
--- a/ui/events/event_utils.h
+++ b/ui/events/event_utils.h
@@ -161,6 +161,12 @@ EVENTS_EXPORT bool IsMouseEventFromTouch(UINT message);
// representing an extended key contains 0xE000 bits.
EVENTS_EXPORT uint16 GetScanCodeFromLParam(LPARAM lParam);
EVENTS_EXPORT LPARAM GetLParamFromScanCode(uint16 scan_code);
+
+// Overrides the ui::KeyEvent's flags for test.
+// They're not exported to prevent it from leaking into production code.
+void SetKeyEventFlagsForTest(int flags);
+void ResetKeyEventFlagsForTest();
+
#endif
// Registers a custom event type.
« no previous file with comments | « ui/events/event_unittest.cc ('k') | ui/views/focus/focus_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698