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

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

Issue 747163002: Port more focus controller unit tests and fix our focus rules. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Add the window_manager_unittests suite to the list of unittest binaries to run. 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/focus_rules.h
diff --git a/mojo/services/window_manager/focus_rules.h b/mojo/services/window_manager/focus_rules.h
index def0b96ed4cd540eeb38198ecb9d1feca04ac598..937876548125db407b825192fef8fe53174c2f1d 100644
--- a/mojo/services/window_manager/focus_rules.h
+++ b/mojo/services/window_manager/focus_rules.h
@@ -16,6 +16,9 @@ class FocusRules {
public:
virtual ~FocusRules() {}
+ // Returns true if the children of |window| can be activated.
+ virtual bool SupportsChildActivation(View* window) const = 0;
+
// Returns true if |view| is a toplevel view. Whether or not a view
// is considered toplevel is determined by a similar set of rules that
// govern activation and focus. Not all toplevel views are activatable,

Powered by Google App Engine
This is Rietveld 408576698