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

Side by Side Diff: ui/events/touch_ctm.h

Issue 191223007: Move touch CTM from X into Chrome (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: move CTM update code into a separate file ash/touch/touch_ctm_controller.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_EVENTS_TOUCH_CTM_H_
6 #define UI_EVENTS_TOUCH_CTM_H_
7
8 #include "ui/events/events_base_export.h"
9
10 namespace ui {
11
12 // Touch coordinate transformation matrix (CTM) is used to map touch events
13 // coordinate from screen space to root window space.
14 // When touch events are reported from kernel, its coordinate is in device
15 // space. After passing through X, its coordinate gets mapped to screen
16 // space, e.g. the framebuffer space that is the combination of multiple
17 // display output.
18 // In Chrome, we use TouchCTM to remap the touch event's location from
19 // the screen space to the root window space if the touch event is targeting
20 // that root window.
21 class EVENTS_BASE_EXPORT TouchCTM {
sadrul 2014/03/15 19:32:51 Do we need this? Could we use a gfx::Transform ins
Yufeng Shen (Slow to review) 2014/04/29 20:34:18 Looking at Transform::TransformPointInternal() th
22 public:
23 TouchCTM();
24
25 float x_scale;
26 float x_offset;
27 float y_scale;
28 float y_offset;
29 };
30
31 } // namespace ui
32
33 #endif // UI_EVENTS_TOUCH_CTM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698