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 | 5 |
6 /* From ppb_input_event.idl modified Wed Aug 24 09:43:38 2011. */ | 6 /* From ppb_input_event.idl modified Wed Aug 24 09:43:38 2011. */ |
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 |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 * Returns the change in position of the mouse. When the mouse is locked, | 468 * Returns the change in position of the mouse. When the mouse is locked, |
469 * although the mouse position doesn't actually change, this function | 469 * although the mouse position doesn't actually change, this function |
470 * still provides movement information, which indicates what the change in | 470 * still provides movement information, which indicates what the change in |
471 * position would be had the mouse not been locked. | 471 * position would be had the mouse not been locked. |
472 * | 472 * |
473 * @param[in] mouse_event A <code>PP_Resource</code> corresponding to a | 473 * @param[in] mouse_event A <code>PP_Resource</code> corresponding to a |
474 * mouse event. | 474 * mouse event. |
475 * | 475 * |
476 * @return The change in position of the mouse, relative to the previous | 476 * @return The change in position of the mouse, relative to the previous |
477 * position. | 477 * position. |
| 478 * |
| 479 * TODO(yzshen): This feature hasn't been supported yet. The returned value is |
| 480 * always (0, 0) for system-generated mouse events (which are passed through |
| 481 * the <code>HandleInputEvent</code>). |
478 */ | 482 */ |
479 struct PP_Point (*GetMovement)(PP_Resource mouse_event); | 483 struct PP_Point (*GetMovement)(PP_Resource mouse_event); |
480 }; | 484 }; |
481 | 485 |
482 struct PPB_MouseInputEvent_1_0 { | 486 struct PPB_MouseInputEvent_1_0 { |
483 PP_Resource (*Create)(PP_Instance instance, | 487 PP_Resource (*Create)(PP_Instance instance, |
484 PP_InputEvent_Type type, | 488 PP_InputEvent_Type type, |
485 PP_TimeTicks time_stamp, | 489 PP_TimeTicks time_stamp, |
486 uint32_t modifiers, | 490 uint32_t modifiers, |
487 PP_InputEvent_MouseButton mouse_button, | 491 PP_InputEvent_MouseButton mouse_button, |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 * undefined var. | 673 * undefined var. |
670 */ | 674 */ |
671 struct PP_Var (*GetCharacterText)(PP_Resource character_event); | 675 struct PP_Var (*GetCharacterText)(PP_Resource character_event); |
672 }; | 676 }; |
673 /** | 677 /** |
674 * @} | 678 * @} |
675 */ | 679 */ |
676 | 680 |
677 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */ | 681 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */ |
678 | 682 |
OLD | NEW |