1 // Copyright 2013 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. 4 5 #include "ui/events/test/test_event_processor.h" 6 7 #include "ui/events/event_target.h" 8 9 namespace ui { 10 namespace test { 11 TestEventProcessor()12TestEventProcessor::TestEventProcessor() {} ~TestEventProcessor()13TestEventProcessor::~TestEventProcessor() {} 14 SetRoot(scoped_ptr<EventTarget> root)15void TestEventProcessor::SetRoot(scoped_ptr<EventTarget> root) { 16 root_ = root.Pass(); 17 } 18 CanDispatchToTarget(EventTarget * target)19bool TestEventProcessor::CanDispatchToTarget(EventTarget* target) { 20 return true; 21 } 22 GetRootTarget()23EventTarget* TestEventProcessor::GetRootTarget() { 24 return root_.get(); 25 } 26 OnEventFromSource(Event * event)27EventDispatchDetails TestEventProcessor::OnEventFromSource(Event* event) { 28 return EventProcessor::OnEventFromSource(event); 29 } 30 31 } // namespace test 32 } // namespace ui 33