summaryrefslogtreecommitdiffstats
path: root/ui/base/events/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/events/event.h')
-rw-r--r--ui/base/events/event.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/ui/base/events/event.h b/ui/base/events/event.h
index 2b9d340..3293586 100644
--- a/ui/base/events/event.h
+++ b/ui/base/events/event.h
@@ -17,8 +17,11 @@
#include "ui/base/ui_export.h"
#include "ui/gfx/point.h"
-namespace ui {
+namespace gfx {
class Transform;
+}
+
+namespace ui {
class EventTarget;
class UI_EXPORT Event {
@@ -220,7 +223,7 @@ class UI_EXPORT LocatedEvent : public Event {
// Applies |root_transform| to the event.
// This is applied to both |location_| and |root_location_|.
- virtual void UpdateForRootTransform(const Transform& root_transform);
+ virtual void UpdateForRootTransform(const gfx::Transform& root_transform);
template <class T> void ConvertLocationToTarget(T* source, T* target) {
if (target && target != source)
@@ -426,7 +429,8 @@ class UI_EXPORT TouchEvent : public LocatedEvent {
void set_radius_y(const float r) { radius_y_ = r; }
// Overridden from LocatedEvent.
- virtual void UpdateForRootTransform(const Transform& root_transform) OVERRIDE;
+ virtual void UpdateForRootTransform(
+ const gfx::Transform& root_transform) OVERRIDE;
protected:
void set_radius(float radius_x, float radius_y) {