#include <memory>
#include <utility>
#include "ui/views/view_targeter.h"
#include "ui/events/event_target.h"
#include "ui/views/focus/focus_manager.h"
#include "ui/views/view.h"
#include "ui/views/view_targeter_delegate.h"
namespace views {
ViewTargeter::ViewTargeter(ViewTargeterDelegate* delegate)
: … { … }
ViewTargeter::ViewTargeter(std::unique_ptr<ViewTargeterDelegate> delegate)
: … { … }
ViewTargeter::~ViewTargeter() = default;
bool ViewTargeter::DoesIntersectRect(const View* target,
const gfx::Rect& rect) const { … }
View* ViewTargeter::TargetForRect(View* root, const gfx::Rect& rect) const { … }
ui::EventTarget* ViewTargeter::FindTargetForEvent(ui::EventTarget* root,
ui::Event* event) { … }
ui::EventTarget* ViewTargeter::FindNextBestTarget(
ui::EventTarget* previous_target,
ui::Event* event) { … }
View* ViewTargeter::FindTargetForKeyEvent(View* root, const ui::KeyEvent& key) { … }
View* ViewTargeter::FindTargetForScrollEvent(View* root,
const ui::ScrollEvent& scroll) { … }
View* ViewTargeter::FindTargetForGestureEvent(View* root,
const ui::GestureEvent& gesture) { … }
ui::EventTarget* ViewTargeter::FindNextBestTargetForGestureEvent(
ui::EventTarget* previous_target,
const ui::GestureEvent& gesture) { … }
}