Improve YouCompleteMe handling of Blink header without source files.
[chromium-blink-merge.git] / ui / events / test / test_event_processor.cc
blob995912831f7fea47a4942e045892ec4f8fb4e73b
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.
5 #include "ui/events/test/test_event_processor.h"
7 #include "ui/events/event_target.h"
9 namespace ui {
10 namespace test {
12 TestEventProcessor::TestEventProcessor() {}
13 TestEventProcessor::~TestEventProcessor() {}
15 void TestEventProcessor::SetRoot(scoped_ptr<EventTarget> root) {
16 root_ = root.Pass();
19 bool TestEventProcessor::CanDispatchToTarget(EventTarget* target) {
20 return true;
23 EventTarget* TestEventProcessor::GetRootTarget() {
24 return root_.get();
27 EventDispatchDetails TestEventProcessor::OnEventFromSource(Event* event) {
28 return EventProcessor::OnEventFromSource(event);
31 } // namespace test
32 } // namespace ui