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

Unified Diff: mojo/services/window_manager/focus_controller.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/basic_focus_rules.cc ('k') | mojo/services/window_manager/focus_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/window_manager/focus_controller.h
diff --git a/mojo/services/window_manager/focus_controller.h b/mojo/services/window_manager/focus_controller.h
index 7070f0e3fca406787579ebebda0f2cfaeda0e9c1..296f2a6ba8484297b0ef1ec967d31c5bb7723c24 100644
--- a/mojo/services/window_manager/focus_controller.h
+++ b/mojo/services/window_manager/focus_controller.h
@@ -95,6 +95,10 @@ class FocusController : public ui::EventHandler,
DISALLOW_COPY_AND_ASSIGN(FocusController);
};
+// Sets/Gets the focus controller for a root view.
+void SetFocusController(View* view, FocusController* focus_controller);
+FocusController* GetFocusController(View* view);
+
} // namespace mojo
#endif // MOJO_SERIVCES_WINDOW_MANAGER_FOCUS_CONTROLLER_H_
« no previous file with comments | « mojo/services/window_manager/basic_focus_rules.cc ('k') | mojo/services/window_manager/focus_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698