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

Unified Diff: ui/base/events/event.cc

Issue 11087093: Migrate ui::Transform to gfx::Transform (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Should pass trybots this time Created 8 years, 2 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/base/events/event.h ('k') | ui/compositor/layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/events/event.cc
diff --git a/ui/base/events/event.cc b/ui/base/events/event.cc
index a2190ffa0ab4280777368b87b2d41a5d1d21ba58..f16d471625f3d4a2bff23d009c4c30a8023a55ee 100644
--- a/ui/base/events/event.cc
+++ b/ui/base/events/event.cc
@@ -143,7 +143,8 @@ LocatedEvent::LocatedEvent(EventType type,
system_location_(0, 0) {
}
-void LocatedEvent::UpdateForRootTransform(const Transform& root_transform) {
+void LocatedEvent::UpdateForRootTransform(
+ const gfx::Transform& root_transform) {
// Transform has to be done at root level.
DCHECK_EQ(root_location_.x(), location_.x());
DCHECK_EQ(root_location_.y(), location_.y());
@@ -314,7 +315,7 @@ void TouchEvent::CalibrateLocation(const gfx::Size& from, const gfx::Size& to) {
root_location_ = CalibratePoint(root_location_, from, to);
}
-void TouchEvent::UpdateForRootTransform(const Transform& root_transform) {
+void TouchEvent::UpdateForRootTransform(const gfx::Transform& root_transform) {
LocatedEvent::UpdateForRootTransform(root_transform);
gfx::Point3f scale;
InterpolatedTransform::FactorTRS(root_transform, NULL, NULL, &scale);
« no previous file with comments | « ui/base/events/event.h ('k') | ui/compositor/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698