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

Unified Diff: mojo/services/window_manager/view_target.cc

Issue 737913002: Dispatch key events to the currently focused window. (Closed) Base URL: https://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
Index: mojo/services/window_manager/view_target.cc
diff --git a/mojo/services/window_manager/view_target.cc b/mojo/services/window_manager/view_target.cc
index a9da358799d077a019f198202f7f4f482c94c1cf..474a7a49b0fbc743969aa5086d448283d3c45db0 100644
--- a/mojo/services/window_manager/view_target.cc
+++ b/mojo/services/window_manager/view_target.cc
@@ -133,7 +133,8 @@ void ViewTarget::ConvertEventToTarget(ui::EventTarget* target,
event->ConvertLocationToTarget(this, static_cast<ViewTarget*>(target));
}
-ViewTarget::ViewTarget(View* view_to_wrap) : view_(view_to_wrap) {
+ViewTarget::ViewTarget(View* view_to_wrap)
+ : view_(view_to_wrap), focus_controller_(nullptr) {
DCHECK(view_->GetLocalProperty(kViewTargetKey) == nullptr);
view_->SetLocalProperty(kViewTargetKey, this);
}

Powered by Google App Engine
This is Rietveld 408576698