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

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

Issue 10908127: events: Move EventTarget into Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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 1b66582a730437654d672d1f1139061a92bbedb0..6133a8fec9234f3f2f89fb725df8c55213a5900f 100644
--- a/ui/base/events/event.h
+++ b/ui/base/events/event.h
@@ -19,6 +19,7 @@
namespace ui {
class Transform;
+class EventTarget;
class UI_EXPORT Event {
public:
@@ -48,6 +49,9 @@ class UI_EXPORT Event {
// events in EventFilter::PreHandleKeyEvent().
void set_flags(int flags) { flags_ = flags; }
+ void set_target(EventTarget* target) { target_ = target; }
Ben Goodger (Google) 2012/09/06 21:39:15 not sure set_target should be public... seems dang
sadrul 2012/09/06 21:44:59 aura::RootWindow also needs to set the target for
+ EventTarget* target() const { return target_; }
+
// The following methods return true if the respective keys were pressed at
// the time the event was created.
bool IsShiftDown() const { return (flags_ & EF_SHIFT_DOWN) != 0; }
@@ -152,6 +156,7 @@ class UI_EXPORT Event {
base::TimeDelta time_stamp_;
int flags_;
bool delete_native_event_;
+ EventTarget* target_;
};
class UI_EXPORT LocatedEvent : public Event {

Powered by Google App Engine
This is Rietveld 408576698