Chromium Code Reviews
Description[Chromoting] TouchInputHandler now listens to events in DesktopView
This change is to continually decouple TouchInputHandler and DesktopView.
Instead of calling functions of TouchInputHandler from DesktopView, now
TouchInputHandler listens to a set of DesktopViewInterface events. So we can
have another implementation listens to the same events concurrently without
impacting current logic.
The advantages of this design are,
1. Eventually we do not need to modify mRenderData in DesktopView anymore, it
can also listen to onClientSizeChanged / onHostSizeChanged event.
2. We can have a dummy DesktopViewInterface to test other components.
3. We can forward exactly same events to several implementations, and compare
their outputs. For example, comparing the events generated by TouchInputHandler
and a new implementation.
This is part remoting desktop Android client refactor work, a design doc is @
https://goo.gl/MA6zjx.
BUG=615277
Committed: https://crrev.com/2e1a7b320eec10d8b69937e4540d781c4bc748bb
Cr-Commit-Position: refs/heads/master@{#398956}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Resolve review comments #Patch Set 3 : Resolve review comments #Messages
Total messages: 16 (7 generated)
|