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

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

Issue 12983010: Manually compute inverted matrix for screen rotation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/base/events/event.h
diff --git a/ui/base/events/event.h b/ui/base/events/event.h
index a61d5dca207596884df3636f7e39673e568ce014..a040f9574b1ba9cebb02682d82633f383c200a2b 100644
--- a/ui/base/events/event.h
+++ b/ui/base/events/event.h
@@ -269,9 +269,10 @@ class UI_EXPORT LocatedEvent : public Event {
}
const gfx::Point& system_location() const { return system_location_; }
- // Applies |root_transform| to the event.
+ // Transform the locations using |inverted_root_transform|.
// This is applied to both |location_| and |root_location_|.
- virtual void UpdateForRootTransform(const gfx::Transform& root_transform);
+ virtual void UpdateForRootTransform(
+ const gfx::Transform& inverted_root_transform);
template <class T> void ConvertLocationToTarget(T* source, T* target) {
if (target && target != source)

Powered by Google App Engine
This is Rietveld 408576698