forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathv8utils.h
More file actions
38 lines (29 loc) · 1.43 KB
/
v8utils.h
File metadata and controls
38 lines (29 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (c) 2013 CEF Python, see the Authors file.
// All rights reserved. Licensed under BSD 3-clause license.
// Project website: https://github.com/cztomczak/cefpython
#pragma once
#include "include/cef_v8.h"
#include "include/cef_values.h"
#include "v8function_handler.h"
// ----------------------------------------------------------------------------
// V8 values to CEF values.
// ----------------------------------------------------------------------------
CefRefPtr<CefListValue> V8ValueListToCefListValue(
const CefV8ValueList& v8List);
void V8ValueAppendToCefListValue(const CefRefPtr<CefV8Value> v8Value,
CefRefPtr<CefListValue> listValue,
int nestingLevel=0);
CefRefPtr<CefDictionaryValue> V8ObjectToCefDictionaryValue(
const CefRefPtr<CefV8Value> v8Object,
int nestingLevel=0);
// ----------------------------------------------------------------------------
// CEF values to V8 values.
// ----------------------------------------------------------------------------
CefV8ValueList CefListValueToCefV8ValueList(
CefRefPtr<CefListValue> listValue);
CefRefPtr<CefV8Value> CefListValueToV8Value(
CefRefPtr<CefListValue> listValue,
int nestingLevel=0);
CefRefPtr<CefV8Value> CefDictionaryValueToV8Value(
CefRefPtr<CefDictionaryValue> dictValue,
int nestingLevel=0);