1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_AURA_WINDOW_TARGETER_H_
6 #define UI_AURA_WINDOW_TARGETER_H_
8 #include "ui/aura/aura_export.h"
9 #include "ui/events/event_targeter.h"
15 class AURA_EXPORT WindowTargeter
: public ui::EventTargeter
{
18 ~WindowTargeter() override
;
22 ui::EventTarget
* FindTargetForEvent(ui::EventTarget
* root
,
23 ui::Event
* event
) override
;
24 ui::EventTarget
* FindTargetForLocatedEvent(ui::EventTarget
* root
,
25 ui::LocatedEvent
* event
) override
;
26 bool SubtreeCanAcceptEvent(ui::EventTarget
* target
,
27 const ui::LocatedEvent
& event
) const override
;
28 bool EventLocationInsideBounds(ui::EventTarget
* target
,
29 const ui::LocatedEvent
& event
) const override
;
32 Window
* FindTargetForKeyEvent(Window
* root_window
,
33 const ui::KeyEvent
& event
);
34 Window
* FindTargetInRootWindow(Window
* root_window
,
35 const ui::LocatedEvent
& event
);
37 DISALLOW_COPY_AND_ASSIGN(WindowTargeter
);
42 #endif // UI_AURA_WINDOW_TARGETER_H_