blob: 995912831f7fea47a4942e045892ec4f8fb4e73b [file] [log] [blame]
// Copyright 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/test/test_event_processor.h"
#include "ui/events/event_target.h"
namespace ui {
namespace test {
TestEventProcessor::TestEventProcessor() {}
TestEventProcessor::~TestEventProcessor() {}
void TestEventProcessor::SetRoot(scoped_ptr<EventTarget> root) {
root_ = root.Pass();
}
bool TestEventProcessor::CanDispatchToTarget(EventTarget* target) {
return true;
}
EventTarget* TestEventProcessor::GetRootTarget() {
return root_.get();
}
EventDispatchDetails TestEventProcessor::OnEventFromSource(Event* event) {
return EventProcessor::OnEventFromSource(event);
}
} // namespace test
} // namespace ui