| Index: aura/event.cc
|
| ===================================================================
|
| --- aura/event.cc (revision 98650)
|
| +++ aura/event.cc (working copy)
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "aura/event.h"
|
|
|
| +#include "aura/window.h"
|
| +
|
| namespace aura {
|
|
|
| Event::Event(ui::EventType type, int flags)
|
| @@ -27,5 +29,18 @@
|
| flags_(copy.flags_) {
|
| }
|
|
|
| +LocatedEvent::LocatedEvent(const LocatedEvent& model,
|
| + Window* source,
|
| + Window* target)
|
| + : Event(model),
|
| + location_(model.location_) {
|
| + if (target && target != source)
|
| + Window::ConvertPointToWindow(source, target, &location_);
|
| +}
|
| +
|
| +MouseEvent::MouseEvent(const MouseEvent& model, Window* source, Window* target)
|
| + : LocatedEvent(model, source, target) {
|
| +}
|
| +
|
| } // namespace aura
|
|
|
|
|