Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: ppapi/c/ppb_input_event.h

Issue 7834007: Add comment to PPB_MouseInputEvent version 1.1 that GetMovement hasn't been supported. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment that the delta is always (0,0) for now. Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ppapi/cpp/input_event.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | ppapi/cpp/input_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698