This source file includes following definitions.
- SetRoot
- CanDispatchToTarget
- GetRootTarget
- OnEventFromSource
#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);
}
}
}