| Index: ppapi/c/private/ppb_input_event_private.h
|
| diff --git a/ppapi/c/private/ppb_input_event_private.h b/ppapi/c/private/ppb_input_event_private.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..77eb3686b0af56bfcc933285c55ac33d3e2ecd8a
|
| --- /dev/null
|
| +++ b/ppapi/c/private/ppb_input_event_private.h
|
| @@ -0,0 +1,61 @@
|
| +/* Copyright (c) 2014 The Chromium Authors. All rights reserved.
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +
|
| +/* From private/ppb_input_event_private.idl,
|
| + * modified Thu May 1 15:39:53 2014.
|
| + */
|
| +
|
| +#ifndef PPAPI_C_PRIVATE_PPB_INPUT_EVENT_PRIVATE_H_
|
| +#define PPAPI_C_PRIVATE_PPB_INPUT_EVENT_PRIVATE_H_
|
| +
|
| +#include "ppapi/c/pp_bool.h"
|
| +#include "ppapi/c/pp_macros.h"
|
| +#include "ppapi/c/pp_resource.h"
|
| +#include "ppapi/c/pp_stdint.h"
|
| +
|
| +#define PPB_INPUTEVENT_PRIVATE_INTERFACE_0_1 "PPB_InputEvent_Private;0.1"
|
| +#define PPB_INPUTEVENT_PRIVATE_INTERFACE PPB_INPUTEVENT_PRIVATE_INTERFACE_0_1
|
| +
|
| +/**
|
| + * @file
|
| + * This file defines the PPB_InputEvent_Private interfaces.
|
| + */
|
| +
|
| +
|
| +/**
|
| + * @addtogroup Interfaces
|
| + * @{
|
| + */
|
| +/**
|
| + * The <code>PPB_InputEvent_Private</code> interface contains pointers to
|
| + several
|
| + * functions related to generic input events on the browser.
|
| + */
|
| +struct PPB_InputEvent_Private_0_1 {
|
| + /**
|
| + * TraceInputLatency() traces the latency of the input event. The input
|
| + * latency is shown in the trace viewer. The starting point of the input
|
| + * latency is when the input event is sent from renderer to plugin. If the
|
| + * input event does not cause any rendering damage, the end point of input
|
| + * latency is when TraceInputLatency() is called on the event. If the input
|
| + * event does cause rendering damage, the end point of input latency is when
|
| + * the resulted plugin frame eventually reaches screen.
|
| + *
|
| + * @param[in] event A <code>PP_Resource</code> corresponding to an input
|
| + * event.
|
| + *
|
| + * @param[in] has_damage A bool indicating whether the event has caused any
|
| + * rendering damage.
|
| + */
|
| + void (*TraceInputLatency)(PP_Resource event, PP_Bool has_damage);
|
| +};
|
| +
|
| +typedef struct PPB_InputEvent_Private_0_1 PPB_InputEvent_Private;
|
| +/**
|
| + * @}
|
| + */
|
| +
|
| +#endif /* PPAPI_C_PRIVATE_PPB_INPUT_EVENT_PRIVATE_H_ */
|
| +
|
|
|