Wake up display when input event is injected
Wake up display when input event is injected

When a remoting session starts, the host creates a power assertion that
prevents the display from automatically going to sleep. It doesn't
prevent, however, the user from forcing the display go to sleep (by
using a hot corner, for example). If this happens, the host's display
sleeps until the user terminates the session and reconnects.

This fix creates (and releases) a power assertion on every input event
injected (with a 1 second throttle). The power assertion, at creation
time, wakes the display up.

BUG=472818

Review URL: https://codereview.chromium.org/1366013002

Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#350730}

axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk