pp Namespace Reference

Namespaces

namespace  internal

Classes

class  Audio
 An audio resource. More...
class  AudioBuffer
class  AudioConfig
 A 16 bit stereo AudioConfig resource. More...
class  CompletionCallback
 This API enables you to implement and receive callbacks when Pepper operations complete asynchronously. More...
class  CompletionCallbackWithOutput
 A CompletionCallbackWithOutput defines a completion callback that additionally stores a pointer to some output data. More...
class  Compositor
 The Compositor interface is used for setting CompositorLayer layers to the Chromium compositor for compositing. More...
class  CompositorLayer
class  Core
 APIs related to memory management, time, and threads. More...
class  DirectoryEntry
 The DirectoryEntry class represents information about a directory entry. More...
class  FileIO
 The FileIO class represents a regular file. More...
class  FileRef
 The FileRef class represents a "weak pointer" to a file in a file system. More...
class  FileSystem
 The FileSystem class identifies the file system type associated with a file. More...
class  Fullscreen
 The Fullscreen class allowing you to check and toggle fullscreen mode. More...
class  Graphics2D
class  Graphics3D
 This class represents a 3D rendering context in the browser. More...
class  Graphics3DClient
class  HostResolver
 The HostResolver class supports host name resolution. More...
class  ImageData
class  InputEvent
 This class represents an input event resource. More...
class  MouseInputEvent
 This class handles mouse events. More...
class  WheelInputEvent
class  KeyboardInputEvent
class  TouchInputEvent
class  IMEInputEvent
class  Instance
class  InstanceHandle
 An instance handle identifies an instance in a constructor for a resource. More...
class  MediaStreamAudioTrack
 The MediaStreamAudioTrack class contains methods for receiving audio buffers from a MediaStream audio track in the browser. More...
class  MediaStreamVideoTrack
 The MediaStreamVideoTrack class contains methods for receiving video frames from a MediaStream video track in the browser. More...
class  MessageHandler
 MessageHandler is an abstract base class that the plugin may implement if it wants to receive messages from JavaScript on a background thread when JavaScript invokes postMessage() or postMessageAndAwaitResponse(). More...
class  MessageLoop
 A message loop allows PPAPI calls to be issued on a thread. More...
class  Module
 The Module class. More...
class  MouseCursor
class  MouseLock
 This class allows you to associate the PPP_MouseLock and PPB_MouseLock C-based interfaces with an object. More...
class  NetAddress
 The NetAddress class represents a network address. More...
class  NetworkList
class  NetworkMonitor
class  NetworkProxy
 This class provides a way to determine the appropriate proxy settings for for a given URL. More...
class  Point
 A 2 dimensional point with 0,0 being the upper-left starting coordinate. More...
class  FloatPoint
 A 2 dimensional floating-point point with 0,0 being the upper-left starting coordinate. More...
class  Rect
 A 2 dimensional rectangle. More...
class  FloatRect
 A 2 dimensional rectangle. More...
class  Resource
 A reference counted module resource. More...
class  Size
 A size of an object based on width and height. More...
class  FloatSize
 A size of an object based on width and height. More...
class  TCPSocket
 The TCPSocket class provides TCP socket operations. More...
class  TextInputController
 This class can be used for giving hints to the browser about the text input status of plugins. More...
class  TouchPoint
 Wrapper class for PP_TouchPoint. More...
class  UDPSocket
 The UDPSocket class provides UDP socket operations. More...
class  URLLoader
 URLLoader provides an API for loading URLs. More...
class  URLRequestInfo
 URLRequestInfo provides an API for creating and manipulating URL requests. More...
class  URLResponseInfo
 URLResponseInfo provides an API for examining URL responses. More...
class  Var
 A generic type used for passing data types between the module and the page. More...
class  VarArray
class  VarArrayBuffer
 VarArrayBuffer provides a way to interact with JavaScript ArrayBuffers, which represent a contiguous sequence of bytes. More...
class  VarDictionary
class  VideoDecoder
 Video decoder interface. More...
class  VideoFrame
class  View
 This class represents the state of the view for an instance and contains functions for retrieving the current state of that view. More...
class  WebSocket
 The WebSocket class providing bi-directional, full-duplex, communications over a single TCP socket. More...
class  CompletionCallbackFactory
 CompletionCallbackFactory<T> may be used to create CompletionCallback objects that are bound to member functions. More...

Enumerations

enum  PassRef { PASS_REF }

Functions

CompletionCallback BlockUntilComplete ()
pp::ModuleCreateModule ()
void SetBrokerGetInterfaceFunc (PP_GetInterface_Func broker_get_interface)

Detailed Description

The C++ interface to the Pepper API.


Enumeration Type Documentation

An annotation for constructors and other functions that take ownership of a pointer.

For example, a resource constructor that takes ownership of a provided PP_Resource ref count would take this enumeration to differentiate from the more typical use case of taking its own reference.

Enumerator:
PASS_REF 

Function Documentation

BlockUntilComplete() is used in place of an actual completion callback to request blocking behavior.

If specified, the calling thread will block until the function completes. Blocking completion callbacks are only allowed from background threads.

Returns:
A CompletionCallback corresponding to a NULL callback.

This function creates the pp::Module object associated with this module.

Note: NaCl module developers must implement this function.

Returns:
Returns the module if it was successfully created, or NULL on failure. Upon failure, the module will be unloaded.
void pp::SetBrokerGetInterfaceFunc ( PP_GetInterface_Func  broker_get_interface)

Sets the get interface function in the broker process.

This function is only relevant when you're using the PPB_Broker interface in a trusted native plugin. In this case, you may need to implement PPP_GetInterface when the plugin is loaded in the unsandboxed process. Normally the C++ wrappers implement PPP_GetInterface for you but this doesn't work in the context of the broker process. So if you need to implement PPP_* interfaces in the broker process, call this function in your PPP_InitializeBroker implementation which will set up the given function as implementing PPP_GetInterface.