| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/events/event_source.h" | 5 #include "ui/events/event_source.h" |
| 6 | 6 |
| 7 #include "ui/events/event_processor.h" | 7 #include "ui/events/event_processor.h" |
| 8 | 8 |
| 9 namespace ui { | 9 namespace ui { |
| 10 | 10 |
| 11 void EventSource::SendEventToProcessor(Event* event) { | 11 EventDispatchDetails EventSource::SendEventToProcessor(Event* event) { |
| 12 EventProcessor* processor = GetEventProcessor(); | 12 EventProcessor* processor = GetEventProcessor(); |
| 13 CHECK(processor); | 13 CHECK(processor); |
| 14 EventDispatchDetails details = processor->OnEventFromSource(event); | 14 return processor->OnEventFromSource(event); |
| 15 if (details.dispatcher_destroyed) | |
| 16 return; | |
| 17 } | 15 } |
| 18 | 16 |
| 19 } // namespace ui | 17 } // namespace ui |
| OLD | NEW |