| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PPAPI_SHARED_IMPL_INPUT_EVENT_IMPL_H_ | 5 #ifndef PPAPI_SHARED_IMPL_INPUT_EVENT_IMPL_H_ |
| 6 #define PPAPI_SHARED_IMPL_INPUT_EVENT_IMPL_H_ | 6 #define PPAPI_SHARED_IMPL_INPUT_EVENT_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // is, should be delivered synchronously. This is used by the proxy. | 25 // is, should be delivered synchronously. This is used by the proxy. |
| 26 bool is_filtered; | 26 bool is_filtered; |
| 27 | 27 |
| 28 PP_InputEvent_Type event_type; | 28 PP_InputEvent_Type event_type; |
| 29 PP_TimeTicks event_time_stamp; | 29 PP_TimeTicks event_time_stamp; |
| 30 uint32_t event_modifiers; | 30 uint32_t event_modifiers; |
| 31 | 31 |
| 32 PP_InputEvent_MouseButton mouse_button; | 32 PP_InputEvent_MouseButton mouse_button; |
| 33 PP_Point mouse_position; | 33 PP_Point mouse_position; |
| 34 int32_t mouse_click_count; | 34 int32_t mouse_click_count; |
| 35 PP_Point mouse_movement; |
| 35 | 36 |
| 36 PP_FloatPoint wheel_delta; | 37 PP_FloatPoint wheel_delta; |
| 37 PP_FloatPoint wheel_ticks; | 38 PP_FloatPoint wheel_ticks; |
| 38 bool wheel_scroll_by_page; | 39 bool wheel_scroll_by_page; |
| 39 | 40 |
| 40 uint32_t key_code; | 41 uint32_t key_code; |
| 41 | 42 |
| 42 std::string character_text; | 43 std::string character_text; |
| 43 }; | 44 }; |
| 44 | 45 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 64 virtual PPB_InputEvent_API* AsPPB_InputEvent_API() OVERRIDE; | 65 virtual PPB_InputEvent_API* AsPPB_InputEvent_API() OVERRIDE; |
| 65 | 66 |
| 66 // PPB_InputEvent_API implementation. | 67 // PPB_InputEvent_API implementation. |
| 67 virtual const InputEventData& GetInputEventData() const OVERRIDE; | 68 virtual const InputEventData& GetInputEventData() const OVERRIDE; |
| 68 virtual PP_InputEvent_Type GetType() OVERRIDE; | 69 virtual PP_InputEvent_Type GetType() OVERRIDE; |
| 69 virtual PP_TimeTicks GetTimeStamp() OVERRIDE; | 70 virtual PP_TimeTicks GetTimeStamp() OVERRIDE; |
| 70 virtual uint32_t GetModifiers() OVERRIDE; | 71 virtual uint32_t GetModifiers() OVERRIDE; |
| 71 virtual PP_InputEvent_MouseButton GetMouseButton() OVERRIDE; | 72 virtual PP_InputEvent_MouseButton GetMouseButton() OVERRIDE; |
| 72 virtual PP_Point GetMousePosition() OVERRIDE; | 73 virtual PP_Point GetMousePosition() OVERRIDE; |
| 73 virtual int32_t GetMouseClickCount() OVERRIDE; | 74 virtual int32_t GetMouseClickCount() OVERRIDE; |
| 75 virtual PP_Point GetMouseMovement() OVERRIDE; |
| 74 virtual PP_FloatPoint GetWheelDelta() OVERRIDE; | 76 virtual PP_FloatPoint GetWheelDelta() OVERRIDE; |
| 75 virtual PP_FloatPoint GetWheelTicks() OVERRIDE; | 77 virtual PP_FloatPoint GetWheelTicks() OVERRIDE; |
| 76 virtual PP_Bool GetWheelScrollByPage() OVERRIDE; | 78 virtual PP_Bool GetWheelScrollByPage() OVERRIDE; |
| 77 virtual uint32_t GetKeyCode() OVERRIDE; | 79 virtual uint32_t GetKeyCode() OVERRIDE; |
| 78 virtual PP_Var GetCharacterText() OVERRIDE; | 80 virtual PP_Var GetCharacterText() OVERRIDE; |
| 79 | 81 |
| 80 private: | 82 private: |
| 81 InputEventData data_; | 83 InputEventData data_; |
| 82 | 84 |
| 83 DISALLOW_IMPLICIT_CONSTRUCTORS(InputEventImpl); | 85 DISALLOW_IMPLICIT_CONSTRUCTORS(InputEventImpl); |
| 84 }; | 86 }; |
| 85 | 87 |
| 86 } // namespace ppapi | 88 } // namespace ppapi |
| 87 | 89 |
| 88 #endif // PPAPI_SHARED_IMPL_INPUT_EVENT_IMPL_H_ | 90 #endif // PPAPI_SHARED_IMPL_INPUT_EVENT_IMPL_H_ |
| 89 | 91 |
| OLD | NEW |