Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1113)

Unified Diff: ui/events/platform/platform_event_source.h

Issue 1287103004: Sync ui/events to chromium @ https://codereview.chromium.org/1210203002 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « ui/events/platform/platform_event_builder_x_unittest.cc ('k') | ui/events/platform/platform_event_source_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698