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

Unified Diff: ui/events/test/events_test_utils.h

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 | « ui/events/test/event_generator.cc ('k') | ui/events/test/events_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/events_test_utils.h
diff --git a/ui/events/test/events_test_utils.h b/ui/events/test/events_test_utils.h
index c14bf32b5cdc39110273d8d7afb29d6a331e4c34..3ed6fa36207a1970b61c3f33ef153a578f4c1ae5 100644
--- a/ui/events/test/events_test_utils.h
+++ b/ui/events/test/events_test_utils.h
@@ -51,6 +51,23 @@ class LocatedEventTestApi : public EventTestApi {
DISALLOW_COPY_AND_ASSIGN(LocatedEventTestApi);
};
+class KeyEventTestApi : public EventTestApi {
+ public:
+ explicit KeyEventTestApi(KeyEvent* key_event);
+ virtual ~KeyEventTestApi();
+
+ void set_is_char(bool is_char) {
+ key_event_->set_is_char(is_char);
+ }
+
+ private:
+ KeyEventTestApi();
+
+ KeyEvent* key_event_;
+
+ DISALLOW_COPY_AND_ASSIGN(KeyEventTestApi);
+};
+
class EventTargetTestApi {
public:
explicit EventTargetTestApi(EventTarget* target);
« no previous file with comments | « ui/events/test/event_generator.cc ('k') | ui/events/test/events_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698