servo/ports/cef/v8.rs
author Dão Gottwald <dao@mozilla.com>
Wed, 19 Jul 2017 16:38:49 +0200
changeset 418381 fad8cd3c31fd9e093b2346d014bbdd675ad5937d
parent 382289 c025457a0857e44486e24bcae5e71ef3b2e16d81
permissions -rw-r--r--
Bug 1379938 - Rename the -moz-windows-accent-color-applies media query and make -moz-win-accentcolor available without it. r=jimm MozReview-Commit-ID: 9zMr9JwkloF

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use interfaces::{cef_v8accessor_t, cef_v8context_t, cef_v8handler_t, cef_v8stack_trace_t};
use interfaces::{cef_v8value_t};
use types::{cef_string_t, cef_time_t};

use libc::{self, c_double, c_int};

cef_stub_static_method_impls! {
    fn cef_v8context_get_current_context() -> *mut cef_v8context_t
    fn cef_v8context_get_entered_context() -> *mut cef_v8context_t
    fn cef_v8context_in_context() -> libc::c_int
    fn cef_v8value_create_undefined() -> *mut cef_v8value_t
    fn cef_v8value_create_null() -> *mut cef_v8value_t
    fn cef_v8value_create_bool(_value: c_int) -> *mut cef_v8value_t
    fn cef_v8value_create_int(_value: i32) -> *mut cef_v8value_t
    fn cef_v8value_create_uint(_value: u32) -> *mut cef_v8value_t
    fn cef_v8value_create_double(_value: c_double) -> *mut cef_v8value_t
    fn cef_v8value_create_date(_date: *const cef_time_t) -> *mut cef_v8value_t
    fn cef_v8value_create_string(_value: *const cef_string_t) -> *mut cef_v8value_t
    fn cef_v8value_create_object(_accessor: *mut cef_v8accessor_t) -> *mut cef_v8value_t
    fn cef_v8value_create_array(_length: libc::c_int) -> *mut cef_v8value_t
    fn cef_v8value_create_function(_name: *const cef_string_t, _handler: *mut cef_v8handler_t)
                                   -> *mut cef_v8value_t
    fn cef_v8stack_trace_get_current(_frame_limit: libc::c_int) -> *mut cef_v8stack_trace_t
}