| 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..1bb9bf90a06111dc398cbee0bdb21b4342eca116 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
|
| @@ -29,6 +33,10 @@ class WM_EXPORT FocusRules {
|
| // 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;
|
| + // Returns true if |window| is considered activatable for the |event|.
|
| + virtual bool IsWindowConsideredActivatableForEvent(
|
| + aura::Window* window,
|
| + ui::Event* event) const = 0;
|
|
|
| // Returns the toplevel window containing |window|. Not all toplevel windows
|
| // are activatable, call GetActivatableWindow() instead to return the
|
|
|