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