OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_THUNK_PPB_INPUT_EVENT_API_H_ | 5 #ifndef PPAPI_THUNK_PPB_INPUT_EVENT_API_H_ |
6 #define PPAPI_THUNK_PPB_INPUT_EVENT_API_H_ | 6 #define PPAPI_THUNK_PPB_INPUT_EVENT_API_H_ |
7 | 7 |
8 #include "ppapi/c/dev/ppb_ime_input_event_dev.h" | 8 #include "ppapi/c/dev/ppb_ime_input_event_dev.h" |
9 #include "ppapi/c/dev/ppb_keyboard_input_event_dev.h" | 9 #include "ppapi/c/dev/ppb_keyboard_input_event_dev.h" |
| 10 #include "ppapi/c/dev/ppb_touch_event_dev.h" |
10 #include "ppapi/c/ppb_input_event.h" | 11 #include "ppapi/c/ppb_input_event.h" |
11 #include "ppapi/thunk/ppapi_thunk_export.h" | 12 #include "ppapi/thunk/ppapi_thunk_export.h" |
12 | 13 |
13 namespace ppapi { | 14 namespace ppapi { |
14 | 15 |
15 struct InputEventData; | 16 struct InputEventData; |
16 | 17 |
17 namespace thunk { | 18 namespace thunk { |
18 | 19 |
19 class PPAPI_THUNK_EXPORT PPB_InputEvent_API { | 20 class PPAPI_THUNK_EXPORT PPB_InputEvent_API { |
(...skipping 15 matching lines...) Expand all Loading... |
35 virtual PP_FloatPoint GetWheelTicks() = 0; | 36 virtual PP_FloatPoint GetWheelTicks() = 0; |
36 virtual PP_Bool GetWheelScrollByPage() = 0; | 37 virtual PP_Bool GetWheelScrollByPage() = 0; |
37 virtual uint32_t GetKeyCode() = 0; | 38 virtual uint32_t GetKeyCode() = 0; |
38 virtual PP_Var GetCharacterText() = 0; | 39 virtual PP_Var GetCharacterText() = 0; |
39 virtual PP_Bool SetUsbKeyCode(uint32_t) = 0; | 40 virtual PP_Bool SetUsbKeyCode(uint32_t) = 0; |
40 virtual uint32_t GetUsbKeyCode() = 0; | 41 virtual uint32_t GetUsbKeyCode() = 0; |
41 virtual uint32_t GetIMESegmentNumber() = 0; | 42 virtual uint32_t GetIMESegmentNumber() = 0; |
42 virtual uint32_t GetIMESegmentOffset(uint32_t index) = 0; | 43 virtual uint32_t GetIMESegmentOffset(uint32_t index) = 0; |
43 virtual int32_t GetIMETargetSegment() = 0; | 44 virtual int32_t GetIMETargetSegment() = 0; |
44 virtual void GetIMESelection(uint32_t* start, uint32_t* end) = 0; | 45 virtual void GetIMESelection(uint32_t* start, uint32_t* end) = 0; |
| 46 virtual uint32_t GetTouchCount(PP_TouchListType list) = 0; |
| 47 virtual PP_TouchPoint_Dev GetTouchByIndex(PP_TouchListType list, |
| 48 uint32_t index) = 0; |
| 49 virtual PP_TouchPoint_Dev GetTouchById(PP_TouchListType list, |
| 50 uint32_t id) = 0; |
45 }; | 51 }; |
46 | 52 |
47 } // namespace thunk | 53 } // namespace thunk |
48 } // namespace ppapi | 54 } // namespace ppapi |
49 | 55 |
50 #endif // PPAPI_THUNK_PPB_INPUT_EVENT_API_H_ | 56 #endif // PPAPI_THUNK_PPB_INPUT_EVENT_API_H_ |
OLD | NEW |