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

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

Issue 2916823002: Move Mus into chrome's process when running with --mus.
Patch Set: Removing debug include. Created 3 years, 5 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
« no previous file with comments | « ui/events/devices/input_device_manager.cc ('k') | ui/events/platform/platform_event_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3f16bd603bc998ab49ec28962d9602b09b3ab502..b4e3084dd1fb23b36c7319c8ddd6bd03231fec04 100644
--- a/ui/events/platform/platform_event_source.h
+++ b/ui/events/platform/platform_event_source.h
@@ -33,6 +33,7 @@ class EVENTS_EXPORT PlatformEventSource {
public:
virtual ~PlatformEventSource();
+ // Returns the thread-local singleton.
static PlatformEventSource* GetInstance();
// Adds a dispatcher to the dispatcher list. If a dispatcher is added during
@@ -64,6 +65,7 @@ class EVENTS_EXPORT PlatformEventSource {
void AddPlatformEventObserver(PlatformEventObserver* observer);
void RemovePlatformEventObserver(PlatformEventObserver* observer);
+ // Creates PlatformEventSource and sets it as a thread-local singleton.
static std::unique_ptr<PlatformEventSource> CreateDefault();
protected:
@@ -80,8 +82,6 @@ class EVENTS_EXPORT PlatformEventSource {
friend class ScopedEventDispatcher;
friend class test::PlatformEventSourceTestAPI;
- static PlatformEventSource* instance_;
-
// This is invoked when the list of dispatchers changes (i.e. a new dispatcher
// is added, or a dispatcher is removed).
virtual void OnDispatcherListChanged();
« no previous file with comments | « ui/events/devices/input_device_manager.cc ('k') | ui/events/platform/platform_event_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698