Remove ExtensionPrefs::SetDidExtensionEscalatePermissions.
[chromium-blink-merge.git] / ui / aura / window_targeter.h
blob9571f2ab32f70d982bd533af4ea540964d6dd01d
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"
11 namespace aura {
13 class Window;
15 class AURA_EXPORT WindowTargeter : public ui::EventTargeter {
16 public:
17 WindowTargeter();
18 ~WindowTargeter() override;
20 protected:
21 // ui::EventTargeter:
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;
31 private:
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);
40 } // namespace aura
42 #endif // UI_AURA_WINDOW_TARGETER_H_