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

Unified Diff: sky/tools/debugger/debugger.cc

Issue 714213003: Input events are broken in skydb (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/tools/debugger/debugger.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/debugger/debugger.cc
diff --git a/sky/tools/debugger/debugger.cc b/sky/tools/debugger/debugger.cc
index 3fb3a9834ab2f1cf023a3688da2d77b5f043ecf2..da575c29f7dc3de7acf82ea43b5a7386de6ffd1a 100644
--- a/sky/tools/debugger/debugger.cc
+++ b/sky/tools/debugger/debugger.cc
@@ -82,6 +82,16 @@ void SkyDebugger::OnViewBoundsChanged(mojo::View* view,
content_->SetBounds(new_bounds);
}
+void SkyDebugger::OnViewInputEvent(
+ mojo::View* view, const mojo::EventPtr& event) {
+ if (view != root_)
+ return;
+ // Currently, the event targeting system is broken for mojo::Views, so we
+ // blindly forward events from the root to the content view. Once event
+ // targeting works, we should be able to rip out this code.
+ window_manager_app_->DispatchInputEventToView(content_, event.Clone());
+}
+
void SkyDebugger::Create(mojo::ApplicationConnection* connection,
mojo::InterfaceRequest<Debugger> request) {
mojo::WeakBindToRequest(this, &request);
« no previous file with comments | « sky/tools/debugger/debugger.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698