| Index: ui/events/platform/platform_event_source.h
|
| diff --git a/ui/events/platform/platform_event_source.h b/ui/events/platform/platform_event_source.h
|
| index d65c89179c14b009a5a38d962cc0ff2fb94c2534..a20fe6b8e5c34cce79fb118237499a91f8a57a89 100644
|
| --- a/ui/events/platform/platform_event_source.h
|
| +++ b/ui/events/platform/platform_event_source.h
|
| @@ -51,6 +51,11 @@ class EVENTS_EXPORT PlatformEventSource {
|
| scoped_ptr<ScopedEventDispatcher> OverrideDispatcher(
|
| PlatformEventDispatcher* dispatcher);
|
|
|
| + // Called to indicate that the source should stop dispatching the current
|
| + // stream of events and wait until the next iteration of the message-loop to
|
| + // dispatch the rest of the events.
|
| + virtual void StopCurrentEventStream();
|
| +
|
| void AddPlatformEventObserver(PlatformEventObserver* observer);
|
| void RemovePlatformEventObserver(PlatformEventObserver* observer);
|
|
|
| @@ -70,18 +75,14 @@ class EVENTS_EXPORT PlatformEventSource {
|
| friend class ScopedEventDispatcher;
|
| static PlatformEventSource* instance_;
|
|
|
| - // Called to indicate that the source should stop dispatching the current
|
| - // stream of events and wait until the next iteration of the message-loop to
|
| - // dispatch the rest of the events.
|
| - virtual void StopCurrentEventStream();
|
| -
|
| // This is invoked when the list of dispatchers changes (i.e. a new dispatcher
|
| // is added, or a dispatcher is removed).
|
| virtual void OnDispatcherListChanged();
|
|
|
| void OnOverriddenDispatcherRestored();
|
|
|
| - // Use a base::ObserverList<> instead of an std::vector<> to store the list of
|
| + // Use an base::ObserverList<> instead of an std::vector<> to store the list
|
| + // of
|
| // dispatchers, so that adding/removing dispatchers during an event dispatch
|
| // is well-defined.
|
| typedef base::ObserverList<PlatformEventDispatcher>
|
|
|