| 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().
|
|
|