blob: 4457f77c3717b344cba8f444090c2ae08bdb1540 [file] [log] [blame]
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/events/event_targeter.h"
namespace aura {
class Window;
class WindowTargeter : public ui::EventTargeter {
public:
WindowTargeter();
virtual ~WindowTargeter();
protected:
// ui::EventTargeter:
virtual ui::EventTarget* FindTargetForEvent(ui::EventTarget* root,
ui::Event* event) OVERRIDE;
virtual ui::EventTarget* FindTargetForLocatedEvent(
ui::EventTarget* root,
ui::LocatedEvent* event) OVERRIDE;
virtual bool SubtreeShouldBeExploredForEvent(
ui::EventTarget* target,
const ui::LocatedEvent& event) OVERRIDE;
private:
Window* FindTargetInRootWindow(Window* root_window,
const ui::LocatedEvent& event);
DISALLOW_COPY_AND_ASSIGN(WindowTargeter);
};
} // namespace aura