[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/pythonthings/cefpython/cefpython53/src/subprocess/v8utils.h [Back]  [Original]

// Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
// License: New BSD License.
// Website: http://code.google.com/p/cefpython/

#pragma once
#include "include/cef_v8.h"
#include "include/cef_values.h"
#include "v8function_handler.h"

// ----------------------------------------------------------------------------
// V8 values to CEF values.
// ----------------------------------------------------------------------------

CefRefPtr V8ValueListToCefListValue(
        const CefV8ValueList& v8List);

void V8ValueAppendToCefListValue(const CefRefPtr v8Value, 
                           CefRefPtr listValue,
                           int nestingLevel=0);

CefRefPtr V8ObjectToCefDictionaryValue(
                                    const CefRefPtr v8Object,
                                    int nestingLevel=0);

// ----------------------------------------------------------------------------
// CEF values to V8 values.
// ----------------------------------------------------------------------------

CefV8ValueList CefListValueToCefV8ValueList(
        CefRefPtr listValue);

CefRefPtr CefListValueToV8Value(
        CefRefPtr listValue,
        int nestingLevel=0);

CefRefPtr CefDictionaryValueToV8Value(
        CefRefPtr dictValue,
        int nestingLevel=0);

Web Proxy Viewer  |  New URL  |  Original Page