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

Unified Diff: ui/aura/env.h

Issue 10448102: Adds switch to disable generating mouse events from touch events and (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove released and fix bug in GestureRecognizerImpl Created 8 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 | « ui/aura/aura_switches.cc ('k') | 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 033456561f3dc2451bd78d50b9c5fb07dad52487..d3925c771c98a4e7433b6e05fc916f56224d18dc 100644
--- a/ui/aura/env.h
+++ b/ui/aura/env.h
@@ -45,6 +45,10 @@ class AURA_EXPORT Env {
mouse_button_flags_ = mouse_button_flags;
}
+ // Whether any touch device is currently down.
+ bool is_touch_down() const { return is_touch_down_; }
+ void set_touch_down(bool value) { is_touch_down_ = value; }
+
client::StackingClient* stacking_client() { return stacking_client_; }
void set_stacking_client(client::StackingClient* stacking_client) {
stacking_client_ = stacking_client;
@@ -78,6 +82,7 @@ class AURA_EXPORT Env {
static Env* instance_;
int mouse_button_flags_;
+ bool is_touch_down_;
client::StackingClient* stacking_client_;
scoped_ptr<MonitorManager> monitor_manager_;
« no previous file with comments | « ui/aura/aura_switches.cc ('k') | ui/aura/env.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698