Plumb input events into SkyView

Clients can now register a callback that gets called whenever we have an event
for the view. We'll need to update the Event class at some point, but this is a
start.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1129333005
This commit is contained in:
Adam Barth 2015-05-19 16:50:28 -07:00
parent 7c90e5e9bf
commit 224f559c4c

View File

@ -161,6 +161,8 @@ void Engine::OnInputEvent(InputEventPtr event) {
ConvertEvent(event, device_pixel_ratio_);
if (!web_event)
return;
if (sky_view_)
sky_view_->HandleInputEvent(*web_event);
if (web_view_)
web_view_->handleInputEvent(*web_event);
}