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

Unified Diff: ui/wm/core/focus_rules.h

Issue 2809073002: cros: allow aura window not considered activatable for pointer event (Closed)
Patch Set: const ui::Event* Created 3 years, 8 months 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
« ash/wm/ash_focus_rules.cc ('K') | « ui/wm/core/focus_controller_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/focus_rules.h
diff --git a/ui/wm/core/focus_rules.h b/ui/wm/core/focus_rules.h
index cb9a4ddbd8fa5d0d6a59227d19385a3c9031a9ae..b8d0874441bc3cf7ba0729ec3627bfeca180ef33 100644
--- a/ui/wm/core/focus_rules.h
+++ b/ui/wm/core/focus_rules.h
@@ -11,6 +11,10 @@ namespace aura {
class Window;
}
+namespace ui {
+class Event;
+}
+
namespace wm {
// Implemented by an object that establishes the rules about what can be
@@ -26,9 +30,11 @@ class WM_EXPORT FocusRules {
virtual bool IsToplevelWindow(aura::Window* window) const = 0;
// Returns true if |window| can be activated or focused.
virtual bool CanActivateWindow(aura::Window* window) const = 0;
- // For CanFocusWindow(), NULL is supported, because NULL is a valid focusable
- // window (in the case of clearing focus).
- virtual bool CanFocusWindow(aura::Window* window) const = 0;
+ // For CanFocusWindow(), NULL window is supported, because NULL is a valid
+ // focusable window (in the case of clearing focus).
+ // If |event| is non-null it is the event triggering the focus change.
+ virtual bool CanFocusWindow(aura::Window* window,
+ const ui::Event* event) const = 0;
// Returns the toplevel window containing |window|. Not all toplevel windows
// are activatable, call GetActivatableWindow() instead to return the
« ash/wm/ash_focus_rules.cc ('K') | « ui/wm/core/focus_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698