Update bindings.

This commit is contained in:
Hiroyuki Ikezoe 2017-07-10 18:27:19 +09:00
parent 4834162e4a
commit 1a5e1c6255
4 changed files with 131 additions and 77 deletions

View file

@ -1500,7 +1500,7 @@ pub mod root {
pub mod css {
#[allow(unused_imports)]
use self::super::super::super::root;
#[repr(u32)]
#[repr(u8)]
/**
* Enum defining the mode in which a sheet is to be parsed. This is
* usually, but not always, the same as the cascade level at which the
@ -2408,7 +2408,6 @@ pub mod root {
impl Clone for FontVariation {
fn clone(&self) -> Self { *self }
}
pub type Matrix4x4 = [u32; 16usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ScaleFactor {
@ -2417,6 +2416,7 @@ pub mod root {
#[derive(Debug, Copy, Clone)]
pub struct ScaleFactors2D {
}
pub type Matrix4x4 = [u32; 16usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SourceSurface {
@ -2476,7 +2476,6 @@ pub mod root {
ePending = 2,
eUserAction = 3,
eRestore = 4,
eSentinel = 5,
}
extern "C" {
#[link_name =
@ -2487,6 +2486,13 @@ pub mod root {
pub const FrameMetrics_START_SCROLL_ID:
root::mozilla::layers::FrameMetrics_ViewID =
2;
pub const FrameMetrics_sScrollOffsetUpdateTypeCount: usize = 5;
extern "C" {
#[link_name =
"_ZN7mozilla6layers12FrameMetrics30sHighestScrollOffsetUpdateTypeE"]
pub static FrameMetrics_sHighestScrollOffsetUpdateType:
root::mozilla::layers::FrameMetrics_ScrollOffsetUpdateType;
}
#[test]
fn bindgen_test_layout_FrameMetrics() {
assert_eq!(::std::mem::size_of::<FrameMetrics>() , 184usize ,
@ -3317,7 +3323,6 @@ pub mod root {
eNone = 0,
eRefLayer = 1,
eScrollLayer = 2,
eSentinel = 3,
}
#[repr(C)]
#[derive(Debug, Copy)]
@ -3354,6 +3359,13 @@ pub mod root {
impl Clone for FocusTarget_FocusTargetData {
fn clone(&self) -> Self { *self }
}
pub const FocusTarget_sFocusTargetTypeCount: usize = 3;
extern "C" {
#[link_name =
"_ZN7mozilla6layers11FocusTarget23sHighestFocusTargetTypeE"]
pub static FocusTarget_sHighestFocusTargetType:
root::mozilla::layers::FocusTarget_FocusTargetType;
}
#[test]
fn bindgen_test_layout_FocusTarget() {
assert_eq!(::std::mem::size_of::<FocusTarget>() , 32usize ,
@ -7130,10 +7142,11 @@ pub mod root {
Content = 1,
ContentAndNotify = 2,
Style = 3,
InterruptibleLayout = 4,
Layout = 5,
Display = 6,
Count = 7,
EnsurePresShellInitAndFrames = 4,
InterruptibleLayout = 5,
Layout = 6,
Display = 7,
Count = 8,
}
#[repr(C)]
#[derive(Debug, Copy)]
@ -7610,9 +7623,9 @@ pub mod root {
pub mParsingMode: root::mozilla::css::SheetParsingMode,
pub mType: root::mozilla::StyleBackendType,
pub mDisabled: bool,
pub mDirty: bool,
pub mDocumentAssociationMode: root::mozilla::StyleSheet_DocumentAssociationMode,
pub mInner: *mut root::mozilla::StyleSheetInfo,
pub mDirty: bool,
pub mStyleSets: root::nsTArray<root::mozilla::StyleSetHandle>,
}
pub type StyleSheet_HasThreadSafeRefCnt = root::mozilla::FalseType;
@ -7651,7 +7664,7 @@ pub mod root {
RuleRemoved = 4,
RuleChanged = 5,
}
#[repr(u32)]
#[repr(u8)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum StyleSheet_DocumentAssociationMode {
OwnedByDocument = 0,
@ -7699,7 +7712,7 @@ pub mod root {
}
#[test]
fn bindgen_test_layout_StyleSheet() {
assert_eq!(::std::mem::size_of::<StyleSheet>() , 160usize , concat
assert_eq!(::std::mem::size_of::<StyleSheet>() , 144usize , concat
! ( "Size of: " , stringify ! ( StyleSheet ) ));
assert_eq! (::std::mem::align_of::<StyleSheet>() , 8usize , concat
! ( "Alignment of " , stringify ! ( StyleSheet ) ));
@ -7802,7 +7815,7 @@ pub mod root {
}
#[test]
fn bindgen_test_layout_ServoStyleSheet() {
assert_eq!(::std::mem::size_of::<ServoStyleSheet>() , 168usize ,
assert_eq!(::std::mem::size_of::<ServoStyleSheet>() , 152usize ,
concat ! (
"Size of: " , stringify ! ( ServoStyleSheet ) ));
assert_eq! (::std::mem::align_of::<ServoStyleSheet>() , 8usize ,
@ -7810,7 +7823,7 @@ pub mod root {
"Alignment of " , stringify ! ( ServoStyleSheet ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ServoStyleSheet ) ) . mRuleList
as * const _ as usize } , 160usize , concat ! (
as * const _ as usize } , 144usize , concat ! (
"Alignment of field: " , stringify ! ( ServoStyleSheet
) , "::" , stringify ! ( mRuleList ) ));
}
@ -7882,13 +7895,14 @@ pub mod root {
pub mComplete: bool,
pub mFirstChild: root::RefPtr<root::mozilla::StyleSheet>,
pub mSheets: [u64; 10usize],
pub mSourceMapURL: ::nsstring::nsStringRepr,
pub mPrincipalSet: bool,
}
pub use self::super::super::root::mozilla::net::ReferrerPolicy as
StyleSheetInfo_ReferrerPolicy;
#[test]
fn bindgen_test_layout_StyleSheetInfo() {
assert_eq!(::std::mem::size_of::<StyleSheetInfo>() , 200usize ,
assert_eq!(::std::mem::size_of::<StyleSheetInfo>() , 216usize ,
concat ! ( "Size of: " , stringify ! ( StyleSheetInfo )
));
assert_eq! (::std::mem::align_of::<StyleSheetInfo>() , 8usize ,
@ -7948,7 +7962,13 @@ pub mod root {
) , "::" , stringify ! ( mSheets ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const StyleSheetInfo ) ) .
mPrincipalSet as * const _ as usize } , 192usize ,
mSourceMapURL as * const _ as usize } , 192usize ,
concat ! (
"Alignment of field: " , stringify ! ( StyleSheetInfo
) , "::" , stringify ! ( mSourceMapURL ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const StyleSheetInfo ) ) .
mPrincipalSet as * const _ as usize } , 208usize ,
concat ! (
"Alignment of field: " , stringify ! ( StyleSheetInfo
) , "::" , stringify ! ( mPrincipalSet ) ));
@ -8878,12 +8898,12 @@ pub mod root {
pub mBlobSerial: [u64; 2usize],
pub mOriginAttributes: root::mozilla::OriginAttributes,
pub mControlledDocument: *mut ::std::os::raw::c_void,
pub mHash: u32,
pub mHash: root::PLDHashNumber,
pub mIsChrome: bool,
}
#[test]
fn bindgen_test_layout_ImageCacheKey() {
assert_eq!(::std::mem::size_of::<ImageCacheKey>() , 80usize ,
assert_eq!(::std::mem::size_of::<ImageCacheKey>() , 88usize ,
concat ! (
"Size of: " , stringify ! ( ImageCacheKey ) ));
assert_eq! (::std::mem::align_of::<ImageCacheKey>() , 8usize ,
@ -8923,7 +8943,7 @@ pub mod root {
ImageCacheKey ) , "::" , stringify ! ( mHash ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ImageCacheKey ) ) . mIsChrome
as * const _ as usize } , 76usize , concat ! (
as * const _ as usize } , 80usize , concat ! (
"Alignment of field: " , stringify ! (
ImageCacheKey ) , "::" , stringify ! ( mIsChrome )
));
@ -10585,7 +10605,7 @@ pub mod root {
#[test]
fn bindgen_test_layout_ServoStyleSheetInner() {
assert_eq!(::std::mem::size_of::<ServoStyleSheetInner>() ,
216usize , concat ! (
232usize , concat ! (
"Size of: " , stringify ! ( ServoStyleSheetInner ) ));
assert_eq! (::std::mem::align_of::<ServoStyleSheetInner>() ,
8usize , concat ! (
@ -10593,14 +10613,14 @@ pub mod root {
));
assert_eq! (unsafe {
& ( * ( 0 as * const ServoStyleSheetInner ) ) .
mContents as * const _ as usize } , 200usize , concat
mContents as * const _ as usize } , 216usize , concat
! (
"Alignment of field: " , stringify ! (
ServoStyleSheetInner ) , "::" , stringify ! (
mContents ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ServoStyleSheetInner ) ) .
mURLData as * const _ as usize } , 208usize , concat !
mURLData as * const _ as usize } , 224usize , concat !
(
"Alignment of field: " , stringify ! (
ServoStyleSheetInner ) , "::" , stringify ! ( mURLData
@ -11958,7 +11978,6 @@ pub mod root {
NS_ERROR_PLUGIN_BLOCKLISTED = 2152465386,
NS_ERROR_PLUGIN_TIME_RANGE_NOT_SUPPORTED = 2152465387,
NS_ERROR_PLUGIN_CLICKTOPLAY = 2152465388,
NS_PLUGIN_INIT_PENDING = 4981741,
NS_TABLELAYOUT_CELL_NOT_FOUND = 5046272,
NS_POSITION_BEFORE_TABLE = 5046275,
NS_STATE_PROPERTY_NOT_THERE = 5046277,
@ -14702,7 +14721,7 @@ pub mod root {
pub struct nsAutoPtr_Proxy {
}
pub type nsAutoPtr_Proxy_member_function = u8;
pub type PLDHashNumber = u32;
pub type PLDHashNumber = usize;
#[repr(C)]
pub struct PLDHashTable {
pub mOps: *const root::PLDHashTableOps,
@ -14812,8 +14831,8 @@ pub mod root {
pub const PLDHashTable_kMinCapacity: u32 = 8;
pub const PLDHashTable_kMaxInitialLength: u32 = 33554432;
pub const PLDHashTable_kDefaultInitialLength: u32 = 4;
pub const PLDHashTable_kHashBits: u32 = 32;
pub const PLDHashTable_kGoldenRatio: u32 = 2654435769;
pub const PLDHashTable_kHashBits: u32 = 64;
pub const PLDHashTable_kGoldenRatio: u64 = 2135587859;
pub const PLDHashTable_kCollisionFlag: root::PLDHashNumber = 1;
#[test]
fn bindgen_test_layout_PLDHashTable() {
@ -14909,9 +14928,9 @@ pub mod root {
}
#[test]
fn bindgen_test_layout_PLDHashEntryHdr() {
assert_eq!(::std::mem::size_of::<PLDHashEntryHdr>() , 4usize , concat
assert_eq!(::std::mem::size_of::<PLDHashEntryHdr>() , 8usize , concat
! ( "Size of: " , stringify ! ( PLDHashEntryHdr ) ));
assert_eq! (::std::mem::align_of::<PLDHashEntryHdr>() , 4usize ,
assert_eq! (::std::mem::align_of::<PLDHashEntryHdr>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( PLDHashEntryHdr ) ));
assert_eq! (unsafe {
@ -15875,13 +15894,6 @@ pub mod root {
pub enum nsStyleAutoArray_WithSingleInitialElement {
WITH_SINGLE_INITIAL_ELEMENT = 0,
}
/**
* Currently needs to be 'double' for Cairo compatibility. Could
* become 'float', perhaps, in some configurations.
*/
pub type gfxFloat = f64;
pub type gfxSize = [u64; 2usize];
pub type nsIntRect = root::mozilla::gfx::IntRect;
pub const nsStyleUnit_eStyleUnit_MAX: root::nsStyleUnit =
nsStyleUnit::eStyleUnit_Calc;
#[repr(u8)]
@ -16353,6 +16365,8 @@ pub mod root {
nsEventStatus_eConsumeDoDefault = 2,
nsEventStatus_eSentinel = 3,
}
pub type gfxSize = [u64; 2usize];
pub type nsIntRect = root::mozilla::gfx::IntRect;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct pixman_region32_data {
@ -27441,7 +27455,7 @@ pub mod root {
* smooth msd, or normal scrolling.
*
* SMOOTH scrolls have a symmetrical acceleration and deceleration curve
* modeled with a set of splines that guarantee that the destination will be
* modeled with a set of splines that guarantee that the destination will be
* reached over a fixed time interval. SMOOTH will only be smooth if smooth
* scrolling is actually enabled. This behavior is utilized by keyboard and
* mouse wheel scrolling events.
@ -27824,6 +27838,11 @@ pub mod root {
nsLanguageAtomService ) , "::" , stringify ! (
mLocaleLanguage ) ));
}
/**
* Currently needs to be 'double' for Cairo compatibility. Could
* become 'float', perhaps, in some configurations.
*/
pub type gfxFloat = f64;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct nsINamed {
@ -32956,7 +32975,7 @@ pub mod root {
pub type imgRequest_HasThreadSafeRefCnt = root::mozilla::TrueType;
#[test]
fn bindgen_test_layout_imgRequest() {
assert_eq!(::std::mem::size_of::<imgRequest>() , 416usize , concat ! (
assert_eq!(::std::mem::size_of::<imgRequest>() , 424usize , concat ! (
"Size of: " , stringify ! ( imgRequest ) ));
assert_eq! (::std::mem::align_of::<imgRequest>() , 8usize , concat ! (
"Alignment of " , stringify ! ( imgRequest ) ));
@ -38425,7 +38444,7 @@ pub mod root {
root::nsCharTraits ) ));
}
#[test]
fn __bindgen_test_layout__bindgen_ty_id_214925_instantiation_100() {
fn __bindgen_test_layout__bindgen_ty_id_214707_instantiation_100() {
assert_eq!(::std::mem::size_of::<u8>() , 1usize , concat ! (
"Size of template specialization: " , stringify ! ( u8 )
));
@ -38434,7 +38453,7 @@ pub mod root {
) ));
}
#[test]
fn __bindgen_test_layout__bindgen_ty_id_214961_instantiation_101() {
fn __bindgen_test_layout__bindgen_ty_id_214743_instantiation_101() {
assert_eq!(::std::mem::size_of::<u8>() , 1usize , concat ! (
"Size of template specialization: " , stringify ! ( u8 )
));