OLD | NEW |
(Empty) | |
| 1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. |
| 4 */ |
| 5 |
| 6 /* From private/ppb_input_event_private.idl, |
| 7 * modified Thu May 1 15:39:53 2014. |
| 8 */ |
| 9 |
| 10 #ifndef PPAPI_C_PRIVATE_PPB_INPUT_EVENT_PRIVATE_H_ |
| 11 #define PPAPI_C_PRIVATE_PPB_INPUT_EVENT_PRIVATE_H_ |
| 12 |
| 13 #include "ppapi/c/pp_bool.h" |
| 14 #include "ppapi/c/pp_macros.h" |
| 15 #include "ppapi/c/pp_resource.h" |
| 16 #include "ppapi/c/pp_stdint.h" |
| 17 |
| 18 #define PPB_INPUTEVENT_PRIVATE_INTERFACE_0_1 "PPB_InputEvent_Private;0.1" |
| 19 #define PPB_INPUTEVENT_PRIVATE_INTERFACE PPB_INPUTEVENT_PRIVATE_INTERFACE_0_1 |
| 20 |
| 21 /** |
| 22 * @file |
| 23 * This file defines the PPB_InputEvent_Private interfaces. |
| 24 */ |
| 25 |
| 26 |
| 27 /** |
| 28 * @addtogroup Interfaces |
| 29 * @{ |
| 30 */ |
| 31 /** |
| 32 * The <code>PPB_InputEvent_Private</code> interface contains pointers to |
| 33 several |
| 34 * functions related to generic input events on the browser. |
| 35 */ |
| 36 struct PPB_InputEvent_Private_0_1 { |
| 37 /** |
| 38 * TraceInputLatency() traces the latency of the input event. The input |
| 39 * latency is shown in the trace viewer. The starting point of the input |
| 40 * latency is when the input event is sent from renderer to plugin. If the |
| 41 * input event does not cause any rendering damage, the end point of input |
| 42 * latency is when TraceInputLatency() is called on the event. If the input |
| 43 * event does cause rendering damage, the end point of input latency is when |
| 44 * the resulted plugin frame eventually reaches screen. |
| 45 * |
| 46 * @param[in] event A <code>PP_Resource</code> corresponding to an input |
| 47 * event. |
| 48 * |
| 49 * @param[in] has_damage A bool indicating whether the event has caused any |
| 50 * rendering damage. |
| 51 */ |
| 52 void (*TraceInputLatency)(PP_Resource event, PP_Bool has_damage); |
| 53 }; |
| 54 |
| 55 typedef struct PPB_InputEvent_Private_0_1 PPB_InputEvent_Private; |
| 56 /** |
| 57 * @} |
| 58 */ |
| 59 |
| 60 #endif /* PPAPI_C_PRIVATE_PPB_INPUT_EVENT_PRIVATE_H_ */ |
| 61 |
OLD | NEW |