Native Player  1.0
NativePlayer Class Reference

#include <native_player.h>

Inheritance diagram for NativePlayer:

Public Member Functions

 NativePlayer (PP_Instance instance)
 
void DidChangeView (const pp::View &view) override
 
void HandleMessage (const pp::Var &var_message) override
 
bool Init (uint32_t, const char **, const char **) override
 

Detailed Description

This is a main class for this application. It holds a classes responsible for communication and for controlling the player.

Definition at line 48 of file native_player.h.

Constructor & Destructor Documentation

NativePlayer::NativePlayer ( PP_Instance  instance)
inlineexplicit

A constructor.

Parameters
[in]instancea class identifier for NaCl engine.

Definition at line 52 of file native_player.h.

Member Function Documentation

void NativePlayer::DidChangeView ( const pp::View &  view)
override

DidChangeView() handles initialization or changing viewport

Parameters
[in]viewnew representation of vewport
See also
pp::Instance
void NativePlayer::HandleMessage ( const pp::Var &  var_message)
override

HandleMessage() is a default method for handling messages from another modules in this application this functionality is redirected to UiMessageReceiver.

Parameters
[in]var_messagea container with received message
See also
pp::Instance.
bool NativePlayer::Init ( uint32_t  ,
const char **  ,
const char **   
)
override

Method called for instancce initialization.

See also
pp::Instance

The documentation for this class was generated from the following file: