Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Enums

Enumerations

enum  PP_VideoCaptureStatus_Dev {
  PP_VIDEO_CAPTURE_STATUS_STOPPED = 0, PP_VIDEO_CAPTURE_STATUS_STARTING = 1, PP_VIDEO_CAPTURE_STATUS_STARTED = 2, PP_VIDEO_CAPTURE_STATUS_PAUSED = 3,
  PP_VIDEO_CAPTURE_STATUS_STOPPING = 4
}
 
enum  PP_DeviceType_Dev { PP_DEVICETYPE_DEV_INVALID = 0, PP_DEVICETYPE_DEV_AUDIOCAPTURE = 1, PP_DEVICETYPE_DEV_VIDEOCAPTURE = 2, PP_DEVICETYPE_DEV_REMOVABLESTORAGE = 101 }
 
enum  PP_Bool { PP_FALSE = 0, PP_TRUE = 1 }
 
enum  PP_VideoProfile {
  PP_VIDEOPROFILE_H264BASELINE = 0, PP_VIDEOPROFILE_H264MAIN = 1, PP_VIDEOPROFILE_H264EXTENDED = 2, PP_VIDEOPROFILE_H264HIGH = 3,
  PP_VIDEOPROFILE_H264HIGH10PROFILE = 4, PP_VIDEOPROFILE_H264HIGH422PROFILE = 5, PP_VIDEOPROFILE_H264HIGH444PREDICTIVEPROFILE = 6, PP_VIDEOPROFILE_H264SCALABLEBASELINE = 7,
  PP_VIDEOPROFILE_H264SCALABLEHIGH = 8, PP_VIDEOPROFILE_H264STEREOHIGH = 9, PP_VIDEOPROFILE_H264MULTIVIEWHIGH = 10, PP_VIDEOPROFILE_VP8_ANY = 11,
  PP_VIDEOPROFILE_VP9_ANY = 12, PP_VIDEOPROFILE_MAX = PP_VIDEOPROFILE_VP9_ANY
}
 
enum  PP_AudioProfile { PP_AUDIOPROFILE_OPUS = 0, PP_AUDIOPROFILE_MAX = PP_AUDIOPROFILE_OPUS }
 
enum  PP_HardwareAcceleration { PP_HARDWAREACCELERATION_ONLY = 0, PP_HARDWAREACCELERATION_WITHFALLBACK = 1, PP_HARDWAREACCELERATION_NONE = 2, PP_HARDWAREACCELERATION_LAST = PP_HARDWAREACCELERATION_NONE }
 
enum  PP_CompletionCallback_Flag { PP_COMPLETIONCALLBACK_FLAG_NONE = 0 << 0, PP_COMPLETIONCALLBACK_FLAG_OPTIONAL = 1 << 0 }
 
enum  {
  PP_OK = 0, PP_OK_COMPLETIONPENDING = -1, PP_ERROR_FAILED = -2, PP_ERROR_ABORTED = -3,
  PP_ERROR_BADARGUMENT = -4, PP_ERROR_BADRESOURCE = -5, PP_ERROR_NOINTERFACE = -6, PP_ERROR_NOACCESS = -7,
  PP_ERROR_NOMEMORY = -8, PP_ERROR_NOSPACE = -9, PP_ERROR_NOQUOTA = -10, PP_ERROR_INPROGRESS = -11,
  PP_ERROR_NOTSUPPORTED = -12, PP_ERROR_BLOCKS_MAIN_THREAD = -13, PP_ERROR_MALFORMED_INPUT = -14, PP_ERROR_RESOURCE_FAILED = -15,
  PP_ERROR_FILENOTFOUND = -20, PP_ERROR_FILEEXISTS = -21, PP_ERROR_FILETOOBIG = -22, PP_ERROR_FILECHANGED = -23,
  PP_ERROR_NOTAFILE = -24, PP_ERROR_TIMEDOUT = -30, PP_ERROR_USERCANCEL = -40, PP_ERROR_NO_USER_GESTURE = -41,
  PP_ERROR_CONTEXT_LOST = -50, PP_ERROR_NO_MESSAGE_LOOP = -51, PP_ERROR_WRONG_THREAD = -52, PP_ERROR_WOULD_BLOCK_THREAD = -53,
  PP_ERROR_CONNECTION_CLOSED = -100, PP_ERROR_CONNECTION_RESET = -101, PP_ERROR_CONNECTION_REFUSED = -102, PP_ERROR_CONNECTION_ABORTED = -103,
  PP_ERROR_CONNECTION_FAILED = -104, PP_ERROR_CONNECTION_TIMEDOUT = -105, PP_ERROR_ADDRESS_INVALID = -106, PP_ERROR_ADDRESS_UNREACHABLE = -107,
  PP_ERROR_ADDRESS_IN_USE = -108, PP_ERROR_MESSAGE_TOO_BIG = -109, PP_ERROR_NAME_NOT_RESOLVED = -110
}
 
enum  PP_FileType { PP_FILETYPE_REGULAR = 0, PP_FILETYPE_DIRECTORY = 1, PP_FILETYPE_OTHER = 2 }
 
enum  PP_FileSystemType {
  PP_FILESYSTEMTYPE_INVALID = 0, PP_FILESYSTEMTYPE_EXTERNAL = 1, PP_FILESYSTEMTYPE_LOCALPERSISTENT = 2, PP_FILESYSTEMTYPE_LOCALTEMPORARY = 3,
  PP_FILESYSTEMTYPE_ISOLATED = 4, PP_FILESYSTEMTYPE_REMOVABLESTORAGE = 101
}
 
enum  PP_Graphics3DAttrib {
  PP_GRAPHICS3DATTRIB_ALPHA_SIZE = 0x3021, PP_GRAPHICS3DATTRIB_BLUE_SIZE = 0x3022, PP_GRAPHICS3DATTRIB_GREEN_SIZE = 0x3023, PP_GRAPHICS3DATTRIB_RED_SIZE = 0x3024,
  PP_GRAPHICS3DATTRIB_DEPTH_SIZE = 0x3025, PP_GRAPHICS3DATTRIB_STENCIL_SIZE = 0x3026, PP_GRAPHICS3DATTRIB_SAMPLES = 0x3031, PP_GRAPHICS3DATTRIB_SAMPLE_BUFFERS = 0x3032,
  PP_GRAPHICS3DATTRIB_NONE = 0x3038, PP_GRAPHICS3DATTRIB_HEIGHT = 0x3056, PP_GRAPHICS3DATTRIB_WIDTH = 0x3057, PP_GRAPHICS3DATTRIB_FULLSCREEN_SAMSUNG = 0x10000,
  PP_GRAPHICS3DATTRIB_SWAP_BEHAVIOR = 0x3093, PP_GRAPHICS3DATTRIB_BUFFER_PRESERVED = 0x3094, PP_GRAPHICS3DATTRIB_BUFFER_DESTROYED = 0x3095, PP_GRAPHICS3DATTRIB_GPU_PREFERENCE = 0x11000,
  PP_GRAPHICS3DATTRIB_GPU_PREFERENCE_LOW_POWER = 0x11001, PP_GRAPHICS3DATTRIB_GPU_PREFERENCE_PERFORMANCE = 0x11002
}
 
enum  PP_VarType {
  PP_VARTYPE_UNDEFINED = 0, PP_VARTYPE_NULL = 1, PP_VARTYPE_BOOL = 2, PP_VARTYPE_INT32 = 3,
  PP_VARTYPE_DOUBLE = 4, PP_VARTYPE_STRING = 5, PP_VARTYPE_OBJECT = 6, PP_VARTYPE_ARRAY = 7,
  PP_VARTYPE_DICTIONARY = 8, PP_VARTYPE_ARRAY_BUFFER = 9, PP_VARTYPE_RESOURCE = 10
}
 
enum  PP_AudioBuffer_SampleRate {
  PP_AUDIOBUFFER_SAMPLERATE_UNKNOWN = 0, PP_AUDIOBUFFER_SAMPLERATE_8000 = 8000, PP_AUDIOBUFFER_SAMPLERATE_16000 = 16000, PP_AUDIOBUFFER_SAMPLERATE_22050 = 22050,
  PP_AUDIOBUFFER_SAMPLERATE_32000 = 32000, PP_AUDIOBUFFER_SAMPLERATE_44100 = 44100, PP_AUDIOBUFFER_SAMPLERATE_48000 = 48000, PP_AUDIOBUFFER_SAMPLERATE_96000 = 96000,
  PP_AUDIOBUFFER_SAMPLERATE_192000 = 192000
}
 
enum  PP_AudioBuffer_SampleSize { PP_AUDIOBUFFER_SAMPLESIZE_UNKNOWN = 0, PP_AUDIOBUFFER_SAMPLESIZE_16_BITS = 2 }
 
enum  { PP_AUDIOMINSAMPLEFRAMECOUNT = 64, PP_AUDIOMAXSAMPLEFRAMECOUNT = 32768 }
 
enum  PP_AudioSampleRate { PP_AUDIOSAMPLERATE_NONE = 0, PP_AUDIOSAMPLERATE_44100 = 44100, PP_AUDIOSAMPLERATE_48000 = 48000 }
 
enum  PP_BlendMode { PP_BLENDMODE_NONE, PP_BLENDMODE_SRC_OVER, PP_BLENDMODE_LAST = PP_BLENDMODE_SRC_OVER }
 
enum  PP_LogLevel { PP_LOGLEVEL_TIP = 0, PP_LOGLEVEL_LOG = 1, PP_LOGLEVEL_WARNING = 2, PP_LOGLEVEL_ERROR = 3 }
 
enum  PP_FileOpenFlags {
  PP_FILEOPENFLAG_READ = 1 << 0, PP_FILEOPENFLAG_WRITE = 1 << 1, PP_FILEOPENFLAG_CREATE = 1 << 2, PP_FILEOPENFLAG_TRUNCATE = 1 << 3,
  PP_FILEOPENFLAG_EXCLUSIVE = 1 << 4, PP_FILEOPENFLAG_APPEND = 1 << 5
}
 
enum  PP_MakeDirectoryFlags { PP_MAKEDIRECTORYFLAG_NONE = 0 << 0, PP_MAKEDIRECTORYFLAG_WITH_ANCESTORS = 1 << 0, PP_MAKEDIRECTORYFLAG_EXCLUSIVE = 1 << 1 }
 
enum  PP_HostResolver_Flag { PP_HOSTRESOLVER_FLAG_CANONNAME = 1 << 0 }
 
enum  PP_ImageDataFormat { PP_IMAGEDATAFORMAT_BGRA_PREMUL, PP_IMAGEDATAFORMAT_RGBA_PREMUL }
 
enum  PP_InputEvent_Type {
  PP_INPUTEVENT_TYPE_UNDEFINED = -1, PP_INPUTEVENT_TYPE_MOUSEDOWN = 0, PP_INPUTEVENT_TYPE_MOUSEUP = 1, PP_INPUTEVENT_TYPE_MOUSEMOVE = 2,
  PP_INPUTEVENT_TYPE_MOUSEENTER = 3, PP_INPUTEVENT_TYPE_MOUSELEAVE = 4, PP_INPUTEVENT_TYPE_WHEEL = 5, PP_INPUTEVENT_TYPE_RAWKEYDOWN = 6,
  PP_INPUTEVENT_TYPE_KEYDOWN = 7, PP_INPUTEVENT_TYPE_KEYUP = 8, PP_INPUTEVENT_TYPE_CHAR = 9, PP_INPUTEVENT_TYPE_CONTEXTMENU = 10,
  PP_INPUTEVENT_TYPE_IME_COMPOSITION_START = 11, PP_INPUTEVENT_TYPE_IME_COMPOSITION_UPDATE = 12, PP_INPUTEVENT_TYPE_IME_COMPOSITION_END = 13, PP_INPUTEVENT_TYPE_IME_TEXT = 14,
  PP_INPUTEVENT_TYPE_TOUCHSTART = 15, PP_INPUTEVENT_TYPE_TOUCHMOVE = 16, PP_INPUTEVENT_TYPE_TOUCHEND = 17, PP_INPUTEVENT_TYPE_TOUCHCANCEL = 18
}
 
enum  PP_InputEvent_Modifier {
  PP_INPUTEVENT_MODIFIER_SHIFTKEY = 1 << 0, PP_INPUTEVENT_MODIFIER_CONTROLKEY = 1 << 1, PP_INPUTEVENT_MODIFIER_ALTKEY = 1 << 2, PP_INPUTEVENT_MODIFIER_METAKEY = 1 << 3,
  PP_INPUTEVENT_MODIFIER_ISKEYPAD = 1 << 4, PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT = 1 << 5, PP_INPUTEVENT_MODIFIER_LEFTBUTTONDOWN = 1 << 6, PP_INPUTEVENT_MODIFIER_MIDDLEBUTTONDOWN = 1 << 7,
  PP_INPUTEVENT_MODIFIER_RIGHTBUTTONDOWN = 1 << 8, PP_INPUTEVENT_MODIFIER_CAPSLOCKKEY = 1 << 9, PP_INPUTEVENT_MODIFIER_NUMLOCKKEY = 1 << 10, PP_INPUTEVENT_MODIFIER_ISLEFT = 1 << 11,
  PP_INPUTEVENT_MODIFIER_ISRIGHT = 1 << 12, PP_INPUTEVENT_MODIFIER_ISPEN = 1 << 13, PP_INPUTEVENT_MODIFIER_ISERASER = 1 << 14
}
 
enum  PP_InputEvent_MouseButton { PP_INPUTEVENT_MOUSEBUTTON_NONE = -1, PP_INPUTEVENT_MOUSEBUTTON_LEFT = 0, PP_INPUTEVENT_MOUSEBUTTON_MIDDLE = 1, PP_INPUTEVENT_MOUSEBUTTON_RIGHT = 2 }
 
enum  PP_InputEvent_Class {
  PP_INPUTEVENT_CLASS_MOUSE = 1 << 0, PP_INPUTEVENT_CLASS_KEYBOARD = 1 << 1, PP_INPUTEVENT_CLASS_WHEEL = 1 << 2, PP_INPUTEVENT_CLASS_TOUCH = 1 << 3,
  PP_INPUTEVENT_CLASS_IME = 1 << 4
}
 
enum  PP_TouchListType { PP_TOUCHLIST_TYPE_TOUCHES = 0, PP_TOUCHLIST_TYPE_CHANGEDTOUCHES = 1, PP_TOUCHLIST_TYPE_TARGETTOUCHES = 2 }
 
enum  PP_MediaStreamAudioTrack_Attrib {
  PP_MEDIASTREAMAUDIOTRACK_ATTRIB_NONE = 0, PP_MEDIASTREAMAUDIOTRACK_ATTRIB_BUFFERS = 1, PP_MEDIASTREAMAUDIOTRACK_ATTRIB_SAMPLE_RATE = 2, PP_MEDIASTREAMAUDIOTRACK_ATTRIB_SAMPLE_SIZE = 3,
  PP_MEDIASTREAMAUDIOTRACK_ATTRIB_CHANNELS = 4, PP_MEDIASTREAMAUDIOTRACK_ATTRIB_DURATION = 5
}
 
enum  PP_MediaStreamVideoTrack_Attrib {
  PP_MEDIASTREAMVIDEOTRACK_ATTRIB_NONE = 0, PP_MEDIASTREAMVIDEOTRACK_ATTRIB_BUFFERED_FRAMES = 1, PP_MEDIASTREAMVIDEOTRACK_ATTRIB_WIDTH = 2, PP_MEDIASTREAMVIDEOTRACK_ATTRIB_HEIGHT = 3,
  PP_MEDIASTREAMVIDEOTRACK_ATTRIB_FORMAT = 4
}
 
enum  PP_MouseCursor_Type {
  PP_MOUSECURSOR_TYPE_CUSTOM = -1, PP_MOUSECURSOR_TYPE_POINTER = 0, PP_MOUSECURSOR_TYPE_CROSS = 1, PP_MOUSECURSOR_TYPE_HAND = 2,
  PP_MOUSECURSOR_TYPE_IBEAM = 3, PP_MOUSECURSOR_TYPE_WAIT = 4, PP_MOUSECURSOR_TYPE_HELP = 5, PP_MOUSECURSOR_TYPE_EASTRESIZE = 6,
  PP_MOUSECURSOR_TYPE_NORTHRESIZE = 7, PP_MOUSECURSOR_TYPE_NORTHEASTRESIZE = 8, PP_MOUSECURSOR_TYPE_NORTHWESTRESIZE = 9, PP_MOUSECURSOR_TYPE_SOUTHRESIZE = 10,
  PP_MOUSECURSOR_TYPE_SOUTHEASTRESIZE = 11, PP_MOUSECURSOR_TYPE_SOUTHWESTRESIZE = 12, PP_MOUSECURSOR_TYPE_WESTRESIZE = 13, PP_MOUSECURSOR_TYPE_NORTHSOUTHRESIZE = 14,
  PP_MOUSECURSOR_TYPE_EASTWESTRESIZE = 15, PP_MOUSECURSOR_TYPE_NORTHEASTSOUTHWESTRESIZE = 16, PP_MOUSECURSOR_TYPE_NORTHWESTSOUTHEASTRESIZE = 17, PP_MOUSECURSOR_TYPE_COLUMNRESIZE = 18,
  PP_MOUSECURSOR_TYPE_ROWRESIZE = 19, PP_MOUSECURSOR_TYPE_MIDDLEPANNING = 20, PP_MOUSECURSOR_TYPE_EASTPANNING = 21, PP_MOUSECURSOR_TYPE_NORTHPANNING = 22,
  PP_MOUSECURSOR_TYPE_NORTHEASTPANNING = 23, PP_MOUSECURSOR_TYPE_NORTHWESTPANNING = 24, PP_MOUSECURSOR_TYPE_SOUTHPANNING = 25, PP_MOUSECURSOR_TYPE_SOUTHEASTPANNING = 26,
  PP_MOUSECURSOR_TYPE_SOUTHWESTPANNING = 27, PP_MOUSECURSOR_TYPE_WESTPANNING = 28, PP_MOUSECURSOR_TYPE_MOVE = 29, PP_MOUSECURSOR_TYPE_VERTICALTEXT = 30,
  PP_MOUSECURSOR_TYPE_CELL = 31, PP_MOUSECURSOR_TYPE_CONTEXTMENU = 32, PP_MOUSECURSOR_TYPE_ALIAS = 33, PP_MOUSECURSOR_TYPE_PROGRESS = 34,
  PP_MOUSECURSOR_TYPE_NODROP = 35, PP_MOUSECURSOR_TYPE_COPY = 36, PP_MOUSECURSOR_TYPE_NONE = 37, PP_MOUSECURSOR_TYPE_NOTALLOWED = 38,
  PP_MOUSECURSOR_TYPE_ZOOMIN = 39, PP_MOUSECURSOR_TYPE_ZOOMOUT = 40, PP_MOUSECURSOR_TYPE_GRAB = 41, PP_MOUSECURSOR_TYPE_GRABBING = 42
}
 
enum  PP_NetAddress_Family { PP_NETADDRESS_FAMILY_UNSPECIFIED = 0, PP_NETADDRESS_FAMILY_IPV4 = 1, PP_NETADDRESS_FAMILY_IPV6 = 2 }
 
enum  PP_NetworkList_Type { PP_NETWORKLIST_TYPE_UNKNOWN = 0, PP_NETWORKLIST_TYPE_ETHERNET = 1, PP_NETWORKLIST_TYPE_WIFI = 2, PP_NETWORKLIST_TYPE_CELLULAR = 3 }
 
enum  PP_NetworkList_State { PP_NETWORKLIST_STATE_DOWN = 0, PP_NETWORKLIST_STATE_UP = 1 }
 
enum  PP_TCPSocket_Option { PP_TCPSOCKET_OPTION_NO_DELAY = 0, PP_TCPSOCKET_OPTION_SEND_BUFFER_SIZE = 1, PP_TCPSOCKET_OPTION_RECV_BUFFER_SIZE = 2 }
 
enum  PP_TextInput_Type {
  PP_TEXTINPUT_TYPE_NONE = 0, PP_TEXTINPUT_TYPE_TEXT = 1, PP_TEXTINPUT_TYPE_PASSWORD = 2, PP_TEXTINPUT_TYPE_SEARCH = 3,
  PP_TEXTINPUT_TYPE_EMAIL = 4, PP_TEXTINPUT_TYPE_NUMBER = 5, PP_TEXTINPUT_TYPE_TELEPHONE = 6, PP_TEXTINPUT_TYPE_URL = 7
}
 
enum  PP_UDPSocket_Option {
  PP_UDPSOCKET_OPTION_ADDRESS_REUSE = 0, PP_UDPSOCKET_OPTION_BROADCAST = 1, PP_UDPSOCKET_OPTION_SEND_BUFFER_SIZE = 2, PP_UDPSOCKET_OPTION_RECV_BUFFER_SIZE = 3,
  PP_UDPSOCKET_OPTION_MULTICAST_LOOP = 4, PP_UDPSOCKET_OPTION_MULTICAST_TTL = 5, PP_UDPSOCKET_EXT_OPTION_MULTICAST_LOOP = 100, PP_UDPSOCKET_EXT_OPTION_MULTICAST_TTL = 101
}
 
enum  PP_URLRequestProperty {
  PP_URLREQUESTPROPERTY_URL = 0, PP_URLREQUESTPROPERTY_METHOD = 1, PP_URLREQUESTPROPERTY_HEADERS = 2, PP_URLREQUESTPROPERTY_STREAMTOFILE = 3,
  PP_URLREQUESTPROPERTY_FOLLOWREDIRECTS = 4, PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS = 5, PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS = 6, PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL = 7,
  PP_URLREQUESTPROPERTY_ALLOWCROSSORIGINREQUESTS = 8, PP_URLREQUESTPROPERTY_ALLOWCREDENTIALS = 9, PP_URLREQUESTPROPERTY_CUSTOMCONTENTTRANSFERENCODING = 10, PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD = 11,
  PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD = 12, PP_URLREQUESTPROPERTY_CUSTOMUSERAGENT = 13
}
 
enum  PP_URLResponseProperty {
  PP_URLRESPONSEPROPERTY_URL = 0, PP_URLRESPONSEPROPERTY_REDIRECTURL = 1, PP_URLRESPONSEPROPERTY_REDIRECTMETHOD = 2, PP_URLRESPONSEPROPERTY_STATUSCODE = 3,
  PP_URLRESPONSEPROPERTY_STATUSLINE = 4, PP_URLRESPONSEPROPERTY_HEADERS = 5
}
 
enum  PP_VideoFrame_Format {
  PP_VIDEOFRAME_FORMAT_UNKNOWN = 0, PP_VIDEOFRAME_FORMAT_YV12 = 1, PP_VIDEOFRAME_FORMAT_I420 = 2, PP_VIDEOFRAME_FORMAT_BGRA = 3,
  PP_VIDEOFRAME_FORMAT_LAST = PP_VIDEOFRAME_FORMAT_BGRA
}
 
enum  PP_WebSocketReadyState {
  PP_WEBSOCKETREADYSTATE_INVALID = -1, PP_WEBSOCKETREADYSTATE_CONNECTING = 0, PP_WEBSOCKETREADYSTATE_OPEN = 1, PP_WEBSOCKETREADYSTATE_CLOSING = 2,
  PP_WEBSOCKETREADYSTATE_CLOSED = 3
}
 
enum  PP_WebSocketCloseCode {
  PP_WEBSOCKETSTATUSCODE_NOT_SPECIFIED = 1005, PP_WEBSOCKETSTATUSCODE_NORMAL_CLOSURE = 1000, PP_WEBSOCKETSTATUSCODE_GOING_AWAY = 1001, PP_WEBSOCKETSTATUSCODE_PROTOCOL_ERROR = 1002,
  PP_WEBSOCKETSTATUSCODE_UNSUPPORTED_DATA = 1003, PP_WEBSOCKETSTATUSCODE_NO_STATUS_RECEIVED = 1005, PP_WEBSOCKETSTATUSCODE_ABNORMAL_CLOSURE = 1006, PP_WEBSOCKETSTATUSCODE_INVALID_FRAME_PAYLOAD_DATA = 1007,
  PP_WEBSOCKETSTATUSCODE_POLICY_VIOLATION = 1008, PP_WEBSOCKETSTATUSCODE_MESSAGE_TOO_BIG = 1009, PP_WEBSOCKETSTATUSCODE_MANDATORY_EXTENSION = 1010, PP_WEBSOCKETSTATUSCODE_INTERNAL_SERVER_ERROR = 1011,
  PP_WEBSOCKETSTATUSCODE_TLS_HANDSHAKE = 1015, PP_WEBSOCKETSTATUSCODE_USER_REGISTERED_MIN = 3000, PP_WEBSOCKETSTATUSCODE_USER_REGISTERED_MAX = 3999, PP_WEBSOCKETSTATUSCODE_USER_PRIVATE_MIN = 4000,
  PP_WEBSOCKETSTATUSCODE_USER_PRIVATE_MAX = 4999
}
 
enum  PP_DecryptedFrameFormat { PP_DECRYPTEDFRAMEFORMAT_UNKNOWN = 0, PP_DECRYPTEDFRAMEFORMAT_YV12 = 1, PP_DECRYPTEDFRAMEFORMAT_I420 = 2 }
 
enum  PP_DecryptedSampleFormat {
  PP_DECRYPTEDSAMPLEFORMAT_UNKNOWN = 0, PP_DECRYPTEDSAMPLEFORMAT_U8 = 1, PP_DECRYPTEDSAMPLEFORMAT_S16 = 2, PP_DECRYPTEDSAMPLEFORMAT_S32 = 3,
  PP_DECRYPTEDSAMPLEFORMAT_F32 = 4, PP_DECRYPTEDSAMPLEFORMAT_PLANAR_S16 = 5, PP_DECRYPTEDSAMPLEFORMAT_PLANAR_F32 = 6
}
 
enum  PP_DecryptResult {
  PP_DECRYPTRESULT_SUCCESS = 0, PP_DECRYPTRESULT_DECRYPT_NOKEY = 1, PP_DECRYPTRESULT_NEEDMOREDATA = 2, PP_DECRYPTRESULT_DECRYPT_ERROR = 3,
  PP_DECRYPTRESULT_DECODE_ERROR = 4
}
 
enum  PP_DecryptedFramePlanes { PP_DECRYPTEDFRAMEPLANES_Y = 0, PP_DECRYPTEDFRAMEPLANES_U = 1, PP_DECRYPTEDFRAMEPLANES_V = 2 }
 
enum  PP_AudioCodec { PP_AUDIOCODEC_UNKNOWN = 0, PP_AUDIOCODEC_VORBIS = 1, PP_AUDIOCODEC_AAC = 2 }
 
enum  PP_VideoCodec { PP_VIDEOCODEC_UNKNOWN = 0, PP_VIDEOCODEC_VP8 = 1, PP_VIDEOCODEC_H264 = 2, PP_VIDEOCODEC_VP9 = 3 }
 
enum  PP_VideoCodecProfile {
  PP_VIDEOCODECPROFILE_UNKNOWN = 0, PP_VIDEOCODECPROFILE_NOT_NEEDED = 1, PP_VIDEOCODECPROFILE_H264_BASELINE = 2, PP_VIDEOCODECPROFILE_H264_MAIN = 3,
  PP_VIDEOCODECPROFILE_H264_EXTENDED = 4, PP_VIDEOCODECPROFILE_H264_HIGH = 5, PP_VIDEOCODECPROFILE_H264_HIGH_10 = 6, PP_VIDEOCODECPROFILE_H264_HIGH_422 = 7,
  PP_VIDEOCODECPROFILE_H264_HIGH_444_PREDICTIVE = 8
}
 
enum  PP_DecryptorStreamType { PP_DECRYPTORSTREAMTYPE_AUDIO = 0, PP_DECRYPTORSTREAMTYPE_VIDEO = 1 }
 
enum  PP_SessionType { PP_SESSIONTYPE_TEMPORARY = 0, PP_SESSIONTYPE_PERSISTENT_LICENSE = 1, PP_SESSIONTYPE_PERSISTENT_RELEASE = 2 }
 
enum  PP_InitDataType { PP_INITDATATYPE_CENC = 0, PP_INITDATATYPE_KEYIDS = 1, PP_INITDATATYPE_WEBM = 2 }
 
enum  PP_CdmExceptionCode {
  PP_CDMEXCEPTIONCODE_NOTSUPPORTEDERROR = 1, PP_CDMEXCEPTIONCODE_INVALIDSTATEERROR = 2, PP_CDMEXCEPTIONCODE_INVALIDACCESSERROR = 3, PP_CDMEXCEPTIONCODE_QUOTAEXCEEDEDERROR = 4,
  PP_CDMEXCEPTIONCODE_UNKNOWNERROR = 5, PP_CDMEXCEPTIONCODE_CLIENTERROR = 6, PP_CDMEXCEPTIONCODE_OUTPUTERROR = 7
}
 
enum  PP_CdmMessageType { PP_CDMMESSAGETYPE_LICENSE_REQUEST = 0, PP_CDMMESSAGETYPE_LICENSE_RENEWAL = 1, PP_CDMMESSAGETYPE_LICENSE_RELEASE = 2 }
 
enum  PP_CdmKeyStatus {
  PP_CDMKEYSTATUS_USABLE = 0, PP_CDMKEYSTATUS_INVALID = 1, PP_CDMKEYSTATUS_EXPIRED = 2, PP_CDMKEYSTATUS_OUTPUTRESTRICTED = 3,
  PP_CDMKEYSTATUS_OUTPUTDOWNSCALED = 4, PP_CDMKEYSTATUS_STATUSPENDING = 5, PP_CDMKEYSTATUS_RELEASED = 6
}
 
enum  PP_PrivateFontCharset {
  PP_PRIVATEFONTCHARSET_ANSI = 0, PP_PRIVATEFONTCHARSET_DEFAULT = 1, PP_PRIVATEFONTCHARSET_SYMBOL = 2, PP_PRIVATEFONTCHARSET_MAC = 77,
  PP_PRIVATEFONTCHARSET_SHIFTJIS = 128, PP_PRIVATEFONTCHARSET_HANGUL = 129, PP_PRIVATEFONTCHARSET_JOHAB = 130, PP_PRIVATEFONTCHARSET_GB2312 = 134,
  PP_PRIVATEFONTCHARSET_CHINESEBIG5 = 136, PP_PRIVATEFONTCHARSET_GREEK = 161, PP_PRIVATEFONTCHARSET_TURKISH = 162, PP_PRIVATEFONTCHARSET_VIETNAMESE = 163,
  PP_PRIVATEFONTCHARSET_HEBREW = 177, PP_PRIVATEFONTCHARSET_ARABIC = 178, PP_PRIVATEFONTCHARSET_BALTIC = 186, PP_PRIVATEFONTCHARSET_RUSSIAN = 204,
  PP_PRIVATEFONTCHARSET_THAI = 222, PP_PRIVATEFONTCHARSET_EASTEUROPE = 238, PP_PRIVATEFONTCHARSET_OEM = 255
}
 
enum  PP_FlashLSORestrictions { PP_FLASHLSORESTRICTIONS_NONE = 1, PP_FLASHLSORESTRICTIONS_BLOCK = 2, PP_FLASHLSORESTRICTIONS_IN_MEMORY = 3 }
 
enum  PP_FlashSetting {
  PP_FLASHSETTING_3DENABLED = 1, PP_FLASHSETTING_INCOGNITO = 2, PP_FLASHSETTING_STAGE3DENABLED = 3, PP_FLASHSETTING_LANGUAGE = 4,
  PP_FLASHSETTING_NUMCORES = 5, PP_FLASHSETTING_LSORESTRICTIONS = 6, PP_FLASHSETTING_STAGE3DBASELINEENABLED = 7
}
 
enum  PP_FlashCrashKey { PP_FLASHCRASHKEY_URL = 1, PP_FLASHCRASHKEY_RESOURCE_URL = 2 }
 
enum  PP_Flash_Clipboard_Type { PP_FLASH_CLIPBOARD_TYPE_STANDARD = 0, PP_FLASH_CLIPBOARD_TYPE_SELECTION = 1 }
 
enum  PP_Flash_Clipboard_Format { PP_FLASH_CLIPBOARD_FORMAT_INVALID = 0, PP_FLASH_CLIPBOARD_FORMAT_PLAINTEXT = 1, PP_FLASH_CLIPBOARD_FORMAT_HTML = 2, PP_FLASH_CLIPBOARD_FORMAT_RTF = 3 }
 
enum  PP_Flash_MenuItem_Type { PP_FLASH_MENUITEM_TYPE_NORMAL = 0, PP_FLASH_MENUITEM_TYPE_CHECKBOX = 1, PP_FLASH_MENUITEM_TYPE_SEPARATOR = 2, PP_FLASH_MENUITEM_TYPE_SUBMENU = 3 }
 
enum  PP_HostResolver_Private_Flags { PP_HOST_RESOLVER_PRIVATE_FLAGS_CANONNAME = 1 << 0, PP_HOST_RESOLVER_PRIVATE_FLAGS_LOOPBACK_ONLY = 1 << 1 }
 
enum  PP_ExternalPluginResult { PP_EXTERNAL_PLUGIN_OK = 0, PP_EXTERNAL_PLUGIN_FAILED = 1, PP_EXTERNAL_PLUGIN_ERROR_MODULE = 2, PP_EXTERNAL_PLUGIN_ERROR_INSTANCE = 3 }
 
enum  PP_IsolatedFileSystemType_Private { PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_INVALID = 0, PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_CRX = 1, PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE = 2 }
 
enum  PP_NetAddressFamily_Private { PP_NETADDRESSFAMILY_PRIVATE_UNSPECIFIED = 0, PP_NETADDRESSFAMILY_PRIVATE_IPV4 = 1, PP_NETADDRESSFAMILY_PRIVATE_IPV6 = 2 }
 
enum  PP_OutputProtectionMethod_Private { PP_OUTPUT_PROTECTION_METHOD_PRIVATE_NONE = 0, PP_OUTPUT_PROTECTION_METHOD_PRIVATE_HDCP = 1 << 0 }
 
enum  PP_OutputProtectionLinkType_Private {
  PP_OUTPUT_PROTECTION_LINK_TYPE_PRIVATE_NONE = 0, PP_OUTPUT_PROTECTION_LINK_TYPE_PRIVATE_UNKNOWN = 1 << 0, PP_OUTPUT_PROTECTION_LINK_TYPE_PRIVATE_INTERNAL = 1 << 1, PP_OUTPUT_PROTECTION_LINK_TYPE_PRIVATE_VGA = 1 << 2,
  PP_OUTPUT_PROTECTION_LINK_TYPE_PRIVATE_HDMI = 1 << 3, PP_OUTPUT_PROTECTION_LINK_TYPE_PRIVATE_DVI = 1 << 4, PP_OUTPUT_PROTECTION_LINK_TYPE_PRIVATE_DISPLAYPORT = 1 << 5, PP_OUTPUT_PROTECTION_LINK_TYPE_PRIVATE_NETWORK = 1 << 6
}
 
enum  PP_TCPSocketOption_Private { PP_TCPSOCKETOPTION_PRIVATE_INVALID = 0, PP_TCPSOCKETOPTION_PRIVATE_NO_DELAY = 1 }
 
enum  PP_UDPSocketFeature_Private { PP_UDPSOCKETFEATURE_PRIVATE_ADDRESS_REUSE = 0, PP_UDPSOCKETFEATURE_PRIVATE_BROADCAST = 1, PP_UDPSOCKETFEATURE_PRIVATE_COUNT = 2 }
 
enum  PP_X509Certificate_Private_Field {
  PP_X509CERTIFICATE_PRIVATE_ISSUER_COMMON_NAME = 0, PP_X509CERTIFICATE_PRIVATE_ISSUER_LOCALITY_NAME = 1, PP_X509CERTIFICATE_PRIVATE_ISSUER_STATE_OR_PROVINCE_NAME = 2, PP_X509CERTIFICATE_PRIVATE_ISSUER_COUNTRY_NAME = 3,
  PP_X509CERTIFICATE_PRIVATE_ISSUER_ORGANIZATION_NAME = 4, PP_X509CERTIFICATE_PRIVATE_ISSUER_ORGANIZATION_UNIT_NAME = 5, PP_X509CERTIFICATE_PRIVATE_ISSUER_UNIQUE_ID = 6, PP_X509CERTIFICATE_PRIVATE_SUBJECT_COMMON_NAME = 7,
  PP_X509CERTIFICATE_PRIVATE_SUBJECT_LOCALITY_NAME = 8, PP_X509CERTIFICATE_PRIVATE_SUBJECT_STATE_OR_PROVINCE_NAME = 9, PP_X509CERTIFICATE_PRIVATE_SUBJECT_COUNTRY_NAME = 10, PP_X509CERTIFICATE_PRIVATE_SUBJECT_ORGANIZATION_NAME = 11,
  PP_X509CERTIFICATE_PRIVATE_SUBJECT_ORGANIZATION_UNIT_NAME = 12, PP_X509CERTIFICATE_PRIVATE_SUBJECT_UNIQUE_ID = 13, PP_X509CERTIFICATE_PRIVATE_VERSION = 14, PP_X509CERTIFICATE_PRIVATE_SERIAL_NUMBER = 15,
  PP_X509CERTIFICATE_PRIVATE_SIGNATURE_ALGORITHM_OID = 16, PP_X509CERTIFICATE_PRIVATE_SIGNATURE_ALGORITHM_PARAMATERS_RAW = 17, PP_X509CERTIFICATE_PRIVATE_VALIDITY_NOT_BEFORE = 18, PP_X509CERTIFICATE_PRIVATE_VALIDITY_NOT_AFTER = 19,
  PP_X509CERTIFICATE_PRIVATE_SUBJECT_PUBLIC_KEY_ALGORITHM_OID = 20, PP_X509CERTIFICATE_PRIVATE_SUBJECT_PUBLIC_KEY = 21, PP_X509CERTIFICATE_PRIVATE_RAW = 22, PP_X509CERTIFICATE_PRIVATE_ISSUER_DISTINGUISHED_NAME = 23,
  PP_X509CERTIFICATE_PRIVATE_SUBJECT_DISTINGUISHED_NAME = 24
}
 
enum  PPB_X509Certificate_Private_Version { PP_X509CERTIFICATE_PRIVATE_V1 = 0, PP_X509CERTIFICATE_PRIVATE_V2 = 1, PP_X509CERTIFICATE_PRIVATE_V3 = 2 }
 
enum  PP_Flash_BrowserOperations_SettingType { PP_FLASH_BROWSEROPERATIONS_SETTINGTYPE_CAMERAMIC = 0, PP_FLASH_BROWSEROPERATIONS_SETTINGTYPE_PEERNETWORKING = 1 }
 
enum  PP_Flash_BrowserOperations_Permission { PP_FLASH_BROWSEROPERATIONS_PERMISSION_DEFAULT = 0, PP_FLASH_BROWSEROPERATIONS_PERMISSION_ALLOW = 1, PP_FLASH_BROWSEROPERATIONS_PERMISSION_BLOCK = 2, PP_FLASH_BROWSEROPERATIONS_PERMISSION_ASK = 3 }
 
enum  PP_AudioCodec_Type_Samsung {
  PP_AUDIOCODEC_TYPE_SAMSUNG_UNKNOWN = 0, PP_AUDIOCODEC_TYPE_SAMSUNG_AAC = 1, PP_AUDIOCODEC_TYPE_SAMSUNG_MP3 = 2, PP_AUDIOCODEC_TYPE_SAMSUNG_PCM = 3,
  PP_AUDIOCODEC_TYPE_SAMSUNG_VORBIS = 4, PP_AUDIOCODEC_TYPE_SAMSUNG_FLAC = 5, PP_AUDIOCODEC_TYPE_SAMSUNG_AMR_NB = 6, PP_AUDIOCODEC_TYPE_SAMSUNG_AMR_WB = 7,
  PP_AUDIOCODEC_TYPE_SAMSUNG_PCM_MULAW = 8, PP_AUDIOCODEC_TYPE_SAMSUNG_GSM_MS = 9, PP_AUDIOCODEC_TYPE_SAMSUNG_PCM_S16BE = 10, PP_AUDIOCODEC_TYPE_SAMSUNG_PCM_S24BE = 11,
  PP_AUDIOCODEC_TYPE_SAMSUNG_OPUS = 12, PP_AUDIOCODEC_TYPE_SAMSUNG_EAC3 = 13, PP_AUDIOCODEC_TYPE_SAMSUNG_MP2 = 14, PP_AUDIOCODEC_TYPE_SAMSUNG_DTS = 15,
  PP_AUDIOCODEC_TYPE_SAMSUNG_AC3 = 16, PP_AUDIOCODEC_TYPE_SAMSUNG_WMAV1 = 17, PP_AUDIOCODEC_TYPE_SAMSUNG_WMAV2 = 18, PP_AUDIOCODEC_TYPE_SAMSUNG_MAX
}
 
enum  PP_AudioCodec_Profile_Samsung {
  PP_AUDIOCODEC_PROFILE_SAMSUNG_UNKNOWN = -1, PP_AUDIOCODEC_PROFILE_SAMSUNG_AAC_MAIN = 0, PP_AUDIOCODEC_PROFILE_SAMSUNG_AAC_LOW = 1, PP_AUDIOCODEC_PROFILE_SAMSUNG_AAC_SSR = 2,
  PP_AUDIOCODEC_PROFILE_SAMSUNG_AAC_LTP = 3, PP_AUDIOCODEC_PROFILE_SAMSUNG_AAC_HE = 4, PP_AUDIOCODEC_PROFILE_SAMSUNG_AAC_HE_V2 = 5, PP_AUDIOCODEC_PROFILE_SAMSUNG_AAC_LD = 6,
  PP_AUDIOCODEC_PROFILE_SAMSUNG_AAC_ELD = 7, PP_AUDIOCODEC_PROFILE_SAMSUNG_MPEG2_AAC_LOW = 8, PP_AUDIOCODEC_PROFILE_SAMSUNG_MPEG2_AAC_HE = 9, PP_AUDIOCODEC_PROFILE_SAMSUNG_DTS = 10,
  PP_AUDIOCODEC_PROFILE_SAMSUNG_DTS_ES = 11, PP_AUDIOCODEC_PROFILE_SAMSUNG_DTS_96_24 = 12, PP_AUDIOCODEC_PROFILE_SAMSUNG_DTS_HD_HRA = 13, PP_AUDIOCODEC_PROFILE_SAMSUNG_DTS_HD_MA = 14,
  PP_AUDIOCODEC_PROFILE_SAMSUNG_LAST = PP_AUDIOCODEC_PROFILE_SAMSUNG_DTS_HD_MA
}
 
enum  PP_SampleFormat_Samsung {
  PP_SAMPLEFORMAT_SAMSUNG_UNKNOWN = 0, PP_SAMPLEFORMAT_SAMSUNG_U8 = 1, PP_SAMPLEFORMAT_SAMSUNG_S16 = 2, PP_SAMPLEFORMAT_SAMSUNG_S32 = 3,
  PP_SAMPLEFORMAT_SAMSUNG_F32 = 4, PP_SAMPLEFORMAT_SAMSUNG_PLANARS16 = 5, PP_SAMPLEFORMAT_SAMSUNG_PLANARF32 = 6, PP_SAMPLEFORMAT_SAMSUNG_MAX
}
 
enum  PP_ChannelLayout_Samsung {
  PP_CHANNEL_LAYOUT_SAMSUNG_NONE = 0, PP_CHANNEL_LAYOUT_SAMSUNG_UNSUPPORTED = 1, PP_CHANNEL_LAYOUT_SAMSUNG_MONO = 2, PP_CHANNEL_LAYOUT_SAMSUNG_STEREO = 3,
  PP_CHANNEL_LAYOUT_SAMSUNG_2_1 = 4, PP_CHANNEL_LAYOUT_SAMSUNG_SURROUND = 5, PP_CHANNEL_LAYOUT_SAMSUNG_4_0 = 6, PP_CHANNEL_LAYOUT_SAMSUNG_2_2 = 7,
  PP_CHANNEL_LAYOUT_SAMSUNG_QUAD = 8, PP_CHANNEL_LAYOUT_SAMSUNG_5_0 = 9, PP_CHANNEL_LAYOUT_SAMSUNG_5_1 = 10, PP_CHANNEL_LAYOUT_SAMSUNG_5_0_BACK = 11,
  PP_CHANNEL_LAYOUT_SAMSUNG_5_1_BACK = 12, PP_CHANNEL_LAYOUT_SAMSUNG_7_0 = 13, PP_CHANNEL_LAYOUT_SAMSUNG_7_1 = 14, PP_CHANNEL_LAYOUT_SAMSUNG_7_1_WIDE = 15,
  PP_CHANNEL_LAYOUT_SAMSUNG_STEREO_DOWNMIX = 16, PP_CHANNEL_LAYOUT_SAMSUNG_2POINT1 = 17, PP_CHANNEL_LAYOUT_SAMSUNG_3_1 = 18, PP_CHANNEL_LAYOUT_SAMSUNG_4_1 = 19,
  PP_CHANNEL_LAYOUT_SAMSUNG_6_0 = 20, PP_CHANNEL_LAYOUT_SAMSUNG_6_0_FRONT = 21, PP_CHANNEL_LAYOUT_SAMSUNG_HEXAGONAL = 22, PP_CHANNEL_LAYOUT_SAMSUNG_6_1 = 23,
  PP_CHANNEL_LAYOUT_SAMSUNG_6_1_BACK = 24, PP_CHANNEL_LAYOUT_SAMSUNG_6_1_FRONT = 25, PP_CHANNEL_LAYOUT_SAMSUNG_7_0_FRONT = 26, PP_CHANNEL_LAYOUT_SAMSUNG_7_1_WIDE_BACK = 27,
  PP_CHANNEL_LAYOUT_SAMSUNG_OCTAGONAL = 28, PP_CHANNEL_LAYOUT_SAMSUNG_DISCRETE = 29, PP_CHANNEL_LAYOUT_SAMSUNG_MAX
}
 
enum  PP_VideoCodec_Type_Samsung {
  PP_VIDEOCODEC_TYPE_SAMSUNG_UNKNOWN = 0, PP_VIDEOCODEC_TYPE_SAMSUNG_H264 = 1, PP_VIDEOCODEC_TYPE_SAMSUNG_VC1 = 2, PP_VIDEOCODEC_TYPE_SAMSUNG_MPEG2 = 3,
  PP_VIDEOCODEC_TYPE_SAMSUNG_MPEG4 = 4, PP_VIDEOCODEC_TYPE_SAMSUNG_THEORA = 5, PP_VIDEOCODEC_TYPE_SAMSUNG_VP8 = 6, PP_VIDEOCODEC_TYPE_SAMSUNG_VP9 = 7,
  PP_VIDEOCODEC_TYPE_SAMSUNG_H263 = 8, PP_VIDEOCODEC_TYPE_SAMSUNG_WMV1 = 9, PP_VIDEOCODEC_TYPE_SAMSUNG_WMV2 = 10, PP_VIDEOCODEC_TYPE_SAMSUNG_WMV3 = 11,
  PP_VIDEOCODEC_TYPE_SAMSUNG_INDEO3 = 12, PP_VIDEOCODEC_TYPE_SAMSUNG_H265 = 13, PP_VIDEOCODEC_TYPE_SAMSUNG_MAX = PP_VIDEOCODEC_TYPE_SAMSUNG_VP9, PP_VIDEOCODEC_TYPE_SAMSUNG_LAST = PP_VIDEOCODEC_TYPE_SAMSUNG_H265
}
 
enum  PP_VideoCodec_Profile_Samsung {
  PP_VIDEOCODEC_PROFILE_SAMSUNG_UNKNOWN = -1, PP_VIDEOCODEC_PROFILE_SAMSUNG_H264_MIN = 0, PP_VIDEOCODEC_PROFILE_SAMSUNG_H264_BASELINE, PP_VIDEOCODEC_PROFILE_SAMSUNG_H264_MAIN = 1,
  PP_VIDEOCODEC_PROFILE_SAMSUNG_H264_EXTENDED = 2, PP_VIDEOCODEC_PROFILE_SAMSUNG_H264_HIGH = 3, PP_VIDEOCODEC_PROFILE_SAMSUNG_H264_HIGH10 = 4, PP_VIDEOCODEC_PROFILE_SAMSUNG_H264_HIGH422 = 5,
  PP_VIDEOCODEC_PROFILE_SAMSUNG_H264_HIGH444PREDICTIVE = 6, PP_VIDEOCODEC_PROFILE_SAMSUNG_H264_SCALABLEBASELINE = 7, PP_VIDEOCODEC_PROFILE_SAMSUNG_H264_SCALABLEHIGH = 8, PP_VIDEOCODEC_PROFILE_SAMSUNG_H264_STEREOHIGH = 9,
  PP_VIDEOCODEC_PROFILE_SAMSUNG_H264_MULTIVIEWHIGH = 10, PP_VIDEOCODEC_PROFILE_SAMSUNG_H264_MAX, PP_VIDEOCODEC_PROFILE_SAMSUNG_VP8_MIN = 11, PP_VIDEOCODEC_PROFILE_SAMSUNG_VP8_MAIN,
  PP_VIDEOCODEC_PROFILE_SAMSUNG_VP8_MAX, PP_VIDEOCODEC_PROFILE_SAMSUNG_VP9_MIN = 12, PP_VIDEOCODEC_PROFILE_SAMSUNG_VP9_MAIN, PP_VIDEOCODEC_PROFILE_SAMSUNG_VP9_MAX,
  PP_VIDEOCODEC_PROFILE_SAMSUNG_MAX = PP_VIDEOCODEC_PROFILE_SAMSUNG_VP9_MAX, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG2_MIN = 13, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG2_422, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG2_HIGH = 14,
  PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG2_SS = 15, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG2_SNR_SCALABLE = 16, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG2_MAIN = 17, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG2_SIMPLE = 18,
  PP_VIDEOCODEC_PROFILE_SAMSUNG_VC1_SIMPLE = 19, PP_VIDEOCODEC_PROFILE_SAMSUNG_VC1_MAIN = 20, PP_VIDEOCODEC_PROFILE_SAMSUNG_VC1_COMPLEX = 21, PP_VIDEOCODEC_PROFILE_SAMSUNG_VC1_ADVANCED = 22,
  PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG4_SIMPLE = 23, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG4_SIMPLE_SCALABLE = 24, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG4_CORE = 25, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG4_MAIN = 26,
  PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG4_N_BIT = 27, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG4_SCALABLE_TEXTURE = 28, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG4_SIMPLE_FACE_ANIMATION = 29, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG4_BASIC_ANIMATED_TEXTURE = 30,
  PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG4_HYBRID = 31, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG4_ADVANCED_REAL_TIME = 32, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG4_CORE_SCALABLE = 33, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG4_ADVANCED_CODING = 34,
  PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG4_ADVANCED_CORE = 35, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG4_ADVANCED_SCALABLE_TEXTURE = 36, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG4_SIMPLE_STUDIO = 37, PP_VIDEOCODEC_PROFILE_SAMSUNG_MPEG4_ADVANCED_SIMPLE = 38,
  PP_VIDEOCODEC_PROFILE_SAMSUNG_LAST
}
 
enum  PP_VideoFrame_Format_Samsung {
  PP_VIDEOFRAME_FORMAT_SAMSUNG_INVALID = 0, PP_VIDEOFRAME_FORMAT_SAMSUNG_RGB32 = 4, PP_VIDEOFRAME_FORMAT_SAMSUNG_YV12 = 6, PP_VIDEOFRAME_FORMAT_SAMSUNG_YV16 = 7,
  PP_VIDEOFRAME_FORMAT_SAMSUNG_EMPTY = 9, PP_VIDEOFRAME_FORMAT_SAMSUNG_I420 = 11, PP_VIDEOFRAME_FORMAT_SAMSUNG_NATIVE_TEXTURE = 12, PP_VIDEOFRAME_FORMAT_SAMSUNG_HOLE = 13,
  PP_VIDEOFRAME_FORMAT_SAMSUNG_YV12A = 14, PP_VIDEOFRAME_FORMAT_SAMSUNG_LAST = PP_VIDEOFRAME_FORMAT_SAMSUNG_YV12A
}
 
enum  PP_ElementaryStream_Type_Samsung {
  PP_ELEMENTARYSTREAM_TYPE_SAMSUNG_UNKNOWN = -1, PP_ELEMENTARYSTREAM_TYPE_SAMSUNG_VIDEO = 0, PP_ELEMENTARYSTREAM_TYPE_SAMSUNG_AUDIO = 1, PP_ELEMENTARYSTREAM_TYPE_SAMSUNG_TEXT = 2,
  PP_ELEMENTARYSTREAM_TYPE_SAMSUNG_MAX = 3
}
 
enum  PP_StreamInitializationMode { PP_STREAMINITIALIZATIONMODE_FULL = 0, PP_STREAMINITIALIZATIONMODE_MINIMAL = 1 }
 
enum  PP_MediaPlayerState {
  PP_MEDIAPLAYERSTATE_NONE = 0, PP_MEDIAPLAYERSTATE_UNINITIALIZED = 1, PP_MEDIAPLAYERSTATE_READY = 2, PP_MEDIAPLAYERSTATE_PLAYING = 3,
  PP_MEDIAPLAYERSTATE_PAUSED = 4, PP_MEDIAPLAYERSTATE_LAST = PP_MEDIAPLAYERSTATE_PAUSED
}
 
enum  PP_MediaPlayerError {
  PP_MEDIAPLAYERERROR_NONE = 0, PP_MEDIAPLAYERERROR_BAD_ARGUMENT = 1, PP_MEDIAPLAYERERROR_NETWORK = 2, PP_MEDIAPLAYERERROR_DEMUX = 3,
  PP_MEDIAPLAYERERROR_DECRYPT = 4, PP_MEDIAPLAYERERROR_DECODE = 5, PP_MEDIAPLAYERERROR_RENDER = 6, PP_MEDIAPLAYERERROR_UNSUPPORTED_CODEC = 7,
  PP_MEDIAPLAYERERROR_UNSUPPORTED_CONTAINER = 8, PP_MEDIAPLAYERERROR_RESOURCE = 9, PP_MEDIAPLAYERERROR_UNKNOWN = 10, PP_MEDIAPLAYERERROR_UNSUPPORTED_SUBTITLE_FORMAT = 11,
  PP_MEDIAPLAYERERROR_LAST = PP_MEDIAPLAYERERROR_UNSUPPORTED_SUBTITLE_FORMAT
}
 
enum  PP_MediaPlayerDRMType {
  PP_MEDIAPLAYERDRMTYPE_UNKNOWN = 0, PP_MEDIAPLAYERDRMTYPE_PLAYREADY = 1, PP_MEDIAPLAYERDRMTYPE_MARLIN = 2, PP_MEDIAPLAYERDRMTYPE_VERIMATRIX = 3,
  PP_MEDIAPLAYERDRMTYPE_WIDEVINE_CLASSIC = 4, PP_MEDIAPLAYERDRMTYPE_WIDEVINE_MODULAR = 5, PP_MEDIAPLAYERDRMTYPE_SECUREMEDIA = 6, PP_MEDIAPLAYERDRMTYPE_SDRM = 7,
  PP_MEDIAPLAYERDRMTYPE_CLEARKEY = 8, PP_MEDIAPLAYERDRMTYPE_EXTERNAL = 9, PP_MEDIAPLAYERDRMTYPE_LAST = PP_MEDIAPLAYERDRMTYPE_EXTERNAL
}
 
enum  PP_MediaPlayerDRMOperation {
  PP_MEDIAPLAYERDRMOPERATION_SETPROPERTIES = 1, PP_MEDIAPLAYERDRMOPERATION_GENCHALLENGE = 2, PP_MEDIAPLAYERDRMOPERATION_INSTALLLICENSE = 3, PP_MEDIAPLAYERDRMOPERATION_DELETELICENSE = 4,
  PP_MEDIAPLAYERDRMOPERATION_PROCESSINITIATOR = 5, PP_MEDIAPLAYERDRMOPERATION_GETVERSION = 6, PP_MEDIAPLAYERDRMOPERATION_LAST = PP_MEDIAPLAYERDRMOPERATION_GETVERSION
}
 
enum  PP_StreamingProperty {
  PP_STREAMINGPROPERTY_COOKIE = 1, PP_STREAMINGPROPERTY_USER_AGENT = 2, PP_STREAMINGPROPERTY_ADAPTIVE_INFO = 3, PP_STREAMINGPROPERTY_TYPE = 4,
  PP_STREAMINGPROPERTY_AVAILABLE_BITRATES = 5, PP_STREAMINGPROPERTY_THROUGHPUT = 6, PP_STREAMINGPROPERTY_DURATION = 7, PP_STREAMINGPROPERTY_CURRENT_BITRATE = 8,
  PP_STREAMINGPROPERTY_LAST = PP_STREAMINGPROPERTY_CURRENT_BITRATE
}
 
enum  PP_MediaPlayerMode { PP_MEDIAPLAYERMODE_DEFAULT = 0, PP_MEDIAPLAYERMODE_D2TV = 1, PP_MEDIAPLAYERMODE_LAST = PP_MEDIAPLAYERMODE_D2TV }
 
enum  PP_BindToInstanceMode { PP_BINDTOINSTANCEMODE_BIND = 0, PP_BINDTOINSTANCEMODE_DONT_BIND = 1, PP_BINDTOINSTANCEMODE_LAST = PP_BINDTOINSTANCEMODE_DONT_BIND }
 
enum  PP_MediaPlayerDisplayMode { PP_MEDIAPLAYERDISPLAYMODE_STRETCH = 0, PP_MEDIAPLAYERDISPLAYMODE_LETTERBOX = 1, PP_MEDIAPLAYERDISPLAYMODE_LAST = PP_MEDIAPLAYERDISPLAYMODE_LETTERBOX }
 
enum  PP_MediaPlayerVr360Mode { PP_MEDIAPLAYERVR360MODE_OFF = 0, PP_MEDIAPLAYERVR360MODE_ON = 1, PP_MEDIAPLAYERVR360MODE_LAST = PP_MEDIAPLAYERVR360MODE_ON }
 
enum  PP_TEEC_Return_Code {
  PP_TEEC_SUCCESS = 0x00000000, PP_TEEC_ERROR_GENERIC = -65536, PP_TEEC_ERROR_ACCESS_DENIED = -65535, PP_TEEC_ERROR_CANCEL = -65534,
  PP_TEEC_ERROR_ACCESS_CONFLICT = -65533, PP_TEEC_ERROR_EXCESS_DATA = -65532, PP_TEEC_ERROR_BAD_FORMAT = -65531, PP_TEEC_ERROR_BAD_PARAMETERS = -65530,
  PP_TEEC_ERROR_BAD_STATE = -65529, PP_TEEC_ERROR_ITEM_NOT_FOUND = -65528, PP_TEEC_ERROR_NOT_IMPLEMENTED = -65527, PP_TEEC_ERROR_NOT_SUPPORTED = -65526,
  PP_TEEC_ERROR_NO_DATA = -65525, PP_TEEC_ERROR_OUT_OF_MEMORY = -65524, PP_TEEC_ERROR_BUSY = -65523, PP_TEEC_ERROR_COMMUNICATION = -65522,
  PP_TEEC_ERROR_SECURITY = -65521, PP_TEEC_ERROR_SHORT_BUFFER = -65520, PP_TEE_ERROR_EXTERNAL_CANCEL = -65519, PP_TEEC_ERROR_TARGET_DEAD = -53212,
  PP_TEE_ERROR_TARGET_DEAD = PP_TEEC_ERROR_TARGET_DEAD
}
 
enum  PP_TEEC_Return_Origin {
  PP_TEEC_ORIGIN_API = 0x1, PP_TEEC_ORIGIN_COMMS = 0x2, PP_TEEC_ORIGIN_TEE = 0x3, PP_TEEC_ORIGIN_TRUSTED_APP = 0x4,
  PP_TEEC_ORIGIN_LAST = PP_TEEC_ORIGIN_TRUSTED_APP
}
 
enum  PP_TEEC_MemoryType { PP_TEEC_MEM_INPUT = 1, PP_TEEC_MEM_OUTPUT = 2 }
 
enum  PP_TEEC_ParameterType {
  PP_TEEC_NONE = 0x00000000, PP_TEEC_VALUE_INPUT = 0x00000001, PP_TEEC_VALUE_OUTPUT = 0x00000002, PP_TEEC_VALUE_INOUT = 0x00000003,
  PP_TEEC_MEMREF_TEMP_INPUT = 0x00000005, PP_TEEC_MEMREF_TEMP_OUTPUT = 0x00000006, PP_TEEC_MEMREF_TEMP_INOUT = 0x00000007, PP_TEEC_MEMREF_WHOLE = 0x0000000C,
  PP_TEEC_MEMREF_PARTIAL_INPUT = 0x0000000D, PP_TEEC_MEMREF_PARTIAL_OUTPUT = 0x0000000E, PP_TEEC_MEMREF_PARTIAL_INOUT = 0x0000000F
}
 
enum  PP_TEEC_LoginMethods {
  PP_TEEC_LOGIN_PUBLIC = 0x00000000, PP_TEEC_LOGIN_USER = 0x00000001, PP_TEEC_LOGIN_GROUP = 0x00000002, PP_TEEC_LOGIN_APPLICATION = 0x00000004,
  PP_TEEC_LOGIN_USER_APPLICATION = 0x00000005, PP_TEEC_LOGIN_GROUP_APPLICATION = 0x00000006
}
 
enum  PP_AudioMode { PP_AUDIOMODE_AUTO = 0, PP_AUDIOMODE_GAME = 1, PP_AUDIOMODE_MUSIC = 2, PP_AUDIOMODE_LAST = PP_AUDIOMODE_MUSIC }
 
enum  PP_BrowserFont_Trusted_Family { PP_BROWSERFONT_TRUSTED_FAMILY_DEFAULT = 0, PP_BROWSERFONT_TRUSTED_FAMILY_SERIF = 1, PP_BROWSERFONT_TRUSTED_FAMILY_SANSSERIF = 2, PP_BROWSERFONT_TRUSTED_FAMILY_MONOSPACE = 3 }
 
enum  PP_BrowserFont_Trusted_Weight {
  PP_BROWSERFONT_TRUSTED_WEIGHT_100 = 0, PP_BROWSERFONT_TRUSTED_WEIGHT_200 = 1, PP_BROWSERFONT_TRUSTED_WEIGHT_300 = 2, PP_BROWSERFONT_TRUSTED_WEIGHT_400 = 3,
  PP_BROWSERFONT_TRUSTED_WEIGHT_500 = 4, PP_BROWSERFONT_TRUSTED_WEIGHT_600 = 5, PP_BROWSERFONT_TRUSTED_WEIGHT_700 = 6, PP_BROWSERFONT_TRUSTED_WEIGHT_800 = 7,
  PP_BROWSERFONT_TRUSTED_WEIGHT_900 = 8, PP_BROWSERFONT_TRUSTED_WEIGHT_NORMAL = PP_BROWSERFONT_TRUSTED_WEIGHT_400, PP_BROWSERFONT_TRUSTED_WEIGHT_BOLD = PP_BROWSERFONT_TRUSTED_WEIGHT_700
}
 
enum  PP_CharSet_Trusted_ConversionError { PP_CHARSET_TRUSTED_CONVERSIONERROR_FAIL, PP_CHARSET_TRUSTED_CONVERSIONERROR_SKIP, PP_CHARSET_TRUSTED_CONVERSIONERROR_SUBSTITUTE }
 

Functions

 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_VideoCaptureStatus_Dev, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_DeviceType_Dev, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_Bool, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_CompletionCallback_Flag, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_FileType, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_FileSystemType, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_Graphics3DAttrib, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_VarType, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_AudioSampleRate, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_LogLevel, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_FileOpenFlags, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_HostResolver_Flag, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_ImageDataFormat, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_InputEvent_Type, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_InputEvent_Modifier, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_InputEvent_MouseButton, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_InputEvent_Class, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_TouchListType, 4)
 
 PP_COMPILE_ASSERT_ENUM_SIZE_IN_BYTES (PP_MouseCursor_Type, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_NetAddress_Family, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_NetworkList_Type, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_NetworkList_State, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_TCPSocket_Option, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_TextInput_Type, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_UDPSocket_Option, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_URLRequestProperty, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_URLResponseProperty, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_WebSocketReadyState, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_WebSocketCloseCode, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_DecryptedFrameFormat, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_DecryptedSampleFormat, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_DecryptResult, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_DecryptedFramePlanes, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_AudioCodec, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_VideoCodec, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_VideoCodecProfile, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_DecryptorStreamType, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_SessionType, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_InitDataType, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_CdmExceptionCode, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_CdmMessageType, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_CdmKeyStatus, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_PrivateFontCharset, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_FlashLSORestrictions, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_FlashSetting, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_FlashCrashKey, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_Flash_Clipboard_Type, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_Flash_Clipboard_Format, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_Flash_MenuItem_Type, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_HostResolver_Private_Flags, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_ExternalPluginResult, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_IsolatedFileSystemType_Private, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_NetAddressFamily_Private, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_OutputProtectionMethod_Private, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_OutputProtectionLinkType_Private, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_TCPSocketOption_Private, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_UDPSocketFeature_Private, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_X509Certificate_Private_Field, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PPB_X509Certificate_Private_Version, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_Flash_BrowserOperations_SettingType, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_Flash_BrowserOperations_Permission, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_AudioCodec_Type_Samsung, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_AudioCodec_Profile_Samsung, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_SampleFormat_Samsung, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_ChannelLayout_Samsung, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_VideoCodec_Type_Samsung, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_VideoCodec_Profile_Samsung, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_VideoFrame_Format_Samsung, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_ElementaryStream_Type_Samsung, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_StreamInitializationMode, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_MediaPlayerState, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_MediaPlayerError, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_MediaPlayerDRMType, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_MediaPlayerDRMOperation, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_StreamingProperty, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_MediaPlayerMode, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_BindToInstanceMode, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_MediaPlayerDisplayMode, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_MediaPlayerVr360Mode, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_TEEC_Return_Code, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_TEEC_Return_Origin, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_TEEC_MemoryType, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_TEEC_ParameterType, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_TEEC_LoginMethods, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_AudioMode, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_BrowserFont_Trusted_Family, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_BrowserFont_Trusted_Weight, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_CharSet_Trusted_ConversionError, 4)
 

Detailed Description

Enumeration Type Documentation

anonymous enum

This enumeration contains enumerators of all PPAPI error codes.

Errors are negative valued. Callers should treat all negative values as a failure, even if it's not in the list, since the possible errors are likely to expand and change over time.

Enumerator
PP_OK 

This value is returned by a function on successful synchronous completion or is passed as a result to a PP_CompletionCallback_Func on successful asynchronous completion.

PP_OK_COMPLETIONPENDING 

This value is returned by a function that accepts a PP_CompletionCallback and cannot complete synchronously. This code indicates that the given callback will be asynchronously notified of the final result once it is available.

PP_ERROR_FAILED 

This value indicates failure for unspecified reasons.

PP_ERROR_ABORTED 

This value indicates failure due to an asynchronous operation being interrupted. The most common cause of this error code is destroying a resource that still has a callback pending. All callbacks are guaranteed to execute, so any callbacks pending on a destroyed resource will be issued with PP_ERROR_ABORTED.

If you get an aborted notification that you aren't expecting, check to make sure that the resource you're using is still in scope. A common mistake is to create a resource on the stack, which will destroy the resource as soon as the function returns.

PP_ERROR_BADARGUMENT 

This value indicates failure due to an invalid argument.

PP_ERROR_BADRESOURCE 

This value indicates failure due to an invalid PP_Resource.

PP_ERROR_NOINTERFACE 

This value indicates failure due to an unavailable PPAPI interface.

PP_ERROR_NOACCESS 

This value indicates failure due to insufficient privileges.

PP_ERROR_NOMEMORY 

This value indicates failure due to insufficient memory.

PP_ERROR_NOSPACE 

This value indicates failure due to insufficient storage space.

PP_ERROR_NOQUOTA 

This value indicates failure due to insufficient storage quota.

PP_ERROR_INPROGRESS 

This value indicates failure due to an action already being in progress.

PP_ERROR_NOTSUPPORTED 

The requested command is not supported by the browser.

PP_ERROR_BLOCKS_MAIN_THREAD 

Returned if you try to use a null completion callback to "block until complete" on the main thread. Blocking the main thread is not permitted to keep the browser responsive (otherwise, you may not be able to handle input events, and there are reentrancy and deadlock issues).

PP_ERROR_MALFORMED_INPUT 

This value indicates that the plugin sent bad input data to a resource, leaving it in an invalid state. The resource can't be used after returning this error and should be released.

PP_ERROR_RESOURCE_FAILED 

This value indicates that a resource has failed. The resource can't be used after returning this error and should be released.

PP_ERROR_FILENOTFOUND 

This value indicates failure due to a file that does not exist.

PP_ERROR_FILEEXISTS 

This value indicates failure due to a file that already exists.

PP_ERROR_FILETOOBIG 

This value indicates failure due to a file that is too big.

PP_ERROR_FILECHANGED 

This value indicates failure due to a file having been modified unexpectedly.

PP_ERROR_NOTAFILE 

This value indicates that the pathname does not reference a file.

PP_ERROR_TIMEDOUT 

This value indicates failure due to a time limit being exceeded.

PP_ERROR_USERCANCEL 

This value indicates that the user cancelled rather than providing expected input.

PP_ERROR_NO_USER_GESTURE 

This value indicates failure due to lack of a user gesture such as a mouse click or key input event. Examples of actions requiring a user gesture are showing the file chooser dialog and going into fullscreen mode.

PP_ERROR_CONTEXT_LOST 

This value indicates that the graphics context was lost due to a power management event.

PP_ERROR_NO_MESSAGE_LOOP 

Indicates an attempt to make a PPAPI call on a thread without previously registering a message loop via PPB_MessageLoop.AttachToCurrentThread. Without this registration step, no PPAPI calls are supported.

PP_ERROR_WRONG_THREAD 

Indicates that the requested operation is not permitted on the current thread.

PP_ERROR_WOULD_BLOCK_THREAD 

Indicates that a null completion callback was used on a thread handling a blocking message from JavaScript. Null completion callbacks "block until complete", which could cause the main JavaScript thread to be blocked excessively.

PP_ERROR_CONNECTION_CLOSED 

This value indicates that the connection was closed. For TCP sockets, it corresponds to a TCP FIN.

PP_ERROR_CONNECTION_RESET 

This value indicates that the connection was reset. For TCP sockets, it corresponds to a TCP RST.

PP_ERROR_CONNECTION_REFUSED 

This value indicates that the connection attempt was refused.

PP_ERROR_CONNECTION_ABORTED 

This value indicates that the connection was aborted. For TCP sockets, it means the connection timed out as a result of not receiving an ACK for data sent. This can include a FIN packet that did not get ACK'd.

PP_ERROR_CONNECTION_FAILED 

This value indicates that the connection attempt failed.

PP_ERROR_CONNECTION_TIMEDOUT 

This value indicates that the connection attempt timed out.

PP_ERROR_ADDRESS_INVALID 

This value indicates that the IP address or port number is invalid.

PP_ERROR_ADDRESS_UNREACHABLE 

This value indicates that the IP address is unreachable. This usually means that there is no route to the specified host or network.

PP_ERROR_ADDRESS_IN_USE 

This value is returned when attempting to bind an address that is already in use.

PP_ERROR_MESSAGE_TOO_BIG 

This value indicates that the message was too large for the transport.

PP_ERROR_NAME_NOT_RESOLVED 

This value indicates that the host name could not be resolved.

anonymous enum

This enumeration contains audio frame count constants. PP_AUDIOMINSAMPLEFRAMECOUNT is the minimum possible frame count. PP_AUDIOMAXSAMPLEFRAMECOUNT is the maximum possible frame count.

PP_AudioBuffer_SampleRate is an enumeration of the different audio sample rates.

PP_AudioBuffer_SampleSize is an enumeration of the different audio sample sizes.

PP_AudioCodec contains audio codec type constants.

PP_AudioMode is an enumeration of the different audio modes.

Audio profiles.

PP_AudioSampleRate is an enumeration of the different audio sampling rates. PP_AUDIOSAMPLERATE_44100 is the sample rate used on CDs and PP_AUDIOSAMPLERATE_48000 is the sample rate used on DVDs and Digital Audio Tapes.

An enum that controls binding Media Player to PPB_Instance graphics during construction. For more details see descriptions of PPB_MediaPlayer_Samsung::Create(PP_Instance) and PPB_MediaPlayer_Samsung::CreateWithOptions(PP_Instance, PP_MediaPlayerMode, PP_BindToInstanceMode).

Enumerator
PP_BINDTOINSTANCEMODE_BIND 

Automatically bind Media Player to PPB_Instance graphics. This should be always used when no other resource that binds to PPB_Instance is used alongside the player.

PP_BINDTOINSTANCEMODE_DONT_BIND 

Don't bind Media Player to PPB_Instance graphics. Useful when other graphical resources that need to be bound to PPB_Instance graphics are used alongside the player.

This enumeration contains blend modes used for computing the result pixels based on the source RGBA values in layers with the RGBA values that are already in the destination framebuffer. alpha_src, color_src: source alpha and color. alpha_dst, color_dst: destination alpha and color (before compositing). Below descriptions of the blend modes assume the colors are pre-multiplied. This interface is still in development (Dev API status) and may change, so is only supported on Dev channel and Canary currently.

Enumerator
PP_BLENDMODE_NONE 

No blending, copy source to the destination directly.

PP_BLENDMODE_SRC_OVER 

Source is placed over the destination. Resulting alpha = alpha_src + alpha_dst - alpha_src * alpha_dst Resulting color = color_src + color_dst * (1 - alpha_src)

PP_BLENDMODE_LAST 

The last blend mode.

enum PP_Bool

The PP_Bool enum is a boolean value for use in PPAPI C headers. The standard bool type is not available to pre-C99 compilers, and is not guaranteed to be compatible between C and C++, whereas the PPAPI C headers can be included from C or C++ code.

Enumerator
PP_BROWSERFONT_TRUSTED_FAMILY_DEFAULT 

Uses the user's default web page font (normally either the default serif or sans serif font).

PP_BROWSERFONT_TRUSTED_FAMILY_SERIF 

These families will use the default web page font corresponding to the given family.

Specifies the font weight. Normally users will only use NORMAL or BOLD.

PP_CdmExceptionCode contains exception code constants.

PP_CdmKeyStatus contains key status constants.

PP_CdmMessageType contains message type constants.

Enumerator
PP_CHARSET_TRUSTED_CONVERSIONERROR_FAIL 

Causes the entire conversion to fail if an error is encountered. The conversion function will return NULL.

PP_CHARSET_TRUSTED_CONVERSIONERROR_SKIP 

Silently skips over errors. Unrepresentable characters and input encoding errors will be removed from the output.

PP_CHARSET_TRUSTED_CONVERSIONERROR_SUBSTITUTE 

Replaces the error or unrepresentable character with a substitution character. When converting to a Unicode character set (UTF-8 or UTF-16) it will use the unicode "substitution character" U+FFFD. When converting to another character set, the character will be charset-specific. For many languages this will be the representation of the '?' character.

This enumeration contains flags used to control how non-NULL callbacks are scheduled by asynchronous methods.

Enumerator
PP_COMPLETIONCALLBACK_FLAG_NONE 

By default any non-NULL callback will always invoked asynchronously, on success or error, even if the operation could complete synchronously without blocking.

The method taking such callback will always return PP_OK_COMPLETIONPENDING. The callback will be invoked on the same thread on which the method was invoked.

NOTE: If the method taking the callback is invoked on a background thread that has no valid PPB_MessageLoop resource attached, the system has no way to run the callback on the correct thread. In this case, a log message will be emitted and the plugin will be made to crash.

PP_COMPLETIONCALLBACK_FLAG_OPTIONAL 

This flag allows any method taking such callback to complete synchronously and not call the callback if the operation would not block. This is useful when performance is an issue, and the operation bandwidth should not be limited to the processing speed of the message loop.

On synchronous method completion, the completion result will be returned by the method itself. Otherwise, the method will return PP_OK_COMPLETIONPENDING, and the callback will be invoked asynchronously on the same thread on which the method was invoked. If there is no valid PPB_MessageLoop attached to that thread, and the callback would normally run asynchronously, the invoked method will return PP_ERROR_NO_MESSAGE_LOOP.

PP_DecryptedFrameFormat contains video frame formats.

PP_DecryptedFramePlanes provides YUV plane index values for accessing plane offsets stored in PP_DecryptedFrameInfo.

PP_DecryptedSampleFormat contains audio sample formats.

PP_DecryptorStreamType contains stream type constants.

The PP_DecryptResult enum contains decryption and decoding result constants.

Enumerator
PP_DECRYPTRESULT_SUCCESS 

The decryption (and/or decoding) operation finished successfully.

PP_DECRYPTRESULT_DECRYPT_NOKEY 

The decryptor did not have the necessary decryption key.

PP_DECRYPTRESULT_NEEDMOREDATA 

The input was accepted by the decoder but no frame(s) can be produced.

PP_DECRYPTRESULT_DECRYPT_ERROR 

An unexpected error happened during decryption.

PP_DECRYPTRESULT_DECODE_ERROR 

An unexpected error happened during decoding.

Device types.

List of elementary stream types of which played media container can consists of.

Values of valid elementary streams can be used to index array.

Enumerator
PP_ELEMENTARYSTREAM_TYPE_SAMSUNG_UNKNOWN 

Unknown Elementary Stream.

PP_ELEMENTARYSTREAM_TYPE_SAMSUNG_VIDEO 

Video Elementary Stream.

PP_ELEMENTARYSTREAM_TYPE_SAMSUNG_AUDIO 

Audio Elementary Stream.

PP_ELEMENTARYSTREAM_TYPE_SAMSUNG_TEXT 

Text/Subtitles Elementary Stream.

PP_ELEMENTARYSTREAM_TYPE_SAMSUNG_MAX 

Number of valid Elementary Streams, which can be used as an array size.

The PP_ExternalPluginResult enum contains result codes from launching an external plugin.

Enumerator
PP_EXTERNAL_PLUGIN_OK 

Successful external plugin call

PP_EXTERNAL_PLUGIN_FAILED 

Unspecified external plugin error

PP_EXTERNAL_PLUGIN_ERROR_MODULE 

Error creating the module

PP_EXTERNAL_PLUGIN_ERROR_INSTANCE 

Error creating and initializing the instance

The PP_FileOpenFlags enum contains file open constants.

Enumerator
PP_FILEOPENFLAG_READ 

Requests read access to a file.

PP_FILEOPENFLAG_WRITE 

Requests write access to a file. May be combined with PP_FILEOPENFLAG_READ to request read and write access.

PP_FILEOPENFLAG_CREATE 

Requests that the file be created if it does not exist. If the file already exists, then this flag is ignored unless PP_FILEOPENFLAG_EXCLUSIVE was also specified, in which case FileIO::Open() will fail.

PP_FILEOPENFLAG_TRUNCATE 

Requests that the file be truncated to length 0 if it exists and is a regular file. PP_FILEOPENFLAG_WRITE must also be specified.

PP_FILEOPENFLAG_EXCLUSIVE 

Requests that the file is created when this flag is combined with PP_FILEOPENFLAG_CREATE. If this flag is specified, and the file already exists, then the FileIO::Open() call will fail.

PP_FILEOPENFLAG_APPEND 

Requests write access to a file, but writes will always occur at the end of the file. Mututally exclusive with PP_FILEOPENFLAG_WRITE.

This is only supported in version 1.2 (Chrome 29) and later.

The PP_FileSystemType enum contains file system type constants.

Enumerator
PP_FILESYSTEMTYPE_INVALID 

For identified invalid return values

PP_FILESYSTEMTYPE_EXTERNAL 

For external file system types

PP_FILESYSTEMTYPE_LOCALPERSISTENT 

For local persistent file system types

PP_FILESYSTEMTYPE_LOCALTEMPORARY 

For local temporary file system types

PP_FILESYSTEMTYPE_ISOLATED 

For isolated file system types

PP_FILESYSTEMTYPE_REMOVABLESTORAGE 

For file system types on local storage devices

The PP_FileType enum contains file type constants.

Enumerator
PP_FILETYPE_REGULAR 

A regular file type

PP_FILETYPE_DIRECTORY 

A directory

PP_FILETYPE_OTHER 

A catch-all for unidentified types

This enumeration contains the predefined clipboard data formats.

Enumerator
PP_FLASH_CLIPBOARD_FORMAT_INVALID 

Indicates an invalid or unsupported clipboard data format.

PP_FLASH_CLIPBOARD_FORMAT_PLAINTEXT 

Indicates plaintext clipboard data. The format expected/returned is a PP_VARTYPE_STRING.

PP_FLASH_CLIPBOARD_FORMAT_HTML 

Indicates HTML clipboard data. The format expected/returned is a PP_VARTYPE_STRING.

PP_FLASH_CLIPBOARD_FORMAT_RTF 

Indicates RTF clipboard data. The format expected/returned is a PP_VARTYPE_ARRAY_BUFFER.

This enumeration contains the types of clipboards that can be accessed. These types correspond to clipboard types in WebKit.

Enumerator
PP_FLASH_CLIPBOARD_TYPE_STANDARD 

The standard clipboard.

PP_FLASH_CLIPBOARD_TYPE_SELECTION 

The selection clipboard (e.g., on Linux).

This enum provides keys for setting breakpad crash report data.

Enumerator
PP_FLASHCRASHKEY_URL 

Specifies the document URL which contains the flash instance.

PP_FLASHCRASHKEY_RESOURCE_URL 

Specifies the URL of the current swf.

Enumerator
PP_FLASHLSORESTRICTIONS_NONE 

No restrictions on Flash LSOs.

PP_FLASHLSORESTRICTIONS_BLOCK 

Don't allow access to Flash LSOs.

PP_FLASHLSORESTRICTIONS_IN_MEMORY 

Store Flash LSOs in memory only.

Enumerator
PP_FLASHSETTING_3DENABLED 

Specifies if the system likely supports 3D hardware acceleration.

The result is a boolean PP_Var, depending on the supported nature of 3D acceleration. If querying this function returns true, the 3D system will normally use the native hardware for rendering which will be much faster.

Having this set to true only means that 3D should be used to draw 2D and video elements. PP_FLASHSETTING_STAGE3D_ENABLED should be checked to determine if it's ok to use 3D for arbitrary content.

In rare cases (depending on the platform) this value will be true but a created 3D context will use emulation because context initialization failed.

PP_FLASHSETTING_INCOGNITO 

Specifies if the given instance is in private/incognito/off-the-record mode (returns true) or "regular" mode (returns false). Returns an undefined PP_Var on invalid instance.

PP_FLASHSETTING_STAGE3DENABLED 

Specifies if arbitrary 3d commands are supported (returns true), or if 3d should only be used for drawing 2d and video (returns false).

This should only be enabled if PP_FLASHSETTING_3DENABLED is true.

PP_FLASHSETTING_LANGUAGE 

Specifies the string for the language code of the UI of the browser.

For example: "en-US" or "de".

Returns an undefined PP_Var on invalid instance.

PP_FLASHSETTING_NUMCORES 

Specifies the number of CPU cores that are present on the system.

PP_FLASHSETTING_LSORESTRICTIONS 

Specifies restrictions on how flash should handle LSOs. The result is an int from PP_FlashLSORestrictions.

PP_FLASHSETTING_STAGE3DBASELINEENABLED 

Specifies if the driver is reliable enough to use Shader Model 3 commands with it.

This should only be enabled if PP_FLASHSETTING_STAGE3DENABLED is true.

Enumerator
PP_GRAPHICS3DATTRIB_ALPHA_SIZE 

Bits of Alpha in the color buffer.

PP_GRAPHICS3DATTRIB_BLUE_SIZE 

Bits of Blue in the color buffer.

PP_GRAPHICS3DATTRIB_GREEN_SIZE 

Bits of Green in the color buffer.

PP_GRAPHICS3DATTRIB_RED_SIZE 

Bits of Red in the color buffer.

PP_GRAPHICS3DATTRIB_DEPTH_SIZE 

Bits of Z in the depth buffer.

PP_GRAPHICS3DATTRIB_STENCIL_SIZE 

Bits of Stencil in the stencil buffer.

PP_GRAPHICS3DATTRIB_SAMPLES 

Number of samples per pixel.

PP_GRAPHICS3DATTRIB_SAMPLE_BUFFERS 

Number of multisample buffers.

PP_GRAPHICS3DATTRIB_NONE 

Attrib list terminator.

PP_GRAPHICS3DATTRIB_HEIGHT 

Height of surface in pixels.

PP_GRAPHICS3DATTRIB_WIDTH 

Width of surface in pixels.

PP_GRAPHICS3DATTRIB_FULLSCREEN_SAMSUNG 

Fullscreen mode using separate window

PP_GRAPHICS3DATTRIB_SWAP_BEHAVIOR 

Specifies the effect on the color buffer of posting a surface with SwapBuffers. The initial value is chosen by the implementation.

PP_GRAPHICS3DATTRIB_BUFFER_PRESERVED 

Indicates that color buffer contents are unaffected.

PP_GRAPHICS3DATTRIB_BUFFER_DESTROYED 

Indicates that color buffer contents may be destroyed or changed.

PP_GRAPHICS3DATTRIB_GPU_PREFERENCE 

Specifies whether the context is intended to be low-power or high-performance. The initial value is PP_GRAPHICS3DATTRIB_GPU_PREFERENCE_PERFORMANCE.

PP_GRAPHICS3DATTRIB_GPU_PREFERENCE_LOW_POWER 

The context should be low-power, and may be created on an integrated gpu.

PP_GRAPHICS3DATTRIB_GPU_PREFERENCE_PERFORMANCE 

The context may be high-power and may be created on a discrete gpu.

Hardware acceleration options.

Enumerator
PP_HARDWAREACCELERATION_ONLY 

Create a hardware accelerated resource only.

PP_HARDWAREACCELERATION_WITHFALLBACK 

Create a hardware accelerated resource if possible. Otherwise, fall back to the software implementation.

PP_HARDWAREACCELERATION_NONE 

Create the software implementation only.

PP_HostResolver_Flag is an enumeration of flags which can be OR-ed and passed to the host resolver. Currently there is only one flag defined.

Enumerator
PP_HOSTRESOLVER_FLAG_CANONNAME 

Hint to request the canonical name of the host, which can be retrieved by GetCanonicalName().

The PP_HostResolver_Flags is an enumeration of the different types of flags, that can be OR-ed and passed to host resolver.

Enumerator
PP_HOST_RESOLVER_PRIVATE_FLAGS_CANONNAME 

AI_CANONNAME

PP_HOST_RESOLVER_PRIVATE_FLAGS_LOOPBACK_ONLY 

Hint to the resolver that only loopback addresses are configured.

PP_ImageDataFormat is an enumeration of the different types of image data formats.

The third part of each enumeration value describes the memory layout from the lowest address to the highest. For example, BGRA means the B component is stored in the lowest address, no matter what endianness the platform is using.

The PREMUL suffix implies pre-multiplied alpha is used. In this mode, the red, green and blue color components of the pixel data supplied to an image data should be pre-multiplied by their alpha value. For example: starting with floating point color components, here is how to convert them to 8-bit premultiplied components for image data:

...components of a pixel, floats ranging from 0 to 1... float red = 1.0f; float green = 0.50f; float blue = 0.0f; float alpha = 0.75f; ...components for image data are 8-bit values ranging from 0 to 255... uint8_t image_data_red_premul = (uint8_t)(red * alpha * 255.0f); uint8_t image_data_green_premul = (uint8_t)(green * alpha * 255.0f); uint8_t image_data_blue_premul = (uint8_t)(blue * alpha * 255.0f); uint8_t image_data_alpha_premul = (uint8_t)(alpha * 255.0f);

Note: The resulting pre-multiplied red, green and blue components should not be greater than the alpha value.

PP_InitDataType contains Initialization Data Type constants.

Enumerator
PP_INPUTEVENT_CLASS_MOUSE 

Request mouse input events.

Normally you will request mouse events by calling RequestInputEvents(). The only use case for filtered events (via RequestFilteringInputEvents()) is for instances that have irregular outlines and you want to perform hit testing, which is very uncommon. Requesting non-filtered mouse events will lead to higher performance.

PP_INPUTEVENT_CLASS_KEYBOARD 

Requests keyboard events. Often you will want to request filtered mode (via RequestFilteringInputEvents) for keyboard events so you can pass on events (by returning false) that you don't handle. For example, if you don't request filtered mode and the user pressed "Page Down" when your instance has focus, the page won't scroll which will be a poor experience.

A small number of tab and window management commands like Alt-F4 are never sent to the page. You can not request these keyboard commands since it would allow pages to trap users on a page.

PP_INPUTEVENT_CLASS_WHEEL 

Identifies scroll wheel input event. Wheel events must be requested in filtering mode via RequestFilteringInputEvents(). This is because many wheel commands should be forwarded to the page.

Most instances will not need this event. Consuming wheel events by returning true from your filtered event handler will prevent the user from scrolling the page when the mouse is over the instance which can be very annoying.

If you handle wheel events (for example, you have a document viewer which the user can scroll), the recommended behavior is to return false only if the wheel event actually causes your document to scroll. When the user reaches the end of the document, return false to indicating that the event was not handled. This will then forward the event to the containing page for scrolling, producing the nested scrolling behavior users expect from frames in a page.

PP_INPUTEVENT_CLASS_TOUCH 

Identifies touch input events.

Request touch events only if you intend to handle them. If the browser knows you do not need to handle touch events, it can handle them at a higher level and achieve higher performance. If the plugin does not register for touch-events, then it will receive synthetic mouse events that are generated from the touch events (e.g. mouse-down for touch-start, mouse-move for touch-move (with left-button down), and mouse-up for touch-end. If the plugin does register for touch events, then the synthetic mouse events are not created.

PP_INPUTEVENT_CLASS_IME 

Identifies IME composition input events.

Request this input event class if you allow on-the-spot IME input.

This enumeration contains event modifier constants. Each modifier is one bit. Retrieve the modifiers from an input event using the GetEventModifiers function on PPB_InputEvent.

This enumeration contains constants representing each mouse button. To get the mouse button for a mouse down or up event, use GetMouseButton on PPB_InputEvent.

This enumeration contains the types of input events.

Enumerator
PP_INPUTEVENT_TYPE_MOUSEDOWN 

Notification that a mouse button was pressed.

Register for this event using the PP_INPUTEVENT_CLASS_MOUSE class.

PP_INPUTEVENT_TYPE_MOUSEUP 

Notification that a mouse button was released.

Register for this event using the PP_INPUTEVENT_CLASS_MOUSE class.

PP_INPUTEVENT_TYPE_MOUSEMOVE 

Notification that a mouse button was moved when it is over the instance or dragged out of it.

Register for this event using the PP_INPUTEVENT_CLASS_MOUSE class.

PP_INPUTEVENT_TYPE_MOUSEENTER 

Notification that the mouse entered the instance's bounds.

Register for this event using the PP_INPUTEVENT_CLASS_MOUSE class.

PP_INPUTEVENT_TYPE_MOUSELEAVE 

Notification that a mouse left the instance's bounds.

Register for this event using the PP_INPUTEVENT_CLASS_MOUSE class.

PP_INPUTEVENT_TYPE_WHEEL 

Notification that the scroll wheel was used.

Register for this event using the PP_INPUTEVENT_CLASS_WHEEL class.

PP_INPUTEVENT_TYPE_RAWKEYDOWN 

Notification that a key transitioned from "up" to "down".

Register for this event using the PP_INPUTEVENT_CLASS_KEYBOARD class.

PP_INPUTEVENT_TYPE_KEYDOWN 

Notification that a key was pressed. This does not necessarily correspond to a character depending on the key and language. Use the PP_INPUTEVENT_TYPE_CHAR for character input.

Register for this event using the PP_INPUTEVENT_CLASS_KEYBOARD class.

PP_INPUTEVENT_TYPE_KEYUP 

Notification that a key was released.

Register for this event using the PP_INPUTEVENT_CLASS_KEYBOARD class.

PP_INPUTEVENT_TYPE_CHAR 

Notification that a character was typed. Use this for text input. Key down events may generate 0, 1, or more than one character event depending on the key, locale, and operating system.

Register for this event using the PP_INPUTEVENT_CLASS_KEYBOARD class.

PP_INPUTEVENT_TYPE_CONTEXTMENU 

Notification that a context menu should be shown.

This message will be sent when the user right-clicks or performs another OS-specific mouse command that should open a context menu. When this event is delivered depends on the system, on some systems (Mac) it will delivered after the mouse down event, and on others (Windows) it will be delivered after the mouse up event.

You will always get the normal mouse events. For example, you may see MOUSEDOWN,CONTEXTMENU,MOUSEUP or MOUSEDOWN,MOUSEUP,CONTEXTMENU.

The return value from the event handler determines if the context menu event will be passed to the page when you are using filtered input events (via RequestFilteringInputEvents()). In non-filtering mode the event will never be propagated and no context menu will be displayed. If you are handling mouse events in filtering mode, you may want to return true from this event even if you do not support a context menu to suppress the default one.

Register for this event using the PP_INPUTEVENT_CLASS_MOUSE class.

PP_INPUTEVENT_TYPE_IME_COMPOSITION_START 

Notification that an input method composition process has just started.

Register for this event using the PP_INPUTEVENT_CLASS_IME class.

PP_INPUTEVENT_TYPE_IME_COMPOSITION_UPDATE 

Notification that the input method composition string is updated.

Register for this event using the PP_INPUTEVENT_CLASS_IME class.

PP_INPUTEVENT_TYPE_IME_COMPOSITION_END 

Notification that an input method composition process has completed.

Register for this event using the PP_INPUTEVENT_CLASS_IME class.

PP_INPUTEVENT_TYPE_IME_TEXT 

Notification that an input method committed a string.

Register for this event using the PP_INPUTEVENT_CLASS_IME class.

PP_INPUTEVENT_TYPE_TOUCHSTART 

Notification that a finger was placed on a touch-enabled device.

Register for this event using the PP_INPUTEVENT_CLASS_TOUCH class.

PP_INPUTEVENT_TYPE_TOUCHMOVE 

Notification that a finger was moved on a touch-enabled device.

Register for this event using the PP_INPUTEVENT_CLASS_TOUCH class.

PP_INPUTEVENT_TYPE_TOUCHEND 

Notification that a finger was released on a touch-enabled device.

Register for this event using the PP_INPUTEVENT_CLASS_TOUCH class.

PP_INPUTEVENT_TYPE_TOUCHCANCEL 

Notification that a touch event was canceled.

Register for this event using the PP_INPUTEVENT_CLASS_TOUCH class.

The PP_IsolatedFileSystemType_Private values indicate the type of isolated file systems.

Enumerator
PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_INVALID 

Type for invalid file systems

PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_CRX 

Type for CRX file systems

PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE 

Type for PluginPrivate file systems

The PP_MakeDirectoryFlags enum contains flags used to control behavior of PPB_FileRef.MakeDirectory().

Enumerator
PP_MAKEDIRECTORYFLAG_WITH_ANCESTORS 

Requests that ancestor directories are created if they do not exist.

PP_MAKEDIRECTORYFLAG_EXCLUSIVE 

Requests that the PPB_FileRef.MakeDirectory() call fails if the directory already exists.

An enum that controls Media Player display mode. For details, please see descriptions of particular enum values. A default value is PP_MEDIAPLAYERDISPLAYMODE_STRETCH.

Enumerator
PP_MEDIAPLAYERDISPLAYMODE_STRETCH 

When this mode is set a video will be stretched to match either:

PP_MEDIAPLAYERDISPLAYMODE_LETTERBOX 

When this mode is set a video will be scaled to fit a player area but will also maintain it's aspect ratio. If player area aspect ratio doesn't match video's aspect ratio, then resulting video will be letterboxed (or pillarboxed).

List of possible DRM system operation.

Enumerator
PP_MEDIAPLAYERDRMOPERATION_SETPROPERTIES 

Setting properties of a DRM instance.

PP_MEDIAPLAYERDRMOPERATION_GENCHALLENGE 

Enabling challenge message instead of DRM's connecting to a license server.

PP_MEDIAPLAYERDRMOPERATION_INSTALLLICENSE 

Installing a license into a DRM instance.

PP_MEDIAPLAYERDRMOPERATION_DELETELICENSE 

Deleting a license into a DRM instance.

PP_MEDIAPLAYERDRMOPERATION_PROCESSINITIATOR 

Requesting key to DRM license server with the initiator information.

PP_MEDIAPLAYERDRMOPERATION_GETVERSION 

Querying the version of DRM system.

List of supported types of DRM systems.

Enumerator
PP_MEDIAPLAYERDRMTYPE_UNKNOWN 

Unknown DRM system

PP_MEDIAPLAYERDRMTYPE_PLAYREADY 

Playready DRM system

PP_MEDIAPLAYERDRMTYPE_MARLIN 

Marlin DRM system

PP_MEDIAPLAYERDRMTYPE_VERIMATRIX 

Verimatrix DRM system

PP_MEDIAPLAYERDRMTYPE_WIDEVINE_CLASSIC 

Widevine classic DRM system

PP_MEDIAPLAYERDRMTYPE_WIDEVINE_MODULAR 

Widevine modular (used with MPEG-DASH) DRM system

PP_MEDIAPLAYERDRMTYPE_SECUREMEDIA 

Securemedia DRM system

PP_MEDIAPLAYERDRMTYPE_SDRM 

SDRM system

PP_MEDIAPLAYERDRMTYPE_CLEARKEY 

ClearKey system

PP_MEDIAPLAYERDRMTYPE_EXTERNAL 

External DRM system provided by Trusted Application

List of errors which might be reported by the player.

Enumerator
PP_MEDIAPLAYERERROR_NONE 

No error has occurred

PP_MEDIAPLAYERERROR_BAD_ARGUMENT 

Input error has occured

PP_MEDIAPLAYERERROR_NETWORK 

Network error has occurred

PP_MEDIAPLAYERERROR_DEMUX 

Demuxer error has occured

PP_MEDIAPLAYERERROR_DECRYPT 

Decryptor error has occured

PP_MEDIAPLAYERERROR_DECODE 

Decoder error has occurred

PP_MEDIAPLAYERERROR_RENDER 

Rendering error has occurred

PP_MEDIAPLAYERERROR_UNSUPPORTED_CODEC 

Media is encoded using unsupported codec

PP_MEDIAPLAYERERROR_UNSUPPORTED_CONTAINER 

Container is not supported

PP_MEDIAPLAYERERROR_RESOURCE 

Resource error has occured (i.e. no space left on device, no such file)

PP_MEDIAPLAYERERROR_UNKNOWN 

Unknown error has occurred

PP_MEDIAPLAYERERROR_UNSUPPORTED_SUBTITLE_FORMAT 

Subtitles file format is not supported.

An enum that controls Media Player mode. Some non-trivial Media Player functions might be supported only if certain PP_MediaPlayerMode is set.

Enumerator
PP_MEDIAPLAYERMODE_DEFAULT 

Default Media Player mode that is suitable for the most common playback scenarios. This mode is used in PPB_MediaPlayer_Samsung::Create( PP_Instance) when no mode is specified.

PP_MEDIAPLAYERMODE_D2TV 

Media Player mode that is dedicated for a D2TV playback.

List of media player states.

Enumerator
PP_MEDIAPLAYERSTATE_NONE 

Indicates invalid state for the player

PP_MEDIAPLAYERSTATE_UNINITIALIZED 

Player has been created but no data sources hasn't been attached yet.

PP_MEDIAPLAYERSTATE_READY 

Player has been created and data sources has been attached. Playback is ready to be started.

PP_MEDIAPLAYERSTATE_PLAYING 

Player is playing media. Media time is advancing.

PP_MEDIAPLAYERSTATE_PAUSED 

Playback has been paused and can be resumed.

An enum that controls Media Player Vr360 mode. For details, please see descriptions of particular enum values. A default value is PP_MEDIAPLAYERVR360MODE_OFF.

Enumerator
PP_MEDIAPLAYERVR360MODE_OFF 

When this mode is set video will be displayed normally.

PP_MEDIAPLAYERVR360MODE_ON 

When this mode is set video will be displayed in Vr mode.

This enumeration contains audio track attributes which are used by Configure().

Enumerator
PP_MEDIASTREAMAUDIOTRACK_ATTRIB_NONE 

Attribute list terminator.

PP_MEDIASTREAMAUDIOTRACK_ATTRIB_BUFFERS 

The maximum number of buffers to hold audio samples. Note: this is only used as advisory; the browser may allocate more or fewer based on available resources. How many buffers depends on usage - request at least 2 to make sure latency doesn't cause lost samples. If the plugin expects to hold on to more than one buffer at a time (e.g. to do multi-buffer processing), it should request that many more.

PP_MEDIASTREAMAUDIOTRACK_ATTRIB_SAMPLE_RATE 

The sample rate of audio data in buffers. The attribute value is a PP_AudioBuffer_SampleRate.

PP_MEDIASTREAMAUDIOTRACK_ATTRIB_SAMPLE_SIZE 

The sample size of audio data in buffers in bytes. The attribute value is a PP_AudioBuffer_SampleSize.

PP_MEDIASTREAMAUDIOTRACK_ATTRIB_CHANNELS 

The number of channels in audio buffers.

Supported values: 1, 2

PP_MEDIASTREAMAUDIOTRACK_ATTRIB_DURATION 

The duration of an audio buffer in milliseconds.

Valid range: 10 to 10000

This enumeration contains video track attributes which are used by Configure().

Enumerator
PP_MEDIASTREAMVIDEOTRACK_ATTRIB_NONE 

Attribute list terminator.

PP_MEDIASTREAMVIDEOTRACK_ATTRIB_BUFFERED_FRAMES 

The maximum number of frames to hold in the input buffer. Note: this is only used as advisory; the browser may allocate more or fewer based on available resources. How many frames to buffer depends on usage - request at least 2 to make sure latency doesn't cause lost frames. If the plugin expects to hold on to more than one frame at a time (e.g. to do multi-frame processing), it should request that many more. If this attribute is not specified or value 0 is specified for this attribute, the default value will be used.

PP_MEDIASTREAMVIDEOTRACK_ATTRIB_WIDTH 

The width of video frames in pixels. It should be a multiple of 4. If the specified size is different from the video source (webcam), frames will be scaled to specified size. If this attribute is not specified or value 0 is specified, the original frame size of the video track will be used.

Maximum value: 4096 (4K resolution).

PP_MEDIASTREAMVIDEOTRACK_ATTRIB_HEIGHT 

The height of video frames in pixels. It should be a multiple of 4. If the specified size is different from the video source (webcam), frames will be scaled to specified size. If this attribute is not specified or value 0 is specified, the original frame size of the video track will be used.

Maximum value: 4096 (4K resolution).

PP_MEDIASTREAMVIDEOTRACK_ATTRIB_FORMAT 

The format of video frames. The attribute value is a PP_VideoFrame_Format. If the specified format is different from the video source (webcam), frames will be converted to specified format. If this attribute is not specified or value PP_VIDEOFRAME_FORMAT_UNKNOWN is specified, the orignal frame format of the video track will be used.

The PP_MouseCursor_Type enumeration lists the available stock cursor types.

Network address family types.

Enumerator
PP_NETADDRESS_FAMILY_UNSPECIFIED 

The address family is unspecified.

PP_NETADDRESS_FAMILY_IPV4 

The Internet Protocol version 4 (IPv4) address family.

PP_NETADDRESS_FAMILY_IPV6 

The Internet Protocol version 6 (IPv6) address family.

Enumerator
PP_NETADDRESSFAMILY_PRIVATE_UNSPECIFIED 

The address family is unspecified.

PP_NETADDRESSFAMILY_PRIVATE_IPV4 

The Internet Protocol version 4 (IPv4) address family.

PP_NETADDRESSFAMILY_PRIVATE_IPV6 

The Internet Protocol version 6 (IPv6) address family.

State of a network interface.

Enumerator
PP_NETWORKLIST_STATE_DOWN 

Network interface is down.

PP_NETWORKLIST_STATE_UP 

Network interface is up.

Type of a network interface.

Enumerator
PP_NETWORKLIST_TYPE_UNKNOWN 

Type of the network interface is not known.

PP_NETWORKLIST_TYPE_ETHERNET 

Wired Ethernet network.

PP_NETWORKLIST_TYPE_WIFI 

Wireless Wi-Fi network.

PP_NETWORKLIST_TYPE_CELLULAR 

Cellular network (e.g. LTE).

Video output link types.

Content protection methods applied on video output link.

PP_SessionType contains session type constants.

Enum describing available streaming properties which can be set by the user.

Enumerator
PP_STREAMINGPROPERTY_COOKIE 

The cookie for streaming playback. This corresponds to a string (PP_VARTYPE_STRING)

PP_STREAMINGPROPERTY_USER_AGENT 

The user agent for streaming playback. This corresponds to a string (PP_VARTYPE_STRING)

PP_STREAMINGPROPERTY_ADAPTIVE_INFO 

Sets adaptive streaming format specific properties.

Eg. for smooth streaming (strings should be concatenated): "|BITRATES=50000~2500000" "|STARTBITRATE=150000" "|SKIPBITRATE=100000"

Eg. for DRM (strings should be concatenated): "DEVICE_ID=null" "DEVICET_TYPE_ID=60" "DRM_URL=https://..."

This corresponds to a string (PP_VARTYPE_STRING).

PP_STREAMINGPROPERTY_TYPE 

Sets streaming type.

Eg. : "WIDEVINE" "HLS" "VUDU" "HAS" "SMOOTH"

This corresponds to a string (PP_VARTYPE_STRING).

PP_STREAMINGPROPERTY_AVAILABLE_BITRATES 

Gets available bitrates in bps (bits per second).

Eg. (values are concatenated and separated by '|'): "100|500|1000"

Result is a string (PP_VARTYPE_STRING).

PP_STREAMINGPROPERTY_THROUGHPUT 

Gets throughput in bps.

Throughput is how much data actually does travel through the 'channel' successfully.

Result is a string (PP_VARTYPE_STRING).

PP_STREAMINGPROPERTY_DURATION 

Gets duration of the clip in seconds.

Result is a string (PP_VARTYPE_STRING).

PP_STREAMINGPROPERTY_CURRENT_BITRATE 

Gets current bitrate in bps.

Result is a string (PP_VARTYPE_STRING).

Lists possible Elementary Stream initialization modes.

Values of this enumeration are used to signal how much information describing Elementary Stream itself (metadata) was extracted by the plugin.

Enumerator
PP_STREAMINITIALIZATIONMODE_FULL 

Full initialization mode.

In this mode all information related to the stream configuration are extracted by the plugin (demuxer) and passed to the browser.

PP_STREAMINITIALIZATIONMODE_MINIMAL 

Minimal initialization mode.

In this mode only basic stream information like codec and maximal resolution (for Video Elementary Stream) is extracted by the plugin (demuxer). All other information is extracted from the Elementary Stream by the browser (decoder).

As the browser may use H/W decoder to extract such information, this mode may speed up overall time of pipeline initialization in MPEG2-TS channel change scenarios.

Minimal information requried to be provided by the plugin:

  1. Audio Elementary Stream:
    • codec type
  2. Video Elementary Stream:
    • codec type
    • maximal video resolution (width and height)

Option names used by SetOption().

Enumerator
PP_TCPSOCKET_OPTION_NO_DELAY 

Disables coalescing of small writes to make TCP segments, and instead delivers data immediately. Value's type is PP_VARTYPE_BOOL. On version 1.1 or earlier, this option can only be set after a successful Connect() call. On version 1.2 or later, there is no such limitation.

PP_TCPSOCKET_OPTION_SEND_BUFFER_SIZE 

Specifies the total per-socket buffer space reserved for sends. Value's type should be PP_VARTYPE_INT32. On version 1.1 or earlier, this option can only be set after a successful Connect() call. On version 1.2 or later, there is no such limitation.

Note: This is only treated as a hint for the browser to set the buffer size. Even if SetOption() succeeds, the browser doesn't guarantee it will conform to the size.

PP_TCPSOCKET_OPTION_RECV_BUFFER_SIZE 

Specifies the total per-socket buffer space reserved for receives. Value's type should be PP_VARTYPE_INT32. On version 1.1 or earlier, this option can only be set after a successful Connect() call. On version 1.2 or later, there is no such limitation.

Note: This is only treated as a hint for the browser to set the buffer size. Even if SetOption() succeeds, the browser doesn't guarantee it will conform to the size.

Session Login Methods

Enumerator
PP_TEEC_LOGIN_PUBLIC 

No login data is provided.

PP_TEEC_LOGIN_USER 

Login data about the user running the Client Application process is provided.

PP_TEEC_LOGIN_GROUP 

Login data about the group running the Client Application process is provided.

PP_TEEC_LOGIN_APPLICATION 

Login data about the running Client Application itself is provided.

PP_TEEC_LOGIN_USER_APPLICATION 

Login data about the user running the Client Application and about the Client Application itself is provided.

PP_TEEC_LOGIN_GROUP_APPLICATION 

Login data about the group running the Client Application and about the Client Application itself is provided.

Shared Memory Control Flags

Enumerator
PP_TEEC_MEM_INPUT 

The Shared Memory can carry data from the Client Application to the Trusted Application.

PP_TEEC_MEM_OUTPUT 

The Shared Memory can carry data from the Trusted Application to the Client Application.

Parameter Type

Enumerator
PP_TEEC_NONE 

The Parameter is not used

PP_TEEC_VALUE_INPUT 

The Parameter is a PP_TEEC_Value tagged as input.

PP_TEEC_VALUE_OUTPUT 

The Parameter is a PP_TEEC_Value tagged as output

PP_TEEC_VALUE_INOUT 

The Parameter is a PP_TEEC_Value tagged as both as input and output, i.e., for which both the behaviors of TEEC_VALUE_INPUT and TEEC_VALUE_OUTPUT apply.

PP_TEEC_MEMREF_TEMP_INPUT 

The Parameter is a PP_TEEC_TempMemoryReference describing a region of memory which needs to be temporarily registered for the duration of the Operation and is tagged as input.

PP_TEEC_MEMREF_TEMP_OUTPUT 

Same as TEEC_MEMREF_TEMP_INPUT, but the Memory Reference is tagged as output.

PP_TEEC_MEMREF_TEMP_INOUT 

A Temporary Memory Reference tagged as both input and output, i.e., for which both the behaviors of PP_TEEC_MEMREF_TEMP_INPUT and PP_TEEC_MEMREF_TEMP_OUTPUT apply.

PP_TEEC_MEMREF_WHOLE 

The Parameter is a Registered Memory Reference that refers to the entirety of its parent Shared Memory block. The parameter structure is a PP_TEEC_RegisteredMemoryReference.

PP_TEEC_MEMREF_PARTIAL_INPUT 

A Registered Memory Reference structure that refers to a partial region of its parent Shared Memory block and is tagged as input. The parameter structure is a PP_TEEC_RegisteredMemoryReference.

PP_TEEC_MEMREF_PARTIAL_OUTPUT 

A Registered Memory Reference structure that refers to a partial region of its parent Shared Memory block and is tagged as output. The parameter structure is a PP_TEEC_RegisteredMemoryReference.

PP_TEEC_MEMREF_PARTIAL_INOUT 

The Registered Memory Reference structure that refers to a partial region of its parent Shared Memory block and is tagged as both input and output, i.e., for which both the behaviors of TEEC_MEMREF_PARTIAL_INPUT and TEEC_MEMREF_PARTIAL_OUTPUT apply. The parameter structure is a PP_TEEC_RegisteredMemoryReference.

Return Code Constants.

Values map directly to error codes from TEE Client API specification

Enumerator
PP_TEEC_SUCCESS 

The operation was successful

PP_TEEC_ERROR_GENERIC 

Non-specific cause

PP_TEEC_ERROR_ACCESS_DENIED 

Access privileges are not sufficient

PP_TEEC_ERROR_CANCEL 

The operation was cancelled

PP_TEEC_ERROR_ACCESS_CONFLICT 

Concurrent accesses caused conflict

PP_TEEC_ERROR_EXCESS_DATA 

Too much data for the requested operation was passed

PP_TEEC_ERROR_BAD_FORMAT 

Input data was of invalid format

PP_TEEC_ERROR_BAD_PARAMETERS 

Input parameters were invalid

PP_TEEC_ERROR_BAD_STATE 

Operation is not valid in the current state

PP_TEEC_ERROR_ITEM_NOT_FOUND 

The requested data item is not found

PP_TEEC_ERROR_NOT_IMPLEMENTED 

The requested operation should exist but is not yet implemented

PP_TEEC_ERROR_NOT_SUPPORTED 

The requested operation is valid but is not supported in this Implementation

PP_TEEC_ERROR_NO_DATA 

Expected data was missing

PP_TEEC_ERROR_OUT_OF_MEMORY 

System ran out of resources

PP_TEEC_ERROR_BUSY 

The system is busy working on something else.

PP_TEEC_ERROR_COMMUNICATION 

Communication with a remote party failed.

PP_TEEC_ERROR_SECURITY 

A security fault was detected.

PP_TEEC_ERROR_SHORT_BUFFER 

The supplied buffer is too short for the generated output.

PP_TEE_ERROR_EXTERNAL_CANCEL 

An external event has caused a User Interface operation to be aborted.

PP_TEEC_ERROR_TARGET_DEAD 

Targed TA panic'ed

Function error origins. These indicate where in the software stack a particular return value originates from.

Enumerator
PP_TEEC_ORIGIN_API 

The return code is an error that originated within the TEE Client API implementation.

PP_TEEC_ORIGIN_COMMS 

The return code is an error that originated within the underlying communications stack linking the rich OS with the TEE.

PP_TEEC_ORIGIN_TEE 

The return code is an error that originated within the common TEE code.

PP_TEEC_ORIGIN_TRUSTED_APP 

The return code originated within the Trusted Application code. This includes the case where the return code is a success.

PP_TextInput_Type is used to indicate the status of a plugin in regard to text input.

Enumerator
PP_TEXTINPUT_TYPE_NONE 

Input caret is not in an editable mode, no input method shall be used.

PP_TEXTINPUT_TYPE_TEXT 

Input caret is in a normal editable mode, any input method can be used.

PP_TEXTINPUT_TYPE_PASSWORD 

Input caret is in a password box, an input method may be used only if it's suitable for password input.

Enumerator
PP_TOUCHLIST_TYPE_TOUCHES 

The list of all TouchPoints which are currently down.

PP_TOUCHLIST_TYPE_CHANGEDTOUCHES 

The list of all TouchPoints whose state has changed since the last TouchInputEvent.

PP_TOUCHLIST_TYPE_TARGETTOUCHES 

The list of all TouchPoints which are targeting this plugin. This is a subset of Touches.

Option names used by SetOption().

Enumerator
PP_UDPSOCKET_OPTION_ADDRESS_REUSE 

Allows the socket to share the local address to which it will be bound with other processes. Value's type should be PP_VARTYPE_BOOL. This option can only be set before calling Bind().

PP_UDPSOCKET_OPTION_BROADCAST 

Allows sending and receiving packets to and from broadcast addresses. Value's type should be PP_VARTYPE_BOOL. On version 1.0, this option can only be set before calling Bind(). On version 1.1 or later, there is no such limitation.

PP_UDPSOCKET_OPTION_SEND_BUFFER_SIZE 

Specifies the total per-socket buffer space reserved for sends. Value's type should be PP_VARTYPE_INT32. On version 1.0, this option can only be set after a successful Bind() call. On version 1.1 or later, there is no such limitation.

Note: This is only treated as a hint for the browser to set the buffer size. Even if SetOption() succeeds, the browser doesn't guarantee it will conform to the size.

PP_UDPSOCKET_OPTION_RECV_BUFFER_SIZE 

Specifies the total per-socket buffer space reserved for receives. Value's type should be PP_VARTYPE_INT32. On version 1.0, this option can only be set after a successful Bind() call. On version 1.1 or later, there is no such limitation.

Note: This is only treated as a hint for the browser to set the buffer size. Even if SetOption() succeeds, the browser doesn't guarantee it will conform to the size.

PP_UDPSOCKET_OPTION_MULTICAST_LOOP 

Specifies whether the packets sent from the host to the multicast group should be looped back to the host or not. Value's type should be PP_VARTYPE_BOOL. This option can only be set before calling Bind().

This is only supported in version 1.2 of the API (Chrome 43) and later.

PP_UDPSOCKET_OPTION_MULTICAST_TTL 

Specifies the time-to-live for packets sent to the multicast group. The value should be within 0 to 255 range. The default value is 1 and means that packets will not be routed beyond the local network. Value's type should be PP_VARTYPE_INT32. This option can only be set before calling Bind().

This is only supported in version 1.2 of the API (Chrome 43) and later.

PP_UDPSOCKET_EXT_OPTION_MULTICAST_LOOP 

Set or read a boolean argument that determines whether sent multicast packets should be looped back to the local sockets. Value's type should be PP_VARTYPE_BOOL.

Set/Get value using PP_SocketOptionValue. 0 - loopback inactive, 1 - loopback active

Deprecated since version 1.1 of the API (Samsung Pepper 47)

PP_UDPSOCKET_EXT_OPTION_MULTICAST_TTL 

'Time To Live' for multicast packets. If not otherwise specified, multicast datagrams are sent with a default value of 1, to prevent them to be forwarded beyond the local network. Value should be PP_VARTYPE_INT32 type, from 0 to 255.

Set/Get value using PP_SocketOptionValue. Range: 0-255

Deprecated since version 1.1 of the API (Samsung Pepper 47)

This enumeration contains properties that can be set on a URL request.

Enumerator
PP_URLREQUESTPROPERTY_URL 

This corresponds to a string (PP_VARTYPE_STRING).

PP_URLREQUESTPROPERTY_METHOD 

This corresponds to a string (PP_VARTYPE_STRING); either POST or GET. Refer to the HTTP Methods documentation for further information.

PP_URLREQUESTPROPERTY_HEADERS 

This corresponds to a string (PP_VARTYPE_STRING);
delimited. Refer to the <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html"Header Field Definitions documentation for further information.

PP_URLREQUESTPROPERTY_STREAMTOFILE 

This corresponds to a PP_Bool (PP_VARTYPE_BOOL; default=PP_FALSE). Set this value to PP_TRUE if you want to download the data to a file. Use PPB_URLLoader.FinishStreamingToFile() to complete the download.

PP_URLREQUESTPROPERTY_FOLLOWREDIRECTS 

This corresponds to a PP_Bool (PP_VARTYPE_BOOL; default=PP_TRUE). Set this value to PP_FALSE if you want to use PPB_URLLoader.FollowRedirects() to follow the redirects only after examining redirect headers.

PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS 

This corresponds to a PP_Bool (PP_VARTYPE_BOOL; default=PP_FALSE). Set this value to PP_TRUE if you want to be able to poll the download progress using PPB_URLLoader.GetDownloadProgress().

PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS 

This corresponds to a PP_Bool (default=PP_FALSE). Set this value to PP_TRUE if you want to be able to poll the upload progress using PPB_URLLoader.GetUploadProgress().

PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL 

This corresponds to a string (PP_VARTYPE_STRING) or may be undefined (PP_VARTYPE_UNDEFINED; default). Set it to a string to set a custom referrer (if empty, the referrer header will be omitted), or to undefined to use the default referrer. Only loaders with universal access (only available on trusted implementations) will accept URLRequestInfo objects that try to set a custom referrer; if given to a loader without universal access, PP_ERROR_NOACCESS will result.

PP_URLREQUESTPROPERTY_ALLOWCROSSORIGINREQUESTS 

This corresponds to a PP_Bool (PP_VARTYPE_BOOL; default=PP_FALSE). Whether cross-origin requests are allowed. Cross-origin requests are made using the CORS (Cross-Origin Resource Sharing) algorithm to check whether the request should be allowed. For the complete CORS algorithm, refer to the Cross-Origin Resource Sharing documentation.

PP_URLREQUESTPROPERTY_ALLOWCREDENTIALS 

This corresponds to a PP_Bool (PP_VARTYPE_BOOL; default=PP_FALSE). Whether HTTP credentials are sent with cross-origin requests. If false, no credentials are sent with the request and cookies are ignored in the response. If the request is not cross-origin, this property is ignored.

PP_URLREQUESTPROPERTY_CUSTOMCONTENTTRANSFERENCODING 

This corresponds to a string (PP_VARTYPE_STRING) or may be undefined (PP_VARTYPE_UNDEFINED; default). Set it to a string to set a custom content-transfer-encoding header (if empty, that header will be omitted), or to undefined to use the default (if any). Only loaders with universal access (only available on trusted implementations) will accept URLRequestInfo objects that try to set a custom content transfer encoding; if given to a loader without universal access, PP_ERROR_NOACCESS will result.

PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD 

This corresponds to an integer (PP_VARTYPE_INT32); default is not defined and is set by the browser, possibly depending on system capabilities. Set it to an integer to set an upper threshold for the prefetched buffer of an asynchronous load. When exceeded, the browser will defer loading until PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERERTHRESHOLD is hit, at which time it will begin prefetching again. When setting this property, PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERERTHRESHOLD must also be set. Behavior is undefined if the former is <= the latter.

PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD 

This corresponds to an integer (PP_VARTYPE_INT32); default is not defined and is set by the browser to a value appropriate for the default PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD. Set it to an integer to set a lower threshold for the prefetched buffer of an asynchronous load. When reached, the browser will resume loading if If PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERERTHRESHOLD had previously been reached. When setting this property, PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD must also be set. Behavior is undefined if the former is >= the latter.

PP_URLREQUESTPROPERTY_CUSTOMUSERAGENT 

This corresponds to a string (PP_VARTYPE_STRING) or may be undefined (PP_VARTYPE_UNDEFINED; default). Set it to a string to set a custom user-agent header (if empty, that header will be omitted), or to undefined to use the default. Only loaders with universal access (only available on trusted implementations) will accept URLRequestInfo objects that try to set a custom user agent; if given to a loader without universal access, PP_ERROR_NOACCESS will result.

This enumeration contains properties set on a URL response.

Enumerator
PP_URLRESPONSEPROPERTY_URL 

This corresponds to a string (PP_VARTYPE_STRING); an absolute URL formed by resolving the relative request URL with the absolute document URL. Refer to the HTTP Request URI and HTML Resolving Relative URIs documentation for further information.

PP_URLRESPONSEPROPERTY_REDIRECTURL 

This corresponds to a string (PP_VARTYPE_STRING); the absolute URL returned in the response header's 'Location' field if this is a redirect response, an empty string otherwise. Refer to the HTTP Status Codes - Redirection documentation for further information.

PP_URLRESPONSEPROPERTY_REDIRECTMETHOD 

This corresponds to a string (PP_VARTYPE_STRING); the HTTP method to be used in a new request if this is a redirect response, an empty string otherwise. Refer to the HTTP Status Codes - Redirection documentation for further information.

PP_URLRESPONSEPROPERTY_STATUSCODE 

This corresponds to an int32 (PP_VARETYPE_INT32); the status code from the response, e.g., 200 if the request was successful. Refer to the HTTP Status Code and Reason Phrase documentation for further information.

PP_URLRESPONSEPROPERTY_STATUSLINE 

This corresponds to a string (PP_VARTYPE_STRING); the status line from the response. Refer to the HTTP Response Status Line documentation for further information.

PP_URLRESPONSEPROPERTY_HEADERS 

This corresponds to a string(PP_VARTYPE_STRING), a
-delimited list of header field/value pairs of the form "field: value", returned by the server. Refer to the HTTP Header Field Definitions documentation for further information.

enum PP_VarType

The PP_VarType is an enumeration of the different types that can be contained within a PP_Var structure.

Enumerator
PP_VARTYPE_UNDEFINED 

An undefined value.

PP_VARTYPE_NULL 

A NULL value. This is similar to undefined, but JavaScript differentiates the two so it is exposed here as well.

PP_VARTYPE_BOOL 

A boolean value, use the as_bool member of the var.

PP_VARTYPE_INT32 

A 32-bit integer value. Use the as_int member of the var.

PP_VARTYPE_DOUBLE 

A double-precision floating point value. Use the as_double member of the var.

PP_VARTYPE_STRING 

The Var represents a string. The as_id field is used to identify the string, which may be created and retrieved from the PPB_Var interface. These objects are reference counted, so AddRef() and Release() must be used properly to avoid memory leaks.

PP_VARTYPE_OBJECT 

Represents a JavaScript object. This vartype is not currently usable from modules, although it is used internally for some tasks. These objects are reference counted, so AddRef() and Release() must be used properly to avoid memory leaks.

PP_VARTYPE_ARRAY 

Represents an array of Vars. The as_id field is used to identify the array, which may be created and manipulated from the PPB_VarArray interface. These objects are reference counted, so AddRef() and Release() must be used properly to avoid memory leaks.

PP_VARTYPE_DICTIONARY 

Represents a mapping from strings to Vars. The as_id field is used to identify the dictionary, which may be created and manipulated from the PPB_VarDictionary interface. These objects are reference counted, so AddRef() and Release() must be used properly to avoid memory leaks.

PP_VARTYPE_ARRAY_BUFFER 

ArrayBuffer represents a JavaScript ArrayBuffer. This is the type which represents Typed Arrays in JavaScript. Unlike JavaScript 'Array', it is only meant to contain basic numeric types, and is always stored contiguously. See PPB_VarArrayBuffer_Dev for functions special to ArrayBuffer vars. These objects are reference counted, so AddRef() and Release() must be used properly to avoid memory leaks.

PP_VARTYPE_RESOURCE 

This type allows the PP_Var to wrap a PP_Resource . This can be useful for sending or receiving some types of PP_Resource using PPB_Messaging or PPP_Messaging.

These objects are reference counted, so AddRef() and Release() must be used properly to avoid memory leaks. Under normal circumstances, the PP_Var will implicitly hold a reference count on the PP_Resource on your behalf. For example, if you call VarFromResource(), it implicitly calls PPB_Core::AddRefResource() on the PP_Resource. Likewise, PPB_Var::Release() on a Resource PP_Var will invoke PPB_Core::ReleaseResource() when the Var reference count goes to zero.

PP_VideoCaptureStatus_Dev is an enumeration that defines the various possible states of a VideoCapture.

Enumerator
PP_VIDEO_CAPTURE_STATUS_STOPPED 

Initial state, capture is stopped.

PP_VIDEO_CAPTURE_STATUS_STARTING 

StartCapture has been called, but capture hasn't started yet.

PP_VIDEO_CAPTURE_STATUS_STARTED 

Capture has been started.

PP_VIDEO_CAPTURE_STATUS_PAUSED 

Capture has been started, but is paused because no buffer is available.

PP_VIDEO_CAPTURE_STATUS_STOPPING 

StopCapture has been called, but capture hasn't stopped yet.

PP_VideoCodec contains video codec type constants.

PP_VideoCodecProfile contains video codec profile type constants required for video decoder configuration.

Enumerator
PP_VIDEOFRAME_FORMAT_UNKNOWN 

Unknown format value.

PP_VIDEOFRAME_FORMAT_YV12 

12bpp YVU planar 1x1 Y, 2x2 VU samples.

PP_VIDEOFRAME_FORMAT_I420 

12bpp YUV planar 1x1 Y, 2x2 UV samples.

PP_VIDEOFRAME_FORMAT_BGRA 

32bpp BGRA.

PP_VIDEOFRAME_FORMAT_LAST 

The last format.

This enumeration contains status codes. These codes are used in Close() and GetCloseCode(). Refer to RFC 6455, The WebSocket Protocol, for further information. PP_WEBSOCKETSTATUSCODE_NORMAL_CLOSURE and codes in the range PP_WEBSOCKETSTATUSCODE_USER_REGISTERED_MIN to PP_WEBSOCKETSTATUSCODE_USER_REGISTERED_MAX, and PP_WEBSOCKETSTATUSCODE_USER_PRIVATE_MIN to PP_WEBSOCKETSTATUSCODE_USER_PRIVATE_MAX are valid for Close().

Enumerator
PP_WEBSOCKETSTATUSCODE_NOT_SPECIFIED 

Indicates to request closing connection without status code and reason.

(Note that the code 1005 is forbidden to send in actual close frames by the RFC. PP_WebSocket reuses this code internally and the code will never appear in the actual close frames.)

PP_WEBSOCKETSTATUSCODE_NORMAL_CLOSURE 

Status codes in the range 0-999 are not used. Indicates a normal closure.

PP_WEBSOCKETSTATUSCODE_GOING_AWAY 

Indicates that an endpoint is "going away", such as a server going down.

PP_WEBSOCKETSTATUSCODE_PROTOCOL_ERROR 

Indicates that an endpoint is terminating the connection due to a protocol error.

PP_WEBSOCKETSTATUSCODE_UNSUPPORTED_DATA 

Indicates that an endpoint is terminating the connection because it has received a type of data it cannot accept.

PP_WEBSOCKETSTATUSCODE_NO_STATUS_RECEIVED 

Status code 1004 is reserved. Pseudo code to indicate that receiving close frame doesn't contain any status code.

PP_WEBSOCKETSTATUSCODE_ABNORMAL_CLOSURE 

Pseudo code to indicate that connection was closed abnormally, e.g., without closing handshake.

PP_WEBSOCKETSTATUSCODE_INVALID_FRAME_PAYLOAD_DATA 

Indicates that an endpoint is terminating the connection because it has received data within a message that was not consistent with the type of the message (e.g., non-UTF-8 data within a text message).

PP_WEBSOCKETSTATUSCODE_POLICY_VIOLATION 

Indicates that an endpoint is terminating the connection because it has received a message that violates its policy.

PP_WEBSOCKETSTATUSCODE_MESSAGE_TOO_BIG 

Indicates that an endpoint is terminating the connection because it has received a message that is too big for it to process.

PP_WEBSOCKETSTATUSCODE_MANDATORY_EXTENSION 

Indicates that an endpoint (client) is terminating the connection because it has expected the server to negotiate one or more extension, but the server didn't return them in the response message of the WebSocket handshake.

PP_WEBSOCKETSTATUSCODE_INTERNAL_SERVER_ERROR 

Indicates that a server is terminating the connection because it encountered an unexpected condition.

PP_WEBSOCKETSTATUSCODE_TLS_HANDSHAKE 

Status codes in the range 1012-1014 are reserved. Pseudo code to indicate that the connection was closed due to a failure to perform a TLS handshake.

PP_WEBSOCKETSTATUSCODE_USER_REGISTERED_MIN 

Status codes in the range 1016-2999 are reserved. Status codes in the range 3000-3999 are reserved for use by libraries, frameworks, and applications. These codes are registered directly with IANA.

PP_WEBSOCKETSTATUSCODE_USER_PRIVATE_MIN 

Status codes in the range 4000-4999 are reserved for private use. Application can use these codes for application specific purposes freely.

This enumeration contains the types representing the WebSocket ready state and these states are based on the JavaScript WebSocket API specification. GetReadyState() returns one of these states.

Enumerator
PP_WEBSOCKETREADYSTATE_INVALID 

Ready state is queried on an invalid resource.

PP_WEBSOCKETREADYSTATE_CONNECTING 

Ready state that the connection has not yet been established.

PP_WEBSOCKETREADYSTATE_OPEN 

Ready state that the WebSocket connection is established and communication is possible.

PP_WEBSOCKETREADYSTATE_CLOSING 

Ready state that the connection is going through the closing handshake.

PP_WEBSOCKETREADYSTATE_CLOSED 

Ready state that the connection has been closed or could not be opened.

This enumeration corresponds to fields of an X509 certificate. Refer to <a href="http://www.ietf.org/rfc/rfc5280.txt>RFC 5280 for further documentation about particular fields.

Enumerator
PP_X509CERTIFICATE_PRIVATE_ISSUER_COMMON_NAME 

This corresponds to a string (PP_VARTYPE_STRING).

PP_X509CERTIFICATE_PRIVATE_ISSUER_LOCALITY_NAME 

This corresponds to a string (PP_VARTYPE_STRING).

PP_X509CERTIFICATE_PRIVATE_ISSUER_STATE_OR_PROVINCE_NAME 

This corresponds to a string (PP_VARTYPE_STRING).

PP_X509CERTIFICATE_PRIVATE_ISSUER_COUNTRY_NAME 

This corresponds to a string (PP_VARTYPE_STRING).

PP_X509CERTIFICATE_PRIVATE_ISSUER_ORGANIZATION_NAME 

This corresponds to a string (PP_VARTYPE_STRING).

PP_X509CERTIFICATE_PRIVATE_ISSUER_ORGANIZATION_UNIT_NAME 

This corresponds to a string (PP_VARTYPE_STRING).

PP_X509CERTIFICATE_PRIVATE_ISSUER_UNIQUE_ID 

Note: This field is unimplemented and will return PP_VARTYPE_NULL.

PP_X509CERTIFICATE_PRIVATE_SUBJECT_COMMON_NAME 

This corresponds to a string (PP_VARTYPE_STRING).

PP_X509CERTIFICATE_PRIVATE_SUBJECT_LOCALITY_NAME 

This corresponds to a string (PP_VARTYPE_STRING).

PP_X509CERTIFICATE_PRIVATE_SUBJECT_STATE_OR_PROVINCE_NAME 

This corresponds to a string (PP_VARTYPE_STRING).

PP_X509CERTIFICATE_PRIVATE_SUBJECT_COUNTRY_NAME 

This corresponds to a string (PP_VARTYPE_STRING).

PP_X509CERTIFICATE_PRIVATE_SUBJECT_ORGANIZATION_NAME 

This corresponds to a string (PP_VARTYPE_STRING).

PP_X509CERTIFICATE_PRIVATE_SUBJECT_ORGANIZATION_UNIT_NAME 

This corresponds to a string (PP_VARTYPE_STRING).

PP_X509CERTIFICATE_PRIVATE_SUBJECT_UNIQUE_ID 

Note: This field is unimplemented and will return PP_VARTYPE_NULL.

PP_X509CERTIFICATE_PRIVATE_VERSION 

Note: This field is unimplemented and will return PP_VARTYPE_NULL.

PP_X509CERTIFICATE_PRIVATE_SERIAL_NUMBER 

This corresponds to a byte array (PP_VARTYPE_ARRAY_BUFFER). The serial number may include a leading 0.

PP_X509CERTIFICATE_PRIVATE_SIGNATURE_ALGORITHM_OID 

Note: This field is unimplemented and will return PP_VARTYPE_NULL.

PP_X509CERTIFICATE_PRIVATE_SIGNATURE_ALGORITHM_PARAMATERS_RAW 

Note: This field is unimplemented and will return PP_VARTYPE_NULL.

PP_X509CERTIFICATE_PRIVATE_VALIDITY_NOT_BEFORE 

This corresponds to a double (PP_VARTYPE_DOUBLE) which can be cast to a PP_TIME.

PP_X509CERTIFICATE_PRIVATE_VALIDITY_NOT_AFTER 

This corresponds to a double (PP_VARTYPE_DOUBLE) which can be cast to a PP_TIME.

PP_X509CERTIFICATE_PRIVATE_SUBJECT_PUBLIC_KEY_ALGORITHM_OID 

This corresponds to a string (PP_VARTYPE_STRING).

PP_X509CERTIFICATE_PRIVATE_SUBJECT_PUBLIC_KEY 

Note: This field is unimplemented and will return PP_VARTYPE_NULL.

PP_X509CERTIFICATE_PRIVATE_RAW 

This corresponds to a byte array (PP_VARTYPE_ARRAY_BUFFER). This is the DER-encoded representation of the certificate.

PP_X509CERTIFICATE_PRIVATE_ISSUER_DISTINGUISHED_NAME 

This corresponds to a string (PP_VARTYPE_STRING).

PP_X509CERTIFICATE_PRIVATE_SUBJECT_DISTINGUISHED_NAME 

This corresponds to a string (PP_VARTYPE_STRING).

This enumeration defines the different possible values for X5O9 certificate versions as returned by: GetField(resource, PP_X509CERTIFICATE_PRIVATE_VERSION).