diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-20 21:51:43 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-20 21:51:43 +0000 |
commit | 593ddfa5b36b3fcea4ba20b054f00338adb4caf3 (patch) | |
tree | b31eafeb93112c5e9eaa183e54a0051984462ba8 /ui/aura/event.h | |
parent | 0bc2efd12616518e3952be87a078d53ab5adfca5 (diff) | |
download | chromium_src-593ddfa5b36b3fcea4ba20b054f00338adb4caf3.zip chromium_src-593ddfa5b36b3fcea4ba20b054f00338adb4caf3.tar.gz chromium_src-593ddfa5b36b3fcea4ba20b054f00338adb4caf3.tar.bz2 |
aura: Add transform support to Desktop.
For painting, the transform gets applied to the root layer of the compositor. For testing purposes, ctrl+Home is set to rotate the desktop (this can be made better when there's hotkey support).
BUG=100600
TEST=none
Review URL: http://codereview.chromium.org/8329019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106594 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/event.h')
-rw-r--r-- | ui/aura/event.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/aura/event.h b/ui/aura/event.h index 9673d0f..2691d65 100644 --- a/ui/aura/event.h +++ b/ui/aura/event.h @@ -14,6 +14,10 @@ #include "ui/base/keycodes/keyboard_codes.h" #include "ui/gfx/point.h" +namespace ui { +class Transform; +} + namespace aura { class Window; @@ -50,6 +54,8 @@ class AURA_EXPORT LocatedEvent : public Event { int y() const { return location_.y(); } gfx::Point location() const { return location_; } + void UpdateForTransform(const ui::Transform& transform); + protected: explicit LocatedEvent(const base::NativeEvent& native_event); |