Chromium Code Reviews| Index: views/events/event.cc |
| diff --git a/views/events/event.cc b/views/events/event.cc |
| index f51ec0a29f77a5ff89c545d0cac72dd314422b1c..88127ccd81897ed5e0649732b2c80cbf755cdd68 100644 |
| --- a/views/events/event.cc |
| +++ b/views/events/event.cc |
| @@ -38,6 +38,7 @@ Event::Event(NativeEvent2 native_event_2, ui::EventType type, int flags, |
| //////////////////////////////////////////////////////////////////////////////// |
| // LocatedEvent, protected: |
| +// TODO(msw): Kill this legacy constructor when we update uses. |
| LocatedEvent::LocatedEvent(ui::EventType type, const gfx::Point& location, |
| int flags) |
| : Event(type, flags), |
| @@ -52,9 +53,6 @@ LocatedEvent::LocatedEvent(const LocatedEvent& model, View* source, |
| View::ConvertPointToView(source, target, &location_); |
| } |
| -//////////////////////////////////////////////////////////////////////////////// |
| -// LocatedEvent, private: |
| - |
| LocatedEvent::LocatedEvent(const LocatedEvent& model, RootView* root) |
| : Event(model), |
| location_(model.location_) { |
| @@ -73,16 +71,17 @@ KeyEvent::KeyEvent(ui::EventType type, ui::KeyboardCode key_code, |
| //////////////////////////////////////////////////////////////////////////////// |
| // MouseEvent, public: |
| +// TODO(msw): Kill this legacy constructor when we update uses. |
| MouseEvent::MouseEvent(ui::EventType type, |
| - View* from, |
| - View* to, |
| + View* source, |
| + View* target, |
| const gfx::Point &l, |
| int flags) |
| - : LocatedEvent(MouseEvent(type, l.x(), l.y(), flags), from, to) { |
| + : LocatedEvent(MouseEvent(type, l.x(), l.y(), flags), source, target) { |
| } |
| -MouseEvent::MouseEvent(const MouseEvent& model, View* from, View* to) |
| - : LocatedEvent(model, from, to) { |
| +MouseEvent::MouseEvent(const MouseEvent& model, View* source, View* target) |
| + : LocatedEvent(model, source, target) { |
| } |
| //////////////////////////////////////////////////////////////////////////////// |
| @@ -97,17 +96,18 @@ TouchEvent::TouchEvent(ui::EventType type, int x, int y, int flags, |
| TouchEvent::TouchEvent(ui::EventType type, |
| - View* from, |
| - View* to, |
| + View* source, |
| + View* target, |
| const gfx::Point& l, |
| int flags, |
| int touch_id) |
| - : LocatedEvent(TouchEvent(type, l.x(), l.y(), flags, touch_id), from, to), |
| + : LocatedEvent(TouchEvent(type, l.x(), l.y(), flags, touch_id), source, |
| + target), |
|
Ben Goodger (Google)
2011/03/07 22:08:42
indent this to under type.
msw
2011/03/07 23:57:21
Done.
|
| touch_id_(touch_id) { |
| } |
| -TouchEvent::TouchEvent(const TouchEvent& model, View* from, View* to) |
| - : LocatedEvent(model, from, to), |
| +TouchEvent::TouchEvent(const TouchEvent& model, View* source, View* target) |
| + : LocatedEvent(model, source, target), |
| touch_id_(model.touch_id_) { |
| } |
| #endif |