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 /** | 6 /** |
7 * This file defines the Input Event interfaces. | 7 * This file defines the Input Event interfaces. |
8 */ | 8 */ |
9 | 9 |
10 label Chrome { | 10 label Chrome { |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 * Returns the change in position of the mouse. When the mouse is locked, | 525 * Returns the change in position of the mouse. When the mouse is locked, |
526 * although the mouse position doesn't actually change, this function | 526 * although the mouse position doesn't actually change, this function |
527 * still provides movement information, which indicates what the change in | 527 * still provides movement information, which indicates what the change in |
528 * position would be had the mouse not been locked. | 528 * position would be had the mouse not been locked. |
529 * | 529 * |
530 * @param[in] mouse_event A <code>PP_Resource</code> corresponding to a | 530 * @param[in] mouse_event A <code>PP_Resource</code> corresponding to a |
531 * mouse event. | 531 * mouse event. |
532 * | 532 * |
533 * @return The change in position of the mouse, relative to the previous | 533 * @return The change in position of the mouse, relative to the previous |
534 * position. | 534 * position. |
535 * | |
536 * TODO(yzshen): This feature hasn't been fully supported yet. For now, | |
537 * movement information is provided only if the mouse is locked. If the mouse | |
538 * is not locked, the returned value is (0, 0). | |
539 */ | 535 */ |
540 [version=1.1] | 536 [version=1.1] |
541 PP_Point GetMovement([in] PP_Resource mouse_event); | 537 PP_Point GetMovement([in] PP_Resource mouse_event); |
542 }; | 538 }; |
543 | 539 |
544 | 540 |
545 /** | 541 /** |
546 * The <code>PPB_WheelIputEvent</code> interface contains pointers to several | 542 * The <code>PPB_WheelIputEvent</code> interface contains pointers to several |
547 * functions related to wheel input events. | 543 * functions related to wheel input events. |
548 */ | 544 */ |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 * @param[in] character_event A <code>PP_Resource</code> corresponding to a | 718 * @param[in] character_event A <code>PP_Resource</code> corresponding to a |
723 * keyboard event. | 719 * keyboard event. |
724 * | 720 * |
725 * @return A string var representing a single typed character for character | 721 * @return A string var representing a single typed character for character |
726 * input events. For non-character input events the return value will be an | 722 * input events. For non-character input events the return value will be an |
727 * undefined var. | 723 * undefined var. |
728 */ | 724 */ |
729 PP_Var GetCharacterText([in] PP_Resource character_event); | 725 PP_Var GetCharacterText([in] PP_Resource character_event); |
730 }; | 726 }; |
731 | 727 |
OLD | NEW |