event_source.cc revision a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7
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/event_source.h"
6
7#include "ui/events/event_processor.h"
8
9namespace ui {
10
11void EventSource::SendEventToProcessor(Event* event) {
12  EventProcessor* processor = GetEventProcessor();
13  CHECK(processor);
14  EventDispatchDetails details = processor->OnEventFromSource(event);
15  if (details.dispatcher_destroyed)
16    return;
17}
18
19}  // namespace ui
20