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

Unified Diff: ui/aura/window_tree_host.h

Issue 191223007: Move touch CTM from X into Chrome (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add file ui/aura/touch_ctm.h(cc) Created 6 years, 9 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/aura/window_tree_host.h
diff --git a/ui/aura/window_tree_host.h b/ui/aura/window_tree_host.h
index 6567672fc1691dab63e6e0ea8c9f33550a1f7ef6..bc7d55c9884e80f31772b71b6023ab065bedf70a 100644
--- a/ui/aura/window_tree_host.h
+++ b/ui/aura/window_tree_host.h
@@ -10,6 +10,7 @@
#include "base/event_types.h"
#include "base/message_loop/message_loop.h"
#include "ui/aura/aura_export.h"
+#include "ui/aura/touch_ctm.h"
#include "ui/base/cursor/cursor.h"
#include "ui/gfx/native_widget_types.h"
@@ -57,6 +58,15 @@ class AURA_EXPORT WindowTreeHost {
gfx::Transform GetInverseRootTransform() const;
+ void SetTouchCTM(int touch_device_id, const TouchCTM& ctm) {
+ touch_ctm_map_[touch_device_id] = ctm;
+ }
+ void ClearTouchCTM() { touch_ctm_map_.clear(); }
+
+ std::map<int, TouchCTM>* GetTouchCTMMap() {
+ return &touch_ctm_map_;
+ }
+
// Updates the root window's size using |host_size|, current
// transform and insets.
void UpdateRootWindowSize(const gfx::Size& host_size);
@@ -180,6 +190,9 @@ class AURA_EXPORT WindowTreeHost {
WindowTreeHostDelegate* delegate_;
+ // TouchCTM indexed by touch device id.
+ std::map<int, TouchCTM> touch_ctm_map_;
+
private:
// Moves the cursor to the specified location. This method is internally used
// by MoveCursorTo() and MoveCursorToHostLocation().

Powered by Google App Engine
This is Rietveld 408576698