blob: e816ca5fb8aa9dd5f15586ab2b8ee30bfd254814 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright (c) 2013 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.
#ifndef PPAPI_CPP_EXTENSIONS_DEV_EVENTS_DEV_H_
#define PPAPI_CPP_EXTENSIONS_DEV_EVENTS_DEV_H_
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_stdint.h"
struct PP_Ext_EventListener;
namespace pp {
namespace ext {
namespace events {
// This is a simple wrapper of the PPB_Ext_Events_Dev interface.
//
// Usually you don't have to directly use this interface. Instead, you could
// use those more object-oriented event classes. Please see
// ppapi/cpp/extensions/event_base.h for more details.
class Events_Dev {
public:
static uint32_t AddListener(PP_Instance instance,
const PP_Ext_EventListener& listener);
static void RemoveListener(PP_Instance instance, uint32_t listener_id);
};
} // namespace events
} // namespace ext
} // namespace pp
#endif // PPAPI_CPP_EXTENSIONS_DEV_EVENTS_DEV_H_
|