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

Unified Diff: mojo/services/window_manager/view_targeter.h

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_targeter.h
diff --git a/mojo/services/window_manager/view_targeter.h b/mojo/services/window_manager/view_targeter.h
index 250886d8e045e75811c11cedc69c05ecbfacacef..0344b448646fd383e3be4bc83af05afc1705fde3 100644
--- a/mojo/services/window_manager/view_targeter.h
+++ b/mojo/services/window_manager/view_targeter.h
@@ -28,6 +28,9 @@ class ViewTargeter : public ui::EventTargeter {
const ui::LocatedEvent& event) const override;
private:
+ // Targets either the root View or the currently focused view.
+ ViewTarget* FindTargetForKeyEvent(ViewTarget* view, const ui::KeyEvent& key);
+
// Deals with cases where the |root_view| needs to change how things are
// dispatched. (For example, in the case of capture.)
ViewTarget* FindTargetInRootView(ViewTarget* root_view,

Powered by Google App Engine
This is Rietveld 408576698