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

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: Redo FocusController storage so that it is a local property on a view. 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 | « mojo/services/window_manager/focus_controller.cc ('k') | mojo/services/window_manager/view_targeter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « mojo/services/window_manager/focus_controller.cc ('k') | mojo/services/window_manager/view_targeter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698