Chromium Code Reviews
DescriptionRemove the swizzling of -[NSEvent window] and the middle button in EventsMacTest
The NSEvent initializers for creating test events are limited, so we
currently swizzle some properties. In a follow-up, we also want test
events that include phase information for scrolling. The swizzling for that
was becoming complex, but we can replace the swizzling by making more
use of CGEventSetIntegerValueField(..) and adding a tiny bit of reflection.
BUG=615948
TEST=events_unittests still passing
Committed: https://crrev.com/033117f328bb004ae5f466351734f175d07ab5c7
Cr-Commit-Position: refs/heads/master@{#409718}
Patch Set 1 #Patch Set 2 : more private #Messages
Total messages: 16 (9 generated)
|