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 | 5 |
6 /* From ppb_input_event.idl modified Mon Nov 14 10:36:01 2011. */ | 6 /* From ppb_input_event.idl modified Tue Feb 14 10:47:45 2012. */ |
7 | 7 |
8 #ifndef PPAPI_C_PPB_INPUT_EVENT_H_ | 8 #ifndef PPAPI_C_PPB_INPUT_EVENT_H_ |
9 #define PPAPI_C_PPB_INPUT_EVENT_H_ | 9 #define PPAPI_C_PPB_INPUT_EVENT_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
14 #include "ppapi/c/pp_point.h" | 14 #include "ppapi/c/pp_point.h" |
15 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 * Returns the change in position of the mouse. When the mouse is locked, | 494 * Returns the change in position of the mouse. When the mouse is locked, |
495 * although the mouse position doesn't actually change, this function | 495 * although the mouse position doesn't actually change, this function |
496 * still provides movement information, which indicates what the change in | 496 * still provides movement information, which indicates what the change in |
497 * position would be had the mouse not been locked. | 497 * position would be had the mouse not been locked. |
498 * | 498 * |
499 * @param[in] mouse_event A <code>PP_Resource</code> corresponding to a | 499 * @param[in] mouse_event A <code>PP_Resource</code> corresponding to a |
500 * mouse event. | 500 * mouse event. |
501 * | 501 * |
502 * @return The change in position of the mouse, relative to the previous | 502 * @return The change in position of the mouse, relative to the previous |
503 * position. | 503 * position. |
504 * | |
505 * TODO(yzshen): This feature hasn't been fully supported yet. For now, | |
506 * movement information is provided only if the mouse is locked. If the mouse | |
507 * is not locked, the returned value is (0, 0). | |
508 */ | 504 */ |
509 struct PP_Point (*GetMovement)(PP_Resource mouse_event); | 505 struct PP_Point (*GetMovement)(PP_Resource mouse_event); |
510 }; | 506 }; |
511 | 507 |
512 typedef struct PPB_MouseInputEvent_1_1 PPB_MouseInputEvent; | 508 typedef struct PPB_MouseInputEvent_1_1 PPB_MouseInputEvent; |
513 | 509 |
514 struct PPB_MouseInputEvent_1_0 { | 510 struct PPB_MouseInputEvent_1_0 { |
515 PP_Resource (*Create)(PP_Instance instance, | 511 PP_Resource (*Create)(PP_Instance instance, |
516 PP_InputEvent_Type type, | 512 PP_InputEvent_Type type, |
517 PP_TimeTicks time_stamp, | 513 PP_TimeTicks time_stamp, |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 struct PP_Var (*GetCharacterText)(PP_Resource character_event); | 701 struct PP_Var (*GetCharacterText)(PP_Resource character_event); |
706 }; | 702 }; |
707 | 703 |
708 typedef struct PPB_KeyboardInputEvent_1_0 PPB_KeyboardInputEvent; | 704 typedef struct PPB_KeyboardInputEvent_1_0 PPB_KeyboardInputEvent; |
709 /** | 705 /** |
710 * @} | 706 * @} |
711 */ | 707 */ |
712 | 708 |
713 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */ | 709 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */ |
714 | 710 |
OLD | NEW |