Chromium Code Reviews| Index: ppapi/cpp/input_event.h |
| diff --git a/ppapi/cpp/input_event.h b/ppapi/cpp/input_event.h |
| index d64e826882839dc606307d5cb571642a42931a56..53dcb045868068aa64e4f61027ebd0eb1e39d459 100644 |
| --- a/ppapi/cpp/input_event.h |
| +++ b/ppapi/cpp/input_event.h |
| @@ -123,7 +123,15 @@ class MouseInputEvent : public InputEvent { |
| /// @param[in] click_count |
| /// TODO(brettw) figure out exactly what this means. |
| /// |
| - /// @param[in] mouse_movement The change in position of the mouse. |
| + MouseInputEvent(Instance* instance, |
| + PP_InputEvent_Type type, |
| + PP_TimeTicks time_stamp, |
| + uint32_t modifiers, |
| + PP_InputEvent_MouseButton mouse_button, |
| + const Point& mouse_position, |
| + int32_t click_count); |
| + |
| + // @param[in] mouse_movement Currently this parameter is ignored. |
| MouseInputEvent(Instance* instance, |
|
yzshen1
2011/09/02 23:41:11
The reason why I keep this constructor:
Some pdf-r
|
| PP_InputEvent_Type type, |
| PP_TimeTicks time_stamp, |
| @@ -140,9 +148,7 @@ class MouseInputEvent : public InputEvent { |
| /// events, and for all non-mouse events. |
| PP_InputEvent_MouseButton GetButton() const; |
| - /// GetPosition() returns the pixel location of a mouse input event. When |
| - /// the mouse is locked, it returns the last known mouse position just as |
| - /// mouse lock was entered. |
| + /// GetPosition() returns the pixel location of a mouse input event. |
| /// |
| /// @return The point associated with the mouse event, relative to the upper- |
| /// left of the instance receiving the event. These values can be negative for |
| @@ -151,15 +157,6 @@ class MouseInputEvent : public InputEvent { |
| // TODO(brettw) figure out exactly what this means. |
| int32_t GetClickCount() const; |
| - |
| - /// Returns the change in position of the mouse. When the mouse is locked, |
| - /// although the mouse position doesn't actually change, this function |
| - /// still provides movement information, which indicates what the change in |
| - /// position would be had the mouse not been locked. |
| - /// |
| - /// @return The change in position of the mouse, relative to the previous |
| - /// position. |
| - Point GetMovement() const; |
| }; |
| class WheelInputEvent : public InputEvent { |