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

Unified Diff: ui/aura/env.h

Issue 2854663002: Make EnvInputStateController owned by aura::Env. (Closed)
Patch Set: Created 3 years, 8 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 2d1ecf1f024e0b950aab0696255fe9fbc5e472e1..31f73666f586b357930a120a79e7f182e016eddb 100644
--- a/ui/aura/env.h
+++ b/ui/aura/env.h
@@ -34,6 +34,7 @@ namespace test {
class EnvTestHelper;
}
+class EnvInputStateController;
class EnvObserver;
class InputStateLookup;
class MusMouseLocationUpdater;
@@ -71,6 +72,10 @@ class AURA_EXPORT Env : public ui::EventTarget,
void AddObserver(EnvObserver* observer);
void RemoveObserver(EnvObserver* observer);
+ EnvInputStateController* env_controller() const {
+ return env_controller_.get();
+ }
+
int mouse_button_flags() const { return mouse_button_flags_; }
void set_mouse_button_flags(int mouse_button_flags) {
mouse_button_flags_ = mouse_button_flags;
@@ -150,6 +155,7 @@ class AURA_EXPORT Env : public ui::EventTarget,
base::ObserverList<EnvObserver> observers_;
+ std::unique_ptr<EnvInputStateController> env_controller_;
int mouse_button_flags_;
// Location of last mouse event, in screen coordinates.
mutable 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