| 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
|
|
|