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

Unified Diff: ui/aura/env.h

Issue 285793002: Makes Env thread local (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | ui/aura/env.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/env.h
diff --git a/ui/aura/env.h b/ui/aura/env.h
index 159ac480d096a7c788b14e9167536d38b82a3260..98182137057a21f633903f135da5aec5d1970533 100644
--- a/ui/aura/env.h
+++ b/ui/aura/env.h
@@ -29,9 +29,6 @@ class WindowTreeHost;
// A singleton object that tracks general state within Aura.
class AURA_EXPORT Env : public ui::EventTarget {
public:
- Env();
- virtual ~Env();
-
// Creates the single Env instance (if it hasn't been created yet). If
// |create_event_source| is true a PlatformEventSource is created.
// TODO(sky): nuke |create_event_source|. Only necessary while mojo's
@@ -67,6 +64,9 @@ class AURA_EXPORT Env : public ui::EventTarget {
friend class Window;
friend class WindowTreeHost;
+ Env();
+ virtual ~Env();
+
// See description of CreateInstance() for deatils of |create_event_source|.
void Init(bool create_event_source);
@@ -87,7 +87,6 @@ class AURA_EXPORT Env : public ui::EventTarget {
ObserverList<EnvObserver> observers_;
- static Env* instance_;
int mouse_button_flags_;
// Location of last mouse event, in screen coordinates.
gfx::Point last_mouse_location_;
« no previous file with comments | « no previous file | ui/aura/env.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698