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

Unified Diff: sky/shell/ui/engine.cc

Issue 1129333005: Plumb input events into SkyView (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 | « sky/examples/raw/hello_world.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/ui/engine.cc
diff --git a/sky/shell/ui/engine.cc b/sky/shell/ui/engine.cc
index c0762587ab0523ffa3e21a6272983c4766f843a6..362b9be9ee9d06926f5c4177b6f12b7234c5dcee 100644
--- a/sky/shell/ui/engine.cc
+++ b/sky/shell/ui/engine.cc
@@ -161,13 +161,15 @@ 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);
}
void Engine::LoadURL(const mojo::String& url) {
// Enable SkyView here.
- if (false) {
+ if (true) {
eseidel 2015/05/19 23:49:00 You don't want this.
sky_view_ = blink::SkyView::Create(this);
sky_view_->Load(GURL(url));
return;
« no previous file with comments | « sky/examples/raw/hello_world.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698