| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/platform/platform_event_source.h" | 5 #include "ui/events/platform/platform_event_source.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "ui/events/event.h" | |
| 11 #include "ui/events/platform/platform_event_dispatcher.h" | 10 #include "ui/events/platform/platform_event_dispatcher.h" |
| 12 #include "ui/events/platform/platform_event_observer.h" | 11 #include "ui/events/platform/platform_event_observer.h" |
| 13 #include "ui/events/platform/scoped_event_dispatcher.h" | 12 #include "ui/events/platform/scoped_event_dispatcher.h" |
| 14 | 13 |
| 15 namespace ui { | 14 namespace ui { |
| 16 | 15 |
| 17 // static | 16 // static |
| 18 PlatformEventSource* PlatformEventSource::instance_ = NULL; | 17 PlatformEventSource* PlatformEventSource::instance_ = NULL; |
| 19 | 18 |
| 20 PlatformEventSource::PlatformEventSource() | 19 PlatformEventSource::PlatformEventSource() |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 102 |
| 104 void PlatformEventSource::OnDispatcherListChanged() { | 103 void PlatformEventSource::OnDispatcherListChanged() { |
| 105 } | 104 } |
| 106 | 105 |
| 107 void PlatformEventSource::OnOverriddenDispatcherRestored() { | 106 void PlatformEventSource::OnOverriddenDispatcherRestored() { |
| 108 CHECK(overridden_dispatcher_); | 107 CHECK(overridden_dispatcher_); |
| 109 overridden_dispatcher_restored_ = true; | 108 overridden_dispatcher_restored_ = true; |
| 110 } | 109 } |
| 111 | 110 |
| 112 } // namespace ui | 111 } // namespace ui |
| OLD | NEW |