1 // Copyright 2015 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 #include "ui/events/test/test_event_targeter.h"
7 #include "ui/events/test/test_event_target.h"
12 TestEventTargeter::TestEventTargeter(TestEventTarget
* initial_target
,
14 : target_(initial_target
), should_bubble_(should_bubble
) {
17 TestEventTargeter::~TestEventTargeter() {
20 void TestEventTargeter::set_target(TestEventTarget
* target
) {
24 EventTarget
* TestEventTargeter::FindTargetForEvent(EventTarget
* root
,
29 EventTarget
* TestEventTargeter::FindNextBestTarget(EventTarget
* previous_target
,
33 return previous_target
->GetParentTarget();