Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 306759 Details for
Bug 448511
Firefox 3.0rc1 compilation fails with internal compiler error
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Preprocessed source
ccF6GgzF.out (text/plain), 1.48 MB, created by
Michal Nazarewicz
on 2008-05-27 11:48:59 UTC
(
hide
)
Description:
Preprocessed source
Filename:
MIME Type:
Creator:
Michal Nazarewicz
Created:
2008-05-27 11:48:59 UTC
Size:
1.48 MB
patch
obsolete
>// /usr/libexec/gcc/i386-redhat-linux/4.1.0/cc1plus -quiet -I. -I. -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/dom -I../../../dist/include/gfx -I../../../dist/include/thebes -I../../../dist/include/layout -I../../../dist/include/widget -I../../../dist/include/view -I../../../dist/include/locale -I../../../dist/include/htmlparser -I../../../dist/include/js -I../../../dist/include/webshell -I../../../dist/include/necko -I../../../dist/include/mimetype -I../../../dist/include/exthandler -I../../../dist/include/chardet -I../../../dist/include/caps -I../../../dist/include/lwbrk -I../../../dist/include/uconv -I../../../dist/include/docshell -I../../../dist/include/pref -I../../../dist/include/xpconnect -I../../../dist/include/unicharutil -I../../../dist/include/intl -I../../../dist/include/webbrowserpersist -I../../../dist/include/imglib2 -I../../../dist/include/plugin -I../../../dist/include/prefetch -I../../../dist/include/xuldoc -I../../../dist/include/uriloader -I../../../dist/include/rdf -I../../../dist/include/xultmpl -I../../../dist/include/util -I../../../dist/include/appshell -I../../../dist/include/shistory -I../../../dist/include/editor -I../../../dist/include/windowwatcher -I../../../dist/include/accessibility -I../../../dist/include -I../../../dist/include/content -I../../../dist/include/nspr -I../../../dist/sdk/include -I./../../events/src -I./../../xml/content/src -I./../../xul/base/src -I./../../xul/content/src -I./../../html/content/src -I./../../base/src -I./../../xbl/src -I./../../../layout/generic -I./../../../layout/style -I./../../../dom/src/base -I./../../xml/document/src -I../../../xpcom/io -D_GNU_SOURCE -D_REENTRANT -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_COM_OBSOLETE -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES -DZLIB_INTERNAL -DOSTYPE="Linux2.6.15-1" -DOSARCH=Linux -D_IMPL_NS_LAYOUT -DNDEBUG -DTRIMMED -DMOZILLA_CLIENT -include ../../../mozilla-config.h -MD .deps/nsContentUtils.pp nsContentUtils.cpp -quiet -dumpbase nsContentUtils.cpp -mtune=generic -auxbase-strip nsContentUtils.o -Os -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-long-long -pedantic -fvisibility=hidden -fPIC -fno-rtti -fno-exceptions -fno-strict-aliasing -fshort-wchar -freorder-blocks -fno-reorder-functions -finline-limit=50 -o - -frandom-seed=0 ># 1 "nsContentUtils.cpp" ># 1 "<built-in>" ># 1 "<command line>" ># 1 "./../../../mozilla-config.h" 1 ># 1 "<command line>" 2 ># 1 "nsContentUtils.cpp" ># 45 "nsContentUtils.cpp" ># 1 "./../../../dom/src/base/nsJSUtils.h" 1 ># 48 "./../../../dom/src/base/nsJSUtils.h" ># 1 "../../../dist/include/xpcom/nsISupports.h" 1 ># 10 "../../../dist/include/xpcom/nsISupports.h" ># 1 "../../../dist/include/xpcom/nsrootidl.h" 1 ># 11 "../../../dist/include/xpcom/nsrootidl.h" ># 1 "../../../dist/include/xpcom/nscore.h" 1 ># 45 "../../../dist/include/xpcom/nscore.h" ># 1 "../../../dist/include/xpcom/xpcom-config.h" 1 ># 46 "../../../dist/include/xpcom/nscore.h" 2 > > > > > ># 1 "../../../dist/include/nspr/prtypes.h" 1 ># 58 "../../../dist/include/nspr/prtypes.h" ># 1 "../../../dist/include/nspr/prcpucfg.h" 1 ># 59 "../../../dist/include/nspr/prtypes.h" 2 > > ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 152 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 3 4 >typedef int ptrdiff_t; ># 214 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 3 4 >typedef unsigned int size_t; ># 62 "../../../dist/include/nspr/prtypes.h" 2 ># 274 "../../../dist/include/nspr/prtypes.h" >extern "C" { ># 284 "../../../dist/include/nspr/prtypes.h" >typedef unsigned char PRUint8; ># 298 "../../../dist/include/nspr/prtypes.h" >typedef signed char PRInt8; ># 323 "../../../dist/include/nspr/prtypes.h" >typedef unsigned short PRUint16; >typedef short PRInt16; ># 348 "../../../dist/include/nspr/prtypes.h" >typedef unsigned int PRUint32; >typedef int PRInt32; ># 394 "../../../dist/include/nspr/prtypes.h" >typedef long long PRInt64; >typedef unsigned long long PRUint64; ># 418 "../../../dist/include/nspr/prtypes.h" >typedef int PRIntn; >typedef unsigned int PRUintn; ># 429 "../../../dist/include/nspr/prtypes.h" >typedef double PRFloat64; > > > > > > >typedef size_t PRSize; > > > > > > > >typedef PRInt32 PROffset32; >typedef PRInt64 PROffset64; > > > > > > > >typedef ptrdiff_t PRPtrdiff; ># 464 "../../../dist/include/nspr/prtypes.h" >typedef unsigned long PRUptrdiff; ># 475 "../../../dist/include/nspr/prtypes.h" >typedef PRIntn PRBool; ># 485 "../../../dist/include/nspr/prtypes.h" >typedef PRUint8 PRPackedBool; > > > > > >typedef enum { PR_FAILURE = -1, PR_SUCCESS = 0 } PRStatus; > > > > > > >typedef PRUint16 PRUnichar; ># 517 "../../../dist/include/nspr/prtypes.h" >typedef long PRWord; >typedef unsigned long PRUword; ># 560 "../../../dist/include/nspr/prtypes.h" ># 1 "../../../dist/include/nspr/obsolete/protypes.h" 1 ># 48 "../../../dist/include/nspr/obsolete/protypes.h" >typedef PRUintn uintn; > >typedef PRIntn intn; ># 86 "../../../dist/include/nspr/obsolete/protypes.h" ># 1 "/usr/include/sys/types.h" 1 3 4 ># 27 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/features.h" 1 3 4 ># 329 "/usr/include/features.h" 3 4 ># 1 "/usr/include/sys/cdefs.h" 1 3 4 ># 313 "/usr/include/sys/cdefs.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 314 "/usr/include/sys/cdefs.h" 2 3 4 ># 330 "/usr/include/features.h" 2 3 4 ># 352 "/usr/include/features.h" 3 4 ># 1 "/usr/include/gnu/stubs.h" 1 3 4 > > > ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 5 "/usr/include/gnu/stubs.h" 2 3 4 > > ># 1 "/usr/include/gnu/stubs-32.h" 1 3 4 ># 8 "/usr/include/gnu/stubs.h" 2 3 4 ># 353 "/usr/include/features.h" 2 3 4 ># 28 "/usr/include/sys/types.h" 2 3 4 > >extern "C" { > ># 1 "/usr/include/bits/types.h" 1 3 4 ># 28 "/usr/include/bits/types.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 29 "/usr/include/bits/types.h" 2 3 4 > > ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 32 "/usr/include/bits/types.h" 2 3 4 > > >typedef unsigned char __u_char; >typedef unsigned short int __u_short; >typedef unsigned int __u_int; >typedef unsigned long int __u_long; > > >typedef signed char __int8_t; >typedef unsigned char __uint8_t; >typedef signed short int __int16_t; >typedef unsigned short int __uint16_t; >typedef signed int __int32_t; >typedef unsigned int __uint32_t; > > > > >__extension__ typedef signed long long int __int64_t; >__extension__ typedef unsigned long long int __uint64_t; > > > > > > > >__extension__ typedef long long int __quad_t; >__extension__ typedef unsigned long long int __u_quad_t; ># 134 "/usr/include/bits/types.h" 3 4 ># 1 "/usr/include/bits/typesizes.h" 1 3 4 ># 135 "/usr/include/bits/types.h" 2 3 4 > > >__extension__ typedef __u_quad_t __dev_t; >__extension__ typedef unsigned int __uid_t; >__extension__ typedef unsigned int __gid_t; >__extension__ typedef unsigned long int __ino_t; >__extension__ typedef __u_quad_t __ino64_t; >__extension__ typedef unsigned int __mode_t; >__extension__ typedef unsigned int __nlink_t; >__extension__ typedef long int __off_t; >__extension__ typedef __quad_t __off64_t; >__extension__ typedef int __pid_t; >__extension__ typedef struct { int __val[2]; } __fsid_t; >__extension__ typedef long int __clock_t; >__extension__ typedef unsigned long int __rlim_t; >__extension__ typedef __u_quad_t __rlim64_t; >__extension__ typedef unsigned int __id_t; >__extension__ typedef long int __time_t; >__extension__ typedef unsigned int __useconds_t; >__extension__ typedef long int __suseconds_t; > >__extension__ typedef int __daddr_t; >__extension__ typedef long int __swblk_t; >__extension__ typedef int __key_t; > > >__extension__ typedef int __clockid_t; > > >__extension__ typedef void * __timer_t; > > >__extension__ typedef long int __blksize_t; > > > > >__extension__ typedef long int __blkcnt_t; >__extension__ typedef __quad_t __blkcnt64_t; > > >__extension__ typedef unsigned long int __fsblkcnt_t; >__extension__ typedef __u_quad_t __fsblkcnt64_t; > > >__extension__ typedef unsigned long int __fsfilcnt_t; >__extension__ typedef __u_quad_t __fsfilcnt64_t; > >__extension__ typedef int __ssize_t; > > > >typedef __off64_t __loff_t; >typedef __quad_t *__qaddr_t; >typedef char *__caddr_t; > > >__extension__ typedef int __intptr_t; > > >__extension__ typedef unsigned int __socklen_t; ># 32 "/usr/include/sys/types.h" 2 3 4 > > > >typedef __u_char u_char; >typedef __u_short u_short; >typedef __u_int u_int; >typedef __u_long u_long; >typedef __quad_t quad_t; >typedef __u_quad_t u_quad_t; >typedef __fsid_t fsid_t; > > > > >typedef __loff_t loff_t; > > > >typedef __ino_t ino_t; > > > > > > >typedef __ino64_t ino64_t; > > > > >typedef __dev_t dev_t; > > > > >typedef __gid_t gid_t; > > > > >typedef __mode_t mode_t; > > > > >typedef __nlink_t nlink_t; > > > > >typedef __uid_t uid_t; > > > > > >typedef __off_t off_t; > > > > > > >typedef __off64_t off64_t; > > > > >typedef __pid_t pid_t; > > > > >typedef __id_t id_t; > > > > >typedef __ssize_t ssize_t; > > > > > >typedef __daddr_t daddr_t; >typedef __caddr_t caddr_t; > > > > > >typedef __key_t key_t; ># 133 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/time.h" 1 3 4 ># 59 "/usr/include/time.h" 3 4 > > >typedef __clock_t clock_t; > > > ># 75 "/usr/include/time.h" 3 4 > > >typedef __time_t time_t; > > > ># 93 "/usr/include/time.h" 3 4 >typedef __clockid_t clockid_t; ># 105 "/usr/include/time.h" 3 4 >typedef __timer_t timer_t; ># 134 "/usr/include/sys/types.h" 2 3 4 > > > >typedef __useconds_t useconds_t; > > > >typedef __suseconds_t suseconds_t; > > > > > ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 148 "/usr/include/sys/types.h" 2 3 4 > > > >typedef unsigned long int ulong; >typedef unsigned short int ushort; >typedef unsigned int uint; ># 195 "/usr/include/sys/types.h" 3 4 >typedef int int8_t __attribute__ ((__mode__ (__QI__))); >typedef int int16_t __attribute__ ((__mode__ (__HI__))); >typedef int int32_t __attribute__ ((__mode__ (__SI__))); >typedef int int64_t __attribute__ ((__mode__ (__DI__))); > > >typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); >typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); >typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); >typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); > >typedef int register_t __attribute__ ((__mode__ (__word__))); ># 217 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/endian.h" 1 3 4 ># 37 "/usr/include/endian.h" 3 4 ># 1 "/usr/include/bits/endian.h" 1 3 4 ># 38 "/usr/include/endian.h" 2 3 4 ># 218 "/usr/include/sys/types.h" 2 3 4 > > ># 1 "/usr/include/sys/select.h" 1 3 4 ># 31 "/usr/include/sys/select.h" 3 4 ># 1 "/usr/include/bits/select.h" 1 3 4 ># 32 "/usr/include/sys/select.h" 2 3 4 > > ># 1 "/usr/include/bits/sigset.h" 1 3 4 ># 23 "/usr/include/bits/sigset.h" 3 4 >typedef int __sig_atomic_t; > > > > >typedef struct > { > unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; > } __sigset_t; ># 35 "/usr/include/sys/select.h" 2 3 4 > > > >typedef __sigset_t sigset_t; > > > > > ># 1 "/usr/include/time.h" 1 3 4 ># 121 "/usr/include/time.h" 3 4 >struct timespec > { > __time_t tv_sec; > long int tv_nsec; > }; ># 45 "/usr/include/sys/select.h" 2 3 4 > ># 1 "/usr/include/bits/time.h" 1 3 4 ># 69 "/usr/include/bits/time.h" 3 4 >struct timeval > { > __time_t tv_sec; > __suseconds_t tv_usec; > }; ># 47 "/usr/include/sys/select.h" 2 3 4 ># 55 "/usr/include/sys/select.h" 3 4 >typedef long int __fd_mask; ># 67 "/usr/include/sys/select.h" 3 4 >typedef struct > { > > > > __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))]; > > > > > > } fd_set; > > > > > > >typedef __fd_mask fd_mask; ># 99 "/usr/include/sys/select.h" 3 4 >extern "C" { ># 109 "/usr/include/sys/select.h" 3 4 >extern int select (int __nfds, fd_set *__restrict __readfds, > fd_set *__restrict __writefds, > fd_set *__restrict __exceptfds, > struct timeval *__restrict __timeout); ># 121 "/usr/include/sys/select.h" 3 4 >extern int pselect (int __nfds, fd_set *__restrict __readfds, > fd_set *__restrict __writefds, > fd_set *__restrict __exceptfds, > const struct timespec *__restrict __timeout, > const __sigset_t *__restrict __sigmask); > > >} ># 221 "/usr/include/sys/types.h" 2 3 4 > > ># 1 "/usr/include/sys/sysmacros.h" 1 3 4 ># 29 "/usr/include/sys/sysmacros.h" 3 4 >__extension__ >extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) > throw (); >__extension__ >extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev) > throw (); >__extension__ >extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major, > unsigned int __minor) > throw (); > > >__extension__ extern __inline unsigned int >gnu_dev_major (unsigned long long int __dev) throw () >{ > return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); >} > >__extension__ extern __inline unsigned int >gnu_dev_minor (unsigned long long int __dev) throw () >{ > return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); >} > >__extension__ extern __inline unsigned long long int >gnu_dev_makedev (unsigned int __major, unsigned int __minor) throw () >{ > return ((__minor & 0xff) | ((__major & 0xfff) << 8) > | (((unsigned long long int) (__minor & ~0xff)) << 12) > | (((unsigned long long int) (__major & ~0xfff)) << 32)); >} ># 224 "/usr/include/sys/types.h" 2 3 4 > > > > >typedef __blksize_t blksize_t; > > > > > > >typedef __blkcnt_t blkcnt_t; > > > >typedef __fsblkcnt_t fsblkcnt_t; > > > >typedef __fsfilcnt_t fsfilcnt_t; ># 262 "/usr/include/sys/types.h" 3 4 >typedef __blkcnt64_t blkcnt64_t; >typedef __fsblkcnt64_t fsblkcnt64_t; >typedef __fsfilcnt64_t fsfilcnt64_t; > > > > > ># 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 ># 36 "/usr/include/bits/pthreadtypes.h" 3 4 >typedef unsigned long int pthread_t; > > >typedef union >{ > char __size[36]; > long int __align; >} pthread_attr_t; > > >typedef struct __pthread_internal_slist >{ > struct __pthread_internal_slist *__next; >} __pthread_slist_t; > > > > >typedef union >{ > struct __pthread_mutex_s > { > int __lock; > unsigned int __count; > int __owner; > > > int __kind; > unsigned int __nusers; > __extension__ union > { > int __spins; > __pthread_slist_t __list; > }; > } __data; > char __size[24]; > long int __align; >} pthread_mutex_t; > >typedef union >{ > char __size[4]; > long int __align; >} pthread_mutexattr_t; > > > > >typedef union >{ > struct > { > int __lock; > unsigned int __futex; > __extension__ unsigned long long int __total_seq; > __extension__ unsigned long long int __wakeup_seq; > __extension__ unsigned long long int __woken_seq; > void *__mutex; > unsigned int __nwaiters; > unsigned int __broadcast_seq; > } __data; > char __size[48]; > __extension__ long long int __align; >} pthread_cond_t; > >typedef union >{ > char __size[4]; > long int __align; >} pthread_condattr_t; > > > >typedef unsigned int pthread_key_t; > > > >typedef int pthread_once_t; > > > > > >typedef union >{ > struct > { > int __lock; > unsigned int __nr_readers; > unsigned int __readers_wakeup; > unsigned int __writer_wakeup; > unsigned int __nr_readers_queued; > unsigned int __nr_writers_queued; > > > unsigned int __flags; > int __writer; > } __data; > char __size[32]; > long int __align; >} pthread_rwlock_t; > >typedef union >{ > char __size[8]; > long int __align; >} pthread_rwlockattr_t; > > > > > >typedef volatile int pthread_spinlock_t; > > > > >typedef union >{ > char __size[20]; > long int __align; >} pthread_barrier_t; > >typedef union >{ > char __size[4]; > int __align; >} pthread_barrierattr_t; ># 271 "/usr/include/sys/types.h" 2 3 4 > > >} ># 87 "../../../dist/include/nspr/obsolete/protypes.h" 2 ># 108 "../../../dist/include/nspr/obsolete/protypes.h" >typedef PRUint64 uint64; ># 117 "../../../dist/include/nspr/obsolete/protypes.h" >typedef PRUint32 uint32; ># 128 "../../../dist/include/nspr/obsolete/protypes.h" >typedef PRUint16 uint16; > > > > > > > >typedef PRUint8 uint8; ># 145 "../../../dist/include/nspr/obsolete/protypes.h" >typedef PRInt64 int64; ># 156 "../../../dist/include/nspr/obsolete/protypes.h" >typedef PRInt32 int32; ># 169 "../../../dist/include/nspr/obsolete/protypes.h" >typedef PRInt16 int16; ># 179 "../../../dist/include/nspr/obsolete/protypes.h" >typedef PRInt8 int8; > > >typedef PRFloat64 float64; >typedef PRUptrdiff uptrdiff_t; >typedef PRUword uprword_t; >typedef PRWord prword_t; ># 561 "../../../dist/include/nspr/prtypes.h" 2 > > > > > >} ># 52 "../../../dist/include/xpcom/nscore.h" 2 ># 347 "../../../dist/include/xpcom/nscore.h" >typedef PRUint32 nsresult; ># 360 "../../../dist/include/xpcom/nscore.h" >typedef PRUint32 nsrefcnt; > > > > > > > ># 1 "../../../dist/include/xpcom/nsError.h" 1 ># 314 "../../../dist/include/xpcom/nsError.h" >extern nsresult >NS_ErrorAccordingToNSPR(); ># 369 "../../../dist/include/xpcom/nscore.h" 2 ># 12 "../../../dist/include/xpcom/nsrootidl.h" 2 ># 1 "../../../dist/include/nspr/prtime.h" 1 ># 51 "../../../dist/include/nspr/prtime.h" ># 1 "../../../dist/include/nspr/prlong.h" 1 ># 49 "../../../dist/include/nspr/prlong.h" ># 1 "../../../dist/include/nspr/prtypes.h" 1 ># 50 "../../../dist/include/nspr/prlong.h" 2 > >extern "C" { ># 72 "../../../dist/include/nspr/prlong.h" >extern __attribute__((visibility("default"))) PRInt64 LL_MaxInt(void); >extern __attribute__((visibility("default"))) PRInt64 LL_MinInt(void); >extern __attribute__((visibility("default"))) PRInt64 LL_Zero(void); >extern __attribute__((visibility("default"))) PRUint64 LL_MaxUint(void); ># 443 "../../../dist/include/nspr/prlong.h" >} ># 52 "../../../dist/include/nspr/prtime.h" 2 > >extern "C" { ># 80 "../../../dist/include/nspr/prtime.h" >typedef PRInt64 PRTime; > > > > > > >typedef struct PRTimeParameters { > PRInt32 tp_gmt_offset; > PRInt32 tp_dst_offset; >} PRTimeParameters; ># 115 "../../../dist/include/nspr/prtime.h" >typedef struct PRExplodedTime { > PRInt32 tm_usec; > PRInt32 tm_sec; > > PRInt32 tm_min; > PRInt32 tm_hour; > PRInt32 tm_mday; > > PRInt32 tm_month; > PRInt16 tm_year; > > > PRInt8 tm_wday; > > PRInt16 tm_yday; > > > PRTimeParameters tm_params; >} PRExplodedTime; ># 158 "../../../dist/include/nspr/prtime.h" >typedef PRTimeParameters ( *PRTimeParamFn)(const PRExplodedTime *gmt); ># 180 "../../../dist/include/nspr/prtime.h" >extern __attribute__((visibility("default"))) PRTime > >PR_Now(void); ># 194 "../../../dist/include/nspr/prtime.h" >extern __attribute__((visibility("default"))) void PR_ExplodeTime( > PRTime usecs, PRTimeParamFn params, PRExplodedTime *exploded); > > > > > >extern __attribute__((visibility("default"))) PRTime > >PR_ImplodeTime(const PRExplodedTime *exploded); ># 217 "../../../dist/include/nspr/prtime.h" >extern __attribute__((visibility("default"))) void PR_NormalizeTime( > PRExplodedTime *exploded, PRTimeParamFn params); > > > > > > >extern __attribute__((visibility("default"))) PRTimeParameters PR_LocalTimeParameters(const PRExplodedTime *gmt); > > >extern __attribute__((visibility("default"))) PRTimeParameters PR_GMTParameters(const PRExplodedTime *gmt); > > > > > >extern __attribute__((visibility("default"))) PRTimeParameters PR_USPacificTimeParameters(const PRExplodedTime *gmt); ># 271 "../../../dist/include/nspr/prtime.h" >extern __attribute__((visibility("default"))) PRStatus PR_ParseTimeStringToExplodedTime ( > const char *string, > PRBool default_to_gmt, > PRExplodedTime *result); ># 284 "../../../dist/include/nspr/prtime.h" >extern __attribute__((visibility("default"))) PRStatus PR_ParseTimeString ( > const char *string, > PRBool default_to_gmt, > PRTime *result); ># 301 "../../../dist/include/nspr/prtime.h" >extern __attribute__((visibility("default"))) PRUint32 PR_FormatTime(char *buf, int buflen, const char *fmt, > const PRExplodedTime *tm); > > > > >extern __attribute__((visibility("default"))) PRUint32 >PR_FormatTimeUSEnglish( char* buf, PRUint32 bufSize, > const char* format, const PRExplodedTime* tm ); > > > >} ># 13 "../../../dist/include/xpcom/nsrootidl.h" 2 > > > >class nsAString_internal; >class nsACString_internal; ># 11 "../../../dist/include/xpcom/nsISupports.h" 2 ># 122 "../../../dist/include/xpcom/nsISupports.h" ># 1 "../../../dist/include/xpcom/nsISupportsBase.h" 1 ># 44 "../../../dist/include/xpcom/nsISupportsBase.h" ># 1 "../../../dist/include/xpcom/nsID.h" 1 ># 41 "../../../dist/include/xpcom/nsID.h" ># 1 "/usr/include/string.h" 1 3 4 ># 28 "/usr/include/string.h" 3 4 >extern "C" { > > > > ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 34 "/usr/include/string.h" 2 3 4 > > > > >extern void *memcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memmove (void *__dest, __const void *__src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern void *memccpy (void *__restrict __dest, __const void *__restrict __src, > int __c, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern void *memset (void *__s, int __c, size_t __n) throw () __attribute__ ((__nonnull__ (1))); > > >extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memchr (__const void *__s, int __c, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern void *rawmemchr (__const void *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > >extern void *memrchr (__const void *__s, int __c, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) > throw () __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strcat (char *__restrict __dest, __const char *__restrict __src) > throw () __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncat (char *__restrict __dest, __const char *__restrict __src, > size_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcmp (__const char *__s1, __const char *__s2) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcoll (__const char *__s1, __const char *__s2) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern size_t strxfrm (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (2))); > > > > > > ># 1 "/usr/include/xlocale.h" 1 3 4 ># 28 "/usr/include/xlocale.h" 3 4 >typedef struct __locale_struct >{ > > struct locale_data *__locales[13]; > > > const unsigned short int *__ctype_b; > const int *__ctype_tolower; > const int *__ctype_toupper; > > > const char *__names[13]; >} *__locale_t; ># 119 "/usr/include/string.h" 2 3 4 > > >extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); > >extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n, > __locale_t __l) throw () __attribute__ ((__nonnull__ (2, 4))); > > > > >extern char *strdup (__const char *__s) > throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern char *strndup (__const char *__string, size_t __n) > throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); ># 165 "/usr/include/string.h" 3 4 > > >extern char *strchr (__const char *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > >extern char *strrchr (__const char *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern char *strchrnul (__const char *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern size_t strcspn (__const char *__s, __const char *__reject) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern size_t strspn (__const char *__s, __const char *__accept) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strpbrk (__const char *__s, __const char *__accept) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strstr (__const char *__haystack, __const char *__needle) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern char *strtok (char *__restrict __s, __const char *__restrict __delim) > throw () __attribute__ ((__nonnull__ (2))); > > > > >extern char *__strtok_r (char *__restrict __s, > __const char *__restrict __delim, > char **__restrict __save_ptr) > throw () __attribute__ ((__nonnull__ (2, 3))); > >extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim, > char **__restrict __save_ptr) > throw () __attribute__ ((__nonnull__ (2, 3))); > > > > >extern char *strcasestr (__const char *__haystack, __const char *__needle) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern void *memmem (__const void *__haystack, size_t __haystacklen, > __const void *__needle, size_t __needlelen) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))); > > > >extern void *__mempcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern void *mempcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern size_t strlen (__const char *__s) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern size_t strnlen (__const char *__string, size_t __maxlen) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern char *strerror (int __errnum) throw (); > ># 281 "/usr/include/string.h" 3 4 >extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) > throw () __attribute__ ((__nonnull__ (2))); > > > > > >extern void __bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1))); > > > >extern void bcopy (__const void *__src, void *__dest, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern void bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1))); > > >extern int bcmp (__const void *__s1, __const void *__s2, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *index (__const char *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > >extern char *rindex (__const char *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > >extern int ffs (int __i) throw () __attribute__ ((__const__)); > > > > >extern int ffsl (long int __l) throw () __attribute__ ((__const__)); > >__extension__ extern int ffsll (long long int __ll) > throw () __attribute__ ((__const__)); > > > > >extern int strcasecmp (__const char *__s1, __const char *__s2) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern int strcasecmp_l (__const char *__s1, __const char *__s2, > __locale_t __loc) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); > >extern int strncasecmp_l (__const char *__s1, __const char *__s2, > size_t __n, __locale_t __loc) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); > > > > > >extern char *strsep (char **__restrict __stringp, > __const char *__restrict __delim) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > >extern int strverscmp (__const char *__s1, __const char *__s2) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strsignal (int __sig) throw (); > > >extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > >extern char *__stpncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern char *stpncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strfry (char *__string) throw () __attribute__ ((__nonnull__ (1))); > > >extern void *memfrob (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1))); > > > > > > >extern char *basename (__const char *__filename) throw () __attribute__ ((__nonnull__ (1))); ># 426 "/usr/include/string.h" 3 4 >} ># 42 "../../../dist/include/xpcom/nsID.h" 2 ># 54 "../../../dist/include/xpcom/nsID.h" >struct nsID { > > > > > > PRUint32 m0; > PRUint16 m1; > PRUint16 m2; > PRUint8 m3[8]; ># 76 "../../../dist/include/xpcom/nsID.h" > inline PRBool Equals(const nsID& other) const { > > > > > > > > return > ((((PRUint32*) &m0)[0] == ((PRUint32*) &other.m0)[0]) && > (((PRUint32*) &m0)[1] == ((PRUint32*) &other.m0)[1]) && > (((PRUint32*) &m0)[2] == ((PRUint32*) &other.m0)[2]) && > (((PRUint32*) &m0)[3] == ((PRUint32*) &other.m0)[3])); > } > > > > > > PRBool Parse(const char *aIDStr); > > > > > > > > char* ToString() const; > > > > > > > void ToProvidedString(char (&dest)[39]) const; > > > > >}; > > > > > >typedef nsID nsCID; ># 134 "../../../dist/include/xpcom/nsID.h" >typedef nsID nsIID; ># 45 "../../../dist/include/xpcom/nsISupportsBase.h" 2 ># 66 "../../../dist/include/xpcom/nsISupportsBase.h" >class nsISupports { >public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 86 "../../../dist/include/xpcom/nsISupportsBase.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) QueryInterface(const nsIID& aIID, void** aInstancePtr) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsrefcnt __attribute__ ((regparm (0), cdecl)) AddRef(void) = 0; ># 103 "../../../dist/include/xpcom/nsISupportsBase.h" > virtual __attribute__ ((visibility ("hidden"))) nsrefcnt __attribute__ ((regparm (0), cdecl)) Release(void) = 0; > > >}; > >template <class Dummy> const nsIID nsISupports::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x00000000, 0x0000, 0x0000, {0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46} }; ># 123 "../../../dist/include/xpcom/nsISupports.h" 2 ># 1 "../../../dist/include/xpcom/nsISupportsUtils.h" 1 ># 57 "../../../dist/include/xpcom/nsISupportsUtils.h" ># 1 "../../../dist/include/xpcom/nsDebug.h" 1 ># 49 "../../../dist/include/xpcom/nsDebug.h" ># 1 "../../../dist/include/xpcom/nsXPCOM.h" 1 ># 72 "../../../dist/include/xpcom/nsXPCOM.h" ># 1 "../../../dist/include/xpcom/nsXPCOMCID.h" 1 ># 73 "../../../dist/include/xpcom/nsXPCOM.h" 2 > > > > > > > >class nsAString_internal; >class nsACString_internal; > >class nsISupports; >class nsIModule; >class nsIComponentManager; >class nsIComponentRegistrar; >class nsIServiceManager; >class nsIFile; >class nsILocalFile; >class nsIDirectoryServiceProvider; >class nsIMemory; >class nsIDebug; >class nsITraceRefcnt; > > > > > > > >typedef nsresult ( *nsGetModuleProc)(nsIComponentManager *aCompMgr, > nsIFile* location, > nsIModule** return_cobj); ># 139 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) nsresult >NS_InitXPCOM2_P(nsIServiceManager* *result, > nsIFile* binDirectory, > nsIDirectoryServiceProvider* appFileLocationProvider); ># 151 "../../../dist/include/xpcom/nsXPCOM.h" >typedef struct nsStaticModuleInfo { > const char *name; > nsGetModuleProc getModule; >} nsStaticModuleInfo; ># 196 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) nsresult >NS_InitXPCOM3_P(nsIServiceManager* *result, > nsIFile* binDirectory, > nsIDirectoryServiceProvider* appFileLocationProvider, > nsStaticModuleInfo const *staticComponents, > PRUint32 componentCount); ># 216 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) nsresult >NS_ShutdownXPCOM_P(nsIServiceManager* servMgr); ># 230 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) nsresult >NS_GetServiceManager_P(nsIServiceManager* *result); ># 243 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) nsresult >NS_GetComponentManager_P(nsIComponentManager* *result); ># 256 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) nsresult >NS_GetComponentRegistrar_P(nsIComponentRegistrar* *result); ># 269 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) nsresult >NS_GetMemoryManager_P(nsIMemory* *result); ># 297 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) nsresult >NS_NewLocalFile_P(const nsAString_internal &path, > PRBool followLinks, > nsILocalFile* *result); > >extern "C" __attribute__ ((visibility ("default"))) nsresult >NS_NewNativeLocalFile_P(const nsACString_internal &path, > PRBool followLinks, > nsILocalFile* *result); ># 319 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) void* >NS_Alloc_P(PRSize size); ># 340 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) void* >NS_Realloc_P(void* ptr, PRSize size); ># 353 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) void >NS_Free_P(void* ptr); > > > > > >enum { > NS_DEBUG_WARNING = 0, > NS_DEBUG_ASSERTION = 1, > NS_DEBUG_BREAK = 2, > NS_DEBUG_ABORT = 3 >}; ># 382 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) void >NS_DebugBreak_P(PRUint32 aSeverity, > const char *aStr, const char *aExpr, > const char *aFile, PRInt32 aLine); ># 403 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) void >NS_LogInit_P(); > >extern "C" __attribute__ ((visibility ("default"))) void >NS_LogTerm_P(); ># 419 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) void >NS_LogCtor_P(void *aPtr, const char *aTypeName, PRUint32 aInstanceSize); > >extern "C" __attribute__ ((visibility ("default"))) void >NS_LogDtor_P(void *aPtr, const char *aTypeName, PRUint32 aInstanceSize); ># 435 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) void >NS_LogAddRef_P(void *aPtr, nsrefcnt aNewRefCnt, > const char *aTypeName, PRUint32 aInstanceSize); > >extern "C" __attribute__ ((visibility ("default"))) void >NS_LogRelease_P(void *aPtr, nsrefcnt aNewRefCnt, const char *aTypeName); ># 452 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) void >NS_LogCOMPtrAddRef_P(void *aCOMPtr, nsISupports *aObject); > >extern "C" __attribute__ ((visibility ("default"))) void >NS_LogCOMPtrRelease_P(void *aCOMPtr, nsISupports *aObject); > > > > > > >extern "C" __attribute__ ((visibility ("default"))) PRBool >NS_CycleCollectorSuspect_P(nsISupports *n); > >extern "C" __attribute__ ((visibility ("default"))) PRBool >NS_CycleCollectorForget_P(nsISupports *n); ># 550 "../../../dist/include/xpcom/nsXPCOM.h" >extern "C" __attribute__ ((visibility ("default"))) nsresult >NS_GetDebug_P(nsIDebug* *result); > >extern "C" __attribute__ ((visibility ("default"))) nsresult >NS_GetTraceRefcnt_P(nsITraceRefcnt* *result); ># 50 "../../../dist/include/xpcom/nsDebug.h" 2 ># 273 "../../../dist/include/xpcom/nsDebug.h" >extern "C" { > > void >printf_stderr(const char *fmt, ...); > >} ># 58 "../../../dist/include/xpcom/nsISupportsUtils.h" 2 > > > ># 1 "../../../dist/include/xpcom/nsISupportsImpl.h" 1 ># 55 "../../../dist/include/xpcom/nsISupportsImpl.h" ># 1 "../../../dist/include/nspr/prthread.h" 1 ># 79 "../../../dist/include/nspr/prthread.h" ># 1 "../../../dist/include/nspr/prinrval.h" 1 ># 55 "../../../dist/include/nspr/prinrval.h" >extern "C" { > > > > > >typedef PRUint32 PRIntervalTime; ># 108 "../../../dist/include/nspr/prinrval.h" >extern __attribute__((visibility("default"))) PRIntervalTime PR_IntervalNow(void); ># 126 "../../../dist/include/nspr/prinrval.h" >extern __attribute__((visibility("default"))) PRUint32 PR_TicksPerSecond(void); ># 145 "../../../dist/include/nspr/prinrval.h" >extern __attribute__((visibility("default"))) PRIntervalTime PR_SecondsToInterval(PRUint32 seconds); >extern __attribute__((visibility("default"))) PRIntervalTime PR_MillisecondsToInterval(PRUint32 milli); >extern __attribute__((visibility("default"))) PRIntervalTime PR_MicrosecondsToInterval(PRUint32 micro); ># 166 "../../../dist/include/nspr/prinrval.h" >extern __attribute__((visibility("default"))) PRUint32 PR_IntervalToSeconds(PRIntervalTime ticks); >extern __attribute__((visibility("default"))) PRUint32 PR_IntervalToMilliseconds(PRIntervalTime ticks); >extern __attribute__((visibility("default"))) PRUint32 PR_IntervalToMicroseconds(PRIntervalTime ticks); > >} ># 80 "../../../dist/include/nspr/prthread.h" 2 > >extern "C" { > >typedef struct PRThread PRThread; >typedef struct PRThreadStack PRThreadStack; > >typedef enum PRThreadType { > PR_USER_THREAD, > PR_SYSTEM_THREAD >} PRThreadType; > >typedef enum PRThreadScope { > PR_LOCAL_THREAD, > PR_GLOBAL_THREAD, > PR_GLOBAL_BOUND_THREAD >} PRThreadScope; > >typedef enum PRThreadState { > PR_JOINABLE_THREAD, > PR_UNJOINABLE_THREAD >} PRThreadState; > >typedef enum PRThreadPriority >{ > PR_PRIORITY_FIRST = 0, > PR_PRIORITY_LOW = 0, > PR_PRIORITY_NORMAL = 1, > PR_PRIORITY_HIGH = 2, > PR_PRIORITY_URGENT = 3, > PR_PRIORITY_LAST = 3 >} PRThreadPriority; ># 137 "../../../dist/include/nspr/prthread.h" >extern __attribute__((visibility("default"))) PRThread* PR_CreateThread(PRThreadType type, > void ( *start)(void *arg), > void *arg, > PRThreadPriority priority, > PRThreadScope scope, > PRThreadState state, > PRUint32 stackSize); ># 158 "../../../dist/include/nspr/prthread.h" >extern __attribute__((visibility("default"))) PRStatus PR_JoinThread(PRThread *thread); > > > > > >extern __attribute__((visibility("default"))) PRThread* PR_GetCurrentThread(void); > > > > > > > >extern __attribute__((visibility("default"))) PRThreadPriority PR_GetThreadPriority(const PRThread *thread); > > > > >extern __attribute__((visibility("default"))) void PR_SetThreadPriority(PRThread *thread, PRThreadPriority priority); ># 203 "../../../dist/include/nspr/prthread.h" >typedef void ( *PRThreadPrivateDTOR)(void *priv); > >extern __attribute__((visibility("default"))) PRStatus PR_NewThreadPrivateIndex( > PRUintn *newIndex, PRThreadPrivateDTOR destructor); ># 219 "../../../dist/include/nspr/prthread.h" >extern __attribute__((visibility("default"))) PRStatus PR_SetThreadPrivate(PRUintn tpdIndex, void *priv); ># 230 "../../../dist/include/nspr/prthread.h" >extern __attribute__((visibility("default"))) void* PR_GetThreadPrivate(PRUintn tpdIndex); ># 242 "../../../dist/include/nspr/prthread.h" >extern __attribute__((visibility("default"))) PRStatus PR_Interrupt(PRThread *thread); > > > > > >extern __attribute__((visibility("default"))) void PR_ClearInterrupt(void); > > > > >extern __attribute__((visibility("default"))) void PR_BlockInterrupt(void); > > > > >extern __attribute__((visibility("default"))) void PR_UnblockInterrupt(void); ># 267 "../../../dist/include/nspr/prthread.h" >extern __attribute__((visibility("default"))) PRStatus PR_Sleep(PRIntervalTime ticks); > > > > >extern __attribute__((visibility("default"))) PRThreadScope PR_GetThreadScope(const PRThread *thread); > > > > >extern __attribute__((visibility("default"))) PRThreadType PR_GetThreadType(const PRThread *thread); > > > > >extern __attribute__((visibility("default"))) PRThreadState PR_GetThreadState(const PRThread *thread); > >} ># 56 "../../../dist/include/xpcom/nsISupportsImpl.h" 2 ># 1 "../../../dist/include/nspr/pratom.h" 1 ># 47 "../../../dist/include/nspr/pratom.h" ># 1 "../../../dist/include/nspr/prlock.h" 1 ># 53 "../../../dist/include/nspr/prlock.h" >extern "C" { ># 66 "../../../dist/include/nspr/prlock.h" >typedef struct PRLock PRLock; ># 83 "../../../dist/include/nspr/prlock.h" >extern __attribute__((visibility("default"))) PRLock* PR_NewLock(void); ># 94 "../../../dist/include/nspr/prlock.h" >extern __attribute__((visibility("default"))) void PR_DestroyLock(PRLock *lock); ># 105 "../../../dist/include/nspr/prlock.h" >extern __attribute__((visibility("default"))) void PR_Lock(PRLock *lock); ># 117 "../../../dist/include/nspr/prlock.h" >extern __attribute__((visibility("default"))) PRStatus PR_Unlock(PRLock *lock); > >} ># 48 "../../../dist/include/nspr/pratom.h" 2 > >extern "C" { ># 60 "../../../dist/include/nspr/pratom.h" >extern __attribute__((visibility("default"))) PRInt32 PR_AtomicIncrement(PRInt32 *val); ># 71 "../../../dist/include/nspr/pratom.h" >extern __attribute__((visibility("default"))) PRInt32 PR_AtomicDecrement(PRInt32 *val); ># 83 "../../../dist/include/nspr/pratom.h" >extern __attribute__((visibility("default"))) PRInt32 PR_AtomicSet(PRInt32 *val, PRInt32 newval); ># 95 "../../../dist/include/nspr/pratom.h" >extern __attribute__((visibility("default"))) PRInt32 PR_AtomicAdd(PRInt32 *ptr, PRInt32 val); ># 163 "../../../dist/include/nspr/pratom.h" >typedef struct PRStackElemStr PRStackElem; > >struct PRStackElemStr { > PRStackElem *prstk_elem_next; > >}; > >typedef struct PRStackStr PRStack; ># 181 "../../../dist/include/nspr/pratom.h" >extern __attribute__((visibility("default"))) PRStack * PR_CreateStack(const char *stack_name); ># 193 "../../../dist/include/nspr/pratom.h" >extern __attribute__((visibility("default"))) void PR_StackPush(PRStack *stack, PRStackElem *stack_elem); ># 206 "../../../dist/include/nspr/pratom.h" >extern __attribute__((visibility("default"))) PRStackElem * PR_StackPop(PRStack *stack); ># 220 "../../../dist/include/nspr/pratom.h" >extern __attribute__((visibility("default"))) PRStatus PR_DestroyStack(PRStack *stack); > >} ># 57 "../../../dist/include/xpcom/nsISupportsImpl.h" 2 > > > ># 1 "../../../dist/include/xpcom/nsTraceRefcnt.h" 1 ># 102 "../../../dist/include/xpcom/nsTraceRefcnt.h" >class nsTraceRefcnt { >public: > inline static void LogAddRef(void* aPtr, nsrefcnt aNewRefCnt, > const char* aTypeName, PRUint32 aInstanceSize) { > NS_LogAddRef_P(aPtr, aNewRefCnt, aTypeName, aInstanceSize); > } > > inline static void LogRelease(void* aPtr, nsrefcnt aNewRefCnt, > const char* aTypeName) { > NS_LogRelease_P(aPtr, aNewRefCnt, aTypeName); > } > > inline static void LogCtor(void* aPtr, const char* aTypeName, > PRUint32 aInstanceSize) { > NS_LogCtor_P(aPtr, aTypeName, aInstanceSize); > } > > inline static void LogDtor(void* aPtr, const char* aTypeName, > PRUint32 aInstanceSize) { > NS_LogDtor_P(aPtr, aTypeName, aInstanceSize); > } > > inline static void LogAddCOMPtr(void *aCOMPtr, nsISupports *aObject) { > NS_LogCOMPtrAddRef_P(aCOMPtr, aObject); > } > > inline static void LogReleaseCOMPtr(void *aCOMPtr, nsISupports *aObject) { > NS_LogCOMPtrRelease_P(aCOMPtr, aObject); > } >}; ># 61 "../../../dist/include/xpcom/nsISupportsImpl.h" 2 ># 1 "../../../dist/include/xpcom/nsCycleCollector.h" 1 ># 45 "../../../dist/include/xpcom/nsCycleCollector.h" >class nsISupports; >class nsCycleCollectionParticipant; >class nsCycleCollectionTraversalCallback; > > > > >struct nsCycleCollectionLanguageRuntime >{ > virtual nsresult BeginCycleCollection(nsCycleCollectionTraversalCallback &cb) = 0; > virtual nsresult FinishCycleCollection() = 0; > virtual nsCycleCollectionParticipant *ToParticipant(void *p) = 0; > > > >}; > >nsresult nsCycleCollector_startup(); > > PRUint32 nsCycleCollector_collect(); > PRUint32 nsCycleCollector_suspectedCount(); >void nsCycleCollector_shutdown(); > > > > > > >struct nsCycleCollectionJSRuntime : public nsCycleCollectionLanguageRuntime >{ > > > > > virtual PRBool Collect() = 0; >}; > > PRBool nsCycleCollector_beginCollection(); > > > PRBool nsCycleCollector_finishCollection(); ># 94 "../../../dist/include/xpcom/nsCycleCollector.h" > void nsCycleCollector_registerRuntime(PRUint32 langID, nsCycleCollectionLanguageRuntime *rt); > void nsCycleCollector_forgetRuntime(PRUint32 langID); ># 62 "../../../dist/include/xpcom/nsISupportsImpl.h" 2 ># 98 "../../../dist/include/xpcom/nsISupportsImpl.h" >class nsCycleCollectingAutoRefCnt { > >public: > nsCycleCollectingAutoRefCnt() > : mValue(0) > {} > > nsCycleCollectingAutoRefCnt(nsrefcnt aValue) > : mValue(aValue) > { > ((mValue) &= ((~((PRUint32)(1 << 31))))); > } > > nsrefcnt incr(nsISupports *owner) > { > if ((__builtin_expect(!!(mValue == ((PRUint32)(1 << 31))), 0))) { > > > > > > > return 2; > } > > nsrefcnt tmp = get(); > PRBool purple = static_cast<PRBool>(((mValue) & (((PRUint32)(1 << 31))))); > > if ((__builtin_expect(!!(purple), 0))) { > do { } while (0); > if (!NS_CycleCollectorForget_P(owner)) > tmp |= ((PRUint32)(1 << 31)); > } > > mValue = tmp + 1; > return mValue; > } > > void stabilizeForDeletion(nsISupports *owner) > { > mValue = ((PRUint32)(1 << 31)); > } > > nsrefcnt decr(nsISupports *owner) > { > if ((__builtin_expect(!!(mValue == ((PRUint32)(1 << 31))), 0))) > return 1; > > nsrefcnt tmp = get(); > do { } while (0); > > PRBool purple = static_cast<PRBool>(((mValue) & (((PRUint32)(1 << 31))))); > PRBool shouldBePurple = tmp > 1; > > if ((__builtin_expect(!!(shouldBePurple && !purple), 0))) { > if (!NS_CycleCollectorSuspect_P(owner)) > shouldBePurple = 0; > } else if ((__builtin_expect(!!(tmp == 1 && purple), 0))) { > if (!NS_CycleCollectorForget_P(owner)) { > do { } while (0); > } > } > > --tmp; > > if (shouldBePurple) > mValue = tmp | ((PRUint32)(1 << 31)); > else > mValue = tmp; > > return tmp; > } > > void unmarkPurple() > { > if ((__builtin_expect(!!(mValue != ((PRUint32)(1 << 31))), 1))) > ((mValue) &= ((~((PRUint32)(1 << 31))))); > } > > nsrefcnt get() const > { > if ((__builtin_expect(!!(mValue == ((PRUint32)(1 << 31))), 0))) > return 1; > > return ((mValue) & ((~((PRUint32)(1 << 31))))); > } > > operator nsrefcnt() const > { > return get(); > } > > private: > nsrefcnt mValue; >}; > >class nsAutoRefCnt { > > public: > nsAutoRefCnt() : mValue(0) {} > nsAutoRefCnt(nsrefcnt aValue) : mValue(aValue) {} > > > nsrefcnt operator++() { return ++mValue; } > nsrefcnt operator--() { return --mValue; } > > nsrefcnt operator=(nsrefcnt aValue) { return (mValue = aValue); } > operator nsrefcnt() const { return mValue; } > nsrefcnt get() const { return mValue; } > private: > > nsrefcnt operator++(int); > nsrefcnt operator--(int); > nsrefcnt mValue; >}; ># 410 "../../../dist/include/xpcom/nsISupportsImpl.h" >struct QITableEntry >{ > const nsIID *iid; > PROffset32 offset; >}; > > nsresult __attribute__ ((regparm (3), stdcall)) >NS_TableDrivenQI(void* aThis, const QITableEntry* entries, > const nsIID& aIID, void **aInstancePtr); ># 62 "../../../dist/include/xpcom/nsISupportsUtils.h" 2 ># 102 "../../../dist/include/xpcom/nsISupportsUtils.h" >extern "C++" { > > > > > > >template <class T> >inline >nsrefcnt >ns_if_addref( T expr ) >{ > return expr ? expr->AddRef() : 0; >} > >} ># 194 "../../../dist/include/xpcom/nsISupportsUtils.h" >template <class T, class DestinationType> >inline >nsresult >CallQueryInterface( T* aSource, DestinationType** aDestination ) >{ > do { } while (0); > do { } while (0); > > return aSource->QueryInterface((DestinationType::template COMTypeInfo<int>::kIID), > reinterpret_cast<void**>(aDestination)); >} ># 124 "../../../dist/include/xpcom/nsISupports.h" 2 ># 49 "./../../../dom/src/base/nsJSUtils.h" 2 ># 1 "../../../dist/include/js/jsapi.h" 1 ># 46 "../../../dist/include/js/jsapi.h" ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 47 "../../../dist/include/js/jsapi.h" 2 ># 1 "/usr/include/stdio.h" 1 3 4 ># 30 "/usr/include/stdio.h" 3 4 >extern "C" { > > > ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 35 "/usr/include/stdio.h" 2 3 4 ># 44 "/usr/include/stdio.h" 3 4 > > >typedef struct _IO_FILE FILE; > > > > > ># 62 "/usr/include/stdio.h" 3 4 >typedef struct _IO_FILE __FILE; ># 72 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/libio.h" 1 3 4 ># 32 "/usr/include/libio.h" 3 4 ># 1 "/usr/include/_G_config.h" 1 3 4 ># 14 "/usr/include/_G_config.h" 3 4 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 355 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 3 4 >typedef unsigned int wint_t; ># 15 "/usr/include/_G_config.h" 2 3 4 ># 24 "/usr/include/_G_config.h" 3 4 ># 1 "/usr/include/wchar.h" 1 3 4 ># 48 "/usr/include/wchar.h" 3 4 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 49 "/usr/include/wchar.h" 2 3 4 > ># 1 "/usr/include/bits/wchar.h" 1 3 4 ># 51 "/usr/include/wchar.h" 2 3 4 ># 76 "/usr/include/wchar.h" 3 4 >typedef struct >{ > int __count; > union > { > wint_t __wch; > char __wchb[4]; > } __value; >} __mbstate_t; ># 25 "/usr/include/_G_config.h" 2 3 4 > >typedef struct >{ > __off_t __pos; > __mbstate_t __state; >} _G_fpos_t; >typedef struct >{ > __off64_t __pos; > __mbstate_t __state; >} _G_fpos64_t; ># 44 "/usr/include/_G_config.h" 3 4 ># 1 "/usr/include/gconv.h" 1 3 4 ># 28 "/usr/include/gconv.h" 3 4 ># 1 "/usr/include/wchar.h" 1 3 4 ># 48 "/usr/include/wchar.h" 3 4 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 49 "/usr/include/wchar.h" 2 3 4 ># 29 "/usr/include/gconv.h" 2 3 4 > > ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 32 "/usr/include/gconv.h" 2 3 4 > > > > > >enum >{ > __GCONV_OK = 0, > __GCONV_NOCONV, > __GCONV_NODB, > __GCONV_NOMEM, > > __GCONV_EMPTY_INPUT, > __GCONV_FULL_OUTPUT, > __GCONV_ILLEGAL_INPUT, > __GCONV_INCOMPLETE_INPUT, > > __GCONV_ILLEGAL_DESCRIPTOR, > __GCONV_INTERNAL_ERROR >}; > > > >enum >{ > __GCONV_IS_LAST = 0x0001, > __GCONV_IGNORE_ERRORS = 0x0002 >}; > > > >struct __gconv_step; >struct __gconv_step_data; >struct __gconv_loaded_object; >struct __gconv_trans_data; > > > >typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *, > __const unsigned char **, __const unsigned char *, > unsigned char **, size_t *, int, int); > > >typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned char); > > >typedef int (*__gconv_init_fct) (struct __gconv_step *); >typedef void (*__gconv_end_fct) (struct __gconv_step *); > > > >typedef int (*__gconv_trans_fct) (struct __gconv_step *, > struct __gconv_step_data *, void *, > __const unsigned char *, > __const unsigned char **, > __const unsigned char *, unsigned char **, > size_t *); > > >typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *, > __const unsigned char *, > unsigned char *, unsigned char *); > > >typedef int (*__gconv_trans_query_fct) (__const char *, __const char ***, > size_t *); > > >typedef int (*__gconv_trans_init_fct) (void **, const char *); >typedef void (*__gconv_trans_end_fct) (void *); > >struct __gconv_trans_data >{ > > __gconv_trans_fct __trans_fct; > __gconv_trans_context_fct __trans_context_fct; > __gconv_trans_end_fct __trans_end_fct; > void *__data; > struct __gconv_trans_data *__next; >}; > > > >struct __gconv_step >{ > struct __gconv_loaded_object *__shlib_handle; > __const char *__modname; > > int __counter; > > char *__from_name; > char *__to_name; > > __gconv_fct __fct; > __gconv_btowc_fct __btowc_fct; > __gconv_init_fct __init_fct; > __gconv_end_fct __end_fct; > > > > int __min_needed_from; > int __max_needed_from; > int __min_needed_to; > int __max_needed_to; > > > int __stateful; > > void *__data; >}; > > > >struct __gconv_step_data >{ > unsigned char *__outbuf; > unsigned char *__outbufend; > > > > int __flags; > > > > int __invocation_counter; > > > > int __internal_use; > > __mbstate_t *__statep; > __mbstate_t __state; > > > > struct __gconv_trans_data *__trans; >}; > > > >typedef struct __gconv_info >{ > size_t __nsteps; > struct __gconv_step *__steps; > __extension__ struct __gconv_step_data __data []; >} *__gconv_t; ># 45 "/usr/include/_G_config.h" 2 3 4 >typedef union >{ > struct __gconv_info __cd; > struct > { > struct __gconv_info __cd; > struct __gconv_step_data __data; > } __combined; >} _G_iconv_t; > >typedef int _G_int16_t __attribute__ ((__mode__ (__HI__))); >typedef int _G_int32_t __attribute__ ((__mode__ (__SI__))); >typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__))); >typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__))); ># 33 "/usr/include/libio.h" 2 3 4 ># 53 "/usr/include/libio.h" 3 4 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stdarg.h" 1 3 4 ># 43 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stdarg.h" 3 4 >typedef __builtin_va_list __gnuc_va_list; ># 54 "/usr/include/libio.h" 2 3 4 ># 166 "/usr/include/libio.h" 3 4 >struct _IO_jump_t; struct _IO_FILE; ># 176 "/usr/include/libio.h" 3 4 >typedef void _IO_lock_t; > > > > > >struct _IO_marker { > struct _IO_marker *_next; > struct _IO_FILE *_sbuf; > > > > int _pos; ># 199 "/usr/include/libio.h" 3 4 >}; > > >enum __codecvt_result >{ > __codecvt_ok, > __codecvt_partial, > __codecvt_error, > __codecvt_noconv >}; ># 267 "/usr/include/libio.h" 3 4 >struct _IO_FILE { > int _flags; > > > > > char* _IO_read_ptr; > char* _IO_read_end; > char* _IO_read_base; > char* _IO_write_base; > char* _IO_write_ptr; > char* _IO_write_end; > char* _IO_buf_base; > char* _IO_buf_end; > > char *_IO_save_base; > char *_IO_backup_base; > char *_IO_save_end; > > struct _IO_marker *_markers; > > struct _IO_FILE *_chain; > > int _fileno; > > > > int _flags2; > > __off_t _old_offset; > > > > unsigned short _cur_column; > signed char _vtable_offset; > char _shortbuf[1]; > > > > _IO_lock_t *_lock; ># 315 "/usr/include/libio.h" 3 4 > __off64_t _offset; ># 324 "/usr/include/libio.h" 3 4 > void *__pad1; > void *__pad2; > void *__pad3; > void *__pad4; > size_t __pad5; > > int _mode; > > char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; > >}; > > > > > >struct _IO_FILE_plus; > >extern struct _IO_FILE_plus _IO_2_1_stdin_; >extern struct _IO_FILE_plus _IO_2_1_stdout_; >extern struct _IO_FILE_plus _IO_2_1_stderr_; ># 360 "/usr/include/libio.h" 3 4 >typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); > > > > > > > >typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf, > size_t __n); > > > > > > > >typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w); > > >typedef int __io_close_fn (void *__cookie); > > > > >typedef __io_read_fn cookie_read_function_t; >typedef __io_write_fn cookie_write_function_t; >typedef __io_seek_fn cookie_seek_function_t; >typedef __io_close_fn cookie_close_function_t; > > >typedef struct >{ > __io_read_fn *read; > __io_write_fn *write; > __io_seek_fn *seek; > __io_close_fn *close; >} _IO_cookie_io_functions_t; >typedef _IO_cookie_io_functions_t cookie_io_functions_t; > >struct _IO_cookie_file; > > >extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write, > void *__cookie, _IO_cookie_io_functions_t __fns); > > > > >extern "C" { > > >extern int __underflow (_IO_FILE *) throw (); >extern int __uflow (_IO_FILE *) throw (); >extern int __overflow (_IO_FILE *, int) throw (); >extern wint_t __wunderflow (_IO_FILE *) throw (); >extern wint_t __wuflow (_IO_FILE *) throw (); >extern wint_t __woverflow (_IO_FILE *, wint_t) throw (); ># 450 "/usr/include/libio.h" 3 4 >extern int _IO_getc (_IO_FILE *__fp) throw (); >extern int _IO_putc (int __c, _IO_FILE *__fp) throw (); >extern int _IO_feof (_IO_FILE *__fp) throw (); >extern int _IO_ferror (_IO_FILE *__fp) throw (); > >extern int _IO_peekc_locked (_IO_FILE *__fp) throw (); > > > > > >extern void _IO_flockfile (_IO_FILE *) throw (); >extern void _IO_funlockfile (_IO_FILE *) throw (); >extern int _IO_ftrylockfile (_IO_FILE *) throw (); ># 480 "/usr/include/libio.h" 3 4 >extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, > __gnuc_va_list, int *__restrict); >extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, > __gnuc_va_list); >extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t) throw (); >extern size_t _IO_sgetn (_IO_FILE *, void *, size_t) throw (); > >extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int) throw (); >extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int) throw (); > >extern void _IO_free_backup_area (_IO_FILE *) throw (); ># 542 "/usr/include/libio.h" 3 4 >} ># 73 "/usr/include/stdio.h" 2 3 4 > > > > >typedef __gnuc_va_list va_list; ># 86 "/usr/include/stdio.h" 3 4 > > >typedef _G_fpos_t fpos_t; > > > > > >typedef _G_fpos64_t fpos64_t; ># 138 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/bits/stdio_lim.h" 1 3 4 ># 139 "/usr/include/stdio.h" 2 3 4 > > > >extern struct _IO_FILE *stdin; >extern struct _IO_FILE *stdout; >extern struct _IO_FILE *stderr; > > > > > > > > > >extern int remove (__const char *__filename) throw (); > >extern int rename (__const char *__old, __const char *__new) throw (); > > > > >extern int renameat (int __oldfd, __const char *__old, int __newfd, > __const char *__new) throw (); > > > > > > > > >extern FILE *tmpfile (void); ># 181 "/usr/include/stdio.h" 3 4 >extern FILE *tmpfile64 (void); > > > >extern char *tmpnam (char *__s) throw (); > > > > > >extern char *tmpnam_r (char *__s) throw (); ># 203 "/usr/include/stdio.h" 3 4 >extern char *tempnam (__const char *__dir, __const char *__pfx) > throw () __attribute__ ((__malloc__)); > > > > > > > > >extern int fclose (FILE *__stream); > > > > >extern int fflush (FILE *__stream); > ># 228 "/usr/include/stdio.h" 3 4 >extern int fflush_unlocked (FILE *__stream); ># 238 "/usr/include/stdio.h" 3 4 >extern int fcloseall (void); > > > > > > > > > >extern FILE *fopen (__const char *__restrict __filename, > __const char *__restrict __modes); > > > > >extern FILE *freopen (__const char *__restrict __filename, > __const char *__restrict __modes, > FILE *__restrict __stream); ># 269 "/usr/include/stdio.h" 3 4 > > >extern FILE *fopen64 (__const char *__restrict __filename, > __const char *__restrict __modes); >extern FILE *freopen64 (__const char *__restrict __filename, > __const char *__restrict __modes, > FILE *__restrict __stream); > > > > >extern FILE *fdopen (int __fd, __const char *__modes) throw (); > > > > > >extern FILE *fopencookie (void *__restrict __magic_cookie, > __const char *__restrict __modes, > _IO_cookie_io_functions_t __io_funcs) throw (); > > >extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes) throw (); > > > > >extern FILE *open_memstream (char **__restrict __bufloc, > size_t *__restrict __sizeloc) throw (); > > > >extern FILE *open_wmemstream (wchar_t **__restrict __bufloc, > size_t *__restrict __sizeloc) throw (); > > > > > > >extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) throw (); > > > >extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, > int __modes, size_t __n) throw (); > > > > > >extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, > size_t __size) throw (); > > >extern void setlinebuf (FILE *__stream) throw (); > > > > > > > > >extern int fprintf (FILE *__restrict __stream, > __const char *__restrict __format, ...); > > > > >extern int printf (__const char *__restrict __format, ...); > >extern int sprintf (char *__restrict __s, > __const char *__restrict __format, ...) throw (); > > > > > >extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format, > __gnuc_va_list __arg); > > > > >extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg); > >extern int vsprintf (char *__restrict __s, __const char *__restrict __format, > __gnuc_va_list __arg) throw (); > > > > > >extern int snprintf (char *__restrict __s, size_t __maxlen, > __const char *__restrict __format, ...) > throw () __attribute__ ((__format__ (__printf__, 3, 4))); > >extern int vsnprintf (char *__restrict __s, size_t __maxlen, > __const char *__restrict __format, __gnuc_va_list __arg) > throw () __attribute__ ((__format__ (__printf__, 3, 0))); > > > > > > >extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f, > __gnuc_va_list __arg) > throw () __attribute__ ((__format__ (__printf__, 2, 0))); >extern int __asprintf (char **__restrict __ptr, > __const char *__restrict __fmt, ...) > throw () __attribute__ ((__format__ (__printf__, 2, 3))); >extern int asprintf (char **__restrict __ptr, > __const char *__restrict __fmt, ...) > throw () __attribute__ ((__format__ (__printf__, 2, 3))); > > > > > > > >extern int vdprintf (int __fd, __const char *__restrict __fmt, > __gnuc_va_list __arg) > __attribute__ ((__format__ (__printf__, 2, 0))); >extern int dprintf (int __fd, __const char *__restrict __fmt, ...) > __attribute__ ((__format__ (__printf__, 2, 3))); > > > > > > > > >extern int fscanf (FILE *__restrict __stream, > __const char *__restrict __format, ...) ; > > > > >extern int scanf (__const char *__restrict __format, ...) ; > >extern int sscanf (__const char *__restrict __s, > __const char *__restrict __format, ...) throw (); > > > > > > > > >extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format, > __gnuc_va_list __arg) > __attribute__ ((__format__ (__scanf__, 2, 0))) ; > > > > > >extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg) > __attribute__ ((__format__ (__scanf__, 1, 0))) ; > > >extern int vsscanf (__const char *__restrict __s, > __const char *__restrict __format, __gnuc_va_list __arg) > throw () __attribute__ ((__format__ (__scanf__, 2, 0))); > > > > > > > > > >extern int fgetc (FILE *__stream); >extern int getc (FILE *__stream); > > > > > >extern int getchar (void); > ># 466 "/usr/include/stdio.h" 3 4 >extern int getc_unlocked (FILE *__stream); >extern int getchar_unlocked (void); ># 477 "/usr/include/stdio.h" 3 4 >extern int fgetc_unlocked (FILE *__stream); > > > > > > > > > > > >extern int fputc (int __c, FILE *__stream); >extern int putc (int __c, FILE *__stream); > > > > > >extern int putchar (int __c); > ># 510 "/usr/include/stdio.h" 3 4 >extern int fputc_unlocked (int __c, FILE *__stream); > > > > > > > >extern int putc_unlocked (int __c, FILE *__stream); >extern int putchar_unlocked (int __c); > > > > > > >extern int getw (FILE *__stream); > > >extern int putw (int __w, FILE *__stream); > > > > > > > > >extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) > ; > > > > > > >extern char *gets (char *__s) ; > ># 556 "/usr/include/stdio.h" 3 4 >extern char *fgets_unlocked (char *__restrict __s, int __n, > FILE *__restrict __stream) ; ># 572 "/usr/include/stdio.h" 3 4 >extern __ssize_t __getdelim (char **__restrict __lineptr, > size_t *__restrict __n, int __delimiter, > FILE *__restrict __stream) ; >extern __ssize_t getdelim (char **__restrict __lineptr, > size_t *__restrict __n, int __delimiter, > FILE *__restrict __stream) ; > > > > > > > >extern __ssize_t getline (char **__restrict __lineptr, > size_t *__restrict __n, > FILE *__restrict __stream) ; > > > > > > > > >extern int fputs (__const char *__restrict __s, FILE *__restrict __stream); > > > > > >extern int puts (__const char *__s); > > > > > > >extern int ungetc (int __c, FILE *__stream); > > > > > > >extern size_t fread (void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream) ; > > > > >extern size_t fwrite (__const void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __s) ; > ># 633 "/usr/include/stdio.h" 3 4 >extern int fputs_unlocked (__const char *__restrict __s, > FILE *__restrict __stream); ># 644 "/usr/include/stdio.h" 3 4 >extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream) ; >extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream) ; > > > > > > > > >extern int fseek (FILE *__stream, long int __off, int __whence); > > > > >extern long int ftell (FILE *__stream) ; > > > > >extern void rewind (FILE *__stream); > ># 680 "/usr/include/stdio.h" 3 4 >extern int fseeko (FILE *__stream, __off_t __off, int __whence); > > > > >extern __off_t ftello (FILE *__stream) ; ># 699 "/usr/include/stdio.h" 3 4 > > > > > > >extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); > > > > >extern int fsetpos (FILE *__stream, __const fpos_t *__pos); ># 722 "/usr/include/stdio.h" 3 4 > > > >extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); >extern __off64_t ftello64 (FILE *__stream) ; >extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); >extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos); > > > > >extern void clearerr (FILE *__stream) throw (); > >extern int feof (FILE *__stream) throw () ; > >extern int ferror (FILE *__stream) throw () ; > > > > >extern void clearerr_unlocked (FILE *__stream) throw (); >extern int feof_unlocked (FILE *__stream) throw () ; >extern int ferror_unlocked (FILE *__stream) throw () ; > > > > > > > > >extern void perror (__const char *__s); > > > > > > ># 1 "/usr/include/bits/sys_errlist.h" 1 3 4 ># 27 "/usr/include/bits/sys_errlist.h" 3 4 >extern int sys_nerr; >extern __const char *__const sys_errlist[]; > > >extern int _sys_nerr; >extern __const char *__const _sys_errlist[]; ># 761 "/usr/include/stdio.h" 2 3 4 > > > > >extern int fileno (FILE *__stream) throw () ; > > > > >extern int fileno_unlocked (FILE *__stream) throw () ; ># 780 "/usr/include/stdio.h" 3 4 >extern FILE *popen (__const char *__command, __const char *__modes) ; > > > > > >extern int pclose (FILE *__stream); > > > > > >extern char *ctermid (char *__s) throw (); > > > > > >extern char *cuserid (char *__s); > > > > >struct obstack; > > >extern int obstack_printf (struct obstack *__restrict __obstack, > __const char *__restrict __format, ...) > throw () __attribute__ ((__format__ (__printf__, 2, 3))); >extern int obstack_vprintf (struct obstack *__restrict __obstack, > __const char *__restrict __format, > __gnuc_va_list __args) > throw () __attribute__ ((__format__ (__printf__, 2, 0))); > > > > > > > >extern void flockfile (FILE *__stream) throw (); > > > >extern int ftrylockfile (FILE *__stream) throw () ; > > >extern void funlockfile (FILE *__stream) throw (); ># 850 "/usr/include/stdio.h" 3 4 >} ># 48 "../../../dist/include/js/jsapi.h" 2 ># 1 "../../../dist/include/js/jspubtd.h" 1 ># 45 "../../../dist/include/js/jspubtd.h" ># 1 "../../../dist/include/js/jstypes.h" 1 ># 57 "../../../dist/include/js/jstypes.h" ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 58 "../../../dist/include/js/jstypes.h" 2 ># 249 "../../../dist/include/js/jstypes.h" ># 1 "../../../dist/include/js/jsautocfg.h" 1 ># 250 "../../../dist/include/js/jstypes.h" 2 > > > > >extern "C" { ># 264 "../../../dist/include/js/jstypes.h" >typedef unsigned char JSUint8; >typedef signed char JSInt8; ># 277 "../../../dist/include/js/jstypes.h" >typedef unsigned short JSUint16; >typedef short JSInt16; ># 290 "../../../dist/include/js/jstypes.h" >typedef unsigned int JSUint32; >typedef int JSInt32; ># 325 "../../../dist/include/js/jstypes.h" >typedef long long JSInt64; >typedef unsigned long long JSUint64; ># 352 "../../../dist/include/js/jstypes.h" >typedef int JSIntn; >typedef unsigned int JSUintn; ># 363 "../../../dist/include/js/jstypes.h" >typedef double JSFloat64; > > > > > > >typedef size_t JSSize; > > > > > > > >typedef ptrdiff_t JSPtrdiff; ># 389 "../../../dist/include/js/jstypes.h" >typedef unsigned long JSUptrdiff; ># 400 "../../../dist/include/js/jstypes.h" >typedef JSIntn JSBool; ># 410 "../../../dist/include/js/jstypes.h" >typedef JSUint8 JSPackedBool; ># 419 "../../../dist/include/js/jstypes.h" >typedef long JSWord; >typedef unsigned long JSUword; > > ># 1 "../../../dist/include/js/jsotypes.h" 1 ># 424 "../../../dist/include/js/jstypes.h" 2 ># 473 "../../../dist/include/js/jstypes.h" >} ># 46 "../../../dist/include/js/jspubtd.h" 2 ># 1 "../../../dist/include/js/jscompat.h" 1 ># 49 "../../../dist/include/js/jscompat.h" ># 1 "../../../dist/include/js/jslong.h" 1 ># 52 "../../../dist/include/js/jslong.h" >extern "C" { ># 410 "../../../dist/include/js/jslong.h" >} ># 50 "../../../dist/include/js/jscompat.h" 2 > >typedef JSIntn intN; >typedef JSUintn uintN; >typedef JSUword jsuword; >typedef JSWord jsword; >typedef float float32; ># 47 "../../../dist/include/js/jspubtd.h" 2 > >extern "C" { > > >typedef uint16 jschar; >typedef int32 jsint; >typedef uint32 jsuint; >typedef float64 jsdouble; >typedef jsword jsval; >typedef jsword jsid; >typedef int32 jsrefcount; > > > > > > >typedef enum JSVersion { > JSVERSION_1_0 = 100, > JSVERSION_1_1 = 110, > JSVERSION_1_2 = 120, > JSVERSION_1_3 = 130, > JSVERSION_1_4 = 140, > JSVERSION_ECMA_3 = 148, > JSVERSION_1_5 = 150, > JSVERSION_1_6 = 160, > JSVERSION_1_7 = 170, > JSVERSION_1_8 = 180, > JSVERSION_DEFAULT = 0, > JSVERSION_UNKNOWN = -1, > JSVERSION_LATEST = JSVERSION_1_8 >} JSVersion; > > > > > >typedef enum JSType { > JSTYPE_VOID, > JSTYPE_OBJECT, > JSTYPE_FUNCTION, > JSTYPE_STRING, > JSTYPE_NUMBER, > JSTYPE_BOOLEAN, > JSTYPE_NULL, > JSTYPE_XML, > JSTYPE_LIMIT >} JSType; > > >typedef enum JSProtoKey { > ># 1 "../../../dist/include/js/jsproto.tbl" 1 ># 39 "../../../dist/include/js/jsproto.tbl" ># 1 "../../../dist/include/js/jsconfig.h" 1 ># 40 "../../../dist/include/js/jsproto.tbl" 2 ># 86 "../../../dist/include/js/jsproto.tbl" >JSProto_Null = 0, >JSProto_Object = 1, >JSProto_Function = 2, >JSProto_Array = 3, >JSProto_Boolean = 4, >JSProto_Call = 5, >JSProto_Date = 6, >JSProto_Math = 7, >JSProto_Number = 8, >JSProto_String = 9, >JSProto_RegExp = 10, >JSProto_Script = 11, >JSProto_XML = 12, >JSProto_Namespace = 13, >JSProto_QName = 14, >JSProto_AnyName = 15, >JSProto_AttributeName = 16, >JSProto_Error = 17, >JSProto_InternalError = 18, >JSProto_EvalError = 19, >JSProto_RangeError = 20, >JSProto_ReferenceError = 21, >JSProto_SyntaxError = 22, >JSProto_TypeError = 23, >JSProto_URIError = 24, >JSProto_Generator = 25, >JSProto_Iterator = 26, >JSProto_StopIteration = 27, >JSProto_UnusedProto28 = 28, >JSProto_File = 29, >JSProto_Block = 30, >JSProto_XMLFilter = 31, >JSProto_NoSuchMethod = 32, ># 100 "../../../dist/include/js/jspubtd.h" 2 > > JSProto_LIMIT >} JSProtoKey; > > >typedef enum JSAccessMode { > JSACC_PROTO = 0, > JSACC_PARENT = 1, > JSACC_IMPORT = 2, > JSACC_WATCH = 3, > JSACC_READ = 4, > JSACC_WRITE = 8, > JSACC_LIMIT >} JSAccessMode; > > > > > > > >typedef enum JSIterateOp { > JSENUMERATE_INIT, > JSENUMERATE_NEXT, > JSENUMERATE_DESTROY >} JSIterateOp; > > >typedef struct JSClass JSClass; >typedef struct JSExtendedClass JSExtendedClass; >typedef struct JSConstDoubleSpec JSConstDoubleSpec; >typedef struct JSContext JSContext; >typedef struct JSErrorReport JSErrorReport; >typedef struct JSFunction JSFunction; >typedef struct JSFunctionSpec JSFunctionSpec; >typedef struct JSTracer JSTracer; >typedef struct JSIdArray JSIdArray; >typedef struct JSProperty JSProperty; >typedef struct JSPropertySpec JSPropertySpec; >typedef struct JSObject JSObject; >typedef struct JSObjectMap JSObjectMap; >typedef struct JSObjectOps JSObjectOps; >typedef struct JSXMLObjectOps JSXMLObjectOps; >typedef struct JSRuntime JSRuntime; >typedef struct JSRuntime JSTaskState; >typedef struct JSScript JSScript; >typedef struct JSStackFrame JSStackFrame; >typedef struct JSString JSString; >typedef struct JSXDRState JSXDRState; >typedef struct JSExceptionState JSExceptionState; >typedef struct JSLocaleCallbacks JSLocaleCallbacks; ># 161 "../../../dist/include/js/jspubtd.h" >typedef JSBool >(* JSPropertyOp)(JSContext *cx, JSObject *obj, jsval id, > jsval *vp); ># 192 "../../../dist/include/js/jspubtd.h" >typedef JSBool >(* JSNewEnumerateOp)(JSContext *cx, JSObject *obj, > JSIterateOp enum_op, > jsval *statep, jsid *idp); > > > > > >typedef JSBool >(* JSEnumerateOp)(JSContext *cx, JSObject *obj); ># 216 "../../../dist/include/js/jspubtd.h" >typedef JSBool >(* JSResolveOp)(JSContext *cx, JSObject *obj, jsval id); ># 248 "../../../dist/include/js/jspubtd.h" >typedef JSBool >(* JSNewResolveOp)(JSContext *cx, JSObject *obj, jsval id, > uintN flags, JSObject **objp); > > > > > >typedef JSBool >(* JSConvertOp)(JSContext *cx, JSObject *obj, JSType type, > jsval *vp); > > > > > > >typedef void >(* JSFinalizeOp)(JSContext *cx, JSObject *obj); > > > > > >typedef void >(* JSStringFinalizeOp)(JSContext *cx, JSString *str); ># 299 "../../../dist/include/js/jspubtd.h" >typedef JSObjectOps * >(* JSGetObjectOps)(JSContext *cx, JSClass *clasp); ># 314 "../../../dist/include/js/jspubtd.h" >typedef JSBool >(* JSCheckAccessOp)(JSContext *cx, JSObject *obj, jsval id, > JSAccessMode mode, jsval *vp); > > > > > >typedef JSBool >(* JSXDRObjectOp)(JSXDRState *xdr, JSObject **objp); > > > > > > >typedef JSBool >(* JSHasInstanceOp)(JSContext *cx, JSObject *obj, jsval v, > JSBool *bp); > > > > > > >typedef uint32 >(* JSMarkOp)(JSContext *cx, JSObject *obj, void *arg); ># 364 "../../../dist/include/js/jspubtd.h" >typedef void >(* JSTraceOp)(JSTracer *trc, JSObject *obj); ># 391 "../../../dist/include/js/jspubtd.h" >typedef void >(* JSTraceCallback)(JSTracer *trc, void *thing, uint32 kind); ># 416 "../../../dist/include/js/jspubtd.h" >typedef uint32 >(* JSReserveSlotsOp)(JSContext *cx, JSObject *obj); ># 434 "../../../dist/include/js/jspubtd.h" >typedef JSObjectMap * >(* JSNewObjectMapOp)(JSContext *cx, jsrefcount nrefs, > JSObjectOps *ops, JSClass *clasp, > JSObject *obj); > > > > > >typedef void >(* JSObjectMapOp)(JSContext *cx, JSObjectMap *map); ># 463 "../../../dist/include/js/jspubtd.h" >typedef JSBool >(* JSLookupPropOp)(JSContext *cx, JSObject *obj, jsid id, > JSObject **objp, JSProperty **propp); ># 479 "../../../dist/include/js/jspubtd.h" >typedef JSBool >(* JSDefinePropOp)(JSContext *cx, JSObject *obj, > jsid id, jsval value, > JSPropertyOp getter, JSPropertyOp setter, > uintN attrs, JSProperty **propp); ># 493 "../../../dist/include/js/jspubtd.h" >typedef JSBool >(* JSPropertyIdOp)(JSContext *cx, JSObject *obj, jsid id, > jsval *vp); > > > > > > > >typedef JSBool >(* JSAttributesOp)(JSContext *cx, JSObject *obj, jsid id, > JSProperty *prop, uintN *attrsp); > > > > > > >typedef JSBool >(* JSCheckAccessIdOp)(JSContext *cx, JSObject *obj, jsid id, > JSAccessMode mode, jsval *vp, > uintN *attrsp); > > > > > > >typedef JSObject * >(* JSObjectOp)(JSContext *cx, JSObject *obj); > > > > > >typedef JSObject * >(* JSIteratorOp)(JSContext *cx, JSObject *obj, > JSBool keysonly); > > > > > > > >typedef void >(* JSPropertyRefOp)(JSContext *cx, JSObject *obj, > JSProperty *prop); > > > > > > >typedef JSBool >(* JSSetObjectSlotOp)(JSContext *cx, JSObject *obj, > uint32 slot, JSObject *pobj); ># 565 "../../../dist/include/js/jspubtd.h" >typedef jsval >(* JSGetRequiredSlotOp)(JSContext *cx, JSObject *obj, > uint32 slot); > >typedef JSBool >(* JSSetRequiredSlotOp)(JSContext *cx, JSObject *obj, > uint32 slot, jsval v); > >typedef JSObject * >(* JSGetMethodOp)(JSContext *cx, JSObject *obj, jsid id, > jsval *vp); > >typedef JSBool >(* JSSetMethodOp)(JSContext *cx, JSObject *obj, jsid id, > jsval *vp); > >typedef JSBool >(* JSEnumerateValuesOp)(JSContext *cx, JSObject *obj, > JSIterateOp enum_op, > jsval *statep, jsid *idp, jsval *vp); > >typedef JSBool >(* JSEqualityOp)(JSContext *cx, JSObject *obj, jsval v, > JSBool *bp); > >typedef JSBool >(* JSConcatenateOp)(JSContext *cx, JSObject *obj, jsval v, > jsval *vp); > > > >typedef JSBool >(* JSNative)(JSContext *cx, JSObject *obj, uintN argc, > jsval *argv, jsval *rval); > > >typedef JSBool >(* JSFastNative)(JSContext *cx, uintN argc, jsval *vp); > > > >typedef enum JSContextOp { > JSCONTEXT_NEW, > JSCONTEXT_DESTROY >} JSContextOp; ># 624 "../../../dist/include/js/jspubtd.h" >typedef JSBool >(* JSContextCallback)(JSContext *cx, uintN contextOp); > >typedef enum JSGCStatus { > JSGC_BEGIN, > JSGC_END, > JSGC_MARK_END, > JSGC_FINALIZE_END >} JSGCStatus; > >typedef JSBool >(* JSGCCallback)(JSContext *cx, JSGCStatus status); > > > > > >typedef void >(* JSTraceDataOp)(JSTracer *trc, void *data); > >typedef JSBool >(* JSOperationCallback)(JSContext *cx); > > > > >typedef JSBool >(* JSBranchCallback)(JSContext *cx, JSScript *script); > >typedef void >(* JSErrorReporter)(JSContext *cx, const char *message, > JSErrorReport *report); > > > > > > >typedef enum JSExnType { > JSEXN_NONE = -1, > JSEXN_ERR, > JSEXN_INTERNALERR, > JSEXN_EVALERR, > JSEXN_RANGEERR, > JSEXN_REFERENCEERR, > JSEXN_SYNTAXERR, > JSEXN_TYPEERR, > JSEXN_URIERR, > JSEXN_LIMIT >} JSExnType; > >typedef struct JSErrorFormatString { > > const char *format; > > > uint16 argCount; > > > int16 exnType; >} JSErrorFormatString; > >typedef const JSErrorFormatString * >(* JSErrorCallback)(void *userRef, const char *locale, > const uintN errorNumber); ># 699 "../../../dist/include/js/jspubtd.h" >typedef JSBool >(* JSLocaleToUpperCase)(JSContext *cx, JSString *src, > jsval *rval); > >typedef JSBool >(* JSLocaleToLowerCase)(JSContext *cx, JSString *src, > jsval *rval); > >typedef JSBool >(* JSLocaleCompare)(JSContext *cx, > JSString *src1, JSString *src2, > jsval *rval); > >typedef JSBool >(* JSLocaleToUnicode)(JSContext *cx, char *src, jsval *rval); > > > > >typedef struct JSPrincipals JSPrincipals; ># 727 "../../../dist/include/js/jspubtd.h" >typedef JSBool >(* JSPrincipalsTranscoder)(JSXDRState *xdr, > JSPrincipals **principalsp); ># 739 "../../../dist/include/js/jspubtd.h" >typedef JSPrincipals * >(* JSObjectPrincipalsFinder)(JSContext *cx, JSObject *obj); > >} ># 49 "../../../dist/include/js/jsapi.h" 2 ># 1 "../../../dist/include/js/jsutil.h" 1 ># 47 "../../../dist/include/js/jsutil.h" >extern "C" { ># 84 "../../../dist/include/js/jsutil.h" >extern __attribute__((visibility ("default"))) void JS_Abort(void); ># 138 "../../../dist/include/js/jsutil.h" >typedef struct JSCallsite JSCallsite; > >struct JSCallsite { > uint32 pc; > char *name; > const char *library; > int offset; > JSCallsite *parent; > JSCallsite *siblings; > JSCallsite *kids; > void *handy; >}; > >extern JSCallsite *JS_Backtrace(int skip); > > > >} ># 50 "../../../dist/include/js/jsapi.h" 2 > >extern "C" { ># 224 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) int64 >JS_Now(void); > > >extern __attribute__((visibility ("default"))) jsval >JS_GetNaNValue(JSContext *cx); > >extern __attribute__((visibility ("default"))) jsval >JS_GetNegativeInfinityValue(JSContext *cx); > >extern __attribute__((visibility ("default"))) jsval >JS_GetPositiveInfinityValue(JSContext *cx); > >extern __attribute__((visibility ("default"))) jsval >JS_GetEmptyStringValue(JSContext *cx); ># 273 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSBool >JS_ConvertArguments(JSContext *cx, uintN argc, jsval *argv, const char *format, > ...); ># 293 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) jsval * >JS_PushArguments(JSContext *cx, void **markp, const char *format, ...); > > > > > > >extern __attribute__((visibility ("default"))) void >JS_PopArguments(JSContext *cx, void *mark); ># 354 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSBool >JS_ConvertValue(JSContext *cx, jsval v, JSType type, jsval *vp); > >extern __attribute__((visibility ("default"))) JSBool >JS_ValueToObject(JSContext *cx, jsval v, JSObject **objp); > >extern __attribute__((visibility ("default"))) JSFunction * >JS_ValueToFunction(JSContext *cx, jsval v); > >extern __attribute__((visibility ("default"))) JSFunction * >JS_ValueToConstructor(JSContext *cx, jsval v); > >extern __attribute__((visibility ("default"))) JSString * >JS_ValueToString(JSContext *cx, jsval v); > >extern __attribute__((visibility ("default"))) JSBool >JS_ValueToNumber(JSContext *cx, jsval v, jsdouble *dp); > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_ValueToECMAInt32(JSContext *cx, jsval v, int32 *ip); > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_ValueToECMAUint32(JSContext *cx, jsval v, uint32 *ip); > > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_ValueToInt32(JSContext *cx, jsval v, int32 *ip); > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_ValueToUint16(JSContext *cx, jsval v, uint16 *ip); > >extern __attribute__((visibility ("default"))) JSBool >JS_ValueToBoolean(JSContext *cx, jsval v, JSBool *bp); > >extern __attribute__((visibility ("default"))) JSType >JS_TypeOfValue(JSContext *cx, jsval v); > >extern __attribute__((visibility ("default"))) const char * >JS_GetTypeName(JSContext *cx, JSType type); ># 423 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSRuntime * >JS_Init(uint32 maxbytes); > >extern __attribute__((visibility ("default"))) void >JS_Finish(JSRuntime *rt); > >extern __attribute__((visibility ("default"))) void >JS_ShutDown(void); > >__attribute__((visibility ("default"))) void * >JS_GetRuntimePrivate(JSRuntime *rt); > >__attribute__((visibility ("default"))) void >JS_SetRuntimePrivate(JSRuntime *rt, void *data); > >extern __attribute__((visibility ("default"))) void >JS_BeginRequest(JSContext *cx); > >extern __attribute__((visibility ("default"))) void >JS_EndRequest(JSContext *cx); > > >extern __attribute__((visibility ("default"))) void >JS_YieldRequest(JSContext *cx); > >extern __attribute__((visibility ("default"))) jsrefcount >JS_SuspendRequest(JSContext *cx); > >extern __attribute__((visibility ("default"))) void >JS_ResumeRequest(JSContext *cx, jsrefcount saveDepth); > > >} > >class JSAutoRequest { > public: > JSAutoRequest(JSContext *cx) : mContext(cx), mSaveDepth(0) { > JS_BeginRequest(mContext); > } > ~JSAutoRequest() { > JS_EndRequest(mContext); > } > > void suspend() { > mSaveDepth = JS_SuspendRequest(mContext); > } > void resume() { > JS_ResumeRequest(mContext, mSaveDepth); > } > > protected: > JSContext *mContext; > jsrefcount mSaveDepth; > > > > > > >}; > >extern "C" { > > >extern __attribute__((visibility ("default"))) void >JS_Lock(JSRuntime *rt); > >extern __attribute__((visibility ("default"))) void >JS_Unlock(JSRuntime *rt); > >extern __attribute__((visibility ("default"))) JSContextCallback >JS_SetContextCallback(JSRuntime *rt, JSContextCallback cxCallback); > >extern __attribute__((visibility ("default"))) JSContext * >JS_NewContext(JSRuntime *rt, size_t stackChunkSize); > >extern __attribute__((visibility ("default"))) void >JS_DestroyContext(JSContext *cx); > >extern __attribute__((visibility ("default"))) void >JS_DestroyContextNoGC(JSContext *cx); > >extern __attribute__((visibility ("default"))) void >JS_DestroyContextMaybeGC(JSContext *cx); > >extern __attribute__((visibility ("default"))) void * >JS_GetContextPrivate(JSContext *cx); > >extern __attribute__((visibility ("default"))) void >JS_SetContextPrivate(JSContext *cx, void *data); > >extern __attribute__((visibility ("default"))) JSRuntime * >JS_GetRuntime(JSContext *cx); > >extern __attribute__((visibility ("default"))) JSContext * >JS_ContextIterator(JSRuntime *rt, JSContext **iterp); > >extern __attribute__((visibility ("default"))) JSVersion >JS_GetVersion(JSContext *cx); > >extern __attribute__((visibility ("default"))) JSVersion >JS_SetVersion(JSContext *cx, JSVersion version); > >extern __attribute__((visibility ("default"))) const char * >JS_VersionToString(JSVersion version); > >extern __attribute__((visibility ("default"))) JSVersion >JS_StringToVersion(const char *string); ># 587 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) uint32 >JS_GetOptions(JSContext *cx); > >extern __attribute__((visibility ("default"))) uint32 >JS_SetOptions(JSContext *cx, uint32 options); > >extern __attribute__((visibility ("default"))) uint32 >JS_ToggleOptions(JSContext *cx, uint32 options); > >extern __attribute__((visibility ("default"))) const char * >JS_GetImplementationVersion(void); > >extern __attribute__((visibility ("default"))) JSObject * >JS_GetGlobalObject(JSContext *cx); > >extern __attribute__((visibility ("default"))) void >JS_SetGlobalObject(JSContext *cx, JSObject *obj); ># 612 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSBool >JS_InitStandardClasses(JSContext *cx, JSObject *obj); ># 628 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSBool >JS_ResolveStandardClass(JSContext *cx, JSObject *obj, jsval id, > JSBool *resolved); > >extern __attribute__((visibility ("default"))) JSBool >JS_EnumerateStandardClasses(JSContext *cx, JSObject *obj); > > > > > > >extern __attribute__((visibility ("default"))) JSIdArray * >JS_EnumerateResolvedStandardClasses(JSContext *cx, JSObject *obj, > JSIdArray *ida); > >extern __attribute__((visibility ("default"))) JSBool >JS_GetClassObject(JSContext *cx, JSObject *obj, JSProtoKey key, > JSObject **objp); > >extern __attribute__((visibility ("default"))) JSObject * >JS_GetScopeChain(JSContext *cx); > >extern __attribute__((visibility ("default"))) JSObject * >JS_GetGlobalForObject(JSContext *cx, JSObject *obj); ># 687 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) jsval >JS_ComputeThis(JSContext *cx, jsval *vp); > >extern __attribute__((visibility ("default"))) void * >JS_malloc(JSContext *cx, size_t nbytes); > >extern __attribute__((visibility ("default"))) void * >JS_realloc(JSContext *cx, void *p, size_t nbytes); > >extern __attribute__((visibility ("default"))) void >JS_free(JSContext *cx, void *p); > >extern __attribute__((visibility ("default"))) char * >JS_strdup(JSContext *cx, const char *s); > >extern __attribute__((visibility ("default"))) jsdouble * >JS_NewDouble(JSContext *cx, jsdouble d); > >extern __attribute__((visibility ("default"))) JSBool >JS_NewDoubleValue(JSContext *cx, jsdouble d, jsval *rval); > >extern __attribute__((visibility ("default"))) JSBool >JS_NewNumberValue(JSContext *cx, jsdouble d, jsval *rval); ># 727 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSBool >JS_AddRoot(JSContext *cx, void *rp); > > > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_AddNamedRoot(JSContext *cx, void *rp, const char *name); > >extern __attribute__((visibility ("default"))) JSBool >JS_AddNamedRootRT(JSRuntime *rt, void *rp, const char *name); > >extern __attribute__((visibility ("default"))) JSBool >JS_RemoveRoot(JSContext *cx, void *rp); > >extern __attribute__((visibility ("default"))) JSBool >JS_RemoveRootRT(JSRuntime *rt, void *rp); ># 767 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) void >JS_ClearNewbornRoots(JSContext *cx); ># 815 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSBool >JS_EnterLocalRootScope(JSContext *cx); > >extern __attribute__((visibility ("default"))) void >JS_LeaveLocalRootScope(JSContext *cx); > >extern __attribute__((visibility ("default"))) void >JS_LeaveLocalRootScopeWithResult(JSContext *cx, jsval rval); > >extern __attribute__((visibility ("default"))) void >JS_ForgetLocalRoot(JSContext *cx, void *thing); > > >} > >class JSAutoLocalRootScope { > public: > JSAutoLocalRootScope(JSContext *cx) : mContext(cx) { > JS_EnterLocalRootScope(mContext); > } > ~JSAutoLocalRootScope() { > JS_LeaveLocalRootScope(mContext); > } > > void forget(void *thing) { > JS_ForgetLocalRoot(mContext, thing); > } > > protected: > JSContext *mContext; > > > > > > >}; > >extern "C" { ># 885 "../../../dist/include/js/jsapi.h" >typedef intN >(* JSGCRootMapFun)(void *rp, const char *name, void *data); > >extern __attribute__((visibility ("default"))) uint32 >JS_MapGCRoots(JSRuntime *rt, JSGCRootMapFun map, void *data); > >extern __attribute__((visibility ("default"))) JSBool >JS_LockGCThing(JSContext *cx, void *thing); > >extern __attribute__((visibility ("default"))) JSBool >JS_LockGCThingRT(JSRuntime *rt, void *thing); > >extern __attribute__((visibility ("default"))) JSBool >JS_UnlockGCThing(JSContext *cx, void *thing); > >extern __attribute__((visibility ("default"))) JSBool >JS_UnlockGCThingRT(JSRuntime *rt, void *thing); ># 910 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) void >JS_SetExtraGCRoots(JSRuntime *rt, JSTraceDataOp traceOp, void *data); > > > > > >extern __attribute__((visibility ("default"))) void >JS_MarkGCThing(JSContext *cx, void *thing, const char *name, void *arg); ># 945 "../../../dist/include/js/jsapi.h" >extern void js_static_assert(int arg[((((0x0) & (((JSUint32)1 << (3)) - 1)) >> 1) == 0) ? 1 : -1]); >extern void js_static_assert(int arg[((((0x2) & (((JSUint32)1 << (3)) - 1)) >> 1) == 1) ? 1 : -1]); >extern void js_static_assert(int arg[((((0x4) & (((JSUint32)1 << (3)) - 1)) >> 1) == 2) ? 1 : -1]); > >struct JSTracer { > JSContext *context; > JSTraceCallback callback; > > > > > >}; > > > > > > > >extern __attribute__((visibility ("default"))) void >JS_CallTracer(JSTracer *trc, void *thing, uint32 kind); ># 1063 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) void >JS_TraceChildren(JSTracer *trc, void *thing, uint32 kind); > >extern __attribute__((visibility ("default"))) void >JS_TraceRuntime(JSTracer *trc); ># 1099 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) void >JS_GC(JSContext *cx); > >extern __attribute__((visibility ("default"))) void >JS_MaybeGC(JSContext *cx); > >extern __attribute__((visibility ("default"))) JSGCCallback >JS_SetGCCallback(JSContext *cx, JSGCCallback cb); > >extern __attribute__((visibility ("default"))) JSGCCallback >JS_SetGCCallbackRT(JSRuntime *rt, JSGCCallback cb); > >extern __attribute__((visibility ("default"))) JSBool >JS_IsGCMarkingTracer(JSTracer *trc); > >extern __attribute__((visibility ("default"))) JSBool >JS_IsAboutToBeFinalized(JSContext *cx, void *thing); > >typedef enum JSGCParamKey { > > JSGC_MAX_BYTES = 0, > > > JSGC_MAX_MALLOC_BYTES = 1, > > > JSGC_STACKPOOL_LIFESPAN = 2 >} JSGCParamKey; > >extern __attribute__((visibility ("default"))) void >JS_SetGCParameter(JSRuntime *rt, JSGCParamKey key, uint32 value); ># 1143 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) intN >JS_AddExternalStringFinalizer(JSStringFinalizeOp finalizer); ># 1159 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) intN >JS_RemoveExternalStringFinalizer(JSStringFinalizeOp finalizer); > > > > > > >extern __attribute__((visibility ("default"))) JSString * >JS_NewExternalString(JSContext *cx, jschar *chars, size_t length, intN type); > > > > > >extern __attribute__((visibility ("default"))) intN >JS_GetExternalStringGCType(JSRuntime *rt, JSString *str); > > > > > > >extern __attribute__((visibility ("default"))) void >JS_SetThreadStackLimit(JSContext *cx, jsuword limitAddr); ># 1195 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) void >JS_SetScriptStackQuota(JSContext *cx, size_t quota); ># 1207 "../../../dist/include/js/jsapi.h" >struct JSClass { > const char *name; > uint32 flags; > > > JSPropertyOp addProperty; > JSPropertyOp delProperty; > JSPropertyOp getProperty; > JSPropertyOp setProperty; > JSEnumerateOp enumerate; > JSResolveOp resolve; > JSConvertOp convert; > JSFinalizeOp finalize; > > > JSGetObjectOps getObjectOps; > JSCheckAccessOp checkAccess; > JSNative call; > JSNative construct; > JSXDRObjectOp xdrObject; > JSHasInstanceOp hasInstance; > JSMarkOp mark; > JSReserveSlotsOp reserveSlots; >}; > >struct JSExtendedClass { > JSClass base; > JSEqualityOp equality; > JSObjectOp outerObject; > JSObjectOp innerObject; > JSIteratorOp iteratorObject; > JSObjectOp wrappedObject; > > > void (*reserved0)(void); > void (*reserved1)(void); > void (*reserved2)(void); >}; ># 1315 "../../../dist/include/js/jsapi.h" >struct JSObjectOps { > > JSNewObjectMapOp newObjectMap; > JSObjectMapOp destroyObjectMap; > JSLookupPropOp lookupProperty; > JSDefinePropOp defineProperty; > JSPropertyIdOp getProperty; > JSPropertyIdOp setProperty; > JSAttributesOp getAttributes; > JSAttributesOp setAttributes; > JSPropertyIdOp deleteProperty; > JSConvertOp defaultValue; > JSNewEnumerateOp enumerate; > JSCheckAccessIdOp checkAccess; > > > JSObjectOp thisObject; > JSPropertyRefOp dropProperty; > JSNative call; > JSNative construct; > JSXDRObjectOp xdrObject; > JSHasInstanceOp hasInstance; > JSSetObjectSlotOp setProto; > JSSetObjectSlotOp setParent; > JSTraceOp trace; > JSFinalizeOp clear; > JSGetRequiredSlotOp getRequiredSlot; > JSSetRequiredSlotOp setRequiredSlot; >}; > >struct JSXMLObjectOps { > JSObjectOps base; > JSGetMethodOp getMethod; > JSSetMethodOp setMethod; > JSEnumerateValuesOp enumerateValues; > JSEqualityOp equality; > JSConcatenateOp concatenate; >}; ># 1364 "../../../dist/include/js/jsapi.h" >struct JSProperty { > jsid id; >}; > >struct JSIdArray { > jsint length; > jsid vector[1]; >}; > >extern __attribute__((visibility ("default"))) void >JS_DestroyIdArray(JSContext *cx, JSIdArray *ida); > >extern __attribute__((visibility ("default"))) JSBool >JS_ValueToId(JSContext *cx, jsval v, jsid *idp); > >extern __attribute__((visibility ("default"))) JSBool >JS_IdToValue(JSContext *cx, jsid id, jsval *vp); ># 1398 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSBool >JS_PropertyStub(JSContext *cx, JSObject *obj, jsval id, jsval *vp); > >extern __attribute__((visibility ("default"))) JSBool >JS_EnumerateStub(JSContext *cx, JSObject *obj); > >extern __attribute__((visibility ("default"))) JSBool >JS_ResolveStub(JSContext *cx, JSObject *obj, jsval id); > >extern __attribute__((visibility ("default"))) JSBool >JS_ConvertStub(JSContext *cx, JSObject *obj, JSType type, jsval *vp); > >extern __attribute__((visibility ("default"))) void >JS_FinalizeStub(JSContext *cx, JSObject *obj); > >struct JSConstDoubleSpec { > jsdouble dval; > const char *name; > uint8 flags; > uint8 spare[3]; >}; > > > > > > >struct JSPropertySpec { > const char *name; > int8 tinyid; > uint8 flags; > JSPropertyOp getter; > JSPropertyOp setter; >}; > >struct JSFunctionSpec { > const char *name; > JSNative call; > > > > > > uint16 nargs; > uint16 flags; > > > > > > > > uint32 extra; > >}; ># 1479 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSObject * >JS_InitClass(JSContext *cx, JSObject *obj, JSObject *parent_proto, > JSClass *clasp, JSNative constructor, uintN nargs, > JSPropertySpec *ps, JSFunctionSpec *fs, > JSPropertySpec *static_ps, JSFunctionSpec *static_fs); > > >extern __attribute__((visibility ("default"))) JSClass * >JS_GetClass(JSContext *cx, JSObject *obj); ># 1497 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSBool >JS_InstanceOf(JSContext *cx, JSObject *obj, JSClass *clasp, jsval *argv); > >extern __attribute__((visibility ("default"))) JSBool >JS_HasInstance(JSContext *cx, JSObject *obj, jsval v, JSBool *bp); > >extern __attribute__((visibility ("default"))) void * >JS_GetPrivate(JSContext *cx, JSObject *obj); > >extern __attribute__((visibility ("default"))) JSBool >JS_SetPrivate(JSContext *cx, JSObject *obj, void *data); > >extern __attribute__((visibility ("default"))) void * >JS_GetInstancePrivate(JSContext *cx, JSObject *obj, JSClass *clasp, > jsval *argv); > >extern __attribute__((visibility ("default"))) JSObject * >JS_GetPrototype(JSContext *cx, JSObject *obj); > >extern __attribute__((visibility ("default"))) JSBool >JS_SetPrototype(JSContext *cx, JSObject *obj, JSObject *proto); > >extern __attribute__((visibility ("default"))) JSObject * >JS_GetParent(JSContext *cx, JSObject *obj); > >extern __attribute__((visibility ("default"))) JSBool >JS_SetParent(JSContext *cx, JSObject *obj, JSObject *parent); > >extern __attribute__((visibility ("default"))) JSObject * >JS_GetConstructor(JSContext *cx, JSObject *proto); > > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_GetObjectId(JSContext *cx, JSObject *obj, jsid *idp); > >extern __attribute__((visibility ("default"))) JSObject * >JS_NewObject(JSContext *cx, JSClass *clasp, JSObject *proto, JSObject *parent); > > > > > >extern __attribute__((visibility ("default"))) JSObject * >JS_NewObjectWithGivenProto(JSContext *cx, JSClass *clasp, JSObject *proto, > JSObject *parent); > >extern __attribute__((visibility ("default"))) JSBool >JS_SealObject(JSContext *cx, JSObject *obj, JSBool deep); > >extern __attribute__((visibility ("default"))) JSObject * >JS_ConstructObject(JSContext *cx, JSClass *clasp, JSObject *proto, > JSObject *parent); > >extern __attribute__((visibility ("default"))) JSObject * >JS_ConstructObjectWithArguments(JSContext *cx, JSClass *clasp, JSObject *proto, > JSObject *parent, uintN argc, jsval *argv); > >extern __attribute__((visibility ("default"))) JSObject * >JS_DefineObject(JSContext *cx, JSObject *obj, const char *name, JSClass *clasp, > JSObject *proto, uintN attrs); > >extern __attribute__((visibility ("default"))) JSBool >JS_DefineConstDoubles(JSContext *cx, JSObject *obj, JSConstDoubleSpec *cds); > >extern __attribute__((visibility ("default"))) JSBool >JS_DefineProperties(JSContext *cx, JSObject *obj, JSPropertySpec *ps); > >extern __attribute__((visibility ("default"))) JSBool >JS_DefineProperty(JSContext *cx, JSObject *obj, const char *name, jsval value, > JSPropertyOp getter, JSPropertyOp setter, uintN attrs); > > > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_GetPropertyAttributes(JSContext *cx, JSObject *obj, const char *name, > uintN *attrsp, JSBool *foundp); > > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_GetPropertyAttrsGetterAndSetter(JSContext *cx, JSObject *obj, > const char *name, > uintN *attrsp, JSBool *foundp, > JSPropertyOp *getterp, > JSPropertyOp *setterp); > > > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_SetPropertyAttributes(JSContext *cx, JSObject *obj, const char *name, > uintN attrs, JSBool *foundp); > >extern __attribute__((visibility ("default"))) JSBool >JS_DefinePropertyWithTinyId(JSContext *cx, JSObject *obj, const char *name, > int8 tinyid, jsval value, > JSPropertyOp getter, JSPropertyOp setter, > uintN attrs); > >extern __attribute__((visibility ("default"))) JSBool >JS_AliasProperty(JSContext *cx, JSObject *obj, const char *name, > const char *alias); > >extern __attribute__((visibility ("default"))) JSBool >JS_AlreadyHasOwnProperty(JSContext *cx, JSObject *obj, const char *name, > JSBool *foundp); > >extern __attribute__((visibility ("default"))) JSBool >JS_HasProperty(JSContext *cx, JSObject *obj, const char *name, JSBool *foundp); > >extern __attribute__((visibility ("default"))) JSBool >JS_LookupProperty(JSContext *cx, JSObject *obj, const char *name, jsval *vp); > >extern __attribute__((visibility ("default"))) JSBool >JS_LookupPropertyWithFlags(JSContext *cx, JSObject *obj, const char *name, > uintN flags, jsval *vp); > >extern __attribute__((visibility ("default"))) JSBool >JS_GetProperty(JSContext *cx, JSObject *obj, const char *name, jsval *vp); > >extern __attribute__((visibility ("default"))) JSBool >JS_GetMethodById(JSContext *cx, JSObject *obj, jsid id, JSObject **objp, > jsval *vp); > >extern __attribute__((visibility ("default"))) JSBool >JS_GetMethod(JSContext *cx, JSObject *obj, const char *name, JSObject **objp, > jsval *vp); > >extern __attribute__((visibility ("default"))) JSBool >JS_SetProperty(JSContext *cx, JSObject *obj, const char *name, jsval *vp); > >extern __attribute__((visibility ("default"))) JSBool >JS_DeleteProperty(JSContext *cx, JSObject *obj, const char *name); > >extern __attribute__((visibility ("default"))) JSBool >JS_DeleteProperty2(JSContext *cx, JSObject *obj, const char *name, > jsval *rval); > >extern __attribute__((visibility ("default"))) JSBool >JS_DefineUCProperty(JSContext *cx, JSObject *obj, > const jschar *name, size_t namelen, jsval value, > JSPropertyOp getter, JSPropertyOp setter, > uintN attrs); > > > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_GetUCPropertyAttributes(JSContext *cx, JSObject *obj, > const jschar *name, size_t namelen, > uintN *attrsp, JSBool *foundp); > > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_GetUCPropertyAttrsGetterAndSetter(JSContext *cx, JSObject *obj, > const jschar *name, size_t namelen, > uintN *attrsp, JSBool *foundp, > JSPropertyOp *getterp, > JSPropertyOp *setterp); > > > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_SetUCPropertyAttributes(JSContext *cx, JSObject *obj, > const jschar *name, size_t namelen, > uintN attrs, JSBool *foundp); > > >extern __attribute__((visibility ("default"))) JSBool >JS_DefineUCPropertyWithTinyId(JSContext *cx, JSObject *obj, > const jschar *name, size_t namelen, > int8 tinyid, jsval value, > JSPropertyOp getter, JSPropertyOp setter, > uintN attrs); > >extern __attribute__((visibility ("default"))) JSBool >JS_AlreadyHasOwnUCProperty(JSContext *cx, JSObject *obj, const jschar *name, > size_t namelen, JSBool *foundp); > >extern __attribute__((visibility ("default"))) JSBool >JS_HasUCProperty(JSContext *cx, JSObject *obj, > const jschar *name, size_t namelen, > JSBool *vp); > >extern __attribute__((visibility ("default"))) JSBool >JS_LookupUCProperty(JSContext *cx, JSObject *obj, > const jschar *name, size_t namelen, > jsval *vp); > >extern __attribute__((visibility ("default"))) JSBool >JS_GetUCProperty(JSContext *cx, JSObject *obj, > const jschar *name, size_t namelen, > jsval *vp); > >extern __attribute__((visibility ("default"))) JSBool >JS_SetUCProperty(JSContext *cx, JSObject *obj, > const jschar *name, size_t namelen, > jsval *vp); > >extern __attribute__((visibility ("default"))) JSBool >JS_DeleteUCProperty2(JSContext *cx, JSObject *obj, > const jschar *name, size_t namelen, > jsval *rval); > >extern __attribute__((visibility ("default"))) JSObject * >JS_NewArrayObject(JSContext *cx, jsint length, jsval *vector); > >extern __attribute__((visibility ("default"))) JSBool >JS_IsArrayObject(JSContext *cx, JSObject *obj); > >extern __attribute__((visibility ("default"))) JSBool >JS_GetArrayLength(JSContext *cx, JSObject *obj, jsuint *lengthp); > >extern __attribute__((visibility ("default"))) JSBool >JS_SetArrayLength(JSContext *cx, JSObject *obj, jsuint length); > >extern __attribute__((visibility ("default"))) JSBool >JS_HasArrayLength(JSContext *cx, JSObject *obj, jsuint *lengthp); > >extern __attribute__((visibility ("default"))) JSBool >JS_DefineElement(JSContext *cx, JSObject *obj, jsint index, jsval value, > JSPropertyOp getter, JSPropertyOp setter, uintN attrs); > >extern __attribute__((visibility ("default"))) JSBool >JS_AliasElement(JSContext *cx, JSObject *obj, const char *name, jsint alias); > >extern __attribute__((visibility ("default"))) JSBool >JS_AlreadyHasOwnElement(JSContext *cx, JSObject *obj, jsint index, > JSBool *foundp); > >extern __attribute__((visibility ("default"))) JSBool >JS_HasElement(JSContext *cx, JSObject *obj, jsint index, JSBool *foundp); > >extern __attribute__((visibility ("default"))) JSBool >JS_LookupElement(JSContext *cx, JSObject *obj, jsint index, jsval *vp); > >extern __attribute__((visibility ("default"))) JSBool >JS_GetElement(JSContext *cx, JSObject *obj, jsint index, jsval *vp); > >extern __attribute__((visibility ("default"))) JSBool >JS_SetElement(JSContext *cx, JSObject *obj, jsint index, jsval *vp); > >extern __attribute__((visibility ("default"))) JSBool >JS_DeleteElement(JSContext *cx, JSObject *obj, jsint index); > >extern __attribute__((visibility ("default"))) JSBool >JS_DeleteElement2(JSContext *cx, JSObject *obj, jsint index, jsval *rval); > >extern __attribute__((visibility ("default"))) void >JS_ClearScope(JSContext *cx, JSObject *obj); > >extern __attribute__((visibility ("default"))) JSIdArray * >JS_Enumerate(JSContext *cx, JSObject *obj); > > > > > > >extern __attribute__((visibility ("default"))) JSObject * >JS_NewPropertyIterator(JSContext *cx, JSObject *obj); > > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_NextProperty(JSContext *cx, JSObject *iterobj, jsid *idp); > >extern __attribute__((visibility ("default"))) JSBool >JS_CheckAccess(JSContext *cx, JSObject *obj, jsid id, JSAccessMode mode, > jsval *vp, uintN *attrsp); > >extern __attribute__((visibility ("default"))) JSCheckAccessOp >JS_SetCheckObjectAccessCallback(JSRuntime *rt, JSCheckAccessOp acb); > >extern __attribute__((visibility ("default"))) JSBool >JS_GetReservedSlot(JSContext *cx, JSObject *obj, uint32 index, jsval *vp); > >extern __attribute__((visibility ("default"))) JSBool >JS_SetReservedSlot(JSContext *cx, JSObject *obj, uint32 index, jsval v); > > > > > > >struct JSPrincipals { > char *codebase; > > > void * (* getPrincipalArray)(JSContext *cx, JSPrincipals *); > JSBool (* globalPrivilegesEnabled)(JSContext *cx, JSPrincipals *); > > > jsrefcount refcount; > > void (* destroy)(JSContext *cx, JSPrincipals *); > JSBool (* subsume)(JSPrincipals *, JSPrincipals *); >}; > > > > > >extern __attribute__((visibility ("default"))) jsrefcount >JS_HoldPrincipals(JSContext *cx, JSPrincipals *principals); > >extern __attribute__((visibility ("default"))) jsrefcount >JS_DropPrincipals(JSContext *cx, JSPrincipals *principals); ># 1842 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSPrincipalsTranscoder >JS_SetPrincipalsTranscoder(JSRuntime *rt, JSPrincipalsTranscoder px); > >extern __attribute__((visibility ("default"))) JSObjectPrincipalsFinder >JS_SetObjectPrincipalsFinder(JSRuntime *rt, JSObjectPrincipalsFinder fop); > > > > > > >extern __attribute__((visibility ("default"))) JSFunction * >JS_NewFunction(JSContext *cx, JSNative call, uintN nargs, uintN flags, > JSObject *parent, const char *name); > >extern __attribute__((visibility ("default"))) JSObject * >JS_GetFunctionObject(JSFunction *fun); > > > > > >extern __attribute__((visibility ("default"))) const char * >JS_GetFunctionName(JSFunction *fun); ># 1877 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSString * >JS_GetFunctionId(JSFunction *fun); > > > > >extern __attribute__((visibility ("default"))) uintN >JS_GetFunctionFlags(JSFunction *fun); > > > > >extern __attribute__((visibility ("default"))) uint16 >JS_GetFunctionArity(JSFunction *fun); > > > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_ObjectIsFunction(JSContext *cx, JSObject *obj); > >extern __attribute__((visibility ("default"))) JSBool >JS_DefineFunctions(JSContext *cx, JSObject *obj, JSFunctionSpec *fs); > >extern __attribute__((visibility ("default"))) JSFunction * >JS_DefineFunction(JSContext *cx, JSObject *obj, const char *name, JSNative call, > uintN nargs, uintN attrs); > >extern __attribute__((visibility ("default"))) JSFunction * >JS_DefineUCFunction(JSContext *cx, JSObject *obj, > const jschar *name, size_t namelen, JSNative call, > uintN nargs, uintN attrs); > >extern __attribute__((visibility ("default"))) JSObject * >JS_CloneFunctionObject(JSContext *cx, JSObject *funobj, JSObject *parent); ># 1923 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSBool >JS_BufferIsCompilableUnit(JSContext *cx, JSObject *obj, > const char *bytes, size_t length); ># 1934 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSScript * >JS_CompileScript(JSContext *cx, JSObject *obj, > const char *bytes, size_t length, > const char *filename, uintN lineno); > >extern __attribute__((visibility ("default"))) JSScript * >JS_CompileScriptForPrincipals(JSContext *cx, JSObject *obj, > JSPrincipals *principals, > const char *bytes, size_t length, > const char *filename, uintN lineno); > >extern __attribute__((visibility ("default"))) JSScript * >JS_CompileUCScript(JSContext *cx, JSObject *obj, > const jschar *chars, size_t length, > const char *filename, uintN lineno); > >extern __attribute__((visibility ("default"))) JSScript * >JS_CompileUCScriptForPrincipals(JSContext *cx, JSObject *obj, > JSPrincipals *principals, > const jschar *chars, size_t length, > const char *filename, uintN lineno); > >extern __attribute__((visibility ("default"))) JSScript * >JS_CompileFile(JSContext *cx, JSObject *obj, const char *filename); > >extern __attribute__((visibility ("default"))) JSScript * >JS_CompileFileHandle(JSContext *cx, JSObject *obj, const char *filename, > FILE *fh); > >extern __attribute__((visibility ("default"))) JSScript * >JS_CompileFileHandleForPrincipals(JSContext *cx, JSObject *obj, > const char *filename, FILE *fh, > JSPrincipals *principals); ># 1984 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSObject * >JS_NewScriptObject(JSContext *cx, JSScript *script); > > > > > >extern __attribute__((visibility ("default"))) JSObject * >JS_GetScriptObject(JSScript *script); > >extern __attribute__((visibility ("default"))) void >JS_DestroyScript(JSContext *cx, JSScript *script); > >extern __attribute__((visibility ("default"))) JSFunction * >JS_CompileFunction(JSContext *cx, JSObject *obj, const char *name, > uintN nargs, const char **argnames, > const char *bytes, size_t length, > const char *filename, uintN lineno); > >extern __attribute__((visibility ("default"))) JSFunction * >JS_CompileFunctionForPrincipals(JSContext *cx, JSObject *obj, > JSPrincipals *principals, const char *name, > uintN nargs, const char **argnames, > const char *bytes, size_t length, > const char *filename, uintN lineno); > >extern __attribute__((visibility ("default"))) JSFunction * >JS_CompileUCFunction(JSContext *cx, JSObject *obj, const char *name, > uintN nargs, const char **argnames, > const jschar *chars, size_t length, > const char *filename, uintN lineno); > >extern __attribute__((visibility ("default"))) JSFunction * >JS_CompileUCFunctionForPrincipals(JSContext *cx, JSObject *obj, > JSPrincipals *principals, const char *name, > uintN nargs, const char **argnames, > const jschar *chars, size_t length, > const char *filename, uintN lineno); > >extern __attribute__((visibility ("default"))) JSString * >JS_DecompileScript(JSContext *cx, JSScript *script, const char *name, > uintN indent); > > > > > > > >extern __attribute__((visibility ("default"))) JSString * >JS_DecompileFunction(JSContext *cx, JSFunction *fun, uintN indent); > >extern __attribute__((visibility ("default"))) JSString * >JS_DecompileFunctionBody(JSContext *cx, JSFunction *fun, uintN indent); ># 2074 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSBool >JS_ExecuteScript(JSContext *cx, JSObject *obj, JSScript *script, jsval *rval); > > > > > >typedef enum JSExecPart { JSEXEC_PROLOG, JSEXEC_MAIN } JSExecPart; > >extern __attribute__((visibility ("default"))) JSBool >JS_ExecuteScriptPart(JSContext *cx, JSObject *obj, JSScript *script, > JSExecPart part, jsval *rval); > >extern __attribute__((visibility ("default"))) JSBool >JS_EvaluateScript(JSContext *cx, JSObject *obj, > const char *bytes, uintN length, > const char *filename, uintN lineno, > jsval *rval); > >extern __attribute__((visibility ("default"))) JSBool >JS_EvaluateScriptForPrincipals(JSContext *cx, JSObject *obj, > JSPrincipals *principals, > const char *bytes, uintN length, > const char *filename, uintN lineno, > jsval *rval); > >extern __attribute__((visibility ("default"))) JSBool >JS_EvaluateUCScript(JSContext *cx, JSObject *obj, > const jschar *chars, uintN length, > const char *filename, uintN lineno, > jsval *rval); > >extern __attribute__((visibility ("default"))) JSBool >JS_EvaluateUCScriptForPrincipals(JSContext *cx, JSObject *obj, > JSPrincipals *principals, > const jschar *chars, uintN length, > const char *filename, uintN lineno, > jsval *rval); > >extern __attribute__((visibility ("default"))) JSBool >JS_CallFunction(JSContext *cx, JSObject *obj, JSFunction *fun, uintN argc, > jsval *argv, jsval *rval); > >extern __attribute__((visibility ("default"))) JSBool >JS_CallFunctionName(JSContext *cx, JSObject *obj, const char *name, uintN argc, > jsval *argv, jsval *rval); > >extern __attribute__((visibility ("default"))) JSBool >JS_CallFunctionValue(JSContext *cx, JSObject *obj, jsval fval, uintN argc, > jsval *argv, jsval *rval); ># 2145 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) void >JS_SetOperationCallback(JSContext *cx, JSOperationCallback callback, > uint32 operationLimit); > >extern __attribute__((visibility ("default"))) void >JS_ClearOperationCallback(JSContext *cx); > >extern __attribute__((visibility ("default"))) JSOperationCallback >JS_GetOperationCallback(JSContext *cx); > > > > > > >extern __attribute__((visibility ("default"))) uint32 >JS_GetOperationLimit(JSContext *cx); > > > > > > >extern __attribute__((visibility ("default"))) void >JS_SetOperationLimit(JSContext *cx, uint32 operationLimit); ># 2180 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSBranchCallback >JS_SetBranchCallback(JSContext *cx, JSBranchCallback cb); > >extern __attribute__((visibility ("default"))) JSBool >JS_IsRunning(JSContext *cx); > >extern __attribute__((visibility ("default"))) JSBool >JS_IsConstructing(JSContext *cx); > > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_IsAssigning(JSContext *cx); ># 2205 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) void >JS_SetCallReturnValue2(JSContext *cx, jsval v); ># 2221 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSStackFrame * >JS_SaveFrameChain(JSContext *cx); > >extern __attribute__((visibility ("default"))) void >JS_RestoreFrameChain(JSContext *cx, JSStackFrame *fp); ># 2238 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSString * >JS_NewString(JSContext *cx, char *bytes, size_t length); > >extern __attribute__((visibility ("default"))) JSString * >JS_NewStringCopyN(JSContext *cx, const char *s, size_t n); > >extern __attribute__((visibility ("default"))) JSString * >JS_NewStringCopyZ(JSContext *cx, const char *s); > >extern __attribute__((visibility ("default"))) JSString * >JS_InternString(JSContext *cx, const char *s); > >extern __attribute__((visibility ("default"))) JSString * >JS_NewUCString(JSContext *cx, jschar *chars, size_t length); > >extern __attribute__((visibility ("default"))) JSString * >JS_NewUCStringCopyN(JSContext *cx, const jschar *s, size_t n); > >extern __attribute__((visibility ("default"))) JSString * >JS_NewUCStringCopyZ(JSContext *cx, const jschar *s); > >extern __attribute__((visibility ("default"))) JSString * >JS_InternUCStringN(JSContext *cx, const jschar *s, size_t length); > >extern __attribute__((visibility ("default"))) JSString * >JS_InternUCString(JSContext *cx, const jschar *s); > >extern __attribute__((visibility ("default"))) char * >JS_GetStringBytes(JSString *str); > >extern __attribute__((visibility ("default"))) jschar * >JS_GetStringChars(JSString *str); > >extern __attribute__((visibility ("default"))) size_t >JS_GetStringLength(JSString *str); > >extern __attribute__((visibility ("default"))) intN >JS_CompareStrings(JSString *str1, JSString *str2); ># 2296 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSString * >JS_NewGrowableString(JSContext *cx, jschar *chars, size_t length); > > > > > > >extern __attribute__((visibility ("default"))) JSString * >JS_NewDependentString(JSContext *cx, JSString *str, size_t start, > size_t length); ># 2315 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSString * >JS_ConcatStrings(JSContext *cx, JSString *left, JSString *right); > > > > > >extern __attribute__((visibility ("default"))) const jschar * >JS_UndependString(JSContext *cx, JSString *str); > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_MakeStringImmutable(JSContext *cx, JSString *str); > > > > > >__attribute__((visibility ("default"))) JSBool >JS_CStringsAreUTF8(void); > > > > > > >__attribute__((visibility ("default"))) void >JS_SetCStringsAreUTF8(void); ># 2368 "../../../dist/include/js/jsapi.h" >__attribute__((visibility ("default"))) JSBool >JS_EncodeCharacters(JSContext *cx, const jschar *src, size_t srclen, char *dst, > size_t *dstlenp); > >__attribute__((visibility ("default"))) JSBool >JS_DecodeBytes(JSContext *cx, const char *src, size_t srclen, jschar *dst, > size_t *dstlenp); > > > > > >__attribute__((visibility ("default"))) char * >JS_EncodeString(JSContext *cx, JSString *str); > > > > > > >struct JSLocaleCallbacks { > JSLocaleToUpperCase localeToUpperCase; > JSLocaleToLowerCase localeToLowerCase; > JSLocaleCompare localeCompare; > JSLocaleToUnicode localeToUnicode; > JSErrorCallback localeGetErrorMessage; >}; > > > > > >extern __attribute__((visibility ("default"))) void >JS_SetLocaleCallbacks(JSContext *cx, JSLocaleCallbacks *callbacks); > > > > > >extern __attribute__((visibility ("default"))) JSLocaleCallbacks * >JS_GetLocaleCallbacks(JSContext *cx); ># 2422 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) void >JS_ReportError(JSContext *cx, const char *format, ...); > > > > >extern __attribute__((visibility ("default"))) void >JS_ReportErrorNumber(JSContext *cx, JSErrorCallback errorCallback, > void *userRef, const uintN errorNumber, ...); > > > > >extern __attribute__((visibility ("default"))) void >JS_ReportErrorNumberUC(JSContext *cx, JSErrorCallback errorCallback, > void *userRef, const uintN errorNumber, ...); > > > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_ReportWarning(JSContext *cx, const char *format, ...); > >extern __attribute__((visibility ("default"))) JSBool >JS_ReportErrorFlagsAndNumber(JSContext *cx, uintN flags, > JSErrorCallback errorCallback, void *userRef, > const uintN errorNumber, ...); > >extern __attribute__((visibility ("default"))) JSBool >JS_ReportErrorFlagsAndNumberUC(JSContext *cx, uintN flags, > JSErrorCallback errorCallback, void *userRef, > const uintN errorNumber, ...); > > > > >extern __attribute__((visibility ("default"))) void >JS_ReportOutOfMemory(JSContext *cx); > > > > >extern __attribute__((visibility ("default"))) void >JS_ReportAllocationOverflow(JSContext *cx); > >struct JSErrorReport { > const char *filename; > uintN lineno; > const char *linebuf; > const char *tokenptr; > const jschar *uclinebuf; > const jschar *uctokenptr; > uintN flags; > uintN errorNumber; > const jschar *ucmessage; > const jschar **messageArgs; >}; ># 2502 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSErrorReporter >JS_SetErrorReporter(JSContext *cx, JSErrorReporter er); ># 2515 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSObject * >JS_NewRegExpObject(JSContext *cx, char *bytes, size_t length, uintN flags); > >extern __attribute__((visibility ("default"))) JSObject * >JS_NewUCRegExpObject(JSContext *cx, jschar *chars, size_t length, uintN flags); > >extern __attribute__((visibility ("default"))) void >JS_SetRegExpInput(JSContext *cx, JSString *input, JSBool multiline); > >extern __attribute__((visibility ("default"))) void >JS_ClearRegExpStatics(JSContext *cx); > >extern __attribute__((visibility ("default"))) void >JS_ClearRegExpRoots(JSContext *cx); > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_IsExceptionPending(JSContext *cx); > >extern __attribute__((visibility ("default"))) JSBool >JS_GetPendingException(JSContext *cx, jsval *vp); > >extern __attribute__((visibility ("default"))) void >JS_SetPendingException(JSContext *cx, jsval v); > >extern __attribute__((visibility ("default"))) void >JS_ClearPendingException(JSContext *cx); > >extern __attribute__((visibility ("default"))) JSBool >JS_ReportPendingException(JSContext *cx); ># 2560 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSExceptionState * >JS_SaveExceptionState(JSContext *cx); > >extern __attribute__((visibility ("default"))) void >JS_RestoreExceptionState(JSContext *cx, JSExceptionState *state); > >extern __attribute__((visibility ("default"))) void >JS_DropExceptionState(JSContext *cx, JSExceptionState *state); ># 2576 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) JSErrorReport * >JS_ErrorFromException(JSContext *cx, jsval v); > > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_ThrowReportedError(JSContext *cx, const char *message, > JSErrorReport *reportp); > > > > >extern __attribute__((visibility ("default"))) JSBool >JS_ThrowStopIteration(JSContext *cx); ># 2602 "../../../dist/include/js/jsapi.h" >extern __attribute__((visibility ("default"))) jsword >JS_GetContextThread(JSContext *cx); > >extern __attribute__((visibility ("default"))) jsword >JS_SetContextThread(JSContext *cx); > >extern __attribute__((visibility ("default"))) jsword >JS_ClearContextThread(JSContext *cx); ># 2622 "../../../dist/include/js/jsapi.h" >} ># 50 "./../../../dom/src/base/nsJSUtils.h" 2 ># 1 "../../../dist/include/string/nsString.h" 1 ># 44 "../../../dist/include/string/nsString.h" ># 1 "../../../dist/include/string/nsSubstring.h" 1 ># 43 "../../../dist/include/string/nsSubstring.h" ># 1 "../../../dist/include/string/nsAString.h" 1 ># 43 "../../../dist/include/string/nsAString.h" ># 1 "../../../dist/include/string/nsStringFwd.h" 1 ># 56 "../../../dist/include/string/nsStringFwd.h" >class nsAString_internal; >class nsObsoleteAString; > > > >class nsSubstringTuple; >class nsString; >class nsAutoString; >class nsDependentString; >class nsDependentSubstring; >class nsPromiseFlatString; >class nsStringComparator; >class nsDefaultStringComparator; >class nsXPIDLString; > > > > > > >class nsACString_internal; >class nsObsoleteACString; > > > >class nsCSubstringTuple; >class nsCString; >class nsCAutoString; >class nsDependentCString; >class nsDependentCSubstring; >class nsPromiseFlatCString; >class nsCStringComparator; >class nsDefaultCStringComparator; >class nsXPIDLCString; > > > > > > > >typedef nsAString_internal nsSubstring; >typedef nsACString_internal nsCSubstring; > > >typedef nsString nsAFlatString; >typedef nsSubstring nsASingleFragmentString; > >typedef nsCString nsAFlatCString; >typedef nsCSubstring nsASingleFragmentCString; ># 44 "../../../dist/include/string/nsAString.h" 2 > > > ># 1 "../../../dist/include/string/nsStringIterator.h" 1 ># 43 "../../../dist/include/string/nsStringIterator.h" ># 1 "../../../dist/include/string/nsCharTraits.h" 1 ># 42 "../../../dist/include/string/nsCharTraits.h" ># 1 "/usr/include/ctype.h" 1 3 4 ># 30 "/usr/include/ctype.h" 3 4 >extern "C" { ># 48 "/usr/include/ctype.h" 3 4 >enum >{ > _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), > _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), > _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), > _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), > _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), > _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), > _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), > _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), > _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), > _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), > _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), > _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) >}; ># 81 "/usr/include/ctype.h" 3 4 >extern __const unsigned short int **__ctype_b_loc (void) > __attribute__ ((__const)); >extern __const __int32_t **__ctype_tolower_loc (void) > __attribute__ ((__const)); >extern __const __int32_t **__ctype_toupper_loc (void) > __attribute__ ((__const)); ># 96 "/usr/include/ctype.h" 3 4 > > > > > > >extern int isalnum (int) throw (); >extern int isalpha (int) throw (); >extern int iscntrl (int) throw (); >extern int isdigit (int) throw (); >extern int islower (int) throw (); >extern int isgraph (int) throw (); >extern int isprint (int) throw (); >extern int ispunct (int) throw (); >extern int isspace (int) throw (); >extern int isupper (int) throw (); >extern int isxdigit (int) throw (); > > > >extern int tolower (int __c) throw (); > > >extern int toupper (int __c) throw (); > > > > > > > > >extern int isblank (int) throw (); > > > > > > >extern int isctype (int __c, int __mask) throw (); > > > > > > >extern int isascii (int __c) throw (); > > > >extern int toascii (int __c) throw (); > > > >extern int _toupper (int) throw (); >extern int _tolower (int) throw (); ># 247 "/usr/include/ctype.h" 3 4 >extern int isalnum_l (int, __locale_t) throw (); >extern int isalpha_l (int, __locale_t) throw (); >extern int iscntrl_l (int, __locale_t) throw (); >extern int isdigit_l (int, __locale_t) throw (); >extern int islower_l (int, __locale_t) throw (); >extern int isgraph_l (int, __locale_t) throw (); >extern int isprint_l (int, __locale_t) throw (); >extern int ispunct_l (int, __locale_t) throw (); >extern int isspace_l (int, __locale_t) throw (); >extern int isupper_l (int, __locale_t) throw (); >extern int isxdigit_l (int, __locale_t) throw (); > >extern int isblank_l (int, __locale_t) throw (); > > > >extern int __tolower_l (int __c, __locale_t __l) throw (); >extern int tolower_l (int __c, __locale_t __l) throw (); > > >extern int __toupper_l (int __c, __locale_t __l) throw (); >extern int toupper_l (int __c, __locale_t __l) throw (); ># 323 "/usr/include/ctype.h" 3 4 >} ># 43 "../../../dist/include/string/nsCharTraits.h" 2 ># 75 "../../../dist/include/string/nsCharTraits.h" ># 1 "../../../dist/include/xpcom/nsDebug.h" 1 ># 76 "../../../dist/include/string/nsCharTraits.h" 2 > > > > > > > > typedef PRBool nsCharTraits_bool; ># 145 "../../../dist/include/string/nsCharTraits.h" >template <class CharT> struct nsCharTraits {}; > >template <> >struct nsCharTraits<PRUnichar> > { > typedef PRUnichar char_type; > typedef PRUint16 unsigned_char_type; > typedef char incompatible_char_type; > > static const char_type *sEmptyBuffer; > > static > void > assign( char_type& lhs, char_type rhs ) > { > lhs = rhs; > } > > > > > > > > typedef int int_type; > > > static > char_type > to_char_type( int_type c ) > { > return char_type(c); > } > > static > int_type > to_int_type( char_type c ) > { > return int_type( static_cast<unsigned_char_type>(c) ); > } > > static > nsCharTraits_bool > eq_int_type( int_type lhs, int_type rhs ) > { > return lhs == rhs; > } > > > > > static > nsCharTraits_bool > eq( char_type lhs, char_type rhs ) > { > return lhs == rhs; > } > > static > nsCharTraits_bool > lt( char_type lhs, char_type rhs ) > { > return lhs < rhs; > } > > > > > static > char_type* > move( char_type* s1, const char_type* s2, size_t n ) > { > return static_cast<char_type*>(memmove(s1, s2, n * sizeof(char_type))); > } > > static > char_type* > copy( char_type* s1, const char_type* s2, size_t n ) > { > return static_cast<char_type*>(memcpy(s1, s2, n * sizeof(char_type))); > } > > static > char_type* > copyASCII( char_type* s1, const char* s2, size_t n ) > { > for (char_type* s = s1; n--; ++s, ++s2) { > do { } while (0); > *s = *s2; > } > return s1; > } > > static > char_type* > assign( char_type* s, size_t n, char_type c ) > { > > > > char_type* result = s; > while ( n-- ) > assign(*s++, c); > return result; > > } > > static > int > compare( const char_type* s1, const char_type* s2, size_t n ) > { > > > > for ( ; n--; ++s1, ++s2 ) > { > if ( !eq(*s1, *s2) ) > return to_int_type(*s1) - to_int_type(*s2); > } > > return 0; > > } > > static > int > compareASCII( const char_type* s1, const char* s2, size_t n ) > { > for ( ; n--; ++s1, ++s2 ) > { > do { } while (0); > if ( !eq_int_type(to_int_type(*s1), to_int_type(*s2)) ) > return to_int_type(*s1) - to_int_type(*s2); > } > > return 0; > } > > > > > static > int > compareASCIINullTerminated( const char_type* s1, size_t n, const char* s2 ) > { > for ( ; n--; ++s1, ++s2 ) > { > if ( !*s2 ) > return 1; > do { } while (0); > if ( !eq_int_type(to_int_type(*s1), to_int_type(*s2)) ) > return to_int_type(*s1) - to_int_type(*s2); > } > > if ( *s2 ) > return -1; > > return 0; > } ># 313 "../../../dist/include/string/nsCharTraits.h" > static > char_type > ASCIIToLower( char_type c ) > { > if (c < 0x100) > { > if (c >= 'A' && c <= 'Z') > return char_type(c + ('a' - 'A')); > > return c; > } > else > { > if (c == 0x212A) > return 'k'; > if (c == 0x0130) > return 'i'; > return c; > } > } > > static > int > compareLowerCaseToASCII( const char_type* s1, const char* s2, size_t n ) > { > for ( ; n--; ++s1, ++s2 ) > { > do { } while (0); > do { } while (0); > > char_type lower_s1 = ASCIIToLower(*s1); > if ( lower_s1 != to_char_type(*s2) ) > return to_int_type(lower_s1) - to_int_type(*s2); > } > > return 0; > } > > > > > static > int > compareLowerCaseToASCIINullTerminated( const char_type* s1, size_t n, const char* s2 ) > { > for ( ; n--; ++s1, ++s2 ) > { > if ( !*s2 ) > return 1; > do { } while (0); > do { } while (0); > > char_type lower_s1 = ASCIIToLower(*s1); > if ( lower_s1 != to_char_type(*s2) ) > return to_int_type(lower_s1) - to_int_type(*s2); > } > > if ( *s2 ) > return -1; > > return 0; > } > > static > size_t > length( const char_type* s ) > { > > > > size_t result = 0; > while ( !eq(*s++, char_type(0)) ) > ++result; > return result; > > } > > static > const char_type* > find( const char_type* s, size_t n, char_type c ) > { > > > > while ( n-- ) > { > if ( eq(*s, c) ) > return s; > ++s; > } > > return 0; > > } ># 435 "../../../dist/include/string/nsCharTraits.h" > }; > >template <> >struct nsCharTraits<char> > { > typedef char char_type; > typedef unsigned char unsigned_char_type; > typedef PRUnichar incompatible_char_type; > > static const char_type *sEmptyBuffer; > > static > void > assign( char_type& lhs, char_type rhs ) > { > lhs = rhs; > } > > > > > typedef int int_type; > > static > char_type > to_char_type( int_type c ) > { > return char_type(c); > } > > static > int_type > to_int_type( char_type c ) > { > return int_type( static_cast<unsigned_char_type>(c) ); > } > > static > nsCharTraits_bool > eq_int_type( int_type lhs, int_type rhs ) > { > return lhs == rhs; > } > > > > > static > nsCharTraits_bool > eq( char_type lhs, char_type rhs ) > { > return lhs == rhs; > } > > static > nsCharTraits_bool > lt( char_type lhs, char_type rhs ) > { > return lhs < rhs; > } > > > > > static > char_type* > move( char_type* s1, const char_type* s2, size_t n ) > { > return static_cast<char_type*>(memmove(s1, s2, n * sizeof(char_type))); > } > > static > char_type* > copy( char_type* s1, const char_type* s2, size_t n ) > { > return static_cast<char_type*>(memcpy(s1, s2, n * sizeof(char_type))); > } > > static > char_type* > copyASCII( char_type* s1, const char* s2, size_t n ) > { > return copy(s1, s2, n); > } > > static > char_type* > assign( char_type* s, size_t n, char_type c ) > { > return static_cast<char_type*>(memset(s, to_int_type(c), n)); > } > > static > int > compare( const char_type* s1, const char_type* s2, size_t n ) > { > return memcmp(s1, s2, n); > } > > static > int > compareASCII( const char_type* s1, const char* s2, size_t n ) > { > > > > > > > return compare(s1, s2, n); > } > > > > > static > int > compareASCIINullTerminated( const char_type* s1, size_t n, const char* s2 ) > { > > > for ( ; n--; ++s1, ++s2 ) > { > if ( !*s2 ) > return 1; > do { } while (0); > if ( *s1 != *s2 ) > return to_int_type(*s1) - to_int_type(*s2); > } > > if ( *s2 ) > return -1; > > return 0; > } > > > > > static > char_type > ASCIIToLower( char_type c ) > { > if (c >= 'A' && c <= 'Z') > return char_type(c + ('a' - 'A')); > > return c; > } > > static > int > compareLowerCaseToASCII( const char_type* s1, const char* s2, size_t n ) > { > for ( ; n--; ++s1, ++s2 ) > { > do { } while (0); > do { } while (0); > > char_type lower_s1 = ASCIIToLower(*s1); > if ( lower_s1 != *s2 ) > return to_int_type(lower_s1) - to_int_type(*s2); > } > return 0; > } > > > > > static > int > compareLowerCaseToASCIINullTerminated( const char_type* s1, size_t n, const char* s2 ) > { > for ( ; n--; ++s1, ++s2 ) > { > if ( !*s2 ) > return 1; > do { } while (0); > do { } while (0); > > char_type lower_s1 = ASCIIToLower(*s1); > if ( lower_s1 != *s2 ) > return to_int_type(lower_s1) - to_int_type(*s2); > } > > if ( *s2 ) > return -1; > > return 0; > } > > static > size_t > length( const char_type* s ) > { > return strlen(s); > } > > static > const char_type* > find( const char_type* s, size_t n, char_type c ) > { > return reinterpret_cast<const char_type*>(memchr(s, to_int_type(c), n)); > } ># 662 "../../../dist/include/string/nsCharTraits.h" > }; > >template <class InputIterator> >struct nsCharSourceTraits > { > typedef typename InputIterator::difference_type difference_type; > > static > PRUint32 > readable_distance( const InputIterator& first, const InputIterator& last ) > { > > return PRUint32(last.get() - first.get()); > } > > static > const typename InputIterator::value_type* > read( const InputIterator& iter ) > { > return iter.get(); > } > > static > void > advance( InputIterator& s, difference_type n ) > { > s.advance(n); > } > }; > > > >template <class CharT> >struct nsCharSourceTraits<CharT*> > { > typedef ptrdiff_t difference_type; > > static > PRUint32 > readable_distance( CharT* s ) > { > return PRUint32(nsCharTraits<CharT>::length(s)); > > } > > static > PRUint32 > readable_distance( CharT* first, CharT* last ) > { > return PRUint32(last-first); > } > > static > const CharT* > read( CharT* s ) > { > return s; > } > > static > void > advance( CharT*& s, difference_type n ) > { > s += n; > } > }; ># 805 "../../../dist/include/string/nsCharTraits.h" >template <class OutputIterator> >struct nsCharSinkTraits > { > static > void > write( OutputIterator& iter, const typename OutputIterator::value_type* s, PRUint32 n ) > { > iter.write(s, n); > } > }; > > > >template <class CharT> >struct nsCharSinkTraits<CharT*> > { > static > void > write( CharT*& iter, const CharT* s, PRUint32 n ) > { > nsCharTraits<CharT>::move(iter, s, n); > iter += n; > } > }; ># 44 "../../../dist/include/string/nsStringIterator.h" 2 > > > ># 1 "../../../dist/include/string/nsAlgorithm.h" 1 ># 57 "../../../dist/include/string/nsAlgorithm.h" >template <class T> >inline >const T& >NS_MIN( const T& a, const T& b ) > { > return b < a ? b : a; > } > >template <class T> >inline >const T& >NS_MAX( const T& a, const T& b ) > { > return a > b ? a : b; > } > >template <class InputIterator, class T> >inline >PRUint32 >NS_COUNT( InputIterator& first, const InputIterator& last, const T& value ) > { > PRUint32 result = 0; > for ( ; first != last; ++first ) > if ( *first == value ) > ++result; > return result; > } > >template <class InputIterator, class OutputIterator> >inline >OutputIterator& >copy_string( const InputIterator& first, const InputIterator& last, OutputIterator& result ) > { > typedef nsCharSourceTraits<InputIterator> source_traits; > typedef nsCharSinkTraits<OutputIterator> sink_traits; > > sink_traits::write(result, source_traits::read(first), source_traits::readable_distance(first, last)); > return result; > } ># 48 "../../../dist/include/string/nsStringIterator.h" 2 ># 58 "../../../dist/include/string/nsStringIterator.h" >template <class CharT> >class nsReadingIterator > { > public: > typedef nsReadingIterator<CharT> self_type; > typedef ptrdiff_t difference_type; > typedef CharT value_type; > typedef const CharT* pointer; > typedef const CharT& reference; > > private: > friend class nsAString_internal; > friend class nsACString_internal; ># 81 "../../../dist/include/string/nsStringIterator.h" > const CharT* mStart; > const CharT* mEnd; > const CharT* mPosition; > > public: > nsReadingIterator() { } > > > > inline void normalize_forward() {} > inline void normalize_backward() {} > > pointer > start() const > { > return mStart; > } > > pointer > end() const > { > return mEnd; > } > > pointer > get() const > { > return mPosition; > } > > CharT > operator*() const > { > return *get(); > } ># 127 "../../../dist/include/string/nsStringIterator.h" > self_type& > operator++() > { > ++mPosition; > return *this; > } > > self_type > operator++( int ) > { > self_type result(*this); > ++mPosition; > return result; > } > > self_type& > operator--() > { > --mPosition; > return *this; > } > > self_type > operator--( int ) > { > self_type result(*this); > --mPosition; > return result; > } > > difference_type > size_forward() const > { > return mEnd - mPosition; > } > > difference_type > size_backward() const > { > return mPosition - mStart; > } > > self_type& > advance( difference_type n ) > { > if (n > 0) > { > difference_type step = NS_MIN(n, size_forward()); > > do { } while (0); > > mPosition += step; > } > else if (n < 0) > { > difference_type step = NS_MAX(n, -size_backward()); > > do { } while (0); > > mPosition += step; > } > return *this; > } > }; > > > > > >template <class CharT> >class nsWritingIterator > { > public: > typedef nsWritingIterator<CharT> self_type; > typedef ptrdiff_t difference_type; > typedef CharT value_type; > typedef CharT* pointer; > typedef CharT& reference; > > private: > friend class nsAString_internal; > friend class nsACString_internal; ># 219 "../../../dist/include/string/nsStringIterator.h" > CharT* mStart; > CharT* mEnd; > CharT* mPosition; > > public: > nsWritingIterator() { } > > > > inline void normalize_forward() {} > inline void normalize_backward() {} > > pointer > start() const > { > return mStart; > } > > pointer > end() const > { > return mEnd; > } > > pointer > get() const > { > return mPosition; > } > > reference > operator*() const > { > return *get(); > } ># 265 "../../../dist/include/string/nsStringIterator.h" > self_type& > operator++() > { > ++mPosition; > return *this; > } > > self_type > operator++( int ) > { > self_type result(*this); > ++mPosition; > return result; > } > > self_type& > operator--() > { > --mPosition; > return *this; > } > > self_type > operator--( int ) > { > self_type result(*this); > --mPosition; > return result; > } > > difference_type > size_forward() const > { > return mEnd - mPosition; > } > > difference_type > size_backward() const > { > return mPosition - mStart; > } > > self_type& > advance( difference_type n ) > { > if (n > 0) > { > difference_type step = NS_MIN(n, size_forward()); > > do { } while (0); > > mPosition += step; > } > else if (n < 0) > { > difference_type step = NS_MAX(n, -size_backward()); > > do { } while (0); > > mPosition += step; > } > return *this; > } > > void > write( const value_type* s, PRUint32 n ) > { > do { } while (0); > > nsCharTraits<value_type>::move(mPosition, s, n); > advance( difference_type(n) ); > } > }; > >template <class CharT> >inline >PRBool >operator==( const nsReadingIterator<CharT>& lhs, const nsReadingIterator<CharT>& rhs ) > { > return lhs.get() == rhs.get(); > } > >template <class CharT> >inline >PRBool >operator!=( const nsReadingIterator<CharT>& lhs, const nsReadingIterator<CharT>& rhs ) > { > return lhs.get() != rhs.get(); > } > > > > > > >template <class CharT> >inline >PRBool >operator==( const nsWritingIterator<CharT>& lhs, const nsWritingIterator<CharT>& rhs ) > { > return lhs.get() == rhs.get(); > } > >template <class CharT> >inline >PRBool >operator!=( const nsWritingIterator<CharT>& lhs, const nsWritingIterator<CharT>& rhs ) > { > return lhs.get() != rhs.get(); > } ># 48 "../../../dist/include/string/nsAString.h" 2 ># 67 "../../../dist/include/string/nsAString.h" ># 1 "../../../dist/include/string/string-template-def-unichar.h" 1 ># 68 "../../../dist/include/string/nsAString.h" 2 ># 1 "../../../dist/include/string/nsTAString.h" 1 ># 47 "../../../dist/include/string/nsTAString.h" >class nsStringComparator > { > public: > typedef PRUnichar char_type; > > nsStringComparator() {} > > virtual int operator()( const char_type*, const char_type*, PRUint32 length ) const = 0; > virtual int operator()( char_type, char_type ) const = 0; > }; > > > > > >class nsDefaultStringComparator > : public nsStringComparator > { > public: > typedef PRUnichar char_type; > > nsDefaultStringComparator() {} > > virtual int operator()( const char_type*, const char_type*, PRUint32 length ) const; > virtual int operator()( char_type, char_type ) const; > }; ># 106 "../../../dist/include/string/nsTAString.h" >class nsSubstring_base > { > public: > > typedef PRUnichar char_type; > typedef nsCharTraits<char_type> char_traits; > > typedef char_traits::incompatible_char_type incompatible_char_type; > > typedef nsSubstring_base self_type; > typedef nsSubstring_base abstract_string_type; > typedef nsObsoleteAString obsolete_string_type; > typedef nsAString_internal substring_type; > typedef nsSubstringTuple substring_tuple_type; > > typedef nsReadingIterator<char_type> const_iterator; > typedef nsWritingIterator<char_type> iterator; > > typedef nsStringComparator comparator_type; > > typedef PRUint32 size_type; > typedef PRUint32 index_type; ># 638 "../../../dist/include/string/nsTAString.h" > }; ># 69 "../../../dist/include/string/nsAString.h" 2 ># 1 "../../../dist/include/string/string-template-undef.h" 1 ># 70 "../../../dist/include/string/nsAString.h" 2 > > > ># 1 "../../../dist/include/string/string-template-def-char.h" 1 ># 74 "../../../dist/include/string/nsAString.h" 2 ># 1 "../../../dist/include/string/nsTAString.h" 1 ># 47 "../../../dist/include/string/nsTAString.h" >class nsCStringComparator > { > public: > typedef char char_type; > > nsCStringComparator() {} > > virtual int operator()( const char_type*, const char_type*, PRUint32 length ) const = 0; > virtual int operator()( char_type, char_type ) const = 0; > }; > > > > > >class nsDefaultCStringComparator > : public nsCStringComparator > { > public: > typedef char char_type; > > nsDefaultCStringComparator() {} > > virtual int operator()( const char_type*, const char_type*, PRUint32 length ) const; > virtual int operator()( char_type, char_type ) const; > }; ># 106 "../../../dist/include/string/nsTAString.h" >class nsCSubstring_base > { > public: > > typedef char char_type; > typedef nsCharTraits<char_type> char_traits; > > typedef char_traits::incompatible_char_type incompatible_char_type; > > typedef nsCSubstring_base self_type; > typedef nsCSubstring_base abstract_string_type; > typedef nsObsoleteACString obsolete_string_type; > typedef nsACString_internal substring_type; > typedef nsCSubstringTuple substring_tuple_type; > > typedef nsReadingIterator<char_type> const_iterator; > typedef nsWritingIterator<char_type> iterator; > > typedef nsCStringComparator comparator_type; > > typedef PRUint32 size_type; > typedef PRUint32 index_type; ># 638 "../../../dist/include/string/nsTAString.h" > }; ># 75 "../../../dist/include/string/nsAString.h" 2 ># 1 "../../../dist/include/string/string-template-undef.h" 1 ># 76 "../../../dist/include/string/nsAString.h" 2 > > > > > > >class nsCaseInsensitiveCStringComparator > : public nsCStringComparator > { > public: > typedef char char_type; > > virtual int operator()( const char_type*, const char_type*, PRUint32 length ) const; > virtual int operator()( char_type, char_type ) const; > }; > > > > ># 1 "../../../dist/include/string/nsSubstringTuple.h" 1 ># 47 "../../../dist/include/string/nsSubstringTuple.h" ># 1 "../../../dist/include/string/string-template-def-unichar.h" 1 ># 48 "../../../dist/include/string/nsSubstringTuple.h" 2 ># 1 "../../../dist/include/string/nsTSubstringTuple.h" 1 ># 49 "../../../dist/include/string/nsTSubstringTuple.h" >class nsSubstringTuple > { > public: > > typedef PRUnichar char_type; > typedef nsCharTraits<char_type> char_traits; > > typedef nsSubstringTuple self_type; > typedef nsAString_internal substring_type; > > > > > typedef nsAString_internal base_string_type; > > typedef PRUint32 size_type; > > public: > > nsSubstringTuple(const base_string_type* a, const base_string_type* b) > : mHead(0) > , mFragA(a) > , mFragB(b) {} > > nsSubstringTuple(const self_type& head, const base_string_type* b) > : mHead(&head) > , mFragA(0) > , mFragB(b) {} > > > > > size_type Length() const; > > > > > > > void WriteTo(char_type *buf, PRUint32 bufLen) const; > > > > > > PRBool IsDependentOn(const char_type *start, const char_type *end) const; > > private: > > const self_type* mHead; > const base_string_type* mFragA; > const base_string_type* mFragB; > }; > >inline >const nsSubstringTuple >operator+(const nsSubstringTuple::base_string_type& a, const nsSubstringTuple::base_string_type& b) > { > return nsSubstringTuple(&a, &b); > } > >inline >const nsSubstringTuple >operator+(const nsSubstringTuple& head, const nsSubstringTuple::base_string_type& b) > { > return nsSubstringTuple(head, &b); > } ># 49 "../../../dist/include/string/nsSubstringTuple.h" 2 ># 1 "../../../dist/include/string/string-template-undef.h" 1 ># 50 "../../../dist/include/string/nsSubstringTuple.h" 2 > > ># 1 "../../../dist/include/string/string-template-def-char.h" 1 ># 53 "../../../dist/include/string/nsSubstringTuple.h" 2 ># 1 "../../../dist/include/string/nsTSubstringTuple.h" 1 ># 49 "../../../dist/include/string/nsTSubstringTuple.h" >class nsCSubstringTuple > { > public: > > typedef char char_type; > typedef nsCharTraits<char_type> char_traits; > > typedef nsCSubstringTuple self_type; > typedef nsACString_internal substring_type; > > > > > typedef nsACString_internal base_string_type; > > typedef PRUint32 size_type; > > public: > > nsCSubstringTuple(const base_string_type* a, const base_string_type* b) > : mHead(0) > , mFragA(a) > , mFragB(b) {} > > nsCSubstringTuple(const self_type& head, const base_string_type* b) > : mHead(&head) > , mFragA(0) > , mFragB(b) {} > > > > > size_type Length() const; > > > > > > > void WriteTo(char_type *buf, PRUint32 bufLen) const; > > > > > > PRBool IsDependentOn(const char_type *start, const char_type *end) const; > > private: > > const self_type* mHead; > const base_string_type* mFragA; > const base_string_type* mFragB; > }; > >inline >const nsCSubstringTuple >operator+(const nsCSubstringTuple::base_string_type& a, const nsCSubstringTuple::base_string_type& b) > { > return nsCSubstringTuple(&a, &b); > } > >inline >const nsCSubstringTuple >operator+(const nsCSubstringTuple& head, const nsCSubstringTuple::base_string_type& b) > { > return nsCSubstringTuple(head, &b); > } ># 54 "../../../dist/include/string/nsSubstringTuple.h" 2 ># 1 "../../../dist/include/string/string-template-undef.h" 1 ># 55 "../../../dist/include/string/nsSubstringTuple.h" 2 ># 96 "../../../dist/include/string/nsAString.h" 2 ># 44 "../../../dist/include/string/nsSubstring.h" 2 ># 59 "../../../dist/include/string/nsSubstring.h" ># 1 "../../../dist/include/string/string-template-def-unichar.h" 1 ># 60 "../../../dist/include/string/nsSubstring.h" 2 ># 1 "../../../dist/include/string/nsTSubstring.h" 1 ># 55 "../../../dist/include/string/nsTSubstring.h" >class nsAString_internal : public nsSubstring_base > { > public: > > typedef nsAString_internal self_type; > typedef nsString string_type; > > typedef char_type* char_iterator; > typedef const char_type* const_char_iterator; > > > > > typedef nsAString_internal base_string_type; > > > public: > > > > __attribute__ ((regparm (3), stdcall)) ~nsAString_internal(); > > > > > > > const_char_iterator BeginReading() const { return mData; } > const_char_iterator EndReading() const { return mData + mLength; } > > > > > > const_iterator& BeginReading( const_iterator& iter ) const > { > iter.mStart = mData; > iter.mEnd = mData + mLength; > iter.mPosition = iter.mStart; > return iter; > } > > const_iterator& EndReading( const_iterator& iter ) const > { > iter.mStart = mData; > iter.mEnd = mData + mLength; > iter.mPosition = iter.mEnd; > return iter; > } > > const_char_iterator& BeginReading( const_char_iterator& iter ) const > { > return iter = mData; > } > > const_char_iterator& EndReading( const_char_iterator& iter ) const > { > return iter = mData + mLength; > } > > > > > > > char_iterator BeginWriting() > { > return EnsureMutable() ? mData : char_iterator(0); > } > > char_iterator EndWriting() > { > return EnsureMutable() ? (mData + mLength) : char_iterator(0); > } > > > > > > > iterator& BeginWriting( iterator& iter ) > { > char_type *data = EnsureMutable() ? mData : 0; > iter.mStart = data; > iter.mEnd = data + mLength; > iter.mPosition = iter.mStart; > return iter; > } > > iterator& EndWriting( iterator& iter ) > { > char_type *data = EnsureMutable() ? mData : 0; > iter.mStart = data; > iter.mEnd = data + mLength; > iter.mPosition = iter.mEnd; > return iter; > } > > char_iterator& BeginWriting( char_iterator& iter ) > { > return iter = EnsureMutable() ? mData : char_iterator(0); > } > > char_iterator& EndWriting( char_iterator& iter ) > { > return iter = EnsureMutable() ? (mData + mLength) : char_iterator(0); > } > > > > > > > > const char_type *Data() const > { > return mData; > } > > size_type Length() const > { > return mLength; > } > > PRBool IsEmpty() const > { > return mLength == 0; > } > > PRBool IsVoid() const > { > return (mFlags & F_VOIDED) != 0; > } > > PRBool IsTerminated() const > { > return (mFlags & F_TERMINATED) != 0; > } > > char_type CharAt( index_type i ) const > { > do { } while (0); > return mData[i]; > } > > char_type operator[]( index_type i ) const > { > return CharAt(i); > } > > char_type First() const > { > do { } while (0); > return mData[0]; > } > > inline > char_type Last() const > { > do { } while (0); > return mData[mLength - 1]; > } > > size_type __attribute__ ((regparm (3), stdcall)) CountChar( char_type ) const; > PRInt32 __attribute__ ((regparm (3), stdcall)) FindChar( char_type, index_type offset = 0 ) const; > > > > > > > PRBool __attribute__ ((regparm (3), stdcall)) Equals( const self_type& ) const; > PRBool __attribute__ ((regparm (3), stdcall)) Equals( const self_type&, const comparator_type& ) const; > > > > > > > PRBool __attribute__ ((regparm (3), stdcall)) Equals( const char_type* data ) const; > PRBool __attribute__ ((regparm (3), stdcall)) Equals( const char_type* data, const comparator_type& comp ) const; > > > > > > > PRBool __attribute__ ((regparm (3), stdcall)) EqualsASCII( const char* data, size_type len ) const; > > > > > > PRBool __attribute__ ((regparm (3), stdcall)) EqualsASCII( const char* data ) const; ># 261 "../../../dist/include/string/nsTSubstring.h" > template<int N> > inline PRBool EqualsLiteral( const char (&str)[N] ) const > { > return EqualsASCII(str, N-1); > } > template<int N> > inline PRBool EqualsLiteral( char (&str)[N] ) const > { > const char* s = str; > return EqualsASCII(s, N-1); > } > > > > > > > > PRBool __attribute__ ((regparm (3), stdcall)) LowerCaseEqualsASCII( const char* data, size_type len ) const; > PRBool __attribute__ ((regparm (3), stdcall)) LowerCaseEqualsASCII( const char* data ) const; ># 292 "../../../dist/include/string/nsTSubstring.h" > template<int N> > inline PRBool LowerCaseEqualsLiteral( const char (&str)[N] ) const > { > return LowerCaseEqualsASCII(str, N-1); > } > template<int N> > inline PRBool LowerCaseEqualsLiteral( char (&str)[N] ) const > { > const char* s = str; > return LowerCaseEqualsASCII(s, N-1); > } > > > > > > > void __attribute__ ((regparm (3), stdcall)) Assign( char_type c ); > void __attribute__ ((regparm (3), stdcall)) Assign( const char_type* data, size_type length = size_type(-1) ); > void __attribute__ ((regparm (3), stdcall)) Assign( const self_type& ); > void __attribute__ ((regparm (3), stdcall)) Assign( const substring_tuple_type& ); > > > > > void __attribute__ ((regparm (3), stdcall)) AssignASCII( const char* data, size_type length ); > void __attribute__ ((regparm (3), stdcall)) AssignASCII( const char* data ); ># 327 "../../../dist/include/string/nsTSubstring.h" > template<int N> > void AssignLiteral( const char (&str)[N] ) > { AssignASCII(str, N-1); } > template<int N> > void AssignLiteral( char (&str)[N] ) > { AssignASCII(str, N-1); } > > > self_type& operator=( char_type c ) { Assign(c); return *this; } > self_type& operator=( const char_type* data ) { Assign(data); return *this; } > self_type& operator=( const self_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_tuple_type& tuple ) { Assign(tuple); return *this; } > > > > > void __attribute__ ((regparm (3), stdcall)) Adopt( char_type* data, size_type length = size_type(-1) ); > > > > > > > void __attribute__ ((regparm (3), stdcall)) Replace( index_type cutStart, size_type cutLength, char_type c ); > void __attribute__ ((regparm (3), stdcall)) Replace( index_type cutStart, size_type cutLength, const char_type* data, size_type length = size_type(-1) ); > void Replace( index_type cutStart, size_type cutLength, const self_type& str ) { Replace(cutStart, cutLength, str.Data(), str.Length()); } > void __attribute__ ((regparm (3), stdcall)) Replace( index_type cutStart, size_type cutLength, const substring_tuple_type& tuple ); > > > > > void __attribute__ ((regparm (3), stdcall)) ReplaceASCII( index_type cutStart, size_type cutLength, const char* data, size_type length = size_type(-1) ); > > void Append( char_type c ) { Replace(mLength, 0, c); } > void Append( const char_type* data, size_type length = size_type(-1) ) { Replace(mLength, 0, data, length); } > void Append( const self_type& str ) { Replace(mLength, 0, str); } > void Append( const substring_tuple_type& tuple ) { Replace(mLength, 0, tuple); } > > > > > void AppendASCII( const char* data, size_type length = size_type(-1) ) { ReplaceASCII(mLength, 0, data, length); } ># 377 "../../../dist/include/string/nsTSubstring.h" > template<int N> > void AppendLiteral( const char (&str)[N] ) > { AppendASCII(str, N-1); } > template<int N> > void AppendLiteral( char (&str)[N] ) > { AppendASCII(str, N-1); } > > > self_type& operator+=( char_type c ) { Append(c); return *this; } > self_type& operator+=( const char_type* data ) { Append(data); return *this; } > self_type& operator+=( const self_type& str ) { Append(str); return *this; } > self_type& operator+=( const substring_tuple_type& tuple ) { Append(tuple); return *this; } > > > > > void Insert( char_type c, index_type pos ) { Replace(pos, 0, c); } > void Insert( const char_type* data, index_type pos, size_type length = size_type(-1) ) { Replace(pos, 0, data, length); } > void Insert( const self_type& str, index_type pos ) { Replace(pos, 0, str); } > void Insert( const substring_tuple_type& tuple, index_type pos ) { Replace(pos, 0, tuple); } > > > > > void Cut( index_type cutStart, size_type cutLength ) { Replace(cutStart, cutLength, char_traits::sEmptyBuffer, 0); } > > > > > > > void __attribute__ ((regparm (3), stdcall)) SetCapacity( size_type newCapacity ); > > void __attribute__ ((regparm (3), stdcall)) SetLength( size_type newLength ); > > void Truncate( size_type newLength = 0 ) > { > do { } while (0); > SetLength(newLength); > } ># 430 "../../../dist/include/string/nsTSubstring.h" > inline size_type GetData( const char_type** data ) const > { > *data = mData; > return mLength; > } ># 446 "../../../dist/include/string/nsTSubstring.h" > inline size_type GetMutableData( char_type** data, size_type newLen = size_type(-1) ) > { > if (!EnsureMutable(newLen)) > { > *data = 0; > return 0; > } > > *data = mData; > return mLength; > } > > > > > > > > void __attribute__ ((regparm (3), stdcall)) SetIsVoid( PRBool ); ># 474 "../../../dist/include/string/nsTSubstring.h" > void StripChar( char_type aChar, PRInt32 aOffset=0 ); > > > public: > > > > > > nsAString_internal(const substring_tuple_type& tuple) > > > > : mData(0), > mLength(0), > mFlags(F_NONE) > > { > Assign(tuple); > } ># 504 "../../../dist/include/string/nsTSubstring.h" > nsAString_internal( char_type *data, size_type length, PRUint32 flags ); > > protected: > > friend class nsObsoleteAStringThunk; > friend class nsSubstring_base; > friend class nsSubstringTuple; > > > friend class nsPromiseFlatString; > > > char_type* mData; > size_type mLength; > PRUint32 mFlags; > > > > nsAString_internal() > > > > > : mData(const_cast<char_type*>(char_traits::sEmptyBuffer)), > mLength(0), > mFlags(F_TERMINATED) {} > > > > explicit > nsAString_internal( PRUint32 flags ) > > > > : mFlags(flags) {} > > > > > nsAString_internal( const self_type& str ) > > > > : mData(str.mData), > mLength(str.mLength), > mFlags(str.mFlags & (F_TERMINATED | F_VOIDED)) {} > > > > > > > > void __attribute__ ((regparm (3), stdcall)) Finalize(); ># 577 "../../../dist/include/string/nsTSubstring.h" > PRBool __attribute__ ((regparm (3), stdcall)) MutatePrep( size_type capacity, char_type** old_data, PRUint32* old_flags ); ># 599 "../../../dist/include/string/nsTSubstring.h" > PRBool __attribute__ ((regparm (3), stdcall)) ReplacePrep( index_type cutStart, size_type cutLength, size_type newLength ); > > > > > > > > size_type __attribute__ ((regparm (3), stdcall)) Capacity() const; > > > > > > PRBool __attribute__ ((regparm (3), stdcall)) EnsureMutable( size_type newLen = size_type(-1) ); > > > > > PRBool IsDependentOn( const char_type *start, const char_type *end ) const > { ># 628 "../../../dist/include/string/nsTSubstring.h" > return ( start < (mData + mLength) && end > mData ); > } > > > > > void SetDataFlags(PRUint32 dataFlags) > { > do { } while (0); > mFlags = dataFlags | (mFlags & 0xFFFF0000); > } > > public: > > > > > > > > enum > { > F_NONE = 0, > > > F_TERMINATED = 1 << 0, > F_VOIDED = 1 << 1, > F_SHARED = 1 << 2, > F_OWNED = 1 << 3, > F_FIXED = 1 << 4, > > > F_CLASS_FIXED = 1 << 16 > }; ># 696 "../../../dist/include/string/nsTSubstring.h" > }; > > >int __attribute__ ((regparm (3), stdcall)) Compare( const nsAString_internal::base_string_type& lhs, const nsAString_internal::base_string_type& rhs, const nsStringComparator& = nsDefaultStringComparator() ); > > >inline >PRBool operator!=( const nsAString_internal::base_string_type& lhs, const nsAString_internal::base_string_type& rhs ) > { > return !lhs.Equals(rhs); > } > >inline >PRBool operator< ( const nsAString_internal::base_string_type& lhs, const nsAString_internal::base_string_type& rhs ) > { > return Compare(lhs, rhs)< 0; > } > >inline >PRBool operator<=( const nsAString_internal::base_string_type& lhs, const nsAString_internal::base_string_type& rhs ) > { > return Compare(lhs, rhs)<=0; > } > >inline >PRBool operator==( const nsAString_internal::base_string_type& lhs, const nsAString_internal::base_string_type& rhs ) > { > return lhs.Equals(rhs); > } > >inline >PRBool operator>=( const nsAString_internal::base_string_type& lhs, const nsAString_internal::base_string_type& rhs ) > { > return Compare(lhs, rhs)>=0; > } > >inline >PRBool operator> ( const nsAString_internal::base_string_type& lhs, const nsAString_internal::base_string_type& rhs ) > { > return Compare(lhs, rhs)> 0; > } ># 61 "../../../dist/include/string/nsSubstring.h" 2 ># 1 "../../../dist/include/string/string-template-undef.h" 1 ># 62 "../../../dist/include/string/nsSubstring.h" 2 > > > ># 1 "../../../dist/include/string/string-template-def-char.h" 1 ># 66 "../../../dist/include/string/nsSubstring.h" 2 ># 1 "../../../dist/include/string/nsTSubstring.h" 1 ># 55 "../../../dist/include/string/nsTSubstring.h" >class nsACString_internal : public nsCSubstring_base > { > public: > > typedef nsACString_internal self_type; > typedef nsCString string_type; > > typedef char_type* char_iterator; > typedef const char_type* const_char_iterator; > > > > > typedef nsACString_internal base_string_type; > > > public: > > > > __attribute__ ((regparm (3), stdcall)) ~nsACString_internal(); > > > > > > > const_char_iterator BeginReading() const { return mData; } > const_char_iterator EndReading() const { return mData + mLength; } > > > > > > const_iterator& BeginReading( const_iterator& iter ) const > { > iter.mStart = mData; > iter.mEnd = mData + mLength; > iter.mPosition = iter.mStart; > return iter; > } > > const_iterator& EndReading( const_iterator& iter ) const > { > iter.mStart = mData; > iter.mEnd = mData + mLength; > iter.mPosition = iter.mEnd; > return iter; > } > > const_char_iterator& BeginReading( const_char_iterator& iter ) const > { > return iter = mData; > } > > const_char_iterator& EndReading( const_char_iterator& iter ) const > { > return iter = mData + mLength; > } > > > > > > > char_iterator BeginWriting() > { > return EnsureMutable() ? mData : char_iterator(0); > } > > char_iterator EndWriting() > { > return EnsureMutable() ? (mData + mLength) : char_iterator(0); > } > > > > > > > iterator& BeginWriting( iterator& iter ) > { > char_type *data = EnsureMutable() ? mData : 0; > iter.mStart = data; > iter.mEnd = data + mLength; > iter.mPosition = iter.mStart; > return iter; > } > > iterator& EndWriting( iterator& iter ) > { > char_type *data = EnsureMutable() ? mData : 0; > iter.mStart = data; > iter.mEnd = data + mLength; > iter.mPosition = iter.mEnd; > return iter; > } > > char_iterator& BeginWriting( char_iterator& iter ) > { > return iter = EnsureMutable() ? mData : char_iterator(0); > } > > char_iterator& EndWriting( char_iterator& iter ) > { > return iter = EnsureMutable() ? (mData + mLength) : char_iterator(0); > } > > > > > > > > const char_type *Data() const > { > return mData; > } > > size_type Length() const > { > return mLength; > } > > PRBool IsEmpty() const > { > return mLength == 0; > } > > PRBool IsVoid() const > { > return (mFlags & F_VOIDED) != 0; > } > > PRBool IsTerminated() const > { > return (mFlags & F_TERMINATED) != 0; > } > > char_type CharAt( index_type i ) const > { > do { } while (0); > return mData[i]; > } > > char_type operator[]( index_type i ) const > { > return CharAt(i); > } > > char_type First() const > { > do { } while (0); > return mData[0]; > } > > inline > char_type Last() const > { > do { } while (0); > return mData[mLength - 1]; > } > > size_type __attribute__ ((regparm (3), stdcall)) CountChar( char_type ) const; > PRInt32 __attribute__ ((regparm (3), stdcall)) FindChar( char_type, index_type offset = 0 ) const; > > > > > > > PRBool __attribute__ ((regparm (3), stdcall)) Equals( const self_type& ) const; > PRBool __attribute__ ((regparm (3), stdcall)) Equals( const self_type&, const comparator_type& ) const; > > > > > > > PRBool __attribute__ ((regparm (3), stdcall)) Equals( const char_type* data ) const; > PRBool __attribute__ ((regparm (3), stdcall)) Equals( const char_type* data, const comparator_type& comp ) const; > > > > > > > PRBool __attribute__ ((regparm (3), stdcall)) EqualsASCII( const char* data, size_type len ) const; > > > > > > PRBool __attribute__ ((regparm (3), stdcall)) EqualsASCII( const char* data ) const; ># 261 "../../../dist/include/string/nsTSubstring.h" > template<int N> > inline PRBool EqualsLiteral( const char (&str)[N] ) const > { > return EqualsASCII(str, N-1); > } > template<int N> > inline PRBool EqualsLiteral( char (&str)[N] ) const > { > const char* s = str; > return EqualsASCII(s, N-1); > } > > > > > > > > PRBool __attribute__ ((regparm (3), stdcall)) LowerCaseEqualsASCII( const char* data, size_type len ) const; > PRBool __attribute__ ((regparm (3), stdcall)) LowerCaseEqualsASCII( const char* data ) const; ># 292 "../../../dist/include/string/nsTSubstring.h" > template<int N> > inline PRBool LowerCaseEqualsLiteral( const char (&str)[N] ) const > { > return LowerCaseEqualsASCII(str, N-1); > } > template<int N> > inline PRBool LowerCaseEqualsLiteral( char (&str)[N] ) const > { > const char* s = str; > return LowerCaseEqualsASCII(s, N-1); > } > > > > > > > void __attribute__ ((regparm (3), stdcall)) Assign( char_type c ); > void __attribute__ ((regparm (3), stdcall)) Assign( const char_type* data, size_type length = size_type(-1) ); > void __attribute__ ((regparm (3), stdcall)) Assign( const self_type& ); > void __attribute__ ((regparm (3), stdcall)) Assign( const substring_tuple_type& ); > > > > > void __attribute__ ((regparm (3), stdcall)) AssignASCII( const char* data, size_type length ); > void __attribute__ ((regparm (3), stdcall)) AssignASCII( const char* data ); ># 327 "../../../dist/include/string/nsTSubstring.h" > template<int N> > void AssignLiteral( const char (&str)[N] ) > { AssignASCII(str, N-1); } > template<int N> > void AssignLiteral( char (&str)[N] ) > { AssignASCII(str, N-1); } > > > self_type& operator=( char_type c ) { Assign(c); return *this; } > self_type& operator=( const char_type* data ) { Assign(data); return *this; } > self_type& operator=( const self_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_tuple_type& tuple ) { Assign(tuple); return *this; } > > > > > void __attribute__ ((regparm (3), stdcall)) Adopt( char_type* data, size_type length = size_type(-1) ); > > > > > > > void __attribute__ ((regparm (3), stdcall)) Replace( index_type cutStart, size_type cutLength, char_type c ); > void __attribute__ ((regparm (3), stdcall)) Replace( index_type cutStart, size_type cutLength, const char_type* data, size_type length = size_type(-1) ); > void Replace( index_type cutStart, size_type cutLength, const self_type& str ) { Replace(cutStart, cutLength, str.Data(), str.Length()); } > void __attribute__ ((regparm (3), stdcall)) Replace( index_type cutStart, size_type cutLength, const substring_tuple_type& tuple ); > > > > > void __attribute__ ((regparm (3), stdcall)) ReplaceASCII( index_type cutStart, size_type cutLength, const char* data, size_type length = size_type(-1) ); > > void Append( char_type c ) { Replace(mLength, 0, c); } > void Append( const char_type* data, size_type length = size_type(-1) ) { Replace(mLength, 0, data, length); } > void Append( const self_type& str ) { Replace(mLength, 0, str); } > void Append( const substring_tuple_type& tuple ) { Replace(mLength, 0, tuple); } > > > > > void AppendASCII( const char* data, size_type length = size_type(-1) ) { ReplaceASCII(mLength, 0, data, length); } ># 377 "../../../dist/include/string/nsTSubstring.h" > template<int N> > void AppendLiteral( const char (&str)[N] ) > { AppendASCII(str, N-1); } > template<int N> > void AppendLiteral( char (&str)[N] ) > { AppendASCII(str, N-1); } > > > self_type& operator+=( char_type c ) { Append(c); return *this; } > self_type& operator+=( const char_type* data ) { Append(data); return *this; } > self_type& operator+=( const self_type& str ) { Append(str); return *this; } > self_type& operator+=( const substring_tuple_type& tuple ) { Append(tuple); return *this; } > > > > > void Insert( char_type c, index_type pos ) { Replace(pos, 0, c); } > void Insert( const char_type* data, index_type pos, size_type length = size_type(-1) ) { Replace(pos, 0, data, length); } > void Insert( const self_type& str, index_type pos ) { Replace(pos, 0, str); } > void Insert( const substring_tuple_type& tuple, index_type pos ) { Replace(pos, 0, tuple); } > > > > > void Cut( index_type cutStart, size_type cutLength ) { Replace(cutStart, cutLength, char_traits::sEmptyBuffer, 0); } > > > > > > > void __attribute__ ((regparm (3), stdcall)) SetCapacity( size_type newCapacity ); > > void __attribute__ ((regparm (3), stdcall)) SetLength( size_type newLength ); > > void Truncate( size_type newLength = 0 ) > { > do { } while (0); > SetLength(newLength); > } ># 430 "../../../dist/include/string/nsTSubstring.h" > inline size_type GetData( const char_type** data ) const > { > *data = mData; > return mLength; > } ># 446 "../../../dist/include/string/nsTSubstring.h" > inline size_type GetMutableData( char_type** data, size_type newLen = size_type(-1) ) > { > if (!EnsureMutable(newLen)) > { > *data = 0; > return 0; > } > > *data = mData; > return mLength; > } > > > > > > > > void __attribute__ ((regparm (3), stdcall)) SetIsVoid( PRBool ); ># 474 "../../../dist/include/string/nsTSubstring.h" > void StripChar( char_type aChar, PRInt32 aOffset=0 ); > > > public: > > > > > > nsACString_internal(const substring_tuple_type& tuple) > > > > : mData(0), > mLength(0), > mFlags(F_NONE) > > { > Assign(tuple); > } ># 504 "../../../dist/include/string/nsTSubstring.h" > nsACString_internal( char_type *data, size_type length, PRUint32 flags ); > > protected: > > friend class nsObsoleteACStringThunk; > friend class nsCSubstring_base; > friend class nsCSubstringTuple; > > > friend class nsPromiseFlatCString; > > > char_type* mData; > size_type mLength; > PRUint32 mFlags; > > > > nsACString_internal() > > > > > : mData(const_cast<char_type*>(char_traits::sEmptyBuffer)), > mLength(0), > mFlags(F_TERMINATED) {} > > > > explicit > nsACString_internal( PRUint32 flags ) > > > > : mFlags(flags) {} > > > > > nsACString_internal( const self_type& str ) > > > > : mData(str.mData), > mLength(str.mLength), > mFlags(str.mFlags & (F_TERMINATED | F_VOIDED)) {} > > > > > > > > void __attribute__ ((regparm (3), stdcall)) Finalize(); ># 577 "../../../dist/include/string/nsTSubstring.h" > PRBool __attribute__ ((regparm (3), stdcall)) MutatePrep( size_type capacity, char_type** old_data, PRUint32* old_flags ); ># 599 "../../../dist/include/string/nsTSubstring.h" > PRBool __attribute__ ((regparm (3), stdcall)) ReplacePrep( index_type cutStart, size_type cutLength, size_type newLength ); > > > > > > > > size_type __attribute__ ((regparm (3), stdcall)) Capacity() const; > > > > > > PRBool __attribute__ ((regparm (3), stdcall)) EnsureMutable( size_type newLen = size_type(-1) ); > > > > > PRBool IsDependentOn( const char_type *start, const char_type *end ) const > { ># 628 "../../../dist/include/string/nsTSubstring.h" > return ( start < (mData + mLength) && end > mData ); > } > > > > > void SetDataFlags(PRUint32 dataFlags) > { > do { } while (0); > mFlags = dataFlags | (mFlags & 0xFFFF0000); > } > > public: > > > > > > > > enum > { > F_NONE = 0, > > > F_TERMINATED = 1 << 0, > F_VOIDED = 1 << 1, > F_SHARED = 1 << 2, > F_OWNED = 1 << 3, > F_FIXED = 1 << 4, > > > F_CLASS_FIXED = 1 << 16 > }; ># 696 "../../../dist/include/string/nsTSubstring.h" > }; > > >int __attribute__ ((regparm (3), stdcall)) Compare( const nsACString_internal::base_string_type& lhs, const nsACString_internal::base_string_type& rhs, const nsCStringComparator& = nsDefaultCStringComparator() ); > > >inline >PRBool operator!=( const nsACString_internal::base_string_type& lhs, const nsACString_internal::base_string_type& rhs ) > { > return !lhs.Equals(rhs); > } > >inline >PRBool operator< ( const nsACString_internal::base_string_type& lhs, const nsACString_internal::base_string_type& rhs ) > { > return Compare(lhs, rhs)< 0; > } > >inline >PRBool operator<=( const nsACString_internal::base_string_type& lhs, const nsACString_internal::base_string_type& rhs ) > { > return Compare(lhs, rhs)<=0; > } > >inline >PRBool operator==( const nsACString_internal::base_string_type& lhs, const nsACString_internal::base_string_type& rhs ) > { > return lhs.Equals(rhs); > } > >inline >PRBool operator>=( const nsACString_internal::base_string_type& lhs, const nsACString_internal::base_string_type& rhs ) > { > return Compare(lhs, rhs)>=0; > } > >inline >PRBool operator> ( const nsACString_internal::base_string_type& lhs, const nsACString_internal::base_string_type& rhs ) > { > return Compare(lhs, rhs)> 0; > } ># 67 "../../../dist/include/string/nsSubstring.h" 2 ># 1 "../../../dist/include/string/string-template-undef.h" 1 ># 68 "../../../dist/include/string/nsSubstring.h" 2 ># 45 "../../../dist/include/string/nsString.h" 2 > > > ># 1 "../../../dist/include/string/nsDependentSubstring.h" 1 ># 47 "../../../dist/include/string/nsDependentSubstring.h" ># 1 "../../../dist/include/string/string-template-def-unichar.h" 1 ># 48 "../../../dist/include/string/nsDependentSubstring.h" 2 ># 1 "../../../dist/include/string/nsTDependentSubstring.h" 1 ># 44 "../../../dist/include/string/nsTDependentSubstring.h" >class nsDependentSubstring : public nsAString_internal > { > public: > > typedef nsDependentSubstring self_type; > > public: > > > > > void Rebind( const substring_type&, PRUint32 startPos, PRUint32 length = size_type(-1) ); > > void Rebind( const char_type* start, const char_type* end ); ># 67 "../../../dist/include/string/nsTDependentSubstring.h" > nsDependentSubstring( const substring_type& str, PRUint32 startPos, PRUint32 length = size_type(-1) ) > : substring_type() > { > Rebind(str, startPos, length); > } > > nsDependentSubstring( const char_type* start, const char_type* end ) > : substring_type(const_cast<char_type*>(start), PRUint32(end - start), F_NONE) {} > > nsDependentSubstring( const const_iterator& start, const const_iterator& end ) > : substring_type(const_cast<char_type*>(start.get()), PRUint32(end.get() - start.get()), F_NONE) {} > > > nsDependentSubstring() > : substring_type() {} > > > > private: > > void operator=( const self_type& ); > }; ># 99 "../../../dist/include/string/nsTDependentSubstring.h" >inline >const nsDependentSubstring >Substring( const nsAString_internal& str, PRUint32 startPos, PRUint32 length = PRUint32(-1) ) > { > return nsDependentSubstring(str, startPos, length); > } > >inline >const nsDependentSubstring >Substring( const nsReadingIterator<PRUnichar>& start, const nsReadingIterator<PRUnichar>& end ) > { > return nsDependentSubstring(start.get(), end.get()); > } > >inline >const nsDependentSubstring >Substring( const PRUnichar* start, const PRUnichar* end ) > { > return nsDependentSubstring(start, end); > } ># 129 "../../../dist/include/string/nsTDependentSubstring.h" >inline >const nsDependentSubstring >StringHead( const nsAString_internal& str, PRUint32 count ) > { > return nsDependentSubstring(str, 0, count); > } ># 145 "../../../dist/include/string/nsTDependentSubstring.h" >inline >const nsDependentSubstring >StringTail( const nsAString_internal& str, PRUint32 count ) > { > return nsDependentSubstring(str, str.Length() - count, count); > } ># 49 "../../../dist/include/string/nsDependentSubstring.h" 2 ># 1 "../../../dist/include/string/string-template-undef.h" 1 ># 50 "../../../dist/include/string/nsDependentSubstring.h" 2 > > ># 1 "../../../dist/include/string/string-template-def-char.h" 1 ># 53 "../../../dist/include/string/nsDependentSubstring.h" 2 ># 1 "../../../dist/include/string/nsTDependentSubstring.h" 1 ># 44 "../../../dist/include/string/nsTDependentSubstring.h" >class nsDependentCSubstring : public nsACString_internal > { > public: > > typedef nsDependentCSubstring self_type; > > public: > > > > > void Rebind( const substring_type&, PRUint32 startPos, PRUint32 length = size_type(-1) ); > > void Rebind( const char_type* start, const char_type* end ); ># 67 "../../../dist/include/string/nsTDependentSubstring.h" > nsDependentCSubstring( const substring_type& str, PRUint32 startPos, PRUint32 length = size_type(-1) ) > : substring_type() > { > Rebind(str, startPos, length); > } > > nsDependentCSubstring( const char_type* start, const char_type* end ) > : substring_type(const_cast<char_type*>(start), PRUint32(end - start), F_NONE) {} > > nsDependentCSubstring( const const_iterator& start, const const_iterator& end ) > : substring_type(const_cast<char_type*>(start.get()), PRUint32(end.get() - start.get()), F_NONE) {} > > > nsDependentCSubstring() > : substring_type() {} > > > > private: > > void operator=( const self_type& ); > }; ># 99 "../../../dist/include/string/nsTDependentSubstring.h" >inline >const nsDependentCSubstring >Substring( const nsACString_internal& str, PRUint32 startPos, PRUint32 length = PRUint32(-1) ) > { > return nsDependentCSubstring(str, startPos, length); > } > >inline >const nsDependentCSubstring >Substring( const nsReadingIterator<char>& start, const nsReadingIterator<char>& end ) > { > return nsDependentCSubstring(start.get(), end.get()); > } > >inline >const nsDependentCSubstring >Substring( const char* start, const char* end ) > { > return nsDependentCSubstring(start, end); > } ># 129 "../../../dist/include/string/nsTDependentSubstring.h" >inline >const nsDependentCSubstring >StringHead( const nsACString_internal& str, PRUint32 count ) > { > return nsDependentCSubstring(str, 0, count); > } ># 145 "../../../dist/include/string/nsTDependentSubstring.h" >inline >const nsDependentCSubstring >StringTail( const nsACString_internal& str, PRUint32 count ) > { > return nsDependentCSubstring(str, str.Length() - count, count); > } ># 54 "../../../dist/include/string/nsDependentSubstring.h" 2 ># 1 "../../../dist/include/string/string-template-undef.h" 1 ># 55 "../../../dist/include/string/nsDependentSubstring.h" 2 ># 49 "../../../dist/include/string/nsString.h" 2 > > > ># 1 "../../../dist/include/string/nsReadableUtils.h" 1 ># 52 "../../../dist/include/string/nsReadableUtils.h" >inline size_t Distance( const nsReadingIterator<PRUnichar>& start, const nsReadingIterator<PRUnichar>& end ) > { > return end.get() - start.get(); > } >inline size_t Distance( const nsReadingIterator<char>& start, const nsReadingIterator<char>& end ) > { > return end.get() - start.get(); > } > > void LossyCopyUTF16toASCII( const nsAString_internal& aSource, nsACString_internal& aDest ); > void CopyASCIItoUTF16( const nsACString_internal& aSource, nsAString_internal& aDest ); > > void LossyCopyUTF16toASCII( const PRUnichar* aSource, nsACString_internal& aDest ); > void CopyASCIItoUTF16( const char* aSource, nsAString_internal& aDest ); > > void CopyUTF16toUTF8( const nsAString_internal& aSource, nsACString_internal& aDest ); > void CopyUTF8toUTF16( const nsACString_internal& aSource, nsAString_internal& aDest ); > > void CopyUTF16toUTF8( const PRUnichar* aSource, nsACString_internal& aDest ); > void CopyUTF8toUTF16( const char* aSource, nsAString_internal& aDest ); > > void LossyAppendUTF16toASCII( const nsAString_internal& aSource, nsACString_internal& aDest ); > void AppendASCIItoUTF16( const nsACString_internal& aSource, nsAString_internal& aDest ); > > void LossyAppendUTF16toASCII( const PRUnichar* aSource, nsACString_internal& aDest ); > void AppendASCIItoUTF16( const char* aSource, nsAString_internal& aDest ); > > void AppendUTF16toUTF8( const nsAString_internal& aSource, nsACString_internal& aDest ); > void AppendUTF8toUTF16( const nsACString_internal& aSource, nsAString_internal& aDest ); > > void AppendUTF16toUTF8( const PRUnichar* aSource, nsACString_internal& aDest ); > void AppendUTF8toUTF16( const char* aSource, nsAString_internal& aDest ); ># 96 "../../../dist/include/string/nsReadableUtils.h" > char* ToNewCString( const nsAString_internal& aSource ); ># 108 "../../../dist/include/string/nsReadableUtils.h" > char* ToNewCString( const nsACString_internal& aSource ); ># 125 "../../../dist/include/string/nsReadableUtils.h" > char* ToNewUTF8String( const nsAString_internal& aSource, PRUint32 *aUTF8Count = 0 ); ># 140 "../../../dist/include/string/nsReadableUtils.h" > PRUnichar* ToNewUnicode( const nsAString_internal& aSource ); ># 154 "../../../dist/include/string/nsReadableUtils.h" > PRUnichar* ToNewUnicode( const nsACString_internal& aSource ); ># 171 "../../../dist/include/string/nsReadableUtils.h" > PRUnichar* UTF8ToNewUnicode( const nsACString_internal& aSource, PRUint32 *aUTF16Count = 0 ); ># 185 "../../../dist/include/string/nsReadableUtils.h" > PRUnichar* CopyUnicodeTo( const nsAString_internal& aSource, > PRUint32 aSrcOffset, > PRUnichar* aDest, > PRUint32 aLength ); ># 202 "../../../dist/include/string/nsReadableUtils.h" > void CopyUnicodeTo( const nsAString_internal::const_iterator& aSrcStart, > const nsAString_internal::const_iterator& aSrcEnd, > nsAString_internal& aDest ); ># 216 "../../../dist/include/string/nsReadableUtils.h" > void AppendUnicodeTo( const nsAString_internal::const_iterator& aSrcStart, > const nsAString_internal::const_iterator& aSrcEnd, > nsAString_internal& aDest ); > > > > > > > PRBool IsASCII( const nsAString_internal& aString ); > > > > > > > PRBool IsASCII( const nsACString_internal& aString ); ># 253 "../../../dist/include/string/nsReadableUtils.h" > PRBool IsUTF8( const nsACString_internal& aString ); > > > > > > void ToUpperCase( nsACString_internal& ); > > void ToLowerCase( nsACString_internal& ); > > void ToUpperCase( nsCSubstring& ); > > void ToLowerCase( nsCSubstring& ); > > > > > void ToUpperCase( const nsACString_internal& aSource, nsACString_internal& aDest ); > > void ToLowerCase( const nsACString_internal& aSource, nsACString_internal& aDest ); ># 284 "../../../dist/include/string/nsReadableUtils.h" > PRBool FindInReadable( const nsAString_internal& aPattern, nsAString_internal::const_iterator&, nsAString_internal::const_iterator&, const nsStringComparator& = nsDefaultStringComparator() ); > PRBool FindInReadable( const nsACString_internal& aPattern, nsACString_internal::const_iterator&, nsACString_internal::const_iterator&, const nsCStringComparator& = nsDefaultCStringComparator() ); > > > >inline PRBool FindInReadable( const nsAString_internal& aPattern, const nsAString_internal& aSource, const nsStringComparator& compare = nsDefaultStringComparator() ) >{ > nsAString_internal::const_iterator start, end; > aSource.BeginReading(start); > aSource.EndReading(end); > return FindInReadable(aPattern, start, end, compare); >} > >inline PRBool FindInReadable( const nsACString_internal& aPattern, const nsACString_internal& aSource, const nsCStringComparator& compare = nsDefaultCStringComparator() ) >{ > nsACString_internal::const_iterator start, end; > aSource.BeginReading(start); > aSource.EndReading(end); > return FindInReadable(aPattern, start, end, compare); >} > > > PRBool CaseInsensitiveFindInReadable( const nsACString_internal& aPattern, nsACString_internal::const_iterator&, nsACString_internal::const_iterator& ); > > > > > > > > PRBool RFindInReadable( const nsAString_internal& aPattern, nsAString_internal::const_iterator&, nsAString_internal::const_iterator&, const nsStringComparator& = nsDefaultStringComparator() ); > PRBool RFindInReadable( const nsACString_internal& aPattern, nsACString_internal::const_iterator&, nsACString_internal::const_iterator&, const nsCStringComparator& = nsDefaultCStringComparator() ); ># 325 "../../../dist/include/string/nsReadableUtils.h" > PRBool FindCharInReadable( PRUnichar aChar, nsAString_internal::const_iterator& aSearchStart, const nsAString_internal::const_iterator& aSearchEnd ); > PRBool FindCharInReadable( char aChar, nsACString_internal::const_iterator& aSearchStart, const nsACString_internal::const_iterator& aSearchEnd ); > > > > > PRUint32 CountCharInReadable( const nsAString_internal& aStr, > PRUnichar aChar ); > PRUint32 CountCharInReadable( const nsACString_internal& aStr, > char aChar ); > > PRBool >StringBeginsWith( const nsAString_internal& aSource, const nsAString_internal& aSubstring, > const nsStringComparator& aComparator = > nsDefaultStringComparator() ); > PRBool >StringBeginsWith( const nsACString_internal& aSource, const nsACString_internal& aSubstring, > const nsCStringComparator& aComparator = > nsDefaultCStringComparator() ); > PRBool >StringEndsWith( const nsAString_internal& aSource, const nsAString_internal& aSubstring, > const nsStringComparator& aComparator = > nsDefaultStringComparator() ); > PRBool >StringEndsWith( const nsACString_internal& aSource, const nsACString_internal& aSubstring, > const nsCStringComparator& aComparator = > nsDefaultCStringComparator() ); > > const nsAFlatString& EmptyString(); > const nsAFlatCString& EmptyCString(); ># 365 "../../../dist/include/string/nsReadableUtils.h" > PRInt32 >CompareUTF8toUTF16(const nsASingleFragmentCString& aUTF8String, > const nsASingleFragmentString& aUTF16String); > > void >AppendUCS4ToUTF16(const PRUint32 aSource, nsAString_internal& aDest); > >template<class T> >inline PRBool EnsureStringLength(T& aStr, PRUint32 aLen) >{ > aStr.SetLength(aLen); > return (aStr.Length() == aLen); >} ># 53 "../../../dist/include/string/nsString.h" 2 > > ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../../include/c++/4.1.0/new" 1 3 ># 41 "/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../../include/c++/4.1.0/new" 3 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../../include/c++/4.1.0/cstddef" 1 3 ># 48 "/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../../include/c++/4.1.0/cstddef" 3 > ># 49 "/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../../include/c++/4.1.0/cstddef" 3 > ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 51 "/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../../include/c++/4.1.0/cstddef" 2 3 > >namespace std >{ > using ::ptrdiff_t; > using ::size_t; >} ># 42 "/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../../include/c++/4.1.0/new" 2 3 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../../include/c++/4.1.0/exception" 1 3 ># 40 "/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../../include/c++/4.1.0/exception" 3 >#pragma GCC visibility push(default) > >extern "C++" { > >namespace std >{ ># 54 "/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../../include/c++/4.1.0/exception" 3 > class exception > { > public: > exception() throw() { } > virtual ~exception() throw(); > > > virtual const char* what() const throw(); > }; > > > > class bad_exception : public exception > { > public: > bad_exception() throw() { } > > > virtual ~bad_exception() throw(); > }; > > > typedef void (*terminate_handler) (); > > typedef void (*unexpected_handler) (); > > > terminate_handler set_terminate(terminate_handler) throw(); > > > void terminate() __attribute__ ((__noreturn__)); > > > unexpected_handler set_unexpected(unexpected_handler) throw(); > > > void unexpected() __attribute__ ((__noreturn__)); ># 102 "/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../../include/c++/4.1.0/exception" 3 > bool uncaught_exception() throw(); >} > >namespace __gnu_cxx >{ ># 117 "/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../../include/c++/4.1.0/exception" 3 > void __verbose_terminate_handler (); >} > >} > >#pragma GCC visibility pop ># 43 "/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../../include/c++/4.1.0/new" 2 3 > >#pragma GCC visibility push(default) > >extern "C++" { > >namespace std >{ > > > > > > class bad_alloc : public exception > { > public: > bad_alloc() throw() { } > > > virtual ~bad_alloc() throw(); > }; > > struct nothrow_t { }; > extern const nothrow_t nothrow; > > > typedef void (*new_handler)(); > > new_handler set_new_handler(new_handler) throw(); >} ># 84 "/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../../include/c++/4.1.0/new" 3 >void* operator new(std::size_t) throw (std::bad_alloc); >void* operator new[](std::size_t) throw (std::bad_alloc); >void operator delete(void*) throw(); >void operator delete[](void*) throw(); >void* operator new(std::size_t, const std::nothrow_t&) throw(); >void* operator new[](std::size_t, const std::nothrow_t&) throw(); >void operator delete(void*, const std::nothrow_t&) throw(); >void operator delete[](void*, const std::nothrow_t&) throw(); > > >inline void* operator new(std::size_t, void* __p) throw() { return __p; } >inline void* operator new[](std::size_t, void* __p) throw() { return __p; } > > >inline void operator delete (void*, void*) throw() { } >inline void operator delete[](void*, void*) throw() { } > >} > >#pragma GCC visibility pop ># 56 "../../../dist/include/string/nsString.h" 2 ># 73 "../../../dist/include/string/nsString.h" ># 1 "../../../dist/include/string/string-template-def-unichar.h" 1 ># 74 "../../../dist/include/string/nsString.h" 2 ># 1 "../../../dist/include/string/nsTString.h" 1 ># 50 "../../../dist/include/string/nsTString.h" >class nsString : public nsAString_internal > { > public: > > typedef nsString self_type; > > public: > > > > > > nsString() > : substring_type() {} > > explicit > nsString( char_type c ) > : substring_type() > { > Assign(c); > } > > explicit > nsString( const char_type* data, size_type length = size_type(-1) ) > : substring_type() > { > Assign(data, length); > } > > nsString( const self_type& str ) > : substring_type() > { > Assign(str); > } > > nsString( const substring_tuple_type& tuple ) > : substring_type() > { > Assign(tuple); > } > > explicit > > > > nsString( const substring_type& readable ) > > : substring_type() > { > Assign(readable); > } > > > > self_type& operator=( char_type c ) { Assign(c); return *this; } > self_type& operator=( const char_type* data ) { Assign(data); return *this; } > self_type& operator=( const self_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_tuple_type& tuple ) { Assign(tuple); return *this; } ># 118 "../../../dist/include/string/nsTString.h" > const char_type* get() const > { > return mData; > } ># 131 "../../../dist/include/string/nsTString.h" > char_type CharAt( index_type i ) const > { > do { } while (0); > return mData[i]; > } > > char_type operator[]( index_type i ) const > { > return CharAt(i); > } ># 157 "../../../dist/include/string/nsTString.h" > PRInt32 Find( const nsCString& aString, PRBool aIgnoreCase=0, PRInt32 aOffset=0, PRInt32 aCount=-1 ) const; > PRInt32 Find( const char* aString, PRBool aIgnoreCase=0, PRInt32 aOffset=0, PRInt32 aCount=-1 ) const; > > > PRInt32 Find( const nsAFlatString& aString, PRInt32 aOffset=0, PRInt32 aCount=-1 ) const; > PRInt32 Find( const PRUnichar* aString, PRInt32 aOffset=0, PRInt32 aCount=-1 ) const; ># 178 "../../../dist/include/string/nsTString.h" > PRInt32 RFind( const nsCString& aString, PRBool aIgnoreCase=0, PRInt32 aOffset=-1, PRInt32 aCount=-1 ) const; > PRInt32 RFind( const char* aCString, PRBool aIgnoreCase=0, PRInt32 aOffset=-1, PRInt32 aCount=-1 ) const; > > > PRInt32 RFind( const nsAFlatString& aString, PRInt32 aOffset=-1, PRInt32 aCount=-1 ) const; > PRInt32 RFind( const PRUnichar* aString, PRInt32 aOffset=-1, PRInt32 aCount=-1 ) const; ># 198 "../../../dist/include/string/nsTString.h" > PRInt32 RFindChar( PRUnichar aChar, PRInt32 aOffset=-1, PRInt32 aCount=-1 ) const; ># 211 "../../../dist/include/string/nsTString.h" > PRInt32 FindCharInSet( const char* aString, PRInt32 aOffset=0 ) const; > PRInt32 FindCharInSet( const self_type& aString, PRInt32 aOffset=0 ) const > { > return FindCharInSet(aString.get(), aOffset); > } > > > PRInt32 FindCharInSet( const PRUnichar* aString, PRInt32 aOffset=0 ) const; ># 232 "../../../dist/include/string/nsTString.h" > PRInt32 RFindCharInSet( const char_type* aString, PRInt32 aOffset=-1 ) const; > PRInt32 RFindCharInSet( const self_type& aString, PRInt32 aOffset=-1 ) const > { > return RFindCharInSet(aString.get(), aOffset); > } ># 266 "../../../dist/include/string/nsTString.h" > PRBool EqualsIgnoreCase( const char* aString, PRInt32 aCount=-1 ) const; ># 277 "../../../dist/include/string/nsTString.h" > float ToFloat( PRInt32* aErrorCode ) const; ># 286 "../../../dist/include/string/nsTString.h" > PRInt32 ToInteger( PRInt32* aErrorCode, PRUint32 aRadix=(10) ) const; ># 306 "../../../dist/include/string/nsTString.h" > size_type Mid( self_type& aResult, PRUint32 aStartPos, PRUint32 aCount ) const; > > size_type Left( self_type& aResult, size_type aCount ) const > { > return Mid(aResult, 0, aCount); > } > > size_type Right( self_type& aResult, size_type aCount ) const > { > aCount = NS_MIN(mLength, aCount); > return Mid(aResult, mLength - aCount, aCount); > } ># 328 "../../../dist/include/string/nsTString.h" > PRBool SetCharAt( PRUnichar aChar, PRUint32 aIndex ); ># 337 "../../../dist/include/string/nsTString.h" > void StripChars( const char* aSet ); > > > > > > void StripWhitespace(); > > > > > > > void ReplaceChar( char_type aOldChar, char_type aNewChar ); > void ReplaceChar( const char* aSet, char_type aNewChar ); > void ReplaceSubstring( const self_type& aTarget, const self_type& aNewValue); > void ReplaceSubstring( const char_type* aTarget, const char_type* aNewValue); ># 366 "../../../dist/include/string/nsTString.h" > void Trim( const char* aSet, PRBool aEliminateLeading=1, PRBool aEliminateTrailing=1, PRBool aIgnoreQuotes=0 ); ># 376 "../../../dist/include/string/nsTString.h" > void CompressWhitespace( PRBool aEliminateLeading=1, PRBool aEliminateTrailing=1 ); > > > > > > > void AssignWithConversion( const nsACString_internal& aString ); > void AssignWithConversion( const incompatible_char_type* aData, PRInt32 aLength=-1 ); > > void AppendWithConversion( const nsACString_internal& aString ); > void AppendWithConversion( const incompatible_char_type* aData, PRInt32 aLength=-1 ); > > > > > void AppendInt( PRInt32 aInteger, PRInt32 aRadix=(10) ); > > > > > inline void AppendInt( PRUint32 aInteger, PRInt32 aRadix = (10) ) > { > AppendInt(PRInt32(aInteger), aRadix); > } > > > > > > > void AppendInt( PRInt64 aInteger, PRInt32 aRadix=(10) ); > > > > > > void AppendFloat( float aFloat ); > > void AppendFloat( double aFloat ); > > > > > protected: > > explicit > nsString( PRUint32 flags ) > : substring_type(flags) {} > > > nsString( char_type* data, size_type length, PRUint32 flags ) > : substring_type(data, length, flags) {} > }; > > >class nsFixedString : public nsString > { > public: > > typedef nsFixedString self_type; > typedef nsFixedString fixed_string_type; > > public: ># 451 "../../../dist/include/string/nsTString.h" > nsFixedString( char_type* data, size_type storageSize ) > : string_type(data, PRUint32(char_traits::length(data)), F_TERMINATED | F_FIXED | F_CLASS_FIXED) > , mFixedCapacity(storageSize - 1) > , mFixedBuf(data) > {} > > nsFixedString( char_type* data, size_type storageSize, size_type length ) > : string_type(data, length, F_TERMINATED | F_FIXED | F_CLASS_FIXED) > , mFixedCapacity(storageSize - 1) > , mFixedBuf(data) > { > > mFixedBuf[length] = char_type(0); > } > > > self_type& operator=( char_type c ) { Assign(c); return *this; } > self_type& operator=( const char_type* data ) { Assign(data); return *this; } > self_type& operator=( const substring_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_tuple_type& tuple ) { Assign(tuple); return *this; } > > > > > protected: > > friend class nsAString_internal; > > size_type mFixedCapacity; > char_type *mFixedBuf; > }; ># 490 "../../../dist/include/string/nsTString.h" >class nsAutoString : public nsFixedString > { > public: > > typedef nsAutoString self_type; > > public: > > > > > > nsAutoString() > : fixed_string_type(mStorage, kDefaultStorageSize, 0) > {} > > explicit > nsAutoString( char_type c ) > : fixed_string_type(mStorage, kDefaultStorageSize, 0) > { > Assign(c); > } > > explicit > nsAutoString( const char_type* data, size_type length = size_type(-1) ) > : fixed_string_type(mStorage, kDefaultStorageSize, 0) > { > Assign(data, length); > } > > nsAutoString( const self_type& str ) > : fixed_string_type(mStorage, kDefaultStorageSize, 0) > { > Assign(str); > } > > explicit > nsAutoString( const substring_type& str ) > : fixed_string_type(mStorage, kDefaultStorageSize, 0) > { > Assign(str); > } > > nsAutoString( const substring_tuple_type& tuple ) > : fixed_string_type(mStorage, kDefaultStorageSize, 0) > { > Assign(tuple); > } ># 549 "../../../dist/include/string/nsTString.h" > self_type& operator=( char_type c ) { Assign(c); return *this; } > self_type& operator=( const char_type* data ) { Assign(data); return *this; } > self_type& operator=( const self_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_tuple_type& tuple ) { Assign(tuple); return *this; } > > > > > enum { kDefaultStorageSize = 64 }; > > private: > > char_type mStorage[kDefaultStorageSize]; > }; ># 573 "../../../dist/include/string/nsTString.h" >class nsXPIDLString : public nsString > { > public: > > typedef nsXPIDLString self_type; > > public: > > nsXPIDLString() > : string_type(const_cast<char_type*>(char_traits::sEmptyBuffer), 0, F_TERMINATED | F_VOIDED) {} > > > nsXPIDLString( const self_type& str ) > : string_type(const_cast<char_type*>(char_traits::sEmptyBuffer), 0, F_TERMINATED | F_VOIDED) > { > Assign(str); > } > > > const char_type* get() const > { > return (mFlags & F_VOIDED) ? 0 : mData; > } > > > > operator const char_type*() const > { > return get(); > } > > > char_type operator[]( PRInt32 i ) const > { > return CharAt(index_type(i)); > } > > > self_type& operator=( char_type c ) { Assign(c); return *this; } > self_type& operator=( const char_type* data ) { Assign(data); return *this; } > self_type& operator=( const self_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_tuple_type& tuple ) { Assign(tuple); return *this; } > > > > }; ># 634 "../../../dist/include/string/nsTString.h" >class nsGetterCopies > { > public: > typedef PRUnichar char_type; > > nsGetterCopies(nsAString_internal& str) > : mString(str), mData(0) {} > > ~nsGetterCopies() > { > mString.Adopt(mData); > } > > operator char_type**() > { > return &mData; > } > > private: > nsAString_internal& mString; > char_type* mData; > }; > >inline >nsGetterCopies >getter_Copies( nsAString_internal& aString ) > { > return nsGetterCopies(aString); > } ># 673 "../../../dist/include/string/nsTString.h" >class nsAdoptingString : public nsXPIDLString > { > public: > > typedef nsAdoptingString self_type; > > public: > > explicit nsAdoptingString() {} > explicit nsAdoptingString(char_type* str, size_type length = size_type(-1)) > { > Adopt(str, length); > } > > > > > > nsAdoptingString( const self_type& str ) > { > *this = str; > } > > > self_type& operator=( const substring_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_tuple_type& tuple ) { Assign(tuple); return *this; } > > > > > > > > self_type& operator=( const self_type& str ); > > private: > > self_type& operator=( const char_type* data ); > self_type& operator=( char_type* data ); > }; ># 75 "../../../dist/include/string/nsString.h" 2 ># 1 "../../../dist/include/string/string-template-undef.h" 1 ># 76 "../../../dist/include/string/nsString.h" 2 > > ># 1 "../../../dist/include/string/string-template-def-char.h" 1 ># 79 "../../../dist/include/string/nsString.h" 2 ># 1 "../../../dist/include/string/nsTString.h" 1 ># 50 "../../../dist/include/string/nsTString.h" >class nsCString : public nsACString_internal > { > public: > > typedef nsCString self_type; > > public: > > > > > > nsCString() > : substring_type() {} > > explicit > nsCString( char_type c ) > : substring_type() > { > Assign(c); > } > > explicit > nsCString( const char_type* data, size_type length = size_type(-1) ) > : substring_type() > { > Assign(data, length); > } > > nsCString( const self_type& str ) > : substring_type() > { > Assign(str); > } > > nsCString( const substring_tuple_type& tuple ) > : substring_type() > { > Assign(tuple); > } > > explicit > > > > nsCString( const substring_type& readable ) > > : substring_type() > { > Assign(readable); > } > > > > self_type& operator=( char_type c ) { Assign(c); return *this; } > self_type& operator=( const char_type* data ) { Assign(data); return *this; } > self_type& operator=( const self_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_tuple_type& tuple ) { Assign(tuple); return *this; } ># 118 "../../../dist/include/string/nsTString.h" > const char_type* get() const > { > return mData; > } ># 131 "../../../dist/include/string/nsTString.h" > char_type CharAt( index_type i ) const > { > do { } while (0); > return mData[i]; > } > > char_type operator[]( index_type i ) const > { > return CharAt(i); > } ># 157 "../../../dist/include/string/nsTString.h" > PRInt32 Find( const nsCString& aString, PRBool aIgnoreCase=0, PRInt32 aOffset=0, PRInt32 aCount=-1 ) const; > PRInt32 Find( const char* aString, PRBool aIgnoreCase=0, PRInt32 aOffset=0, PRInt32 aCount=-1 ) const; ># 178 "../../../dist/include/string/nsTString.h" > PRInt32 RFind( const nsCString& aString, PRBool aIgnoreCase=0, PRInt32 aOffset=-1, PRInt32 aCount=-1 ) const; > PRInt32 RFind( const char* aCString, PRBool aIgnoreCase=0, PRInt32 aOffset=-1, PRInt32 aCount=-1 ) const; ># 198 "../../../dist/include/string/nsTString.h" > PRInt32 RFindChar( PRUnichar aChar, PRInt32 aOffset=-1, PRInt32 aCount=-1 ) const; ># 211 "../../../dist/include/string/nsTString.h" > PRInt32 FindCharInSet( const char* aString, PRInt32 aOffset=0 ) const; > PRInt32 FindCharInSet( const self_type& aString, PRInt32 aOffset=0 ) const > { > return FindCharInSet(aString.get(), aOffset); > } ># 232 "../../../dist/include/string/nsTString.h" > PRInt32 RFindCharInSet( const char_type* aString, PRInt32 aOffset=-1 ) const; > PRInt32 RFindCharInSet( const self_type& aString, PRInt32 aOffset=-1 ) const > { > return RFindCharInSet(aString.get(), aOffset); > } ># 249 "../../../dist/include/string/nsTString.h" > PRInt32 Compare( const char* aString, PRBool aIgnoreCase=0, PRInt32 aCount=-1 ) const; ># 262 "../../../dist/include/string/nsTString.h" > PRBool EqualsIgnoreCase( const char* aString, PRInt32 aCount=-1 ) const { > return Compare(aString, 1, aCount) == 0; > } ># 277 "../../../dist/include/string/nsTString.h" > float ToFloat( PRInt32* aErrorCode ) const; ># 286 "../../../dist/include/string/nsTString.h" > PRInt32 ToInteger( PRInt32* aErrorCode, PRUint32 aRadix=(10) ) const; ># 306 "../../../dist/include/string/nsTString.h" > size_type Mid( self_type& aResult, PRUint32 aStartPos, PRUint32 aCount ) const; > > size_type Left( self_type& aResult, size_type aCount ) const > { > return Mid(aResult, 0, aCount); > } > > size_type Right( self_type& aResult, size_type aCount ) const > { > aCount = NS_MIN(mLength, aCount); > return Mid(aResult, mLength - aCount, aCount); > } ># 328 "../../../dist/include/string/nsTString.h" > PRBool SetCharAt( PRUnichar aChar, PRUint32 aIndex ); ># 337 "../../../dist/include/string/nsTString.h" > void StripChars( const char* aSet ); > > > > > > void StripWhitespace(); > > > > > > > void ReplaceChar( char_type aOldChar, char_type aNewChar ); > void ReplaceChar( const char* aSet, char_type aNewChar ); > void ReplaceSubstring( const self_type& aTarget, const self_type& aNewValue); > void ReplaceSubstring( const char_type* aTarget, const char_type* aNewValue); ># 366 "../../../dist/include/string/nsTString.h" > void Trim( const char* aSet, PRBool aEliminateLeading=1, PRBool aEliminateTrailing=1, PRBool aIgnoreQuotes=0 ); ># 376 "../../../dist/include/string/nsTString.h" > void CompressWhitespace( PRBool aEliminateLeading=1, PRBool aEliminateTrailing=1 ); > > > > > > > void AssignWithConversion( const nsAString_internal& aString ); > void AssignWithConversion( const incompatible_char_type* aData, PRInt32 aLength=-1 ); > > void AppendWithConversion( const nsAString_internal& aString ); > void AppendWithConversion( const incompatible_char_type* aData, PRInt32 aLength=-1 ); > > > > > void AppendInt( PRInt32 aInteger, PRInt32 aRadix=(10) ); > > > > > inline void AppendInt( PRUint32 aInteger, PRInt32 aRadix = (10) ) > { > AppendInt(PRInt32(aInteger), aRadix); > } > > > > > > > void AppendInt( PRInt64 aInteger, PRInt32 aRadix=(10) ); > > > > > > void AppendFloat( float aFloat ); > > void AppendFloat( double aFloat ); > > > > > protected: > > explicit > nsCString( PRUint32 flags ) > : substring_type(flags) {} > > > nsCString( char_type* data, size_type length, PRUint32 flags ) > : substring_type(data, length, flags) {} > }; > > >class nsFixedCString : public nsCString > { > public: > > typedef nsFixedCString self_type; > typedef nsFixedCString fixed_string_type; > > public: ># 451 "../../../dist/include/string/nsTString.h" > nsFixedCString( char_type* data, size_type storageSize ) > : string_type(data, PRUint32(char_traits::length(data)), F_TERMINATED | F_FIXED | F_CLASS_FIXED) > , mFixedCapacity(storageSize - 1) > , mFixedBuf(data) > {} > > nsFixedCString( char_type* data, size_type storageSize, size_type length ) > : string_type(data, length, F_TERMINATED | F_FIXED | F_CLASS_FIXED) > , mFixedCapacity(storageSize - 1) > , mFixedBuf(data) > { > > mFixedBuf[length] = char_type(0); > } > > > self_type& operator=( char_type c ) { Assign(c); return *this; } > self_type& operator=( const char_type* data ) { Assign(data); return *this; } > self_type& operator=( const substring_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_tuple_type& tuple ) { Assign(tuple); return *this; } > > > > > protected: > > friend class nsACString_internal; > > size_type mFixedCapacity; > char_type *mFixedBuf; > }; ># 490 "../../../dist/include/string/nsTString.h" >class nsCAutoString : public nsFixedCString > { > public: > > typedef nsCAutoString self_type; > > public: > > > > > > nsCAutoString() > : fixed_string_type(mStorage, kDefaultStorageSize, 0) > {} > > explicit > nsCAutoString( char_type c ) > : fixed_string_type(mStorage, kDefaultStorageSize, 0) > { > Assign(c); > } > > explicit > nsCAutoString( const char_type* data, size_type length = size_type(-1) ) > : fixed_string_type(mStorage, kDefaultStorageSize, 0) > { > Assign(data, length); > } > > nsCAutoString( const self_type& str ) > : fixed_string_type(mStorage, kDefaultStorageSize, 0) > { > Assign(str); > } > > explicit > nsCAutoString( const substring_type& str ) > : fixed_string_type(mStorage, kDefaultStorageSize, 0) > { > Assign(str); > } > > nsCAutoString( const substring_tuple_type& tuple ) > : fixed_string_type(mStorage, kDefaultStorageSize, 0) > { > Assign(tuple); > } ># 549 "../../../dist/include/string/nsTString.h" > self_type& operator=( char_type c ) { Assign(c); return *this; } > self_type& operator=( const char_type* data ) { Assign(data); return *this; } > self_type& operator=( const self_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_tuple_type& tuple ) { Assign(tuple); return *this; } > > > > > enum { kDefaultStorageSize = 64 }; > > private: > > char_type mStorage[kDefaultStorageSize]; > }; ># 573 "../../../dist/include/string/nsTString.h" >class nsXPIDLCString : public nsCString > { > public: > > typedef nsXPIDLCString self_type; > > public: > > nsXPIDLCString() > : string_type(const_cast<char_type*>(char_traits::sEmptyBuffer), 0, F_TERMINATED | F_VOIDED) {} > > > nsXPIDLCString( const self_type& str ) > : string_type(const_cast<char_type*>(char_traits::sEmptyBuffer), 0, F_TERMINATED | F_VOIDED) > { > Assign(str); > } > > > const char_type* get() const > { > return (mFlags & F_VOIDED) ? 0 : mData; > } > > > > operator const char_type*() const > { > return get(); > } > > > char_type operator[]( PRInt32 i ) const > { > return CharAt(index_type(i)); > } > > > self_type& operator=( char_type c ) { Assign(c); return *this; } > self_type& operator=( const char_type* data ) { Assign(data); return *this; } > self_type& operator=( const self_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_tuple_type& tuple ) { Assign(tuple); return *this; } > > > > }; ># 634 "../../../dist/include/string/nsTString.h" >class nsCGetterCopies > { > public: > typedef char char_type; > > nsCGetterCopies(nsACString_internal& str) > : mString(str), mData(0) {} > > ~nsCGetterCopies() > { > mString.Adopt(mData); > } > > operator char_type**() > { > return &mData; > } > > private: > nsACString_internal& mString; > char_type* mData; > }; > >inline >nsCGetterCopies >getter_Copies( nsACString_internal& aString ) > { > return nsCGetterCopies(aString); > } ># 673 "../../../dist/include/string/nsTString.h" >class nsAdoptingCString : public nsXPIDLCString > { > public: > > typedef nsAdoptingCString self_type; > > public: > > explicit nsAdoptingCString() {} > explicit nsAdoptingCString(char_type* str, size_type length = size_type(-1)) > { > Adopt(str, length); > } > > > > > > nsAdoptingCString( const self_type& str ) > { > *this = str; > } > > > self_type& operator=( const substring_type& str ) { Assign(str); return *this; } > self_type& operator=( const substring_tuple_type& tuple ) { Assign(tuple); return *this; } > > > > > > > > self_type& operator=( const self_type& str ); > > private: > > self_type& operator=( const char_type* data ); > self_type& operator=( char_type* data ); > }; ># 80 "../../../dist/include/string/nsString.h" 2 ># 1 "../../../dist/include/string/string-template-undef.h" 1 ># 81 "../../../dist/include/string/nsString.h" 2 > > > > > >class NS_LossyConvertUTF16toASCII : public nsCAutoString > { > public: > explicit > NS_LossyConvertUTF16toASCII( const PRUnichar* aString ) > { > LossyAppendUTF16toASCII(aString, *this); > } > > NS_LossyConvertUTF16toASCII( const PRUnichar* aString, PRUint32 aLength ) > { > LossyAppendUTF16toASCII(Substring(aString, aString + aLength), *this); > } > > explicit > NS_LossyConvertUTF16toASCII( const nsAString_internal& aString ) > { > LossyAppendUTF16toASCII(aString, *this); > } > > private: > > NS_LossyConvertUTF16toASCII( char ); > }; > > >class NS_ConvertASCIItoUTF16 : public nsAutoString > { > public: > explicit > NS_ConvertASCIItoUTF16( const char* aCString ) > { > AppendASCIItoUTF16(aCString, *this); > } > > NS_ConvertASCIItoUTF16( const char* aCString, PRUint32 aLength ) > { > AppendASCIItoUTF16(Substring(aCString, aCString + aLength), *this); > } > > explicit > NS_ConvertASCIItoUTF16( const nsACString_internal& aCString ) > { > AppendASCIItoUTF16(aCString, *this); > } > > private: > > NS_ConvertASCIItoUTF16( PRUnichar ); > }; > > > > > >class NS_ConvertUTF16toUTF8 : public nsCAutoString > { > public: > explicit > NS_ConvertUTF16toUTF8( const PRUnichar* aString ) > { > AppendUTF16toUTF8(aString, *this); > } > > NS_ConvertUTF16toUTF8( const PRUnichar* aString, PRUint32 aLength ) > { > AppendUTF16toUTF8(Substring(aString, aString + aLength), *this); > } > > explicit > NS_ConvertUTF16toUTF8( const nsAString_internal& aString ) > { > AppendUTF16toUTF8(aString, *this); > } > > private: > > NS_ConvertUTF16toUTF8( char ); > }; > > >class NS_ConvertUTF8toUTF16 : public nsAutoString > { > public: > explicit > NS_ConvertUTF8toUTF16( const char* aCString ) > { > AppendUTF8toUTF16(aCString, *this); > } > > NS_ConvertUTF8toUTF16( const char* aCString, PRUint32 aLength ) > { > AppendUTF8toUTF16(Substring(aCString, aCString + aLength), *this); > } > > explicit > NS_ConvertUTF8toUTF16( const nsACString_internal& aCString ) > { > AppendUTF8toUTF16(aCString, *this); > } > > private: > > NS_ConvertUTF8toUTF16( PRUnichar ); > }; > > > >typedef nsAutoString nsVoidableString; > > ># 1 "../../../dist/include/string/nsDependentString.h" 1 ># 51 "../../../dist/include/string/nsDependentString.h" ># 1 "../../../dist/include/string/string-template-def-unichar.h" 1 ># 52 "../../../dist/include/string/nsDependentString.h" 2 ># 1 "../../../dist/include/string/nsTDependentString.h" 1 ># 52 "../../../dist/include/string/nsTDependentString.h" >class nsDependentString : public nsString > { > public: > > typedef nsDependentString self_type; > > public: > > > > > void AssertValid() > { > do { } while (0); > do { } while (0); > do { } while (0); > } > > > > > > > nsDependentString( const char_type* start, const char_type* end ) > : string_type(const_cast<char_type*>(start), PRUint32(end - start), F_TERMINATED) > { > AssertValid(); > } > > nsDependentString( const char_type* data, PRUint32 length ) > : string_type(const_cast<char_type*>(data), length, F_TERMINATED) > { > AssertValid(); > } > > explicit > nsDependentString( const char_type* data ) > : string_type(const_cast<char_type*>(data), PRUint32(char_traits::length(data)), F_TERMINATED) > { > AssertValid(); > } > > explicit > nsDependentString( const substring_type& str ) > : string_type(const_cast<char_type*>(str.Data()), str.Length(), F_TERMINATED) > { > AssertValid(); > } > > > nsDependentString() > : string_type() {} ># 115 "../../../dist/include/string/nsTDependentString.h" > void Rebind( const char_type* data ) > { > Rebind(data, PRUint32(char_traits::length(data))); > } > > void Rebind( const char_type* data, size_type length ); > > void Rebind( const char_type* start, const char_type* end ) > { > Rebind(start, PRUint32(end - start)); > } > > private: > > > nsDependentString( const substring_tuple_type& ); > > > > }; ># 53 "../../../dist/include/string/nsDependentString.h" 2 ># 1 "../../../dist/include/string/string-template-undef.h" 1 ># 54 "../../../dist/include/string/nsDependentString.h" 2 > > ># 1 "../../../dist/include/string/string-template-def-char.h" 1 ># 57 "../../../dist/include/string/nsDependentString.h" 2 ># 1 "../../../dist/include/string/nsTDependentString.h" 1 ># 52 "../../../dist/include/string/nsTDependentString.h" >class nsDependentCString : public nsCString > { > public: > > typedef nsDependentCString self_type; > > public: > > > > > void AssertValid() > { > do { } while (0); > do { } while (0); > do { } while (0); > } > > > > > > > nsDependentCString( const char_type* start, const char_type* end ) > : string_type(const_cast<char_type*>(start), PRUint32(end - start), F_TERMINATED) > { > AssertValid(); > } > > nsDependentCString( const char_type* data, PRUint32 length ) > : string_type(const_cast<char_type*>(data), length, F_TERMINATED) > { > AssertValid(); > } > > explicit > nsDependentCString( const char_type* data ) > : string_type(const_cast<char_type*>(data), PRUint32(char_traits::length(data)), F_TERMINATED) > { > AssertValid(); > } > > explicit > nsDependentCString( const substring_type& str ) > : string_type(const_cast<char_type*>(str.Data()), str.Length(), F_TERMINATED) > { > AssertValid(); > } > > > nsDependentCString() > : string_type() {} ># 115 "../../../dist/include/string/nsTDependentString.h" > void Rebind( const char_type* data ) > { > Rebind(data, PRUint32(char_traits::length(data))); > } > > void Rebind( const char_type* data, size_type length ); > > void Rebind( const char_type* start, const char_type* end ) > { > Rebind(start, PRUint32(end - start)); > } > > private: > > > nsDependentCString( const substring_tuple_type& ); > > > > }; ># 58 "../../../dist/include/string/nsDependentString.h" 2 ># 1 "../../../dist/include/string/string-template-undef.h" 1 ># 59 "../../../dist/include/string/nsDependentString.h" 2 ># 198 "../../../dist/include/string/nsString.h" 2 > > > ># 1 "../../../dist/include/string/nsLiteralString.h" 1 ># 86 "../../../dist/include/string/nsLiteralString.h" > typedef nsDependentString nsLiteralString; ># 114 "../../../dist/include/string/nsLiteralString.h" >typedef nsDependentCString nsLiteralCString; ># 202 "../../../dist/include/string/nsString.h" 2 > > > ># 1 "../../../dist/include/string/nsPromiseFlatString.h" 1 ># 47 "../../../dist/include/string/nsPromiseFlatString.h" ># 1 "../../../dist/include/string/string-template-def-unichar.h" 1 ># 48 "../../../dist/include/string/nsPromiseFlatString.h" 2 ># 1 "../../../dist/include/string/nsTPromiseFlatString.h" 1 ># 94 "../../../dist/include/string/nsTPromiseFlatString.h" >class nsPromiseFlatString : public nsString > { > public: > > typedef nsPromiseFlatString self_type; > > private: > > void Init( const substring_type& ); > > > > > > void operator=( const self_type& ); > > > nsPromiseFlatString(); > > public: > > explicit > nsPromiseFlatString( const substring_type& str ) > : string_type() > { > Init(str); > } ># 131 "../../../dist/include/string/nsTPromiseFlatString.h" > explicit > nsPromiseFlatString( const substring_tuple_type& tuple ) > : string_type() > { > > > Assign(tuple); > } > }; ># 151 "../../../dist/include/string/nsTPromiseFlatString.h" >inline >const nsPromiseFlatString >PromiseFlatString( const nsAString_internal& frag ) > { > return nsPromiseFlatString(frag); > } > > >inline >const nsPromiseFlatString >PromiseFlatString( const nsSubstringTuple& tuple ) > { > return nsPromiseFlatString(tuple); > } ># 49 "../../../dist/include/string/nsPromiseFlatString.h" 2 ># 1 "../../../dist/include/string/string-template-undef.h" 1 ># 50 "../../../dist/include/string/nsPromiseFlatString.h" 2 > > ># 1 "../../../dist/include/string/string-template-def-char.h" 1 ># 53 "../../../dist/include/string/nsPromiseFlatString.h" 2 ># 1 "../../../dist/include/string/nsTPromiseFlatString.h" 1 ># 94 "../../../dist/include/string/nsTPromiseFlatString.h" >class nsPromiseFlatCString : public nsCString > { > public: > > typedef nsPromiseFlatCString self_type; > > private: > > void Init( const substring_type& ); > > > > > > void operator=( const self_type& ); > > > nsPromiseFlatCString(); > > public: > > explicit > nsPromiseFlatCString( const substring_type& str ) > : string_type() > { > Init(str); > } ># 131 "../../../dist/include/string/nsTPromiseFlatString.h" > explicit > nsPromiseFlatCString( const substring_tuple_type& tuple ) > : string_type() > { > > > Assign(tuple); > } > }; ># 151 "../../../dist/include/string/nsTPromiseFlatString.h" >inline >const nsPromiseFlatCString >PromiseFlatCString( const nsACString_internal& frag ) > { > return nsPromiseFlatCString(frag); > } > > >inline >const nsPromiseFlatCString >PromiseFlatCString( const nsCSubstringTuple& tuple ) > { > return nsPromiseFlatCString(tuple); > } ># 54 "../../../dist/include/string/nsPromiseFlatString.h" 2 ># 1 "../../../dist/include/string/string-template-undef.h" 1 ># 55 "../../../dist/include/string/nsPromiseFlatString.h" 2 ># 206 "../../../dist/include/string/nsString.h" 2 > > > ># 1 "../../../dist/include/xpcom/nsMemory.h" 1 ># 42 "../../../dist/include/xpcom/nsMemory.h" ># 1 "../../../dist/include/xpcom/nsIMemory.h" 1 ># 58 "../../../dist/include/xpcom/nsIMemory.h" >class nsIMemory : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 72 "../../../dist/include/xpcom/nsIMemory.h" > virtual __attribute__ ((visibility ("hidden"))) void * __attribute__ ((regparm (0), cdecl)) Alloc(size_t size) = 0; ># 89 "../../../dist/include/xpcom/nsIMemory.h" > virtual __attribute__ ((visibility ("hidden"))) void * __attribute__ ((regparm (0), cdecl)) Realloc(void * ptr, size_t newSize) = 0; ># 98 "../../../dist/include/xpcom/nsIMemory.h" > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) Free(void * ptr) = 0; ># 110 "../../../dist/include/xpcom/nsIMemory.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HeapMinimize(PRBool immediate) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsLowMemory(PRBool *_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIMemory::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x59e7e77a, 0x38e4, 0x11d4, { 0x8c, 0xf5, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }}; ># 43 "../../../dist/include/xpcom/nsMemory.h" 2 ># 64 "../../../dist/include/xpcom/nsMemory.h" >class nsMemory >{ >public: > static __attribute__ ((visibility ("hidden"))) void* Alloc(size_t size) > { return NS_Alloc_P(size); } > > static __attribute__ ((visibility ("hidden"))) void* Realloc(void* ptr, PRSize size) > { return NS_Realloc_P(ptr, size); } > > static __attribute__ ((visibility ("hidden"))) void Free(void* ptr) > { NS_Free_P(ptr); } > > static nsresult HeapMinimize(PRBool aImmediate); > static void* Clone(const void* ptr, PRSize size); > static nsIMemory* GetGlobalMemoryService(); >}; ># 162 "../../../dist/include/xpcom/nsMemory.h" >enum nsAssignmentType { > NS_ASSIGNMENT_COPY, > NS_ASSIGNMENT_DEPEND, > NS_ASSIGNMENT_ADOPT >}; ># 210 "../../../dist/include/string/nsString.h" 2 > > ># 1 "../../../dist/include/nspr/plhash.h" 1 ># 46 "../../../dist/include/nspr/plhash.h" >extern "C" { > >typedef struct PLHashEntry PLHashEntry; >typedef struct PLHashTable PLHashTable; >typedef PRUint32 PLHashNumber; > >typedef PLHashNumber ( *PLHashFunction)(const void *key); >typedef PRIntn ( *PLHashComparator)(const void *v1, const void *v2); > > > > >typedef PRIntn ( *PLHashEnumerator)(PLHashEntry *he, PRIntn i, void *arg); ># 70 "../../../dist/include/nspr/plhash.h" >typedef struct PLHashAllocOps { > void * ( *allocTable)(void *pool, PRSize size); > void ( *freeTable)(void *pool, void *item); > PLHashEntry * ( *allocEntry)(void *pool, const void *key); > void ( *freeEntry)(void *pool, PLHashEntry *he, PRUintn flag); >} PLHashAllocOps; > > > > >struct PLHashEntry { > PLHashEntry *next; > PLHashNumber keyHash; > const void *key; > void *value; >}; > >struct PLHashTable { > PLHashEntry **buckets; > PRUint32 nentries; > PRUint32 shift; > PLHashFunction keyHash; > PLHashComparator keyCompare; > PLHashComparator valueCompare; > const PLHashAllocOps *allocOps; > void *allocPool; > > > > > > >}; > > > > > >extern __attribute__((visibility("default"))) PLHashTable * >PL_NewHashTable(PRUint32 numBuckets, PLHashFunction keyHash, > PLHashComparator keyCompare, PLHashComparator valueCompare, > const PLHashAllocOps *allocOps, void *allocPool); > >extern __attribute__((visibility("default"))) void >PL_HashTableDestroy(PLHashTable *ht); > > >extern __attribute__((visibility("default"))) PLHashEntry * >PL_HashTableAdd(PLHashTable *ht, const void *key, void *value); > >extern __attribute__((visibility("default"))) PRBool >PL_HashTableRemove(PLHashTable *ht, const void *key); > >extern __attribute__((visibility("default"))) void * >PL_HashTableLookup(PLHashTable *ht, const void *key); > >extern __attribute__((visibility("default"))) void * >PL_HashTableLookupConst(PLHashTable *ht, const void *key); > >extern __attribute__((visibility("default"))) PRIntn >PL_HashTableEnumerateEntries(PLHashTable *ht, PLHashEnumerator f, void *arg); > > >extern __attribute__((visibility("default"))) PLHashNumber >PL_HashString(const void *key); > > >extern __attribute__((visibility("default"))) PRIntn >PL_CompareStrings(const void *v1, const void *v2); > > >extern __attribute__((visibility("default"))) PRIntn >PL_CompareValues(const void *v1, const void *v2); > > >extern __attribute__((visibility("default"))) PLHashEntry ** >PL_HashTableRawLookup(PLHashTable *ht, PLHashNumber keyHash, const void *key); > >extern __attribute__((visibility("default"))) PLHashEntry ** >PL_HashTableRawLookupConst(PLHashTable *ht, PLHashNumber keyHash, > const void *key); > >extern __attribute__((visibility("default"))) PLHashEntry * >PL_HashTableRawAdd(PLHashTable *ht, PLHashEntry **hep, PLHashNumber keyHash, > const void *key, void *value); > >extern __attribute__((visibility("default"))) void >PL_HashTableRawRemove(PLHashTable *ht, PLHashEntry **hep, PLHashEntry *he); > > >extern __attribute__((visibility("default"))) PRIntn >PL_HashTableDump(PLHashTable *ht, PLHashEnumerator dump, FILE *fp); > >} ># 213 "../../../dist/include/string/nsString.h" 2 > >inline PRInt32 MinInt(PRInt32 x, PRInt32 y) > { > return NS_MIN(x, y); > } > >inline PRInt32 MaxInt(PRInt32 x, PRInt32 y) > { > return NS_MAX(x, y); > } > > > > > > >inline void Recycle( char* aBuffer) { nsMemory::Free(aBuffer); } >inline void Recycle( PRUnichar* aBuffer) { nsMemory::Free(aBuffer); } ># 51 "./../../../dom/src/base/nsJSUtils.h" 2 > >class nsIDOMEventListener; >class nsIScriptContext; >class nsIScriptGlobalObject; >class nsIPrincipal; > >class nsJSUtils >{ >public: > static JSBool GetCallingLocation(JSContext* aContext, const char* *aFilename, > PRUint32* aLineno, nsIPrincipal* aPrincipal); > > static jsval ConvertStringToJSVal(const nsString& aProp, > JSContext* aContext); > > static void ConvertJSValToString(nsAString_internal& aString, > JSContext* aContext, jsval aValue); > > static PRBool ConvertJSValToUint32(PRUint32* aProp, JSContext* aContext, > jsval aValue); > > static nsIScriptGlobalObject *GetStaticScriptGlobal(JSContext* aContext, > JSObject* aObj); > > static nsIScriptContext *GetStaticScriptContext(JSContext* aContext, > JSObject* aObj); > > static nsIScriptGlobalObject *GetDynamicScriptGlobal(JSContext *aContext); > > static nsIScriptContext *GetDynamicScriptContext(JSContext *aContext); >}; > > >class nsDependentJSString : public nsDependentString >{ >public: > explicit nsDependentJSString(jsval v) > : nsDependentString((PRUnichar *)::JS_GetStringChars(((JSString *)((void *)((v) & ~(jsval)(((JSUint32)1 << (3)) - 1))))), > ::JS_GetStringLength(((JSString *)((void *)((v) & ~(jsval)(((JSUint32)1 << (3)) - 1)))))) > { > } > > explicit nsDependentJSString(JSString *str) > : nsDependentString((PRUnichar *)::JS_GetStringChars(str), ::JS_GetStringLength(str)) > { > } > > ~nsDependentJSString() > { > } >}; ># 46 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/xpcom/nsCOMPtr.h" 1 ># 130 "../../../dist/include/xpcom/nsCOMPtr.h" > typedef PRBool NSCAP_BOOL; ># 186 "../../../dist/include/xpcom/nsCOMPtr.h" >template <class T> >class nsDerivedSafe : public T ># 197 "../../../dist/include/xpcom/nsCOMPtr.h" > { > private: > > using T::AddRef; > using T::Release; > > > > > > > void operator delete( void*, size_t ); > > > > nsDerivedSafe<T>& operator=( const T& ); ># 222 "../../../dist/include/xpcom/nsCOMPtr.h" > protected: > nsDerivedSafe(); > > > > > }; ># 249 "../../../dist/include/xpcom/nsCOMPtr.h" >template <class T> >struct already_AddRefed ># 266 "../../../dist/include/xpcom/nsCOMPtr.h" > { > already_AddRefed( T* aRawPtr ) > : mRawPtr(aRawPtr) > { > > } > > T* get() const { return mRawPtr; } > > T* mRawPtr; > }; > >template <class T> >inline >const already_AddRefed<T> >getter_AddRefs( T* aRawPtr ) > > > > > { > return already_AddRefed<T>(aRawPtr); > } > >template <class T> >inline >const already_AddRefed<T> >getter_AddRefs( const already_AddRefed<T> aAlreadyAddRefedPtr ) > { > return aAlreadyAddRefedPtr; > } > >template <class T> >inline >const already_AddRefed<T> >dont_AddRef( T* aRawPtr ) > { > return already_AddRefed<T>(aRawPtr); > } > >template <class T> >inline >const already_AddRefed<T> >dont_AddRef( const already_AddRefed<T> aAlreadyAddRefedPtr ) > { > return aAlreadyAddRefedPtr; > } > > > >class nsCOMPtr_helper ># 332 "../../../dist/include/xpcom/nsCOMPtr.h" > { > public: > virtual nsresult __attribute__ ((regparm (3), stdcall)) operator()( const nsIID&, void** ) const = 0; > }; ># 344 "../../../dist/include/xpcom/nsCOMPtr.h" >class nsQueryInterface > { > public: > explicit > nsQueryInterface( nsISupports* aRawPtr ) > : mRawPtr(aRawPtr) > { > > } > > nsresult __attribute__ ((regparm (3), stdcall)) operator()( const nsIID& aIID, void** ) const; > > private: > nsISupports* mRawPtr; > }; > >class nsQueryInterfaceWithError > { > public: > nsQueryInterfaceWithError( nsISupports* aRawPtr, nsresult* error ) > : mRawPtr(aRawPtr), > mErrorPtr(error) > { > > } > > nsresult __attribute__ ((regparm (3), stdcall)) operator()( const nsIID& aIID, void** ) const; > > private: > nsISupports* mRawPtr; > nsresult* mErrorPtr; > }; > >inline >nsQueryInterface >do_QueryInterface( nsISupports* aRawPtr ) > { > return nsQueryInterface(aRawPtr); > } > >inline >nsQueryInterfaceWithError >do_QueryInterface( nsISupports* aRawPtr, nsresult* error ) > { > return nsQueryInterfaceWithError(aRawPtr, error); > } > >template <class T> >inline >void >do_QueryInterface( already_AddRefed<T>& ) > { > > > > } > >template <class T> >inline >void >do_QueryInterface( already_AddRefed<T>&, nsresult* ) > { > > > > } > > > > >class nsGetServiceByCID >{ > public: > explicit nsGetServiceByCID(const nsCID& aCID) > : mCID(aCID) > { > > } > > nsresult __attribute__ ((regparm (3), stdcall)) operator()( const nsIID&, void** ) const; > > private: > const nsCID& mCID; >}; > >class nsGetServiceByCIDWithError >{ > public: > nsGetServiceByCIDWithError( const nsCID& aCID, nsresult* aErrorPtr ) > : mCID(aCID), > mErrorPtr(aErrorPtr) > { > > } > > nsresult __attribute__ ((regparm (3), stdcall)) operator()( const nsIID&, void** ) const; > > private: > const nsCID& mCID; > nsresult* mErrorPtr; >}; > >class nsGetServiceByContractID >{ > public: > explicit nsGetServiceByContractID(const char* aContractID) > : mContractID(aContractID) > { > > } > > nsresult __attribute__ ((regparm (3), stdcall)) operator()( const nsIID&, void** ) const; > > private: > const char* mContractID; >}; > >class nsGetServiceByContractIDWithError >{ > public: > nsGetServiceByContractIDWithError(const char* aContractID, nsresult* aErrorPtr) > : mContractID(aContractID), > mErrorPtr(aErrorPtr) > { > > } > > nsresult __attribute__ ((regparm (3), stdcall)) operator()( const nsIID&, void** ) const; > > private: > const char* mContractID; > nsresult* mErrorPtr; >}; > >class nsCOMPtr_base ># 491 "../../../dist/include/xpcom/nsCOMPtr.h" > { > public: > > nsCOMPtr_base( nsISupports* rawPtr = 0 ) > : mRawPtr(rawPtr) > { > > } > > __attribute__ ((regparm (3), stdcall)) ~nsCOMPtr_base(); > > void __attribute__ ((regparm (3), stdcall)) assign_with_AddRef( nsISupports* ); > void __attribute__ ((regparm (3), stdcall)) assign_from_qi( const nsQueryInterface, const nsIID& ); > void __attribute__ ((regparm (3), stdcall)) assign_from_qi_with_error( const nsQueryInterfaceWithError&, const nsIID& ); > void __attribute__ ((regparm (3), stdcall)) assign_from_gs_cid( const nsGetServiceByCID, const nsIID& ); > void __attribute__ ((regparm (3), stdcall)) assign_from_gs_cid_with_error( const nsGetServiceByCIDWithError&, const nsIID& ); > void __attribute__ ((regparm (3), stdcall)) assign_from_gs_contractid( const nsGetServiceByContractID, const nsIID& ); > void __attribute__ ((regparm (3), stdcall)) assign_from_gs_contractid_with_error( const nsGetServiceByContractIDWithError&, const nsIID& ); > void __attribute__ ((regparm (3), stdcall)) assign_from_helper( const nsCOMPtr_helper&, const nsIID& ); > void** __attribute__ ((regparm (3), stdcall)) begin_assignment(); > > protected: > nsISupports* __attribute__((__may_alias__)) mRawPtr; > > void > assign_assuming_AddRef( nsISupports* newPtr ) > { ># 526 "../../../dist/include/xpcom/nsCOMPtr.h" > nsISupports* oldPtr = mRawPtr; > mRawPtr = newPtr; > ; > ; > if ( oldPtr ) > (oldPtr)->Release(); > } > }; > > > >template <class T> >class nsCOMPtr > > : private nsCOMPtr_base > > { ># 575 "../../../dist/include/xpcom/nsCOMPtr.h" > public: > typedef T element_type; ># 606 "../../../dist/include/xpcom/nsCOMPtr.h" > nsCOMPtr() > : nsCOMPtr_base(0) > > { > ; > } > > nsCOMPtr( const nsCOMPtr<T>& aSmartPtr ) > : nsCOMPtr_base(aSmartPtr.mRawPtr) > > { > if ( mRawPtr ) > (mRawPtr)->AddRef(); > ; > } > > nsCOMPtr( T* aRawPtr ) > : nsCOMPtr_base(aRawPtr) > > { > if ( mRawPtr ) > (mRawPtr)->AddRef(); > ; > ; > } > > nsCOMPtr( const already_AddRefed<T>& aSmartPtr ) > : nsCOMPtr_base(aSmartPtr.mRawPtr) > > { > ; > ; > } > > nsCOMPtr( const nsQueryInterface qi ) > : nsCOMPtr_base(0) > > { > ; > assign_from_qi(qi, (T::template COMTypeInfo<int>::kIID)); > } > > nsCOMPtr( const nsQueryInterfaceWithError& qi ) > : nsCOMPtr_base(0) > > { > ; > assign_from_qi_with_error(qi, (T::template COMTypeInfo<int>::kIID)); > } > > nsCOMPtr( const nsGetServiceByCID gs ) > : nsCOMPtr_base(0) > > { > ; > assign_from_gs_cid(gs, (T::template COMTypeInfo<int>::kIID)); > } > > nsCOMPtr( const nsGetServiceByCIDWithError& gs ) > : nsCOMPtr_base(0) > > { > ; > assign_from_gs_cid_with_error(gs, (T::template COMTypeInfo<int>::kIID)); > } > > nsCOMPtr( const nsGetServiceByContractID gs ) > : nsCOMPtr_base(0) > > { > ; > assign_from_gs_contractid(gs, (T::template COMTypeInfo<int>::kIID)); > } > > nsCOMPtr( const nsGetServiceByContractIDWithError& gs ) > : nsCOMPtr_base(0) > > { > ; > assign_from_gs_contractid_with_error(gs, (T::template COMTypeInfo<int>::kIID)); > } > > nsCOMPtr( const nsCOMPtr_helper& helper ) > : nsCOMPtr_base(0) > > > { > ; > assign_from_helper(helper, (T::template COMTypeInfo<int>::kIID)); > ; > } > > > > > nsCOMPtr<T>& > operator=( const nsCOMPtr<T>& rhs ) > > { > assign_with_AddRef(rhs.mRawPtr); > return *this; > } > > nsCOMPtr<T>& > operator=( T* rhs ) > > { > assign_with_AddRef(rhs); > ; > return *this; > } > > nsCOMPtr<T>& > operator=( const already_AddRefed<T>& rhs ) > > { > assign_assuming_AddRef(rhs.mRawPtr); > ; > return *this; > } > > nsCOMPtr<T>& > operator=( const nsQueryInterface rhs ) > > { > assign_from_qi(rhs, (T::template COMTypeInfo<int>::kIID)); > return *this; > } > > nsCOMPtr<T>& > operator=( const nsQueryInterfaceWithError& rhs ) > > { > assign_from_qi_with_error(rhs, (T::template COMTypeInfo<int>::kIID)); > return *this; > } > > nsCOMPtr<T>& > operator=( const nsGetServiceByCID rhs ) > > { > assign_from_gs_cid(rhs, (T::template COMTypeInfo<int>::kIID)); > return *this; > } > > nsCOMPtr<T>& > operator=( const nsGetServiceByCIDWithError& rhs ) > > { > assign_from_gs_cid_with_error(rhs, (T::template COMTypeInfo<int>::kIID)); > return *this; > } > > nsCOMPtr<T>& > operator=( const nsGetServiceByContractID rhs ) > > { > assign_from_gs_contractid(rhs, (T::template COMTypeInfo<int>::kIID)); > return *this; > } > > nsCOMPtr<T>& > operator=( const nsGetServiceByContractIDWithError& rhs ) > > { > assign_from_gs_contractid_with_error(rhs, (T::template COMTypeInfo<int>::kIID)); > return *this; > } > > nsCOMPtr<T>& > operator=( const nsCOMPtr_helper& rhs ) > > > { > assign_from_helper(rhs, (T::template COMTypeInfo<int>::kIID)); > ; > return *this; > } > > void > swap( nsCOMPtr<T>& rhs ) > > { > > nsISupports* temp = rhs.mRawPtr; > > > > ; > ; > ; > ; > rhs.mRawPtr = mRawPtr; > mRawPtr = temp; > > } > > void > swap( T*& rhs ) > > { > > nsISupports* temp = rhs; > > > > ; > ; > rhs = reinterpret_cast<T*>(mRawPtr); > mRawPtr = temp; > ; > } > > > > > already_AddRefed<T> > forget() > > > { > T* temp = 0; > swap(temp); > return temp; > } > > void > forget( T** rhs ) > > > > { > do { } while (0); > *rhs = 0; > swap(*rhs); > } > > T* > get() const > > > > > { > return reinterpret_cast<T*>(mRawPtr); > } > > operator nsDerivedSafe<T>*() const > > > > > > > > { > return get_DerivedSafe(); > } > > nsDerivedSafe<T>* > operator->() const > { > do { } while (0); > return get_DerivedSafe(); > } ># 885 "../../../dist/include/xpcom/nsCOMPtr.h" > nsCOMPtr<T>* > get_address() > > > { > return this; > } > > const nsCOMPtr<T>* > get_address() const > > > { > return this; > } > > > > public: > nsDerivedSafe<T>& > operator*() const > { > do { } while (0); > return *get_DerivedSafe(); > } > > > > > > > T** > StartAssignment() > { > > return reinterpret_cast<T**>(begin_assignment()); > > > > > } > > private: > nsDerivedSafe<T>* > get_DerivedSafe() const > { > return reinterpret_cast<nsDerivedSafe<T>*>(mRawPtr); > } > > }; ># 947 "../../../dist/include/xpcom/nsCOMPtr.h" >template <> >class nsCOMPtr<nsISupports> > : private nsCOMPtr_base > { > public: > typedef nsISupports element_type; > > > > nsCOMPtr() > : nsCOMPtr_base(0) > > { > ; > } > > nsCOMPtr( const nsCOMPtr<nsISupports>& aSmartPtr ) > : nsCOMPtr_base(aSmartPtr.mRawPtr) > > { > if ( mRawPtr ) > (mRawPtr)->AddRef(); > ; > } > > nsCOMPtr( nsISupports* aRawPtr ) > : nsCOMPtr_base(aRawPtr) > > { > if ( mRawPtr ) > (mRawPtr)->AddRef(); > ; > } > > nsCOMPtr( const already_AddRefed<nsISupports>& aSmartPtr ) > : nsCOMPtr_base(aSmartPtr.mRawPtr) > > { > ; > } > > nsCOMPtr( const nsQueryInterface qi ) > : nsCOMPtr_base(0) > > { > ; > assign_from_qi(qi, (::nsISupports::COMTypeInfo<int>::kIID)); > } > > nsCOMPtr( const nsQueryInterfaceWithError& qi ) > : nsCOMPtr_base(0) > > { > ; > assign_from_qi_with_error(qi, (::nsISupports::COMTypeInfo<int>::kIID)); > } > > nsCOMPtr( const nsGetServiceByCID gs ) > : nsCOMPtr_base(0) > > { > ; > assign_from_gs_cid(gs, (::nsISupports::COMTypeInfo<int>::kIID)); > } > > nsCOMPtr( const nsGetServiceByCIDWithError& gs ) > : nsCOMPtr_base(0) > > { > ; > assign_from_gs_cid_with_error(gs, (::nsISupports::COMTypeInfo<int>::kIID)); > } > > nsCOMPtr( const nsGetServiceByContractID gs ) > : nsCOMPtr_base(0) > > { > ; > assign_from_gs_contractid(gs, (::nsISupports::COMTypeInfo<int>::kIID)); > } > > nsCOMPtr( const nsGetServiceByContractIDWithError& gs ) > : nsCOMPtr_base(0) > > { > ; > assign_from_gs_contractid_with_error(gs, (::nsISupports::COMTypeInfo<int>::kIID)); > } > > nsCOMPtr( const nsCOMPtr_helper& helper ) > : nsCOMPtr_base(0) > > > { > ; > assign_from_helper(helper, (::nsISupports::COMTypeInfo<int>::kIID)); > } > > > > > nsCOMPtr<nsISupports>& > operator=( const nsCOMPtr<nsISupports>& rhs ) > > { > assign_with_AddRef(rhs.mRawPtr); > return *this; > } > > nsCOMPtr<nsISupports>& > operator=( nsISupports* rhs ) > > { > assign_with_AddRef(rhs); > return *this; > } > > nsCOMPtr<nsISupports>& > operator=( const already_AddRefed<nsISupports>& rhs ) > > { > assign_assuming_AddRef(rhs.mRawPtr); > return *this; > } > > nsCOMPtr<nsISupports>& > operator=( const nsQueryInterface rhs ) > > { > assign_from_qi(rhs, (::nsISupports::COMTypeInfo<int>::kIID)); > return *this; > } > > nsCOMPtr<nsISupports>& > operator=( const nsQueryInterfaceWithError& rhs ) > > { > assign_from_qi_with_error(rhs, (::nsISupports::COMTypeInfo<int>::kIID)); > return *this; > } > > nsCOMPtr<nsISupports>& > operator=( const nsGetServiceByCID rhs ) > > { > assign_from_gs_cid(rhs, (::nsISupports::COMTypeInfo<int>::kIID)); > return *this; > } > > nsCOMPtr<nsISupports>& > operator=( const nsGetServiceByCIDWithError& rhs ) > > { > assign_from_gs_cid_with_error(rhs, (::nsISupports::COMTypeInfo<int>::kIID)); > return *this; > } > > nsCOMPtr<nsISupports>& > operator=( const nsGetServiceByContractID rhs ) > > { > assign_from_gs_contractid(rhs, (::nsISupports::COMTypeInfo<int>::kIID)); > return *this; > } > > nsCOMPtr<nsISupports>& > operator=( const nsGetServiceByContractIDWithError& rhs ) > > { > assign_from_gs_contractid_with_error(rhs, (::nsISupports::COMTypeInfo<int>::kIID)); > return *this; > } > > nsCOMPtr<nsISupports>& > operator=( const nsCOMPtr_helper& rhs ) > > > { > assign_from_helper(rhs, (::nsISupports::COMTypeInfo<int>::kIID)); > return *this; > } > > void > swap( nsCOMPtr<nsISupports>& rhs ) > > { > nsISupports* temp = rhs.mRawPtr; > ; > ; > ; > ; > rhs.mRawPtr = mRawPtr; > mRawPtr = temp; > } > > void > swap( nsISupports*& rhs ) > > { > nsISupports* temp = rhs; > ; > ; > rhs = mRawPtr; > mRawPtr = temp; > } > > void > forget( nsISupports** rhs ) > > > > { > do { } while (0); > *rhs = 0; > swap(*rhs); > } > > > > nsISupports* > get() const > > > > > { > return reinterpret_cast<nsISupports*>(mRawPtr); > } > > operator nsDerivedSafe<nsISupports>*() const > > > > > > > > { > return get_DerivedSafe(); > } > > nsDerivedSafe<nsISupports>* > operator->() const > { > do { } while (0); > return get_DerivedSafe(); > } ># 1208 "../../../dist/include/xpcom/nsCOMPtr.h" > nsCOMPtr<nsISupports>* > get_address() > > > { > return this; > } > > const nsCOMPtr<nsISupports>* > get_address() const > > > { > return this; > } > > > > public: > > nsDerivedSafe<nsISupports>& > operator*() const > { > do { } while (0); > return *get_DerivedSafe(); > } > > > > > > > nsISupports** > StartAssignment() > { > > return reinterpret_cast<nsISupports**>(begin_assignment()); > > > > > } > > private: > nsDerivedSafe<nsISupports>* > get_DerivedSafe() const > { > return reinterpret_cast<nsDerivedSafe<nsISupports>*>(mRawPtr); > } > > }; ># 1365 "../../../dist/include/xpcom/nsCOMPtr.h" >template <class T> >inline >nsCOMPtr<T>* >address_of( nsCOMPtr<T>& aPtr ) > { > return aPtr.get_address(); > } > >template <class T> >inline >const nsCOMPtr<T>* >address_of( const nsCOMPtr<T>& aPtr ) > { > return aPtr.get_address(); > } > > > >template <class T> >class nsGetterAddRefs ># 1402 "../../../dist/include/xpcom/nsCOMPtr.h" > { > public: > explicit > nsGetterAddRefs( nsCOMPtr<T>& aSmartPtr ) > : mTargetSmartPtr(aSmartPtr) > { > > } ># 1424 "../../../dist/include/xpcom/nsCOMPtr.h" > operator void**() > { > return reinterpret_cast<void**>(mTargetSmartPtr.StartAssignment()); > } > > operator nsISupports**() > { > return reinterpret_cast<nsISupports**>(mTargetSmartPtr.StartAssignment()); > } > > operator T**() > { > return mTargetSmartPtr.StartAssignment(); > } > > T*& > operator*() > { > return *(mTargetSmartPtr.StartAssignment()); > } > > private: > nsCOMPtr<T>& mTargetSmartPtr; > }; > > >template <> >class nsGetterAddRefs<nsISupports> > { > public: > explicit > nsGetterAddRefs( nsCOMPtr<nsISupports>& aSmartPtr ) > : mTargetSmartPtr(aSmartPtr) > { > > } ># 1468 "../../../dist/include/xpcom/nsCOMPtr.h" > operator void**() > { > return reinterpret_cast<void**>(mTargetSmartPtr.StartAssignment()); > } > > operator nsISupports**() > { > return mTargetSmartPtr.StartAssignment(); > } > > nsISupports*& > operator*() > { > return *(mTargetSmartPtr.StartAssignment()); > } > > private: > nsCOMPtr<nsISupports>& mTargetSmartPtr; > }; > > >template <class T> >inline >nsGetterAddRefs<T> >getter_AddRefs( nsCOMPtr<T>& aSmartPtr ) > > > > > { > return nsGetterAddRefs<T>(aSmartPtr); > } > > > > > >template <class T, class U> >inline >NSCAP_BOOL >operator==( const nsCOMPtr<T>& lhs, const nsCOMPtr<U>& rhs ) > { > return static_cast<const T*>(lhs.get()) == static_cast<const U*>(rhs.get()); > } > > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( const nsCOMPtr<T>& lhs, const nsCOMPtr<U>& rhs ) > { > return static_cast<const T*>(lhs.get()) != static_cast<const U*>(rhs.get()); > } > > > > >template <class T, class U> >inline >NSCAP_BOOL >operator==( const nsCOMPtr<T>& lhs, const U* rhs ) > { > return static_cast<const T*>(lhs.get()) == rhs; > } > >template <class T, class U> >inline >NSCAP_BOOL >operator==( const U* lhs, const nsCOMPtr<T>& rhs ) > { > return lhs == static_cast<const T*>(rhs.get()); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( const nsCOMPtr<T>& lhs, const U* rhs ) > { > return static_cast<const T*>(lhs.get()) != rhs; > } > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( const U* lhs, const nsCOMPtr<T>& rhs ) > { > return lhs != static_cast<const T*>(rhs.get()); > } ># 1574 "../../../dist/include/xpcom/nsCOMPtr.h" >template <class T, class U> >inline >NSCAP_BOOL >operator==( const nsCOMPtr<T>& lhs, U* rhs ) > { > return static_cast<const T*>(lhs.get()) == const_cast<const U*>(rhs); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator==( U* lhs, const nsCOMPtr<T>& rhs ) > { > return const_cast<const U*>(lhs) == static_cast<const T*>(rhs.get()); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( const nsCOMPtr<T>& lhs, U* rhs ) > { > return static_cast<const T*>(lhs.get()) != const_cast<const U*>(rhs); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( U* lhs, const nsCOMPtr<T>& rhs ) > { > return const_cast<const U*>(lhs) != static_cast<const T*>(rhs.get()); > } > > > > > > >class NSCAP_Zero; > >template <class T> >inline >NSCAP_BOOL >operator==( const nsCOMPtr<T>& lhs, NSCAP_Zero* rhs ) > > { > return static_cast<const void*>(lhs.get()) == reinterpret_cast<const void*>(rhs); > } > >template <class T> >inline >NSCAP_BOOL >operator==( NSCAP_Zero* lhs, const nsCOMPtr<T>& rhs ) > > { > return reinterpret_cast<const void*>(lhs) == static_cast<const void*>(rhs.get()); > } > >template <class T> >inline >NSCAP_BOOL >operator!=( const nsCOMPtr<T>& lhs, NSCAP_Zero* rhs ) > > { > return static_cast<const void*>(lhs.get()) != reinterpret_cast<const void*>(rhs); > } > >template <class T> >inline >NSCAP_BOOL >operator!=( NSCAP_Zero* lhs, const nsCOMPtr<T>& rhs ) > > { > return reinterpret_cast<const void*>(lhs) != static_cast<const void*>(rhs.get()); > } ># 1677 "../../../dist/include/xpcom/nsCOMPtr.h" >inline >NSCAP_BOOL >SameCOMIdentity( nsISupports* lhs, nsISupports* rhs ) > { > return nsCOMPtr<nsISupports>( do_QueryInterface(lhs) ) == nsCOMPtr<nsISupports>( do_QueryInterface(rhs) ); > } > > > >template <class SourceType, class DestinationType> >inline >nsresult >CallQueryInterface( nsCOMPtr<SourceType>& aSourcePtr, DestinationType** aDestPtr ) > { > return CallQueryInterface(aSourcePtr.get(), aDestPtr); > } ># 47 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/string/nsAString.h" 1 ># 48 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/string/nsPrintfCString.h" 1 ># 70 "../../../dist/include/string/nsPrintfCString.h" >class nsPrintfCString : public nsCString > { > typedef nsCString string_type; > > enum { kLocalBufferSize=15 }; > > > > public: > > explicit nsPrintfCString( const char_type* format, ... ); > nsPrintfCString( size_type n, const char_type* format, ...); > > private: > char_type mLocalBuffer[ kLocalBufferSize + 1 ]; > }; ># 49 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/unicharutil/nsUnicharUtils.h" 1 ># 43 "../../../dist/include/unicharutil/nsUnicharUtils.h" ># 1 "../../../dist/include/xpcom/nsStringGlue.h" 1 ># 49 "../../../dist/include/xpcom/nsStringGlue.h" ># 1 "../../../dist/include/string/nsString.h" 1 ># 50 "../../../dist/include/xpcom/nsStringGlue.h" 2 ># 1 "../../../dist/include/string/nsReadableUtils.h" 1 ># 51 "../../../dist/include/xpcom/nsStringGlue.h" 2 ># 44 "../../../dist/include/unicharutil/nsUnicharUtils.h" 2 ># 53 "../../../dist/include/unicharutil/nsUnicharUtils.h" >void ToLowerCase(nsAString_internal&); >void ToUpperCase(nsAString_internal&); > >void ToLowerCase(const nsAString_internal& aSource, nsAString_internal& aDest); >void ToUpperCase(const nsAString_internal& aSource, nsAString_internal& aDest); > >PRUnichar ToUpperCase(PRUnichar); >PRUnichar ToLowerCase(PRUnichar); > >inline PRBool IsUpperCase(PRUnichar c) { > return ToLowerCase(c) != c; >} > >inline PRBool IsLowerCase(PRUnichar c) { > return ToUpperCase(c) != c; >} > > > >class nsCaseInsensitiveStringComparator : public nsStringComparator >{ >public: > virtual int operator() (const PRUnichar*, > const PRUnichar*, > PRUint32 aLength) const; > virtual int operator() (PRUnichar, > PRUnichar) const; >}; > >inline PRBool >CaseInsensitiveFindInReadable(const nsAString_internal& aPattern, > nsAString_internal::const_iterator& aSearchStart, > nsAString_internal::const_iterator& aSearchEnd) >{ > return FindInReadable(aPattern, aSearchStart, aSearchEnd, > nsCaseInsensitiveStringComparator()); >} > >inline PRBool >CaseInsensitiveFindInReadable(const nsAString_internal& aPattern, > const nsAString_internal& aHay) >{ > nsAString_internal::const_iterator searchBegin, searchEnd; > return FindInReadable(aPattern, aHay.BeginReading(searchBegin), > aHay.EndReading(searchEnd), > nsCaseInsensitiveStringComparator()); >} ># 50 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/pref/nsIPrefService.h" 1 ># 14 "../../../dist/include/pref/nsIPrefService.h" ># 1 "../../../dist/include/pref/nsIPrefBranch.h" 1 ># 42 "../../../dist/include/pref/nsIPrefBranch.h" >class nsIPrefBranch : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > enum { PREF_INVALID = 0 }; > > enum { PREF_STRING = 32 }; > > enum { PREF_INT = 64 }; > > enum { PREF_BOOL = 128 }; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRoot(char * *aRoot) = 0; ># 76 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrefType(const char *aPrefName, PRInt32 *_retval) = 0; ># 88 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetBoolPref(const char *aPrefName, PRBool *_retval) = 0; ># 102 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetBoolPref(const char *aPrefName, PRInt32 aValue) = 0; ># 114 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCharPref(const char *aPrefName, char **_retval) = 0; ># 128 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetCharPref(const char *aPrefName, const char *aValue) = 0; ># 140 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIntPref(const char *aPrefName, PRInt32 *_retval) = 0; ># 154 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetIntPref(const char *aPrefName, PRInt32 aValue) = 0; ># 177 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetComplexValue(const char *aPrefName, const nsIID & aType, void * *aValue) = 0; ># 200 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetComplexValue(const char *aPrefName, const nsIID & aType, nsISupports *aValue) = 0; ># 216 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ClearUserPref(const char *aPrefName) = 0; ># 235 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LockPref(const char *aPrefName) = 0; ># 258 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PrefHasUserValue(const char *aPrefName, PRBool *_retval) = 0; ># 277 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PrefIsLocked(const char *aPrefName, PRBool *_retval) = 0; ># 296 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) UnlockPref(const char *aPrefName) = 0; ># 313 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DeleteBranch(const char *aStartingAt) = 0; ># 333 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray) = 0; ># 351 "../../../dist/include/pref/nsIPrefBranch.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ResetBranch(const char *aStartingAt) = 0; > >}; > > template <class Dummy> const nsIID nsIPrefBranch::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x56c35506, 0xf14b, 0x11d3, { 0x99, 0xd3, 0xdd, 0xbf, 0xac, 0x2c, 0xcf, 0x65 }}; ># 15 "../../../dist/include/pref/nsIPrefService.h" 2 > > > > > > >class nsIFile; ># 42 "../../../dist/include/pref/nsIPrefService.h" >class nsIPrefService : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 63 "../../../dist/include/pref/nsIPrefService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ReadUserPrefs(nsIFile *aFile) = 0; ># 72 "../../../dist/include/pref/nsIPrefService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ResetPrefs(void) = 0; ># 81 "../../../dist/include/pref/nsIPrefService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ResetUserPrefs(void) = 0; ># 99 "../../../dist/include/pref/nsIPrefService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SavePrefFile(nsIFile *aFile) = 0; ># 120 "../../../dist/include/pref/nsIPrefService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetBranch(const char *aPrefRoot, nsIPrefBranch **_retval) = 0; ># 146 "../../../dist/include/pref/nsIPrefService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDefaultBranch(const char *aPrefRoot, nsIPrefBranch **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIPrefService::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xdecb9cc7, 0xc08f, 0x4ea5, { 0xbe, 0x91, 0xa8, 0xfc, 0x63, 0x7c, 0xe2, 0xd2 }}; ># 51 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/pref/nsIPrefBranch.h" 1 ># 52 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/pref/nsIPrefLocalizedString.h" 1 ># 37 "../../../dist/include/pref/nsIPrefLocalizedString.h" >class nsIPrefLocalizedString : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 49 "../../../dist/include/pref/nsIPrefLocalizedString.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(PRUnichar * *aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(const PRUnichar * aData) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(PRUnichar **_retval) = 0; ># 75 "../../../dist/include/pref/nsIPrefLocalizedString.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDataWithLength(PRUint32 length, const PRUnichar *data) = 0; > >}; > > template <class Dummy> const nsIID nsIPrefLocalizedString::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xae419e24, 0x1dd1, 0x11b2, { 0xb3, 0x9a, 0xd3, 0xe5, 0xe7, 0x07, 0x38, 0x02 }}; ># 53 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/xpcom/nsServiceManagerUtils.h" 1 ># 41 "../../../dist/include/xpcom/nsServiceManagerUtils.h" ># 1 "../../../dist/include/xpcom/nsIServiceManager.h" 1 ># 40 "../../../dist/include/xpcom/nsIServiceManager.h" >class nsIServiceManager : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 57 "../../../dist/include/xpcom/nsIServiceManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetService(const nsCID & aClass, const nsIID & aIID, void * *result) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetServiceByContractID(const char *aContractID, const nsIID & aIID, void * *result) = 0; ># 74 "../../../dist/include/xpcom/nsIServiceManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsServiceInstantiated(const nsCID & aClass, const nsIID & aIID, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsServiceInstantiatedByContractID(const char *aContractID, const nsIID & aIID, PRBool *_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIServiceManager::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x8bb35ed9, 0xe332, 0x462d, { 0x91, 0x55, 0x4a, 0x00, 0x2a, 0xb5, 0xc9, 0x58 }}; ># 176 "../../../dist/include/xpcom/nsIServiceManager.h" ># 1 "../../../dist/include/xpcom/nsServiceManagerUtils.h" 1 ># 177 "../../../dist/include/xpcom/nsIServiceManager.h" 2 ># 1 "../../../dist/include/xpcom/nsIServiceManagerObsolete.h" 1 ># 52 "../../../dist/include/xpcom/nsIServiceManagerObsolete.h" ># 1 "../../../dist/include/xpcom/nsIComponentManager.h" 1 ># 17 "../../../dist/include/xpcom/nsIComponentManager.h" >class nsIFactory; ># 27 "../../../dist/include/xpcom/nsIComponentManager.h" >class nsIComponentManager : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 41 "../../../dist/include/xpcom/nsIComponentManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetClassObject(const nsCID & aClass, const nsIID & aIID, void * *result) = 0; ># 52 "../../../dist/include/xpcom/nsIComponentManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetClassObjectByContractID(const char *aContractID, const nsIID & aIID, void * *result) = 0; ># 64 "../../../dist/include/xpcom/nsIComponentManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void * *result) = 0; ># 77 "../../../dist/include/xpcom/nsIComponentManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate, const nsIID & aIID, void * *result) = 0; > >}; > > template <class Dummy> const nsIID nsIComponentManager::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa88e5a60, 0x205a, 0x4bb1, { 0x94, 0xe1, 0x26, 0x28, 0xda, 0xf5, 0x1e, 0xae }}; ># 164 "../../../dist/include/xpcom/nsIComponentManager.h" ># 1 "../../../dist/include/xpcom/nsComponentManagerUtils.h" 1 ># 46 "../../../dist/include/xpcom/nsComponentManagerUtils.h" ># 1 "../../../dist/include/xpcom/nsCOMPtr.h" 1 ># 47 "../../../dist/include/xpcom/nsComponentManagerUtils.h" 2 > > ># 1 "../../../dist/include/xpcom/nsIFactory.h" 1 ># 31 "../../../dist/include/xpcom/nsIFactory.h" >class nsIFactory : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 53 "../../../dist/include/xpcom/nsIFactory.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateInstance(nsISupports *aOuter, const nsIID & iid, void * *result) = 0; ># 66 "../../../dist/include/xpcom/nsIFactory.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LockFactory(PRBool lock) = 0; > >}; > > template <class Dummy> const nsIID nsIFactory::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x00000001, 0x0000, 0x0000, { 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 }}; ># 50 "../../../dist/include/xpcom/nsComponentManagerUtils.h" 2 > > > nsresult >CallCreateInstance > (const nsCID &aClass, nsISupports *aDelegate, const nsIID &aIID, > void **aResult); > > nsresult >CallCreateInstance > (const char *aContractID, nsISupports *aDelegate, const nsIID &aIID, > void **aResult); > > nsresult >CallGetClassObject > (const nsCID &aClass, const nsIID &aIID, void **aResult); > > nsresult >CallGetClassObject > (const char *aContractID, const nsIID &aIID, void **aResult); > > >class nsCreateInstanceByCID : public nsCOMPtr_helper >{ >public: > nsCreateInstanceByCID( const nsCID& aCID, nsISupports* aOuter, nsresult* aErrorPtr ) > : mCID(aCID), > mOuter(aOuter), > mErrorPtr(aErrorPtr) > { > > } > > virtual nsresult __attribute__ ((regparm (3), stdcall)) operator()( const nsIID&, void** ) const; > >private: > const nsCID& mCID; > nsISupports* mOuter; > nsresult* mErrorPtr; >}; > >class nsCreateInstanceByContractID : public nsCOMPtr_helper >{ >public: > nsCreateInstanceByContractID( const char* aContractID, nsISupports* aOuter, nsresult* aErrorPtr ) > : mContractID(aContractID), > mOuter(aOuter), > mErrorPtr(aErrorPtr) > { > > } > > virtual nsresult __attribute__ ((regparm (3), stdcall)) operator()( const nsIID&, void** ) const; > >private: > const char* mContractID; > nsISupports* mOuter; > nsresult* mErrorPtr; >}; > >class nsCreateInstanceFromFactory : public nsCOMPtr_helper >{ >public: > nsCreateInstanceFromFactory( nsIFactory* aFactory, nsISupports* aOuter, nsresult* aErrorPtr ) > : mFactory(aFactory), > mOuter(aOuter), > mErrorPtr(aErrorPtr) > { > > } > > virtual nsresult __attribute__ ((regparm (3), stdcall)) operator()( const nsIID&, void** ) const; > >private: > nsIFactory* mFactory; > nsISupports* mOuter; > nsresult* mErrorPtr; >}; > > >inline >const nsCreateInstanceByCID >do_CreateInstance( const nsCID& aCID, nsresult* error = 0 ) >{ > return nsCreateInstanceByCID(aCID, 0, error); >} > >inline >const nsCreateInstanceByCID >do_CreateInstance( const nsCID& aCID, nsISupports* aOuter, nsresult* error = 0 ) >{ > return nsCreateInstanceByCID(aCID, aOuter, error); >} > >inline >const nsCreateInstanceByContractID >do_CreateInstance( const char* aContractID, nsresult* error = 0 ) >{ > return nsCreateInstanceByContractID(aContractID, 0, error); >} > >inline >const nsCreateInstanceByContractID >do_CreateInstance( const char* aContractID, nsISupports* aOuter, nsresult* error = 0 ) >{ > return nsCreateInstanceByContractID(aContractID, aOuter, error); >} > >inline >const nsCreateInstanceFromFactory >do_CreateInstance( nsIFactory* aFactory, nsresult* error = 0 ) >{ > return nsCreateInstanceFromFactory(aFactory, 0, error); >} > >inline >const nsCreateInstanceFromFactory >do_CreateInstance( nsIFactory* aFactory, nsISupports* aOuter, nsresult* error = 0 ) >{ > return nsCreateInstanceFromFactory(aFactory, aOuter, error); >} > > >class nsGetClassObjectByCID : public nsCOMPtr_helper >{ >public: > nsGetClassObjectByCID( const nsCID& aCID, nsresult* aErrorPtr ) > : mCID(aCID), > mErrorPtr(aErrorPtr) > { > > } > > virtual nsresult __attribute__ ((regparm (3), stdcall)) operator()( const nsIID&, void** ) const; > >private: > const nsCID& mCID; > nsresult* mErrorPtr; >}; > >class nsGetClassObjectByContractID : public nsCOMPtr_helper >{ >public: > nsGetClassObjectByContractID( const char* aContractID, nsresult* aErrorPtr ) > : mContractID(aContractID), > mErrorPtr(aErrorPtr) > { > > } > > virtual nsresult __attribute__ ((regparm (3), stdcall)) operator()( const nsIID&, void** ) const; > >private: > const char* mContractID; > nsresult* mErrorPtr; >}; ># 213 "../../../dist/include/xpcom/nsComponentManagerUtils.h" >inline const nsGetClassObjectByCID >do_GetClassObject( const nsCID& aCID, nsresult* error = 0 ) >{ > return nsGetClassObjectByCID(aCID, error); >} > >inline const nsGetClassObjectByContractID >do_GetClassObject( const char* aContractID, nsresult* error = 0 ) >{ > return nsGetClassObjectByContractID(aContractID, error); >} > > >template <class DestinationType> >inline >nsresult >CallCreateInstance( const nsCID &aClass, > nsISupports *aDelegate, > DestinationType** aDestination ) >{ > do { } while (0); > > return CallCreateInstance(aClass, aDelegate, > (DestinationType::template COMTypeInfo<int>::kIID), > reinterpret_cast<void**>(aDestination)); >} > >template <class DestinationType> >inline >nsresult >CallCreateInstance( const nsCID &aClass, > DestinationType** aDestination ) >{ > do { } while (0); > > return CallCreateInstance(aClass, 0, > (DestinationType::template COMTypeInfo<int>::kIID), > reinterpret_cast<void**>(aDestination)); >} > >template <class DestinationType> >inline >nsresult >CallCreateInstance( const char *aContractID, > nsISupports *aDelegate, > DestinationType** aDestination ) >{ > do { } while (0); > do { } while (0); > > return CallCreateInstance(aContractID, > aDelegate, > (DestinationType::template COMTypeInfo<int>::kIID), > reinterpret_cast<void**>(aDestination)); >} > >template <class DestinationType> >inline >nsresult >CallCreateInstance( const char *aContractID, > DestinationType** aDestination ) >{ > do { } while (0); > do { } while (0); > > return CallCreateInstance(aContractID, 0, > (DestinationType::template COMTypeInfo<int>::kIID), > reinterpret_cast<void**>(aDestination)); >} > >template <class DestinationType> >inline >nsresult >CallCreateInstance( nsIFactory *aFactory, > nsISupports *aDelegate, > DestinationType** aDestination ) >{ > do { } while (0); > do { } while (0); > > return aFactory->CreateInstance(aDelegate, > (DestinationType::template COMTypeInfo<int>::kIID), > reinterpret_cast<void**>(aDestination)); >} > >template <class DestinationType> >inline >nsresult >CallCreateInstance( nsIFactory *aFactory, > DestinationType** aDestination ) >{ > do { } while (0); > do { } while (0); > > return aFactory->CreateInstance(0, > (DestinationType::template COMTypeInfo<int>::kIID), > reinterpret_cast<void**>(aDestination)); >} > >template <class DestinationType> >inline >nsresult >CallGetClassObject( const nsCID &aClass, > DestinationType** aDestination ) >{ > do { } while (0); > > return CallGetClassObject(aClass, > (DestinationType::template COMTypeInfo<int>::kIID), reinterpret_cast<void**>(aDestination)); >} > >template <class DestinationType> >inline >nsresult >CallGetClassObject( const char* aContractID, > DestinationType** aDestination ) >{ > do { } while (0); > > return CallGetClassObject(aContractID, > (DestinationType::template COMTypeInfo<int>::kIID), reinterpret_cast<void**>(aDestination)); >} ># 165 "../../../dist/include/xpcom/nsIComponentManager.h" 2 ># 53 "../../../dist/include/xpcom/nsIServiceManagerObsolete.h" 2 > > > > > > >class nsIServiceManager; >class nsIShutdownListener; >class nsIDirectoryServiceProvider; > >class nsServiceManagerObsolete; ># 77 "../../../dist/include/xpcom/nsIServiceManagerObsolete.h" >class nsIServiceManagerObsolete : public nsISupports { >public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) > RegisterService(const nsCID& aClass, nsISupports* aService) = 0; ># 101 "../../../dist/include/xpcom/nsIServiceManagerObsolete.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) > UnregisterService(const nsCID& aClass) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) > GetService(const nsCID& aClass, const nsIID& aIID, > nsISupports* *result, > nsIShutdownListener* shutdownListener = 0) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) > ReleaseService(const nsCID& aClass, nsISupports* service, > nsIShutdownListener* shutdownListener = 0) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) > RegisterService(const char* aContractID, nsISupports* aService) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) > UnregisterService(const char* aContractID) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) > GetService(const char* aContractID, const nsIID& aIID, > nsISupports* *result, > nsIShutdownListener* shutdownListener = 0) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) > ReleaseService(const char* aContractID, nsISupports* service, > nsIShutdownListener* shutdownListener = 0) = 0; > >}; > >template <class Dummy> const nsIID nsIServiceManagerObsolete::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0xcf0df3b0, 0x3401, 0x11d2, {0x81, 0x63, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a} }; > > > >class nsServiceManager { >public: > > static nsresult > RegisterService(const nsCID& aClass, nsISupports* aService); > > static nsresult > UnregisterService(const nsCID& aClass); > > static nsresult > GetService(const nsCID& aClass, const nsIID& aIID, > nsISupports* *result, > nsIShutdownListener* shutdownListener = 0); > > > static nsresult > ReleaseService(const nsCID& aClass, nsISupports* service, > nsIShutdownListener* shutdownListener = 0); > > > > > static nsresult > RegisterService(const char* aContractID, nsISupports* aService); > > static nsresult > UnregisterService(const char* aContractID); > > static nsresult > GetService(const char* aContractID, const nsIID& aIID, > nsISupports* *result, > nsIShutdownListener* shutdownListener = 0); > > > static nsresult > ReleaseService(const char* aContractID, nsISupports* service, > nsIShutdownListener* shutdownListener = 0); > > > > > > static nsresult GetGlobalServiceManager(nsIServiceManager* *result); > static nsresult ShutdownGlobalServiceManager(nsIServiceManager* *result); >}; ># 178 "../../../dist/include/xpcom/nsIServiceManager.h" 2 ># 42 "../../../dist/include/xpcom/nsServiceManagerUtils.h" 2 > > >inline >const nsGetServiceByCID >do_GetService(const nsCID& aCID) >{ > return nsGetServiceByCID(aCID); >} > >inline >const nsGetServiceByCIDWithError >do_GetService(const nsCID& aCID, nsresult* error) >{ > return nsGetServiceByCIDWithError(aCID, error); >} > >inline >const nsGetServiceByContractID >do_GetService(const char* aContractID) >{ > return nsGetServiceByContractID(aContractID); >} > >inline >const nsGetServiceByContractIDWithError >do_GetService( const char* aContractID, nsresult* error) >{ > return nsGetServiceByContractIDWithError(aContractID, error); >} > >class nsGetServiceFromCategory : public nsCOMPtr_helper >{ > public: > nsGetServiceFromCategory(const char* aCategory, const char* aEntry, > nsresult* aErrorPtr) > : mCategory(aCategory), > mEntry(aEntry), > mErrorPtr(aErrorPtr) > { > > } > > virtual nsresult __attribute__ ((regparm (3), stdcall)) operator()( const nsIID&, void** ) const; > protected: > const char* mCategory; > const char* mEntry; > nsresult* mErrorPtr; >}; > >inline >const nsGetServiceFromCategory >do_GetServiceFromCategory( const char* category, const char* entry, > nsresult* error = 0) >{ > return nsGetServiceFromCategory(category, entry, error); >} > > nsresult >CallGetService(const nsCID &aClass, const nsIID &aIID, void **aResult); > > nsresult >CallGetService(const char *aContractID, const nsIID &aIID, void **aResult); > > >template <class DestinationType> >inline >nsresult >CallGetService( const nsCID &aClass, > DestinationType** aDestination) >{ > do { } while (0); > > return CallGetService(aClass, > (DestinationType::template COMTypeInfo<int>::kIID), > reinterpret_cast<void**>(aDestination)); >} > >template <class DestinationType> >inline >nsresult >CallGetService( const char *aContractID, > DestinationType** aDestination) >{ > do { } while (0); > do { } while (0); > > return CallGetService(aContractID, > (DestinationType::template COMTypeInfo<int>::kIID), > reinterpret_cast<void**>(aDestination)); >} ># 54 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIScriptGlobalObject.h" 1 ># 42 "../../../dist/include/dom/nsIScriptGlobalObject.h" ># 1 "../../../dist/include/xpcom/nsISupports.h" 1 ># 43 "../../../dist/include/dom/nsIScriptGlobalObject.h" 2 ># 1 "../../../dist/include/widget/nsEvent.h" 1 ># 51 "../../../dist/include/widget/nsEvent.h" >enum nsEventStatus { > > nsEventStatus_eIgnore, > > nsEventStatus_eConsumeNoDefault, > > nsEventStatus_eConsumeDoDefault >}; > >class nsEvent; > >class nsGUIEvent; >class nsSizeEvent; >class nsSizeModeEvent; >class nsZLevelEvent; >class nsPaintEvent; >class nsScrollbarEvent; >class nsScrollPortEvent; >class nsInputEvent; >class nsMouseEvent; >class nsAccessibleEvent; >class nsKeyEvent; >class nsTextEvent; >class nsCompositionEvent; >class nsMouseScrollEvent; >class nsReconversionEvent; >class nsTooltipEvent; >class nsMenuEvent; > >struct nsTextEventReply; >struct nsReconversionEventReply; >struct nsQueryCaretRectEventReply; ># 44 "../../../dist/include/dom/nsIScriptGlobalObject.h" 2 ># 1 "../../../dist/include/xpcom/nsIProgrammingLanguage.h" 1 ># 32 "../../../dist/include/xpcom/nsIProgrammingLanguage.h" >class nsIProgrammingLanguage : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > enum { UNKNOWN = 0U }; > > enum { CPLUSPLUS = 1U }; > > enum { JAVASCRIPT = 2U }; > > enum { PYTHON = 3U }; > > enum { PERL = 4U }; > > enum { JAVA = 5U }; > > enum { ZX81_BASIC = 6U }; > > enum { JAVASCRIPT2 = 7U }; > > enum { RUBY = 8U }; > > enum { PHP = 9U }; > > enum { TCL = 10U }; > > enum { MAX = 10U }; > >}; > > template <class Dummy> const nsIID nsIProgrammingLanguage::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xea604e90, 0x40ba, 0x11d5, { 0x90, 0xbb, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}; ># 45 "../../../dist/include/dom/nsIScriptGlobalObject.h" 2 > >class nsIScriptContext; >class nsIDOMDocument; >class nsIDOMEvent; >class nsPresContext; >class nsIScriptGlobalObjectOwner; >class nsIArray; >class nsScriptErrorEvent; >class nsIScriptGlobalObject; >enum nsEventStatus; >struct JSObject; ># 98 "../../../dist/include/dom/nsIScriptGlobalObject.h" >PRBool >NS_HandleScriptError(nsIScriptGlobalObject *aScriptGlobal, > nsScriptErrorEvent *aErrorEvent, > nsEventStatus *aStatus); ># 114 "../../../dist/include/dom/nsIScriptGlobalObject.h" >class nsIScriptGlobalObject : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 128 "../../../dist/include/dom/nsIScriptGlobalObject.h" > virtual nsresult EnsureScriptEnvironment(PRUint32 aLangID) = 0; > > > > virtual nsIScriptContext *GetScriptContext(PRUint32 lang) = 0; > > > > > virtual void *GetScriptGlobal(PRUint32 lang) = 0; > > > virtual JSObject *GetGlobalJSObject() { > return (JSObject *)GetScriptGlobal(nsIProgrammingLanguage::JAVASCRIPT); > } > > virtual nsIScriptContext *GetContext() { > return GetScriptContext(nsIProgrammingLanguage::JAVASCRIPT); > } > > > > > > > virtual nsresult SetScriptContext(PRUint32 lang, nsIScriptContext *aContext) = 0; ># 163 "../../../dist/include/dom/nsIScriptGlobalObject.h" > virtual void OnFinalize(PRUint32 aLangID, void *aScriptGlobal) = 0; > > > > > virtual void SetScriptsEnabled(PRBool aEnabled, PRBool aFireTimeouts) = 0; > > > > > > > > virtual nsresult SetNewArguments(nsIArray *aArguments) = 0; > > > > virtual nsresult HandleScriptError(nsScriptErrorEvent *aErrorEvent, > nsEventStatus *aEventStatus) { > return NS_HandleScriptError(this, aErrorEvent, aEventStatus); > } >}; > >template <class Dummy> const nsIID nsIScriptGlobalObject::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x6afecd40, 0x0b9a, 0x4cfd, { 0x8c, 0x42, 0x0f, 0x64, 0x5c, 0xd9, 0x18, 0x29 } }; ># 55 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIScriptContext.h" 1 ># 41 "../../../dist/include/dom/nsIScriptContext.h" ># 1 "../../../dist/include/xpcom/nscore.h" 1 ># 42 "../../../dist/include/dom/nsIScriptContext.h" 2 ># 1 "../../../dist/include/xpcom/nsStringGlue.h" 1 ># 43 "../../../dist/include/dom/nsIScriptContext.h" 2 > ># 1 "../../../dist/include/xpcom/nsCOMPtr.h" 1 ># 45 "../../../dist/include/dom/nsIScriptContext.h" 2 > > >class nsIScriptGlobalObject; >class nsIScriptSecurityManager; >class nsIPrincipal; >class nsIAtom; >class nsIArray; >class nsIVariant; >class nsIObjectInputStream; >class nsIObjectOutputStream; >class nsScriptObjectHolder; > >typedef void (*nsScriptTerminationFunc)(nsISupports* aRef); ># 75 "../../../dist/include/dom/nsIScriptContext.h" >class nsIScriptContext : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual PRUint32 GetScriptTypeID() = 0; ># 102 "../../../dist/include/dom/nsIScriptContext.h" > virtual nsresult EvaluateString(const nsAString_internal& aScript, > void *aScopeObject, > nsIPrincipal *aPrincipal, > const char *aURL, > PRUint32 aLineNo, > PRUint32 aVersion, > nsAString_internal *aRetValue, > PRBool* aIsUndefined) = 0; > > > > virtual nsresult EvaluateStringWithValue(const nsAString_internal& aScript, > void *aScopeObject, > nsIPrincipal *aPrincipal, > const char *aURL, > PRUint32 aLineNo, > PRUint32 aVersion, > void* aRetValue, > PRBool* aIsUndefined) = 0; ># 139 "../../../dist/include/dom/nsIScriptContext.h" > virtual nsresult CompileScript(const PRUnichar* aText, > PRInt32 aTextLength, > void* aScopeObject, > nsIPrincipal* aPrincipal, > const char* aURL, > PRUint32 aLineNo, > PRUint32 aVersion, > nsScriptObjectHolder &aScriptObject) = 0; ># 162 "../../../dist/include/dom/nsIScriptContext.h" > virtual nsresult ExecuteScript(void* aScriptObject, > void* aScopeObject, > nsAString_internal* aRetValue, > PRBool* aIsUndefined) = 0; ># 189 "../../../dist/include/dom/nsIScriptContext.h" > virtual nsresult CompileEventHandler(nsIAtom* aName, > PRUint32 aArgCount, > const char** aArgNames, > const nsAString_internal& aBody, > const char* aURL, > PRUint32 aLineNo, > PRUint32 aVersion, > nsScriptObjectHolder &aHandler) = 0; ># 210 "../../../dist/include/dom/nsIScriptContext.h" > virtual nsresult CallEventHandler(nsISupports* aTarget, > void *aScope, void* aHandler, > nsIArray *argv, nsIVariant **rval) = 0; ># 237 "../../../dist/include/dom/nsIScriptContext.h" > virtual nsresult BindCompiledEventHandler(nsISupports* aTarget, void *aScope, > nsIAtom* aName, > void* aHandler) = 0; > > > > > > > > virtual nsresult GetBoundEventHandler(nsISupports* aTarget, void *aScope, > nsIAtom* aName, > nsScriptObjectHolder &aHandler) = 0; ># 258 "../../../dist/include/dom/nsIScriptContext.h" > virtual nsresult CompileFunction(void* aTarget, > const nsACString_internal& aName, > PRUint32 aArgCount, > const char** aArgArray, > const nsAString_internal& aBody, > const char* aURL, > PRUint32 aLineNo, > PRUint32 aVersion, > PRBool aShared, > void **aFunctionObject) = 0; > > > > > > > virtual void SetDefaultLanguageVersion(PRUint32 aVersion) = 0; > > > > > > virtual nsIScriptGlobalObject *GetGlobalObject() = 0; > > > > > > virtual void *GetNativeContext() = 0; > > > > > > virtual void *GetNativeGlobal() = 0; > > > > > > > virtual nsresult CreateNativeGlobalForInner( > nsIScriptGlobalObject *aNewInner, > PRBool aIsChrome, > void **aNativeGlobal, > nsISupports **aHolder) = 0; > > > > > > > virtual nsresult ConnectToInner(nsIScriptGlobalObject *aNewInner, > void *aOuterGlobal) = 0; ># 325 "../../../dist/include/dom/nsIScriptContext.h" > virtual nsresult InitContext(nsIScriptGlobalObject *aGlobalObject) = 0; ># 334 "../../../dist/include/dom/nsIScriptContext.h" > virtual PRBool IsContextInitialized() = 0; > > > > > virtual void FinalizeContext() = 0; > > > > > > > > virtual void GC() = 0; ># 361 "../../../dist/include/dom/nsIScriptContext.h" > virtual void ScriptEvaluated(PRBool aTerminated) = 0; > > virtual nsresult Serialize(nsIObjectOutputStream* aStream, > void *aScriptObject) = 0; > > > > virtual nsresult Deserialize(nsIObjectInputStream* aStream, > nsScriptObjectHolder &aResult) = 0; ># 381 "../../../dist/include/dom/nsIScriptContext.h" > virtual nsresult SetTerminationFunction(nsScriptTerminationFunc aFunc, > nsISupports* aRef) = 0; > > > > > virtual PRBool GetScriptsEnabled() = 0; > virtual void SetScriptsEnabled(PRBool aEnabled, PRBool aFireTimeouts) = 0; > > > > virtual nsresult SetProperty(void *aTarget, const char *aPropName, nsISupports *aVal) = 0; > > > > > virtual PRBool GetProcessingScriptTag() = 0; > virtual void SetProcessingScriptTag(PRBool aResult) = 0; > > > > > > virtual void SetGCOnDestruction(PRBool aGCOnDestruction) = 0; > > > > > > > > virtual nsresult InitClasses(void *aGlobalObj) = 0; ># 426 "../../../dist/include/dom/nsIScriptContext.h" > virtual void ClearScope(void* aGlobalObj, PRBool aClearFromProtoChain) = 0; > > > > > virtual void WillInitializeContext() = 0; > > > > > virtual void DidInitializeContext() = 0; > > > > > > > virtual void DidSetDocument(nsISupports *aDoc, void *aGlobal) = 0; ># 452 "../../../dist/include/dom/nsIScriptContext.h" > virtual nsresult DropScriptObject(void *object) = 0; > virtual nsresult HoldScriptObject(void *object) = 0; > > > virtual void ReportPendingException() = 0; >}; > >template <class Dummy> const nsIID nsIScriptContext::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0xe7b9871d, 0x3adc, 0x4bf7, { 0x85, 0x0d, 0x7f, 0xb9, 0x55, 0x48, 0x86, 0xbf } }; ># 56 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIDOMScriptObjectFactory.h" 1 ># 42 "../../../dist/include/dom/nsIDOMScriptObjectFactory.h" ># 1 "../../../dist/include/dom/nsIDOMClassInfo.h" 1 ># 42 "../../../dist/include/dom/nsIDOMClassInfo.h" ># 1 "../../../dist/include/xpcom/nsIClassInfoImpl.h" 1 ># 39 "../../../dist/include/xpcom/nsIClassInfoImpl.h" ># 1 "../../../dist/include/xpcom/nsIClassInfo.h" 1 ># 29 "../../../dist/include/xpcom/nsIClassInfo.h" >class nsIClassInfo : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 43 "../../../dist/include/xpcom/nsIClassInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInterfaces(PRUint32 *count, nsIID * **array) = 0; ># 58 "../../../dist/include/xpcom/nsIClassInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHelperForLanguage(PRUint32 language, nsISupports **_retval) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetContractID(char * *aContractID) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetClassDescription(char * *aClassDescription) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetClassID(nsCID * *aClassID) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetImplementationLanguage(PRUint32 *aImplementationLanguage) = 0; > > > > > enum { SINGLETON = 1U }; > > enum { THREADSAFE = 2U }; > > enum { MAIN_THREAD_ONLY = 4U }; > > enum { DOM_OBJECT = 8U }; > > enum { PLUGIN_OBJECT = 16U }; > > enum { EAGER_CLASSINFO = 32U }; > > > > > > enum { CONTENT_NODE = 64U }; > > enum { RESERVED = 2147483648U }; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFlags(PRUint32 *aFlags) = 0; ># 120 "../../../dist/include/xpcom/nsIClassInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetClassIDNoAlloc(nsCID *aClassIDNoAlloc) = 0; > >}; > > template <class Dummy> const nsIID nsIClassInfo::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x986c11d0, 0xf340, 0x11d4, { 0x90, 0x75, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}; ># 40 "../../../dist/include/xpcom/nsIClassInfoImpl.h" 2 ># 43 "../../../dist/include/dom/nsIDOMClassInfo.h" 2 ># 1 "../../../dist/include/xpcom/nsVoidArray.h" 1 ># 43 "../../../dist/include/xpcom/nsVoidArray.h" ># 1 "../../../dist/include/xpcom/nsStringGlue.h" 1 ># 44 "../../../dist/include/xpcom/nsVoidArray.h" 2 > > > >typedef int (* nsVoidArrayComparatorFunc) > (const void* aElement1, const void* aElement2, void* aData); > > >typedef PRBool (* nsVoidArrayEnumFunc)(void* aElement, void *aData); > > >class nsVoidArray { >public: > nsVoidArray(); > nsVoidArray(PRInt32 aCount); > ~nsVoidArray(); > > nsVoidArray& operator=(const nsVoidArray& other); > > inline PRInt32 Count() const { > return mImpl ? mImpl->mCount : 0; > } > > inline PRInt32 GetArraySize() const { > return mImpl ? (PRInt32(mImpl->mBits) & kArraySizeMask) : 0; > } > > void* FastElementAt(PRInt32 aIndex) const > { > do { } while (0); > return mImpl->mArray[aIndex]; > } > > > > > void* ElementAt(PRInt32 aIndex) const > { > do { } while (0); > return SafeElementAt(aIndex); > } > > > void* SafeElementAt(PRInt32 aIndex) const > { > if (PRUint32(aIndex) >= PRUint32(Count())) > { > return 0; > } > > return mImpl->mArray[aIndex]; > } > > void* operator[](PRInt32 aIndex) const { return ElementAt(aIndex); } > > PRInt32 IndexOf(void* aPossibleElement) const; > > PRBool InsertElementAt(void* aElement, PRInt32 aIndex); > PRBool InsertElementsAt(const nsVoidArray &other, PRInt32 aIndex); > > PRBool ReplaceElementAt(void* aElement, PRInt32 aIndex); > > > PRBool MoveElement(PRInt32 aFrom, PRInt32 aTo); > > PRBool AppendElement(void* aElement) { > return InsertElementAt(aElement, Count()); > } > > PRBool AppendElements(nsVoidArray& aElements) { > return InsertElementsAt(aElements, Count()); > } > > PRBool RemoveElement(void* aElement); > PRBool RemoveElementsAt(PRInt32 aIndex, PRInt32 aCount); > PRBool RemoveElementAt(PRInt32 aIndex) { return RemoveElementsAt(aIndex,1); } > > void Clear(); > > PRBool SizeTo(PRInt32 aMin); > > > void Compact(); > > void Sort(nsVoidArrayComparatorFunc aFunc, void* aData); > > PRBool EnumerateForwards(nsVoidArrayEnumFunc aFunc, void* aData); > PRBool EnumerateBackwards(nsVoidArrayEnumFunc aFunc, void* aData); > >protected: > PRBool GrowArrayBy(PRInt32 aGrowBy); > > struct Impl { > > > > > > > PRUint32 mBits; > > > > > PRInt32 mCount; > > > > > void* mArray[1]; > }; > > Impl* mImpl; > > > > > > > enum { > kArrayOwnerMask = 1 << 31, > kArrayHasAutoBufferMask = 1 << 30, > kArraySizeMask = ~(kArrayOwnerMask | kArrayHasAutoBufferMask) > }; > enum { kAutoBufSize = 8 }; > > > > void SetArray(Impl *newImpl, PRInt32 aSize, PRInt32 aCount, PRBool aOwner, > PRBool aHasAuto); > inline PRBool IsArrayOwner() const { > return mImpl && (mImpl->mBits & kArrayOwnerMask); > } > inline PRBool HasAutoBuffer() const { > return mImpl && (mImpl->mBits & kArrayHasAutoBufferMask); > } > >private: > > nsVoidArray(const nsVoidArray& other); >}; > > > >class nsAutoVoidArray : public nsVoidArray { >public: > nsAutoVoidArray(); > > void ResetToAutoBuffer() > { > SetArray(reinterpret_cast<Impl*>(mAutoBuf), kAutoBufSize, 0, 0, > 1); > } > >protected: > > char mAutoBuf[sizeof(Impl) + (kAutoBufSize - 1) * sizeof(void*)]; >}; > > >class nsString; > >typedef int (* nsStringArrayComparatorFunc) > (const nsString* aElement1, const nsString* aElement2, void* aData); > >typedef PRBool (*nsStringArrayEnumFunc)(nsString& aElement, void *aData); > >class nsStringArray: private nsVoidArray >{ >public: > nsStringArray(void); > nsStringArray(PRInt32 aCount); > ~nsStringArray(void); > > nsStringArray& operator=(const nsStringArray& other); > > PRInt32 Count(void) const { > return nsVoidArray::Count(); > } > > void StringAt(PRInt32 aIndex, nsAString_internal& aString) const; > nsString* StringAt(PRInt32 aIndex) const; > nsString* operator[](PRInt32 aIndex) const { return StringAt(aIndex); } > > PRInt32 IndexOf(const nsAString_internal& aPossibleString) const; > > PRBool InsertStringAt(const nsAString_internal& aString, PRInt32 aIndex); > > PRBool ReplaceStringAt(const nsAString_internal& aString, PRInt32 aIndex); > > PRBool AppendString(const nsAString_internal& aString) { > return InsertStringAt(aString, Count()); > } > > PRBool RemoveString(const nsAString_internal& aString); > PRBool RemoveStringAt(PRInt32 aIndex); > void Clear(void); > > void Compact(void) { > nsVoidArray::Compact(); > } > > void Sort(void); > void Sort(nsStringArrayComparatorFunc aFunc, void* aData); > > PRBool EnumerateForwards(nsStringArrayEnumFunc aFunc, void* aData); > PRBool EnumerateBackwards(nsStringArrayEnumFunc aFunc, void* aData); > >private: > > nsStringArray(const nsStringArray& other); >}; > > >class nsCString; > >typedef int (* nsCStringArrayComparatorFunc) > (const nsCString* aElement1, const nsCString* aElement2, void* aData); > >typedef PRBool (*nsCStringArrayEnumFunc)(nsCString& aElement, void *aData); > >class nsCStringArray: private nsVoidArray >{ >public: > nsCStringArray(void); > nsCStringArray(PRInt32 aCount); > ~nsCStringArray(void); > > nsCStringArray& operator=(const nsCStringArray& other); > > > > > > > PRBool ParseString(const char* string, const char* delimiter); > > PRInt32 Count(void) const { > return nsVoidArray::Count(); > } > > void CStringAt(PRInt32 aIndex, nsACString_internal& aCString) const; > nsCString* CStringAt(PRInt32 aIndex) const; > nsCString* operator[](PRInt32 aIndex) const { return CStringAt(aIndex); } > > PRInt32 IndexOf(const nsACString_internal& aPossibleString) const; > > > PRInt32 IndexOfIgnoreCase(const nsACString_internal& aPossibleString) const; > > > PRBool InsertCStringAt(const nsACString_internal& aCString, PRInt32 aIndex); > > PRBool ReplaceCStringAt(const nsACString_internal& aCString, PRInt32 aIndex); > > PRBool AppendCString(const nsACString_internal& aCString) { > return InsertCStringAt(aCString, Count()); > } > > PRBool RemoveCString(const nsACString_internal& aCString); > > > PRBool RemoveCStringIgnoreCase(const nsACString_internal& aCString); > > > PRBool RemoveCStringAt(PRInt32 aIndex); > void Clear(void); > > void Compact(void) { > nsVoidArray::Compact(); > } > > void Sort(void); > > > void SortIgnoreCase(void); > > > void Sort(nsCStringArrayComparatorFunc aFunc, void* aData); > > PRBool EnumerateForwards(nsCStringArrayEnumFunc aFunc, void* aData); > PRBool EnumerateBackwards(nsCStringArrayEnumFunc aFunc, void* aData); > >private: > > nsCStringArray(const nsCStringArray& other); >}; ># 356 "../../../dist/include/xpcom/nsVoidArray.h" >class nsSmallVoidArray : private nsVoidArray >{ >public: > ~nsSmallVoidArray(); > > nsSmallVoidArray& operator=(nsSmallVoidArray& other); > void* operator[](PRInt32 aIndex) const { return ElementAt(aIndex); } > > PRInt32 GetArraySize() const; > > PRInt32 Count() const; > void* FastElementAt(PRInt32 aIndex) const; > > > > void* ElementAt(PRInt32 aIndex) const > { > do { } while (0); > return SafeElementAt(aIndex); > } > void* SafeElementAt(PRInt32 aIndex) const { > > if (PRUint32(aIndex) >= PRUint32(Count())) > { > return 0; > } > return FastElementAt(aIndex); > } > PRInt32 IndexOf(void* aPossibleElement) const; > PRBool InsertElementAt(void* aElement, PRInt32 aIndex); > PRBool InsertElementsAt(const nsVoidArray &other, PRInt32 aIndex); > PRBool ReplaceElementAt(void* aElement, PRInt32 aIndex); > PRBool MoveElement(PRInt32 aFrom, PRInt32 aTo); > PRBool AppendElement(void* aElement); > PRBool AppendElements(nsVoidArray& aElements) { > return InsertElementsAt(aElements, Count()); > } > PRBool RemoveElement(void* aElement); > PRBool RemoveElementsAt(PRInt32 aIndex, PRInt32 aCount); > PRBool RemoveElementAt(PRInt32 aIndex); > > void Clear(); > PRBool SizeTo(PRInt32 aMin); > void Compact(); > void Sort(nsVoidArrayComparatorFunc aFunc, void* aData); > > PRBool EnumerateForwards(nsVoidArrayEnumFunc aFunc, void* aData); > PRBool EnumerateBackwards(nsVoidArrayEnumFunc aFunc, void* aData); > >private: > > PRBool HasSingle() const > { > return !!(reinterpret_cast<PRWord>(mImpl) & 0x1); > } > void* GetSingle() const > { > do { } while (0); > return reinterpret_cast<void*> > (reinterpret_cast<PRWord>(mImpl) & ~0x1); > } > void SetSingle(void *aChild) > { > do { } while (0); > mImpl = reinterpret_cast<Impl*> > (reinterpret_cast<PRWord>(aChild) | 0x1); > } > PRBool IsEmpty() const > { > > return !mImpl; > } > const nsVoidArray* AsArray() const > { > do { } while (0); > return this; > } > nsVoidArray* AsArray() > { > do { } while (0); > return this; > } > PRBool EnsureArray(); >}; ># 44 "../../../dist/include/dom/nsIDOMClassInfo.h" 2 ># 1 "../../../dist/include/dom/nsDOMClassInfoID.h" 1 ># 47 "../../../dist/include/dom/nsDOMClassInfoID.h" >enum nsDOMClassInfoID { > > eDOMClassInfo_Window_id, > eDOMClassInfo_Location_id, > eDOMClassInfo_Navigator_id, > eDOMClassInfo_Plugin_id, > eDOMClassInfo_PluginArray_id, > eDOMClassInfo_MimeType_id, > eDOMClassInfo_MimeTypeArray_id, > eDOMClassInfo_BarProp_id, > eDOMClassInfo_History_id, > eDOMClassInfo_Screen_id, > eDOMClassInfo_DOMPrototype_id, > eDOMClassInfo_DOMConstructor_id, > > > eDOMClassInfo_XMLDocument_id, > eDOMClassInfo_DocumentType_id, > eDOMClassInfo_DOMImplementation_id, > eDOMClassInfo_DOMException_id, > eDOMClassInfo_DocumentFragment_id, > eDOMClassInfo_Element_id, > eDOMClassInfo_Attr_id, > eDOMClassInfo_Text_id, > eDOMClassInfo_Comment_id, > eDOMClassInfo_CDATASection_id, > eDOMClassInfo_ProcessingInstruction_id, > eDOMClassInfo_Notation_id, > eDOMClassInfo_NodeList_id, > eDOMClassInfo_NamedNodeMap_id, > > > eDOMClassInfo_DocumentStyleSheetList_id, > > > eDOMClassInfo_Event_id, > eDOMClassInfo_MutationEvent_id, > eDOMClassInfo_UIEvent_id, > eDOMClassInfo_MouseEvent_id, > eDOMClassInfo_KeyboardEvent_id, > eDOMClassInfo_PopupBlockedEvent_id, > > > eDOMClassInfo_HTMLDocument_id, > eDOMClassInfo_HTMLOptionsCollection_id, > eDOMClassInfo_HTMLFormControlCollection_id, > eDOMClassInfo_HTMLGenericCollection_id, > > > eDOMClassInfo_HTMLAnchorElement_id, > eDOMClassInfo_HTMLAppletElement_id, > eDOMClassInfo_HTMLAreaElement_id, > eDOMClassInfo_HTMLBRElement_id, > eDOMClassInfo_HTMLBaseElement_id, > eDOMClassInfo_HTMLBaseFontElement_id, > eDOMClassInfo_HTMLBodyElement_id, > eDOMClassInfo_HTMLButtonElement_id, > eDOMClassInfo_HTMLDListElement_id, > eDOMClassInfo_HTMLDelElement_id, > eDOMClassInfo_HTMLDirectoryElement_id, > eDOMClassInfo_HTMLDivElement_id, > eDOMClassInfo_HTMLEmbedElement_id, > eDOMClassInfo_HTMLFieldSetElement_id, > eDOMClassInfo_HTMLFontElement_id, > eDOMClassInfo_HTMLFormElement_id, > eDOMClassInfo_HTMLFrameElement_id, > eDOMClassInfo_HTMLFrameSetElement_id, > eDOMClassInfo_HTMLHRElement_id, > eDOMClassInfo_HTMLHeadElement_id, > eDOMClassInfo_HTMLHeadingElement_id, > eDOMClassInfo_HTMLHtmlElement_id, > eDOMClassInfo_HTMLIFrameElement_id, > eDOMClassInfo_HTMLImageElement_id, > eDOMClassInfo_HTMLInputElement_id, > eDOMClassInfo_HTMLInsElement_id, > eDOMClassInfo_HTMLIsIndexElement_id, > eDOMClassInfo_HTMLLIElement_id, > eDOMClassInfo_HTMLLabelElement_id, > eDOMClassInfo_HTMLLegendElement_id, > eDOMClassInfo_HTMLLinkElement_id, > eDOMClassInfo_HTMLMapElement_id, > eDOMClassInfo_HTMLMenuElement_id, > eDOMClassInfo_HTMLMetaElement_id, > eDOMClassInfo_HTMLOListElement_id, > eDOMClassInfo_HTMLObjectElement_id, > eDOMClassInfo_HTMLOptGroupElement_id, > eDOMClassInfo_HTMLOptionElement_id, > eDOMClassInfo_HTMLParagraphElement_id, > eDOMClassInfo_HTMLParamElement_id, > eDOMClassInfo_HTMLPreElement_id, > eDOMClassInfo_HTMLQuoteElement_id, > eDOMClassInfo_HTMLScriptElement_id, > eDOMClassInfo_HTMLSelectElement_id, > eDOMClassInfo_HTMLSpacerElement_id, > eDOMClassInfo_HTMLSpanElement_id, > eDOMClassInfo_HTMLStyleElement_id, > eDOMClassInfo_HTMLTableCaptionElement_id, > eDOMClassInfo_HTMLTableCellElement_id, > eDOMClassInfo_HTMLTableColElement_id, > eDOMClassInfo_HTMLTableElement_id, > eDOMClassInfo_HTMLTableRowElement_id, > eDOMClassInfo_HTMLTableSectionElement_id, > eDOMClassInfo_HTMLTextAreaElement_id, > eDOMClassInfo_HTMLTitleElement_id, > eDOMClassInfo_HTMLUListElement_id, > eDOMClassInfo_HTMLUnknownElement_id, > eDOMClassInfo_HTMLWBRElement_id, > > > eDOMClassInfo_CSSStyleRule_id, > eDOMClassInfo_CSSCharsetRule_id, > eDOMClassInfo_CSSImportRule_id, > eDOMClassInfo_CSSMediaRule_id, > eDOMClassInfo_CSSNameSpaceRule_id, > eDOMClassInfo_CSSRuleList_id, > eDOMClassInfo_CSSGroupRuleRuleList_id, > eDOMClassInfo_MediaList_id, > eDOMClassInfo_StyleSheetList_id, > eDOMClassInfo_CSSStyleSheet_id, > eDOMClassInfo_CSSStyleDeclaration_id, > eDOMClassInfo_ComputedCSSStyleDeclaration_id, > eDOMClassInfo_ROCSSPrimitiveValue_id, > > > eDOMClassInfo_Range_id, > eDOMClassInfo_Selection_id, > > > > eDOMClassInfo_XULDocument_id, > eDOMClassInfo_XULElement_id, > eDOMClassInfo_XULCommandDispatcher_id, > > eDOMClassInfo_XULControllers_id, > eDOMClassInfo_BoxObject_id, > > eDOMClassInfo_TreeSelection_id, > eDOMClassInfo_TreeContentView_id, > > > > eDOMClassInfo_Crypto_id, > eDOMClassInfo_CRMFObject_id, > eDOMClassInfo_Pkcs11_id, > > > eDOMClassInfo_TreeWalker_id, > > > eDOMClassInfo_CSSRect_id, > > > eDOMClassInfo_ChromeWindow_id, > > > eDOMClassInfo_CSSRGBColor_id, > > eDOMClassInfo_RangeException_id, > > > > eDOMClassInfo_CSSValueList_id, > > > eDOMClassInfo_ContentList_id, > > > eDOMClassInfo_XMLStylesheetProcessingInstruction_id, > > eDOMClassInfo_ImageDocument_id, > > > eDOMClassInfo_XULTemplateBuilder_id, > eDOMClassInfo_XULTreeBuilder_id, > > > > eDOMClassInfo_DOMStringList_id, > > > eDOMClassInfo_NameList_id, > > > eDOMClassInfo_TreeColumn_id, > eDOMClassInfo_TreeColumns_id, > > > eDOMClassInfo_CSSMozDocumentRule_id, > > eDOMClassInfo_BeforeUnloadEvent_id, > > > > eDOMClassInfo_SVGDocument_id, > > > eDOMClassInfo_SVGAElement_id, > eDOMClassInfo_SVGCircleElement_id, > eDOMClassInfo_SVGClipPathElement_id, > eDOMClassInfo_SVGDefsElement_id, > eDOMClassInfo_SVGDescElement_id, > eDOMClassInfo_SVGEllipseElement_id, > eDOMClassInfo_SVGFEBlendElement_id, > eDOMClassInfo_SVGFEColorMatrixElement_id, > eDOMClassInfo_SVGFEComponentTransferElement_id, > eDOMClassInfo_SVGFECompositeElement_id, > eDOMClassInfo_SVGFEConvolveMatrixElement_id, > eDOMClassInfo_SVGFEDiffuseLightingElement_id, > eDOMClassInfo_SVGFEDisplacementMapElement_id, > eDOMClassInfo_SVGFEDistantLightElement_id, > eDOMClassInfo_SVGFEFloodElement_id, > eDOMClassInfo_SVGFEFuncAElement_id, > eDOMClassInfo_SVGFEFuncBElement_id, > eDOMClassInfo_SVGFEFuncGElement_id, > eDOMClassInfo_SVGFEFuncRElement_id, > eDOMClassInfo_SVGFEGaussianBlurElement_id, > eDOMClassInfo_SVGFEImageElement_id, > eDOMClassInfo_SVGFEMergeElement_id, > eDOMClassInfo_SVGFEMergeNodeElement_id, > eDOMClassInfo_SVGFEMorphologyElement_id, > eDOMClassInfo_SVGFEOffsetElement_id, > eDOMClassInfo_SVGFEPointLightElement_id, > eDOMClassInfo_SVGFESpecularLightingElement_id, > eDOMClassInfo_SVGFESpotLightElement_id, > eDOMClassInfo_SVGFETileElement_id, > eDOMClassInfo_SVGFETurbulenceElement_id, > eDOMClassInfo_SVGFilterElement_id, > eDOMClassInfo_SVGGElement_id, > eDOMClassInfo_SVGImageElement_id, > eDOMClassInfo_SVGLinearGradientElement_id, > eDOMClassInfo_SVGLineElement_id, > eDOMClassInfo_SVGMarkerElement_id, > eDOMClassInfo_SVGMaskElement_id, > eDOMClassInfo_SVGMetadataElement_id, > eDOMClassInfo_SVGPathElement_id, > eDOMClassInfo_SVGPatternElement_id, > eDOMClassInfo_SVGPolygonElement_id, > eDOMClassInfo_SVGPolylineElement_id, > eDOMClassInfo_SVGRadialGradientElement_id, > eDOMClassInfo_SVGRectElement_id, > eDOMClassInfo_SVGScriptElement_id, > eDOMClassInfo_SVGStopElement_id, > eDOMClassInfo_SVGStyleElement_id, > eDOMClassInfo_SVGSVGElement_id, > eDOMClassInfo_SVGSwitchElement_id, > eDOMClassInfo_SVGSymbolElement_id, > eDOMClassInfo_SVGTextElement_id, > eDOMClassInfo_SVGTextPathElement_id, > eDOMClassInfo_SVGTitleElement_id, > eDOMClassInfo_SVGTSpanElement_id, > eDOMClassInfo_SVGUseElement_id, > > > eDOMClassInfo_SVGAngle_id, > eDOMClassInfo_SVGAnimatedAngle_id, > eDOMClassInfo_SVGAnimatedBoolean_id, > eDOMClassInfo_SVGAnimatedEnumeration_id, > eDOMClassInfo_SVGAnimatedInteger_id, > eDOMClassInfo_SVGAnimatedLength_id, > eDOMClassInfo_SVGAnimatedLengthList_id, > eDOMClassInfo_SVGAnimatedNumber_id, > eDOMClassInfo_SVGAnimatedNumberList_id, > eDOMClassInfo_SVGAnimatedPreserveAspectRatio_id, > eDOMClassInfo_SVGAnimatedRect_id, > eDOMClassInfo_SVGAnimatedString_id, > eDOMClassInfo_SVGAnimatedTransformList_id, > eDOMClassInfo_SVGEvent_id, > eDOMClassInfo_SVGException_id, > eDOMClassInfo_SVGLength_id, > eDOMClassInfo_SVGLengthList_id, > eDOMClassInfo_SVGMatrix_id, > eDOMClassInfo_SVGNumber_id, > eDOMClassInfo_SVGNumberList_id, > eDOMClassInfo_SVGPathSegArcAbs_id, > eDOMClassInfo_SVGPathSegArcRel_id, > eDOMClassInfo_SVGPathSegClosePath_id, > eDOMClassInfo_SVGPathSegCurvetoCubicAbs_id, > eDOMClassInfo_SVGPathSegCurvetoCubicRel_id, > eDOMClassInfo_SVGPathSegCurvetoCubicSmoothAbs_id, > eDOMClassInfo_SVGPathSegCurvetoCubicSmoothRel_id, > eDOMClassInfo_SVGPathSegCurvetoQuadraticAbs_id, > eDOMClassInfo_SVGPathSegCurvetoQuadraticRel_id, > eDOMClassInfo_SVGPathSegCurvetoQuadraticSmoothAbs_id, > eDOMClassInfo_SVGPathSegCurvetoQuadraticSmoothRel_id, > eDOMClassInfo_SVGPathSegLinetoAbs_id, > eDOMClassInfo_SVGPathSegLinetoHorizontalAbs_id, > eDOMClassInfo_SVGPathSegLinetoHorizontalRel_id, > eDOMClassInfo_SVGPathSegLinetoRel_id, > eDOMClassInfo_SVGPathSegLinetoVerticalAbs_id, > eDOMClassInfo_SVGPathSegLinetoVerticalRel_id, > eDOMClassInfo_SVGPathSegList_id, > eDOMClassInfo_SVGPathSegMovetoAbs_id, > eDOMClassInfo_SVGPathSegMovetoRel_id, > eDOMClassInfo_SVGPoint_id, > eDOMClassInfo_SVGPointList_id, > eDOMClassInfo_SVGPreserveAspectRatio_id, > eDOMClassInfo_SVGRect_id, > eDOMClassInfo_SVGTransform_id, > eDOMClassInfo_SVGTransformList_id, > eDOMClassInfo_SVGUnitTypes_id, > eDOMClassInfo_SVGZoomEvent_id, > > > > eDOMClassInfo_HTMLCanvasElement_id, > > eDOMClassInfo_CanvasRenderingContext2D_id, > eDOMClassInfo_CanvasGradient_id, > eDOMClassInfo_CanvasPattern_id, > > > > eDOMClassInfo_SmartCardEvent_id, > > > eDOMClassInfo_PageTransitionEvent_id, > > > eDOMClassInfo_WindowUtils_id, > > > eDOMClassInfo_XSLTProcessor_id, > > > eDOMClassInfo_XPathEvaluator_id, > eDOMClassInfo_XPathException_id, > eDOMClassInfo_XPathExpression_id, > eDOMClassInfo_XPathNSResolver_id, > eDOMClassInfo_XPathResult_id, > > > eDOMClassInfo_Storage_id, > eDOMClassInfo_StorageList_id, > eDOMClassInfo_StorageItem_id, > eDOMClassInfo_StorageEvent_id, > > eDOMClassInfo_WindowRoot_id, > > > eDOMClassInfo_DOMParser_id, > eDOMClassInfo_XMLSerializer_id, > > > eDOMClassInfo_XMLHttpProgressEvent_id, > eDOMClassInfo_XMLHttpRequest_id, > > eDOMClassInfo_ClientRect_id, > eDOMClassInfo_ClientRectList_id, > > > > > > > > eDOMClassInfo_SVGForeignObjectElement_id, > > > eDOMClassInfo_XULCommandEvent_id, > eDOMClassInfo_CommandEvent_id, > > eDOMClassInfo_OfflineResourceList_id, > eDOMClassInfo_LoadStatusList_id, > eDOMClassInfo_LoadStatus_id, > eDOMClassInfo_LoadStatusEvent_id, > > eDOMClassInfo_FileList_id, > eDOMClassInfo_File_id, > eDOMClassInfo_FileException_id, > > > eDOMClassInfo_ModalContentWindow_id, > > > eDOMClassInfo_DataContainerEvent_id, > > > > eDOMClassInfo_MessageEvent_id, > > > eDOMClassInfoIDCount >}; > > > > > >class nsIClassInfo; > >extern nsIClassInfo* >NS_GetDOMClassInfoInstance(nsDOMClassInfoID aID); ># 45 "../../../dist/include/dom/nsIDOMClassInfo.h" 2 ># 1 "../../../dist/include/xpconnect/nsIXPCScriptable.h" 1 ># 14 "../../../dist/include/xpconnect/nsIXPCScriptable.h" ># 1 "../../../dist/include/xpconnect/nsIXPConnect.h" 1 ># 18 "../../../dist/include/xpconnect/nsIXPConnect.h" ># 1 "../../../dist/include/xpconnect/xpccomponents.h" 1 ># 14 "../../../dist/include/xpconnect/xpccomponents.h" ># 1 "../../../dist/include/xpconnect/xpcexception.h" 1 ># 14 "../../../dist/include/xpconnect/xpcexception.h" ># 1 "../../../dist/include/xpcom/nsIException.h" 1 ># 29 "../../../dist/include/xpcom/nsIException.h" >class nsIStackFrame : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLanguage(PRUint32 *aLanguage) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLanguageName(char * *aLanguageName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFilename(char * *aFilename) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetName(char * *aName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLineNumber(PRInt32 *aLineNumber) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSourceLine(char * *aSourceLine) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCaller(nsIStackFrame * *aCaller) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIStackFrame::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x91d82105, 0x7c62, 0x4f8b, { 0x97, 0x79, 0x15, 0x42, 0x77, 0xc0, 0xee, 0x90 }}; ># 186 "../../../dist/include/xpcom/nsIException.h" >class nsIException : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMessageMoz(char * *aMessage) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetResult(nsresult *aResult) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetName(char * *aName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFilename(char * *aFilename) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLineNumber(PRUint32 *aLineNumber) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetColumnNumber(PRUint32 *aColumnNumber) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLocation(nsIStackFrame * *aLocation) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInner(nsIException * *aInner) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(nsISupports * *aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIException::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xf3a8d3b4, 0xc424, 0x4edc, { 0x8b, 0xf6, 0x89, 0x74, 0xc9, 0x83, 0xba, 0x78 }}; ># 15 "../../../dist/include/xpconnect/xpcexception.h" 2 ># 29 "../../../dist/include/xpconnect/xpcexception.h" >class nsIXPCException : public nsIException { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Initialize(const char *aMessage, nsresult aResult, const char *aName, nsIStackFrame *aLocation, nsISupports *aData, nsIException *aInner) = 0; > >}; > > template <class Dummy> const nsIID nsIXPCException::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xb2a34010, 0x3983, 0x11d3, { 0x98, 0x88, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 15 "../../../dist/include/xpconnect/xpccomponents.h" 2 > > > ># 1 "../../../dist/include/xpconnect/xpcjsid.h" 1 ># 25 "../../../dist/include/xpconnect/xpcjsid.h" >class nsIJSID : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetName(char * *aName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNumber(char * *aNumber) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetValid(PRBool *aValid) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Equals(nsIJSID *other, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Initialize(const char *idString) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) const nsID * __attribute__ ((regparm (0), cdecl)) GetID(void) = 0; > >}; > > template <class Dummy> const nsIID nsIJSID::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xbaedc96a, 0x9cee, 0x4b6b, { 0x91, 0x60, 0x90, 0xd2, 0x57, 0xb3, 0xc8, 0xef }}; ># 170 "../../../dist/include/xpconnect/xpcjsid.h" >class nsIJSIID : public nsIJSID { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > >}; > > template <class Dummy> const nsIID nsIJSIID::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xe76ec564, 0xa080, 0x4705, { 0x86, 0x09, 0x38, 0x4c, 0x75, 0x5e, 0xc9, 0x1e }}; ># 234 "../../../dist/include/xpconnect/xpcjsid.h" >class nsIJSCID : public nsIJSID { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateInstance(nsISupports **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetService(nsISupports **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIJSCID::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x26b2a374, 0x6eaf, 0x46d4, { 0xac, 0xaf, 0x1c, 0x6b, 0xe1, 0x52, 0xd3, 0x6b }}; ># 19 "../../../dist/include/xpconnect/xpccomponents.h" 2 > > > > > > > ># 1 "../../../dist/include/xpconnect/nsIScriptableInterfaces.h" 1 ># 14 "../../../dist/include/xpconnect/nsIScriptableInterfaces.h" ># 1 "../../../dist/include/xpcom/nsIInterfaceInfoManager.h" 1 ># 14 "../../../dist/include/xpcom/nsIInterfaceInfoManager.h" ># 1 "../../../dist/include/xpcom/nsIInterfaceInfo.h" 1 ># 17 "../../../dist/include/xpcom/nsIInterfaceInfo.h" >class nsXPTMethodInfo; >class nsXPTConstant; >class nsXPTParamInfo; >class nsXPTType; ># 29 "../../../dist/include/xpcom/nsIInterfaceInfo.h" >class nsIInterfaceInfo : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetName(char * *aName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInterfaceIID(nsIID * *aInterfaceIID) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsScriptable(PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetParent(nsIInterfaceInfo * *aParent) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMethodCount(PRUint16 *aMethodCount) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetConstantCount(PRUint16 *aConstantCount) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMethodInfo(PRUint16 index, const nsXPTMethodInfo * *info) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMethodInfoForName(const char *methodName, PRUint16 *index, const nsXPTMethodInfo * *info) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetConstant(PRUint16 index, const nsXPTConstant * *constant) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInfoForParam(PRUint16 methodIndex, const nsXPTParamInfo * param, nsIInterfaceInfo **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIIDForParam(PRUint16 methodIndex, const nsXPTParamInfo * param, nsIID * *_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTypeForParam(PRUint16 methodIndex, const nsXPTParamInfo * param, PRUint16 dimension, nsXPTType *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSizeIsArgNumberForParam(PRUint16 methodIndex, const nsXPTParamInfo * param, PRUint16 dimension, PRUint8 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLengthIsArgNumberForParam(PRUint16 methodIndex, const nsXPTParamInfo * param, PRUint16 dimension, PRUint8 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInterfaceIsArgNumberForParam(PRUint16 methodIndex, const nsXPTParamInfo * param, PRUint8 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsIID(const nsIID * IID, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNameShared(const char **name) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIIDShared(const nsIID * *iid) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsFunction(PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HasAncestor(const nsIID * iid, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIIDForParamNoAlloc(PRUint16 methodIndex, const nsXPTParamInfo * param, nsIID *iid) = 0; > >}; > > template <class Dummy> const nsIID nsIInterfaceInfo::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x215dbe04, 0x94a7, 0x11d2, { 0xba, 0x58, 0x00, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 }}; ># 15 "../../../dist/include/xpcom/nsIInterfaceInfoManager.h" 2 > > > ># 1 "../../../dist/include/xpcom/nsIEnumerator.h" 1 ># 10 "../../../dist/include/xpcom/nsIEnumerator.h" ># 1 "../../../dist/include/xpcom/nsISimpleEnumerator.h" 1 ># 34 "../../../dist/include/xpcom/nsISimpleEnumerator.h" >class nsISimpleEnumerator : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 52 "../../../dist/include/xpcom/nsISimpleEnumerator.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HasMoreElements(PRBool *_retval) = 0; ># 69 "../../../dist/include/xpcom/nsISimpleEnumerator.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNext(nsISupports **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISimpleEnumerator::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xd1899240, 0xf9d2, 0x11d2, { 0xbd, 0xd6, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}; ># 11 "../../../dist/include/xpcom/nsIEnumerator.h" 2 ># 26 "../../../dist/include/xpcom/nsIEnumerator.h" >class nsIEnumerator : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) First(void) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Next(void) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CurrentItem(nsISupports **_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsDone(void) = 0; > >}; > > template <class Dummy> const nsIID nsIEnumerator::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xad385286, 0xcbc4, 0x11d2, { 0x8c, 0xca, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }}; ># 145 "../../../dist/include/xpcom/nsIEnumerator.h" >class nsIBidirectionalEnumerator : public nsIEnumerator { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Last(void) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Prev(void) = 0; > >}; > > template <class Dummy> const nsIID nsIBidirectionalEnumerator::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x75f158a0, 0xcadd, 0x11d2, { 0x8c, 0xca, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }}; ># 19 "../../../dist/include/xpcom/nsIInterfaceInfoManager.h" 2 ># 37 "../../../dist/include/xpcom/nsIInterfaceInfoManager.h" >class nsIInterfaceInfoManager : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInfoForIID(const nsIID * iid, nsIInterfaceInfo **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInfoForName(const char *name, nsIInterfaceInfo **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIIDForName(const char *name, nsIID * *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNameForIID(const nsIID * iid, char **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EnumerateInterfaces(nsIEnumerator **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AutoRegisterInterfaces(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EnumerateInterfacesWhoseNamesStartWith(const char *prefix, nsIEnumerator **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIInterfaceInfoManager::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x8b161900, 0xbe2b, 0x11d2, { 0x98, 0x31, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 182 "../../../dist/include/xpcom/nsIInterfaceInfoManager.h" >class nsIInterfaceInfoSuperManager : public nsIInterfaceInfoManager { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddAdditionalManager(nsIInterfaceInfoManager *manager) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveAdditionalManager(nsIInterfaceInfoManager *manager) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HasAdditionalManagers(PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EnumerateAdditionalManagers(nsISimpleEnumerator **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIInterfaceInfoSuperManager::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x0ee22850, 0xbc6a, 0x11d5, { 0x91, 0x34, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}; ># 15 "../../../dist/include/xpconnect/nsIScriptableInterfaces.h" 2 ># 33 "../../../dist/include/xpconnect/nsIScriptableInterfaces.h" >class nsIScriptableInterfaces : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetManager(nsIInterfaceInfoManager * *aManager) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetManager(nsIInterfaceInfoManager * aManager) = 0; > >}; > > template <class Dummy> const nsIID nsIScriptableInterfaces::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x01c78c65, 0x31da, 0x456b, { 0x90, 0xbf, 0xda, 0x39, 0xd0, 0x9f, 0xdc, 0xbf }}; ># 120 "../../../dist/include/xpconnect/nsIScriptableInterfaces.h" >class nsIScriptableInterfacesByID : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > >}; > > template <class Dummy> const nsIID nsIScriptableInterfacesByID::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xc99cffac, 0x5aed, 0x4267, { 0xad, 0x2f, 0xf4, 0xa4, 0xc9, 0xd4, 0xa0, 0x81 }}; ># 27 "../../../dist/include/xpconnect/xpccomponents.h" 2 > > > > > > >class xpcIJSWeakReference; ># 47 "../../../dist/include/xpconnect/xpccomponents.h" >class nsIXPCComponents_Classes : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > >}; > > template <class Dummy> const nsIID nsIXPCComponents_Classes::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x978ff520, 0xd26c, 0x11d2, { 0x98, 0x42, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 115 "../../../dist/include/xpconnect/xpccomponents.h" >class nsIXPCComponents_ClassesByID : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > >}; > > template <class Dummy> const nsIID nsIXPCComponents_ClassesByID::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x336a9590, 0x4d19, 0x11d3, { 0x98, 0x93, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 183 "../../../dist/include/xpconnect/xpccomponents.h" >class nsIXPCComponents_Results : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > >}; > > template <class Dummy> const nsIID nsIXPCComponents_Results::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x2fc229a0, 0x5860, 0x11d3, { 0x98, 0x99, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 251 "../../../dist/include/xpconnect/xpccomponents.h" >class nsIXPCComponents_ID : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > >}; > > template <class Dummy> const nsIID nsIXPCComponents_ID::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x7994a6e0, 0xe028, 0x11d3, { 0x8f, 0x5d, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}; ># 319 "../../../dist/include/xpconnect/xpccomponents.h" >class nsIXPCComponents_Exception : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > >}; > > template <class Dummy> const nsIID nsIXPCComponents_Exception::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x5bf039c0, 0xe028, 0x11d3, { 0x8f, 0x5d, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}; ># 387 "../../../dist/include/xpconnect/xpccomponents.h" >class nsIXPCComponents_Constructor : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > >}; > > template <class Dummy> const nsIID nsIXPCComponents_Constructor::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x88655640, 0xe028, 0x11d3, { 0x8f, 0x5d, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}; ># 455 "../../../dist/include/xpconnect/xpccomponents.h" >class nsIXPCConstructor : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetClassID(nsIJSCID * *aClassID) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInterfaceID(nsIJSIID * *aInterfaceID) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInitializer(char * *aInitializer) = 0; > >}; > > template <class Dummy> const nsIID nsIXPCConstructor::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xc814ca20, 0xe0dc, 0x11d3, { 0x8f, 0x5f, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}; ># 555 "../../../dist/include/xpconnect/xpccomponents.h" >class nsIXPCComponents_utils_Sandbox : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > >}; > > template <class Dummy> const nsIID nsIXPCComponents_utils_Sandbox::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x4f8ae0dc, 0xd266, 0x4a32, { 0x87, 0x5b, 0x6a, 0x9d, 0xe7, 0x1a, 0x8c, 0xe9 }}; ># 622 "../../../dist/include/xpconnect/xpccomponents.h" >class nsIXPCComponents_Utils : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ReportError(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LookupMethod(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSandbox(nsIXPCComponents_utils_Sandbox * *aSandbox) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EvalInSandbox(const nsAString_internal & source) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Import(const nsACString_internal & registryLocation) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWeakReference(xpcIJSWeakReference **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ForceGC(void) = 0; > >}; > > template <class Dummy> const nsIID nsIXPCComponents_Utils::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xda2267f2, 0xd4cc, 0x448f, { 0x9d, 0x70, 0x1c, 0x7f, 0xe1, 0x34, 0xd2, 0xfe }}; ># 770 "../../../dist/include/xpconnect/xpccomponents.h" >class nsIXPCComponents : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInterfaces(nsIScriptableInterfaces * *aInterfaces) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInterfacesByID(nsIScriptableInterfacesByID * *aInterfacesByID) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetClasses(nsIXPCComponents_Classes * *aClasses) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetClassesByID(nsIXPCComponents_ClassesByID * *aClassesByID) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetStack(nsIStackFrame * *aStack) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetResults(nsIXPCComponents_Results * *aResults) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetManager(nsIComponentManager * *aManager) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetUtils(nsIXPCComponents_Utils * *aUtils) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetID(nsIXPCComponents_ID * *aID) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetException(nsIXPCComponents_Exception * *aException) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetConstructor(nsIXPCComponents_Constructor * *aConstructor) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsSuccessCode(nsresult result, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LookupMethod(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ReportError(void) = 0; > >}; > > template <class Dummy> const nsIID nsIXPCComponents::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x155809f1, 0x71f1, 0x47c5, { 0xbe, 0x97, 0xd8, 0x12, 0xba, 0x56, 0x04, 0x05 }}; ># 19 "../../../dist/include/xpconnect/nsIXPConnect.h" 2 ># 38 "../../../dist/include/xpconnect/nsIXPConnect.h" ># 1 "../../../dist/include/xpcom/nsIExceptionService.h" 1 ># 29 "../../../dist/include/xpcom/nsIExceptionService.h" >class nsIExceptionProvider : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetException(nsresult result, nsIException *defaultException, nsIException **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIExceptionProvider::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x0577744c, 0xc1d2, 0x47f2, { 0x8b, 0xcc, 0xce, 0x7a, 0x9e, 0x5a, 0x88, 0xfc }}; ># 103 "../../../dist/include/xpcom/nsIExceptionService.h" >class nsIExceptionManager : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetCurrentException(nsIException *error) = 0; > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCurrentException(nsIException **_retval) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetExceptionFromProvider(nsresult rc, nsIException *defaultException, nsIException **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIExceptionManager::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xefc9d00b, 0x231c, 0x4feb, { 0x85, 0x2c, 0xac, 0x01, 0x72, 0x66, 0xa4, 0x15 }}; ># 204 "../../../dist/include/xpcom/nsIExceptionService.h" >class nsIExceptionService : public nsIExceptionManager { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCurrentExceptionManager(nsIExceptionManager * *aCurrentExceptionManager) = 0; ># 222 "../../../dist/include/xpcom/nsIExceptionService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RegisterExceptionProvider(nsIExceptionProvider *provider, PRUint32 moduleCode) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) UnregisterExceptionProvider(nsIExceptionProvider *provider, PRUint32 moduleCode) = 0; > >}; > > template <class Dummy> const nsIID nsIExceptionService::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x35a88f54, 0xf267, 0x4414, { 0x92, 0xa7, 0x19, 0x1f, 0x64, 0x54, 0xab, 0x52 }}; ># 39 "../../../dist/include/xpconnect/nsIXPConnect.h" 2 > > > ># 1 "../../../dist/include/xpcom/nsIVariant.h" 1 ># 25 "../../../dist/include/xpcom/nsIVariant.h" >class nsIDataType : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > enum { VTYPE_INT8 = 0U }; > > enum { VTYPE_INT16 = 1U }; > > enum { VTYPE_INT32 = 2U }; > > enum { VTYPE_INT64 = 3U }; > > enum { VTYPE_UINT8 = 4U }; > > enum { VTYPE_UINT16 = 5U }; > > enum { VTYPE_UINT32 = 6U }; > > enum { VTYPE_UINT64 = 7U }; > > enum { VTYPE_FLOAT = 8U }; > > enum { VTYPE_DOUBLE = 9U }; > > enum { VTYPE_BOOL = 10U }; > > enum { VTYPE_CHAR = 11U }; > > enum { VTYPE_WCHAR = 12U }; > > enum { VTYPE_VOID = 13U }; > > enum { VTYPE_ID = 14U }; > > enum { VTYPE_DOMSTRING = 15U }; > > enum { VTYPE_CHAR_STR = 16U }; > > enum { VTYPE_WCHAR_STR = 17U }; > > enum { VTYPE_INTERFACE = 18U }; > > enum { VTYPE_INTERFACE_IS = 19U }; > > enum { VTYPE_ARRAY = 20U }; > > enum { VTYPE_STRING_SIZE_IS = 21U }; > > enum { VTYPE_WSTRING_SIZE_IS = 22U }; > > enum { VTYPE_UTF8STRING = 23U }; > > enum { VTYPE_CSTRING = 24U }; > > enum { VTYPE_ASTRING = 25U }; > > enum { VTYPE_EMPTY_ARRAY = 254U }; > > enum { VTYPE_EMPTY = 255U }; > >}; > > template <class Dummy> const nsIID nsIDataType::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x4d12e540, 0x83d7, 0x11d5, { 0x90, 0xed, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}; ># 149 "../../../dist/include/xpcom/nsIVariant.h" >class nsIVariant : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDataType(PRUint16 *aDataType) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsInt8(PRUint8 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsInt16(PRInt16 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsInt32(PRInt32 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsInt64(PRInt64 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsUint8(PRUint8 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsUint16(PRUint16 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsUint32(PRUint32 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsUint64(PRUint64 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsFloat(float *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsDouble(double *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsBool(PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsChar(char *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsWChar(PRUnichar *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsID(nsID *retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsAString(nsAString_internal & _retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsDOMString(nsAString_internal & _retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsACString(nsACString_internal & _retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsAUTF8String(nsACString_internal & _retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsString(char **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsWString(PRUnichar **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsISupports(nsISupports **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsInterface(nsIID * *iid, void * *iface) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsArray(PRUint16 *type, nsIID *iid, PRUint32 *count, void * *ptr) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsStringWithSize(PRUint32 *size, char **str) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsWStringWithSize(PRUint32 *size, PRUnichar **str) = 0; > >}; > > template <class Dummy> const nsIID nsIVariant::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x6c9eb060, 0x8c6a, 0x11d5, { 0x90, 0xf3, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}; ># 531 "../../../dist/include/xpcom/nsIVariant.h" >class nsIWritableVariant : public nsIVariant { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWritable(PRBool *aWritable) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetWritable(PRBool aWritable) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsInt8(PRUint8 aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsInt16(PRInt16 aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsInt32(PRInt32 aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsInt64(PRInt64 aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsUint8(PRUint8 aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsUint16(PRUint16 aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsUint32(PRUint32 aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsUint64(PRUint64 aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsFloat(float aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsDouble(double aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsBool(PRBool aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsChar(char aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsWChar(PRUnichar aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsID(const nsID & aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsAString(const nsAString_internal & aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsDOMString(const nsAString_internal & aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsACString(const nsACString_internal & aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsAUTF8String(const nsACString_internal & aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsString(const char *aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsWString(const PRUnichar *aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsISupports(nsISupports *aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsInterface(const nsIID & iid, void * iface) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsArray(PRUint16 type, const nsIID * iid, PRUint32 count, void * ptr) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsStringWithSize(PRUint32 size, const char *str) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsWStringWithSize(PRUint32 size, const PRUnichar *str) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsVoid(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsEmpty(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAsEmptyArray(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFromVariant(nsIVariant *aValue) = 0; > >}; > > template <class Dummy> const nsIID nsIWritableVariant::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x5586a590, 0x8c82, 0x11d5, { 0x90, 0xf3, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}; ># 43 "../../../dist/include/xpconnect/nsIXPConnect.h" 2 > > > > > > ># 1 "../../../dist/include/js/jspubtd.h" 1 ># 50 "../../../dist/include/xpconnect/nsIXPConnect.h" 2 ># 1 "../../../dist/include/xpcom/xptinfo.h" 1 ># 45 "../../../dist/include/xpcom/xptinfo.h" ># 1 "../../../dist/include/xpcom/xpt_struct.h" 1 ># 46 "../../../dist/include/xpcom/xpt_struct.h" ># 1 "../../../dist/include/xpcom/xpt_arena.h" 1 ># 46 "../../../dist/include/xpcom/xpt_arena.h" ># 1 "/usr/include/stdlib.h" 1 3 4 ># 33 "/usr/include/stdlib.h" 3 4 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 34 "/usr/include/stdlib.h" 2 3 4 > >extern "C" { > > > > > > ># 1 "/usr/include/bits/waitflags.h" 1 3 4 ># 43 "/usr/include/stdlib.h" 2 3 4 ># 1 "/usr/include/bits/waitstatus.h" 1 3 4 ># 67 "/usr/include/bits/waitstatus.h" 3 4 >union wait > { > int w_status; > struct > { > > unsigned int __w_termsig:7; > unsigned int __w_coredump:1; > unsigned int __w_retcode:8; > unsigned int:16; > > > > > > > > } __wait_terminated; > struct > { > > unsigned int __w_stopval:8; > unsigned int __w_stopsig:8; > unsigned int:16; > > > > > > > } __wait_stopped; > }; ># 44 "/usr/include/stdlib.h" 2 3 4 ># 96 "/usr/include/stdlib.h" 3 4 > > >typedef struct > { > int quot; > int rem; > } div_t; > > > >typedef struct > { > long int quot; > long int rem; > } ldiv_t; > > > > > > > >__extension__ typedef struct > { > long long int quot; > long long int rem; > } lldiv_t; > > ># 140 "/usr/include/stdlib.h" 3 4 >extern size_t __ctype_get_mb_cur_max (void) throw () ; > > > > >extern double atof (__const char *__nptr) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > >extern int atoi (__const char *__nptr) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > >extern long int atol (__const char *__nptr) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >__extension__ extern long long int atoll (__const char *__nptr) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >extern double strtod (__const char *__restrict __nptr, > char **__restrict __endptr) > throw () __attribute__ ((__nonnull__ (1))) ; > > > > > >extern float strtof (__const char *__restrict __nptr, > char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))) ; > >extern long double strtold (__const char *__restrict __nptr, > char **__restrict __endptr) > throw () __attribute__ ((__nonnull__ (1))) ; > > > > > >extern long int strtol (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))) ; > >extern unsigned long int strtoul (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))) ; > > > > >__extension__ >extern long long int strtoq (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))) ; > >__extension__ >extern unsigned long long int strtouq (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))) ; > > > > > >__extension__ >extern long long int strtoll (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))) ; > >__extension__ >extern unsigned long long int strtoull (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))) ; > ># 240 "/usr/include/stdlib.h" 3 4 >extern long int strtol_l (__const char *__restrict __nptr, > char **__restrict __endptr, int __base, > __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))) ; > >extern unsigned long int strtoul_l (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 4))) ; > >__extension__ >extern long long int strtoll_l (__const char *__restrict __nptr, > char **__restrict __endptr, int __base, > __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 4))) ; > >__extension__ >extern unsigned long long int strtoull_l (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 4))) ; > >extern double strtod_l (__const char *__restrict __nptr, > char **__restrict __endptr, __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 3))) ; > >extern float strtof_l (__const char *__restrict __nptr, > char **__restrict __endptr, __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 3))) ; > >extern long double strtold_l (__const char *__restrict __nptr, > char **__restrict __endptr, > __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 3))) ; > > > > > > >extern double __strtod_internal (__const char *__restrict __nptr, > char **__restrict __endptr, int __group) > throw () __attribute__ ((__nonnull__ (1))) ; >extern float __strtof_internal (__const char *__restrict __nptr, > char **__restrict __endptr, int __group) > throw () __attribute__ ((__nonnull__ (1))) ; >extern long double __strtold_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __group) > throw () __attribute__ ((__nonnull__ (1))) ; > >extern long int __strtol_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > throw () __attribute__ ((__nonnull__ (1))) ; > > > >extern unsigned long int __strtoul_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > throw () __attribute__ ((__nonnull__ (1))) ; > > > > >__extension__ >extern long long int __strtoll_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > throw () __attribute__ ((__nonnull__ (1))) ; > > > >__extension__ >extern unsigned long long int __strtoull_internal (__const char * > __restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > throw () __attribute__ ((__nonnull__ (1))) ; ># 429 "/usr/include/stdlib.h" 3 4 >extern char *l64a (long int __n) throw () ; > > >extern long int a64l (__const char *__s) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; ># 445 "/usr/include/stdlib.h" 3 4 >extern long int random (void) throw (); > > >extern void srandom (unsigned int __seed) throw (); > > > > > >extern char *initstate (unsigned int __seed, char *__statebuf, > size_t __statelen) throw () __attribute__ ((__nonnull__ (2))); > > > >extern char *setstate (char *__statebuf) throw () __attribute__ ((__nonnull__ (1))); > > > > > > > >struct random_data > { > int32_t *fptr; > int32_t *rptr; > int32_t *state; > int rand_type; > int rand_deg; > int rand_sep; > int32_t *end_ptr; > }; > >extern int random_r (struct random_data *__restrict __buf, > int32_t *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); > >extern int srandom_r (unsigned int __seed, struct random_data *__buf) > throw () __attribute__ ((__nonnull__ (2))); > >extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, > size_t __statelen, > struct random_data *__restrict __buf) > throw () __attribute__ ((__nonnull__ (2, 4))); > >extern int setstate_r (char *__restrict __statebuf, > struct random_data *__restrict __buf) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern int rand (void) throw (); > >extern void srand (unsigned int __seed) throw (); > > > > >extern int rand_r (unsigned int *__seed) throw (); > > > > > > > >extern double drand48 (void) throw (); >extern double erand48 (unsigned short int __xsubi[3]) throw () __attribute__ ((__nonnull__ (1))); > > >extern long int lrand48 (void) throw (); >extern long int nrand48 (unsigned short int __xsubi[3]) > throw () __attribute__ ((__nonnull__ (1))); > > >extern long int mrand48 (void) throw (); >extern long int jrand48 (unsigned short int __xsubi[3]) > throw () __attribute__ ((__nonnull__ (1))); > > >extern void srand48 (long int __seedval) throw (); >extern unsigned short int *seed48 (unsigned short int __seed16v[3]) > throw () __attribute__ ((__nonnull__ (1))); >extern void lcong48 (unsigned short int __param[7]) throw () __attribute__ ((__nonnull__ (1))); > > > > > >struct drand48_data > { > unsigned short int __x[3]; > unsigned short int __old_x[3]; > unsigned short int __c; > unsigned short int __init; > unsigned long long int __a; > }; > > >extern int drand48_r (struct drand48_data *__restrict __buffer, > double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); >extern int erand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int lrand48_r (struct drand48_data *__restrict __buffer, > long int *__restrict __result) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern int nrand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > long int *__restrict __result) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int mrand48_r (struct drand48_data *__restrict __buffer, > long int *__restrict __result) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern int jrand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > long int *__restrict __result) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int srand48_r (long int __seedval, struct drand48_data *__buffer) > throw () __attribute__ ((__nonnull__ (2))); > >extern int seed48_r (unsigned short int __seed16v[3], > struct drand48_data *__buffer) throw () __attribute__ ((__nonnull__ (1, 2))); > >extern int lcong48_r (unsigned short int __param[7], > struct drand48_data *__buffer) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > > > > > >extern void *malloc (size_t __size) throw () __attribute__ ((__malloc__)) ; > >extern void *calloc (size_t __nmemb, size_t __size) > throw () __attribute__ ((__malloc__)) ; > > > > > > > >extern void *realloc (void *__ptr, size_t __size) > throw () __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); > >extern void free (void *__ptr) throw (); > > > > >extern void cfree (void *__ptr) throw (); > > > ># 1 "/usr/include/alloca.h" 1 3 4 ># 25 "/usr/include/alloca.h" 3 4 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 26 "/usr/include/alloca.h" 2 3 4 > >extern "C" { > > > > > >extern void *alloca (size_t __size) throw (); > > > > > >} ># 613 "/usr/include/stdlib.h" 2 3 4 > > > > >extern void *valloc (size_t __size) throw () __attribute__ ((__malloc__)) ; > > > > >extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) > throw () __attribute__ ((__nonnull__ (1))) ; > > > > >extern void abort (void) throw () __attribute__ ((__noreturn__)); > > > >extern int atexit (void (*__func) (void)) throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) > throw () __attribute__ ((__nonnull__ (1))); > > > > > > >extern void exit (int __status) throw () __attribute__ ((__noreturn__)); > > > > > > >extern void _Exit (int __status) throw () __attribute__ ((__noreturn__)); > > > > > > >extern char *getenv (__const char *__name) throw () __attribute__ ((__nonnull__ (1))) ; > > > > >extern char *__secure_getenv (__const char *__name) > throw () __attribute__ ((__nonnull__ (1))) ; > > > > > >extern int putenv (char *__string) throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern int setenv (__const char *__name, __const char *__value, int __replace) > throw () __attribute__ ((__nonnull__ (2))); > > >extern int unsetenv (__const char *__name) throw (); > > > > > > >extern int clearenv (void) throw (); ># 698 "/usr/include/stdlib.h" 3 4 >extern char *mktemp (char *__template) throw () __attribute__ ((__nonnull__ (1))) ; ># 709 "/usr/include/stdlib.h" 3 4 >extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; ># 719 "/usr/include/stdlib.h" 3 4 >extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) ; ># 729 "/usr/include/stdlib.h" 3 4 >extern char *mkdtemp (char *__template) throw () __attribute__ ((__nonnull__ (1))) ; > > > > > > > > >extern int system (__const char *__command) ; > > > > > > > >extern char *canonicalize_file_name (__const char *__name) > throw () __attribute__ ((__nonnull__ (1))) ; ># 757 "/usr/include/stdlib.h" 3 4 >extern char *realpath (__const char *__restrict __name, > char *__restrict __resolved) throw () ; > > > > > > >typedef int (*__compar_fn_t) (__const void *, __const void *); > > >typedef __compar_fn_t comparison_fn_t; > > > > > > >extern void *bsearch (__const void *__key, __const void *__base, > size_t __nmemb, size_t __size, __compar_fn_t __compar) > __attribute__ ((__nonnull__ (1, 2, 5))) ; > > > >extern void qsort (void *__base, size_t __nmemb, size_t __size, > __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); > > > >extern int abs (int __x) throw () __attribute__ ((__const__)) ; >extern long int labs (long int __x) throw () __attribute__ ((__const__)) ; > > > >__extension__ extern long long int llabs (long long int __x) > throw () __attribute__ ((__const__)) ; > > > > > > > >extern div_t div (int __numer, int __denom) > throw () __attribute__ ((__const__)) ; >extern ldiv_t ldiv (long int __numer, long int __denom) > throw () __attribute__ ((__const__)) ; > > > > >__extension__ extern lldiv_t lldiv (long long int __numer, > long long int __denom) > throw () __attribute__ ((__const__)) ; > ># 822 "/usr/include/stdlib.h" 3 4 >extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) ; > > > > >extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) ; > > > > >extern char *gcvt (double __value, int __ndigit, char *__buf) > throw () __attribute__ ((__nonnull__ (3))) ; > > > > >extern char *qecvt (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign) > throw () __attribute__ ((__nonnull__ (3, 4))) ; >extern char *qfcvt (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign) > throw () __attribute__ ((__nonnull__ (3, 4))) ; >extern char *qgcvt (long double __value, int __ndigit, char *__buf) > throw () __attribute__ ((__nonnull__ (3))) ; > > > > >extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign, char *__restrict __buf, > size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5))); >extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign, char *__restrict __buf, > size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5))); > >extern int qecvt_r (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign, > char *__restrict __buf, size_t __len) > throw () __attribute__ ((__nonnull__ (3, 4, 5))); >extern int qfcvt_r (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign, > char *__restrict __buf, size_t __len) > throw () __attribute__ ((__nonnull__ (3, 4, 5))); > > > > > > > >extern int mblen (__const char *__s, size_t __n) throw () ; > > >extern int mbtowc (wchar_t *__restrict __pwc, > __const char *__restrict __s, size_t __n) throw () ; > > >extern int wctomb (char *__s, wchar_t __wchar) throw () ; > > > >extern size_t mbstowcs (wchar_t *__restrict __pwcs, > __const char *__restrict __s, size_t __n) throw (); > >extern size_t wcstombs (char *__restrict __s, > __const wchar_t *__restrict __pwcs, size_t __n) > throw (); > > > > > > > > >extern int rpmatch (__const char *__response) throw () __attribute__ ((__nonnull__ (1))) ; ># 910 "/usr/include/stdlib.h" 3 4 >extern int getsubopt (char **__restrict __optionp, > char *__const *__restrict __tokens, > char **__restrict __valuep) > throw () __attribute__ ((__nonnull__ (1, 2, 3))) ; > > > > > >extern void setkey (__const char *__key) throw () __attribute__ ((__nonnull__ (1))); > > > > > > > >extern int posix_openpt (int __oflag) ; > > > > > > > >extern int grantpt (int __fd) throw (); > > > >extern int unlockpt (int __fd) throw (); > > > > >extern char *ptsname (int __fd) throw () ; > > > > > > >extern int ptsname_r (int __fd, char *__buf, size_t __buflen) > throw () __attribute__ ((__nonnull__ (2))); > > >extern int getpt (void); > > > > > > >extern int getloadavg (double __loadavg[], int __nelem) > throw () __attribute__ ((__nonnull__ (1))); ># 978 "/usr/include/stdlib.h" 3 4 >} ># 47 "../../../dist/include/xpcom/xpt_arena.h" 2 ># 56 "../../../dist/include/xpcom/xpt_arena.h" >extern "C" { > > > > > >typedef struct XPTArena XPTArena; > >XPTArena * >XPT_NewArena(PRUint32 block_size, size_t alignment, const char* name); > >void >XPT_DestroyArena(XPTArena *arena); > >void >XPT_DumpStats(XPTArena *arena); > >void * >XPT_ArenaMalloc(XPTArena *arena, size_t size); > >char * >XPT_ArenaStrDup(XPTArena *arena, const char * s); > >void >XPT_NotifyDoneLoading(XPTArena *arena); > >void >XPT_ArenaFree(XPTArena *arena, void* block); ># 118 "../../../dist/include/xpcom/xpt_arena.h" >} ># 47 "../../../dist/include/xpcom/xpt_struct.h" 2 > >extern "C" { ># 61 "../../../dist/include/xpcom/xpt_struct.h" >typedef struct XPTHeader XPTHeader; >typedef struct XPTInterfaceDirectoryEntry XPTInterfaceDirectoryEntry; >typedef struct XPTInterfaceDescriptor XPTInterfaceDescriptor; >typedef struct XPTConstDescriptor XPTConstDescriptor; >typedef struct XPTMethodDescriptor XPTMethodDescriptor; >typedef struct XPTParamDescriptor XPTParamDescriptor; >typedef struct XPTTypeDescriptor XPTTypeDescriptor; >typedef struct XPTTypeDescriptorPrefix XPTTypeDescriptorPrefix; >typedef struct XPTString XPTString; >typedef struct XPTAnnotation XPTAnnotation; ># 104 "../../../dist/include/xpcom/xpt_struct.h" >struct XPTHeader { > PRUint8 magic[16]; > PRUint8 major_version; > PRUint8 minor_version; > PRUint16 num_interfaces; > PRUint32 file_length; > XPTInterfaceDirectoryEntry *interface_directory; > PRUint32 data_pool; > XPTAnnotation *annotations; >}; ># 173 "../../../dist/include/xpcom/xpt_struct.h" >typedef struct { > const char* str; > PRUint8 major; > PRUint8 minor; > PRUint16 code; >} XPT_TYPELIB_VERSIONS_STRUCT; ># 187 "../../../dist/include/xpcom/xpt_struct.h" >extern PRUint16 >XPT_ParseVersionString(const char* str, PRUint8* major, PRUint8* minor); > >extern XPTHeader * >XPT_NewHeader(XPTArena *arena, PRUint16 num_interfaces, > PRUint8 major_version, PRUint8 minor_version); > >extern void >XPT_FreeHeader(XPTArena *arena, XPTHeader* aHeader); > > >extern PRUint32 >XPT_SizeOfHeader(XPTHeader *header); > > >extern PRUint32 >XPT_SizeOfHeaderBlock(XPTHeader *header); > > > > > > > >struct XPTInterfaceDirectoryEntry { > nsID iid; > char *name; > char *name_space; > XPTInterfaceDescriptor *interface_descriptor; > > > > > >}; > >extern PRBool >XPT_FillInterfaceDirectoryEntry(XPTArena *arena, > XPTInterfaceDirectoryEntry *ide, > nsID *iid, char *name, char *name_space, > XPTInterfaceDescriptor *descriptor); > >extern void >XPT_DestroyInterfaceDirectoryEntry(XPTArena *arena, > XPTInterfaceDirectoryEntry* ide); > > > > > >struct XPTInterfaceDescriptor { > PRUint16 parent_interface; > PRUint16 num_methods; > XPTMethodDescriptor *method_descriptors; > PRUint16 num_constants; > XPTConstDescriptor *const_descriptors; > PRUint8 flags; ># 261 "../../../dist/include/xpcom/xpt_struct.h" > XPTTypeDescriptor *additional_types; > PRUint16 num_additional_types; >}; ># 274 "../../../dist/include/xpcom/xpt_struct.h" >extern PRBool >XPT_GetInterfaceIndexByName(XPTInterfaceDirectoryEntry *ide_block, > PRUint16 num_interfaces, char *name, > PRUint16 *indexp); > >extern XPTInterfaceDescriptor * >XPT_NewInterfaceDescriptor(XPTArena *arena, > PRUint16 parent_interface, PRUint16 num_methods, > PRUint16 num_constants, PRUint8 flags); > >extern void >XPT_FreeInterfaceDescriptor(XPTArena *arena, XPTInterfaceDescriptor* id); > >extern PRBool >XPT_InterfaceDescriptorAddTypes(XPTArena *arena, XPTInterfaceDescriptor *id, > PRUint16 num); > >extern PRBool >XPT_InterfaceDescriptorAddMethods(XPTArena *arena, XPTInterfaceDescriptor *id, > PRUint16 num); > >extern PRBool >XPT_InterfaceDescriptorAddConsts(XPTArena *arena, XPTInterfaceDescriptor *id, > PRUint16 num); > > > > > >struct XPTString { > PRUint16 length; > char *bytes; >}; > >extern XPTString * >XPT_NewString(XPTArena *arena, PRUint16 length, char *bytes); > >extern XPTString * >XPT_NewStringZ(XPTArena *arena, char *bytes); ># 332 "../../../dist/include/xpcom/xpt_struct.h" >struct XPTTypeDescriptorPrefix { > PRUint8 flags; >}; ># 352 "../../../dist/include/xpcom/xpt_struct.h" >enum XPTTypeDescriptorTags { > TD_INT8 = 0, > TD_INT16 = 1, > TD_INT32 = 2, > TD_INT64 = 3, > TD_UINT8 = 4, > TD_UINT16 = 5, > TD_UINT32 = 6, > TD_UINT64 = 7, > TD_FLOAT = 8, > TD_DOUBLE = 9, > TD_BOOL = 10, > TD_CHAR = 11, > TD_WCHAR = 12, > TD_VOID = 13, > TD_PNSIID = 14, > TD_DOMSTRING = 15, > TD_PSTRING = 16, > TD_PWSTRING = 17, > TD_INTERFACE_TYPE = 18, > TD_INTERFACE_IS_TYPE = 19, > TD_ARRAY = 20, > TD_PSTRING_SIZE_IS = 21, > TD_PWSTRING_SIZE_IS = 22, > TD_UTF8STRING = 23, > TD_CSTRING = 24, > TD_ASTRING = 25 >}; > >struct XPTTypeDescriptor { > XPTTypeDescriptorPrefix prefix; > PRUint8 argnum; > PRUint8 argnum2; > union { > PRUint16 iface; > PRUint16 additional_type; > } type; >}; ># 414 "../../../dist/include/xpcom/xpt_struct.h" >union XPTConstValue { > PRInt8 i8; > PRUint8 ui8; > PRInt16 i16; > PRUint16 ui16; > PRInt32 i32; > PRUint32 ui32; > PRInt64 i64; > PRUint64 ui64; > float flt; > double dbl; > PRBool bul; > char ch; > PRUint16 wch; > nsID *iid; > XPTString *string; > char *str; > PRUint16 *wstr; >}; > >struct XPTConstDescriptor { > char *name; > XPTTypeDescriptor type; > union XPTConstValue value; >}; > > > > > >struct XPTParamDescriptor { > PRUint8 flags; > XPTTypeDescriptor type; >}; ># 465 "../../../dist/include/xpcom/xpt_struct.h" >extern PRBool >XPT_FillParamDescriptor(XPTArena *arena, > XPTParamDescriptor *pd, PRUint8 flags, > XPTTypeDescriptor *type); > > > > > >struct XPTMethodDescriptor { > char *name; > XPTParamDescriptor *params; > XPTParamDescriptor *result; > PRUint8 flags; > PRUint8 num_args; >}; ># 496 "../../../dist/include/xpcom/xpt_struct.h" >extern PRBool >XPT_FillMethodDescriptor(XPTArena *arena, > XPTMethodDescriptor *meth, PRUint8 flags, char *name, > PRUint8 num_args); ># 520 "../../../dist/include/xpcom/xpt_struct.h" >struct XPTAnnotation { > XPTAnnotation *next; > PRUint8 flags; > > XPTString *creator; > XPTString *private_data; >}; > > > > > > >extern XPTAnnotation * >XPT_NewAnnotation(XPTArena *arena, PRUint8 flags, XPTString *creator, > XPTString *private_data); > >} ># 46 "../../../dist/include/xpcom/xptinfo.h" 2 > >class nsIInterfaceInfoManager; > > > > > >class nsXPTType : public XPTTypeDescriptorPrefix >{ > >public: > nsXPTType() > {} > nsXPTType(const XPTTypeDescriptorPrefix& prefix) > {*(XPTTypeDescriptorPrefix*)this = prefix;} > > nsXPTType(const uint8& prefix) > {*(uint8*)this = prefix;} > > nsXPTType& operator=(uint8 val) > {flags = val; return *this;} > > nsXPTType& operator=(const nsXPTType& other) > {flags = other.flags; return *this;} > > operator uint8() const > {return flags;} > > PRBool IsPointer() const > {return 0 != ((flags & 0x80));} > > PRBool IsUniquePointer() const > {return 0 != ((flags & 0x40));} > > PRBool IsReference() const > {return 0 != ((flags & 0x20));} > > PRBool IsArithmetic() const > {return flags <= T_WCHAR;} > > PRBool IsInterfacePointer() const > { switch (TagPart()) { > default: > return 0; > case T_INTERFACE: > case T_INTERFACE_IS: > return 1; > } > } > > PRBool IsArray() const > {return TagPart() == T_ARRAY;} > > > > > PRBool IsDependent() const > { switch (TagPart()) { > default: > return 0; > case T_INTERFACE_IS: > case TD_ARRAY: > case T_PSTRING_SIZE_IS: > case T_PWSTRING_SIZE_IS: > return 1; > } > } > > uint8 TagPart() const > {return (uint8) (flags & (~0xe0));} > > enum > { > T_I8 = TD_INT8 , > T_I16 = TD_INT16 , > T_I32 = TD_INT32 , > T_I64 = TD_INT64 , > T_U8 = TD_UINT8 , > T_U16 = TD_UINT16 , > T_U32 = TD_UINT32 , > T_U64 = TD_UINT64 , > T_FLOAT = TD_FLOAT , > T_DOUBLE = TD_DOUBLE , > T_BOOL = TD_BOOL , > T_CHAR = TD_CHAR , > T_WCHAR = TD_WCHAR , > T_VOID = TD_VOID , > T_IID = TD_PNSIID , > T_DOMSTRING = TD_DOMSTRING , > T_CHAR_STR = TD_PSTRING , > T_WCHAR_STR = TD_PWSTRING , > T_INTERFACE = TD_INTERFACE_TYPE , > T_INTERFACE_IS = TD_INTERFACE_IS_TYPE, > T_ARRAY = TD_ARRAY , > T_PSTRING_SIZE_IS = TD_PSTRING_SIZE_IS , > T_PWSTRING_SIZE_IS = TD_PWSTRING_SIZE_IS , > T_UTF8STRING = TD_UTF8STRING , > T_CSTRING = TD_CSTRING , > T_ASTRING = TD_ASTRING > }; > >}; > >class nsXPTParamInfo : public XPTParamDescriptor >{ > >public: > nsXPTParamInfo(const XPTParamDescriptor& desc) > {*(XPTParamDescriptor*)this = desc;} > > > PRBool IsIn() const {return 0 != ((flags & 0x80));} > PRBool IsOut() const {return 0 != ((flags & 0x40));} > PRBool IsRetval() const {return 0 != ((flags & 0x20));} > PRBool IsShared() const {return 0 != ((flags & 0x10));} > PRBool IsDipper() const {return 0 != ((flags & 0x08));} > PRBool IsOptional() const {return 0 != ((flags & 0x04));} > const nsXPTType GetType() const {return type.prefix;} > > > >private: > nsXPTParamInfo(); > >}; > >class nsXPTMethodInfo : public XPTMethodDescriptor >{ > >public: > nsXPTMethodInfo(const XPTMethodDescriptor& desc) > {*(XPTMethodDescriptor*)this = desc;} > > PRBool IsGetter() const {return 0 != ((flags & 0x80) );} > PRBool IsSetter() const {return 0 != ((flags & 0x40) );} > PRBool IsNotXPCOM() const {return 0 != ((flags & 0x20));} > PRBool IsConstructor() const {return 0 != ((flags & 0x10) );} > PRBool IsHidden() const {return 0 != ((flags & 0x08) );} > const char* GetName() const {return name;} > uint8 GetParamCount() const {return num_args;} > > const nsXPTParamInfo GetParam(uint8 idx) const > { > do { } while (0); > return params[idx]; > } > const nsXPTParamInfo GetResult() const > {return *result;} >private: > nsXPTMethodInfo(); > >}; > > > >struct nsXPTCMiniVariant; > >class nsXPTConstant : public XPTConstDescriptor >{ > >public: > nsXPTConstant(const XPTConstDescriptor& desc) > {*(XPTConstDescriptor*)this = desc;} > > const char* GetName() const > {return name;} > > const nsXPTType GetType() const > {return type.prefix;} > > > > > > const nsXPTCMiniVariant* GetValue() const > {return (nsXPTCMiniVariant*) &value;} >private: > nsXPTConstant(); > >}; ># 51 "../../../dist/include/xpconnect/nsIXPConnect.h" 2 ># 1 "../../../dist/include/xpconnect/nsAXPCNativeCallContext.h" 1 ># 45 "../../../dist/include/xpconnect/nsAXPCNativeCallContext.h" >class nsIXPConnectWrappedNative; > > > > > > >class nsAXPCNativeCallContext >{ >public: > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCallee(nsISupports **aResult) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCalleeMethodIndex(PRUint16 *aResult) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCalleeWrapper(nsIXPConnectWrappedNative **aResult) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetJSContext(JSContext **aResult) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetArgc(PRUint32 *aResult) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetArgvPtr(jsval **aResult) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRetValPtr(jsval **aResult) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetExceptionWasThrown(PRBool *aResult) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetExceptionWasThrown(PRBool aValue) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetReturnValueWasSet(PRBool *aResult) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetReturnValueWasSet(PRBool aValue) = 0; > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCalleeInterface(nsIInterfaceInfo **aResult) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCalleeClassInfo(nsIClassInfo **aResult) = 0; >}; ># 52 "../../../dist/include/xpconnect/nsIXPConnect.h" 2 ># 118 "../../../dist/include/xpconnect/nsIXPConnect.h" >class nsIXPCScriptable; > >class nsIXPConnect; > >class nsIXPConnectWrappedNative; > >class nsIInterfaceInfo; > >class nsIXPCSecurityManager; > >class nsIPrincipal; > >class nsCycleCollectionTraversalCallback; >class nsScriptObjectTracer; ># 141 "../../../dist/include/xpconnect/nsIXPConnect.h" >class nsIXPConnectJSObjectHolder : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetJSObject(JSObject * *aJSObject) = 0; > >}; > > template <class Dummy> const nsIID nsIXPConnectJSObjectHolder::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x8916a320, 0xd118, 0x11d3, { 0x8f, 0x3a, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}; ># 214 "../../../dist/include/xpconnect/nsIXPConnect.h" >class nsIXPConnectWrappedNative : public nsIXPConnectJSObjectHolder { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNative(nsISupports * *aNative) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetJSObjectPrototype(JSObject * *aJSObjectPrototype) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetXPConnect(nsIXPConnect * *aXPConnect) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FindInterfaceWithMember(jsval nameID, nsIInterfaceInfo **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FindInterfaceWithName(jsval nameID, nsIInterfaceInfo **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DebugDump(PRInt16 depth) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RefreshPrototype(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSecurityInfoAddress(void* * *_retval) = 0; > > > > > nsISupports* Native() const { return mIdentity; } > > > > > > > > virtual nsIPrincipal* GetObjectPrincipal() const = 0; > > >protected: > nsISupports *mIdentity; >public: >}; > > template <class Dummy> const nsIID nsIXPConnectWrappedNative::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x7021d99d, 0x6344, 0x4cc0, { 0x96, 0xe7, 0x94, 0x3e, 0xd5, 0x87, 0x92, 0xb8 }}; ># 383 "../../../dist/include/xpconnect/nsIXPConnect.h" ># 1 "../../../dist/include/xpcom/nsCOMPtr.h" 1 ># 384 "../../../dist/include/xpconnect/nsIXPConnect.h" 2 >inline >const nsQueryInterface >do_QueryWrappedNative(nsIXPConnectWrappedNative *aWrappedNative) >{ > return nsQueryInterface(aWrappedNative->Native()); >} >inline >const nsQueryInterfaceWithError >do_QueryWrappedNative(nsIXPConnectWrappedNative *aWrappedNative, > nsresult *aError) >{ > return nsQueryInterfaceWithError(aWrappedNative->Native(), aError); >} ># 405 "../../../dist/include/xpconnect/nsIXPConnect.h" >class nsIXPConnectWrappedJS : public nsIXPConnectJSObjectHolder { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInterfaceInfo(nsIInterfaceInfo * *aInterfaceInfo) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInterfaceIID(nsIID * *aInterfaceIID) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DebugDump(PRInt16 depth) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AggregatedQueryInterface(const nsIID & uuid, void * *result) = 0; > >}; > > template <class Dummy> const nsIID nsIXPConnectWrappedJS::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xbed52030, 0xbca6, 0x11d2, { 0xba, 0x79, 0x00, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 }}; ># 585 "../../../dist/include/xpconnect/nsIXPConnect.h" >class nsIXPCWrappedJSObjectGetter : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNeverCalled(nsISupports * *aNeverCalled) = 0; > >}; > > template <class Dummy> const nsIID nsIXPCWrappedJSObjectGetter::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x254bb2e0, 0x6439, 0x11d4, { 0x8f, 0xe0, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}; ># 659 "../../../dist/include/xpconnect/nsIXPConnect.h" >class nsIXPCFunctionThisTranslator : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) TranslateThis(nsISupports *aInitialThis, nsIInterfaceInfo *aInterfaceInfo, PRUint16 aMethodIndex, PRBool *aHideFirstParamFromJS, nsIID * *aIIDOfResult, nsISupports **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIXPCFunctionThisTranslator::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x039ef260, 0x2a0d, 0x11d5, { 0x90, 0xa7, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}; ># 737 "../../../dist/include/xpconnect/nsIXPConnect.h" >class nsIXPConnect : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > static const nsID& GetCID() {static const nsID cid = { 0xcb6593e0, 0xf9b2, 0x11d2, { 0xbd, 0xd6, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74 } }; return cid;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InitClasses(JSContext * aJSContext, JSObject * aGlobalJSObj) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InitClassesWithNewWrappedGlobal(JSContext * aJSContext, nsISupports *aCOMObj, const nsIID & aIID, PRUint32 aFlags, nsIXPConnectJSObjectHolder **_retval) = 0; > > enum { INIT_JS_STANDARD_CLASSES = 1U }; > > enum { FLAG_SYSTEM_GLOBAL_OBJECT = 2U }; ># 790 "../../../dist/include/xpconnect/nsIXPConnect.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WrapNative(JSContext * aJSContext, JSObject * aScope, nsISupports *aCOMObj, const nsIID & aIID, nsIXPConnectJSObjectHolder **_retval) = 0; ># 816 "../../../dist/include/xpconnect/nsIXPConnect.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WrapJS(JSContext * aJSContext, JSObject * aJSObj, const nsIID & aIID, void * *result) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWrappedNativeOfJSObject(JSContext * aJSContext, JSObject * aJSObj, nsIXPConnectWrappedNative **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetSecurityManagerForJSContext(JSContext * aJSContext, nsIXPCSecurityManager *aManager, PRUint16 flags) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSecurityManagerForJSContext(JSContext * aJSContext, nsIXPCSecurityManager **aManager, PRUint16 *flags) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDefaultSecurityManager(nsIXPCSecurityManager *aManager, PRUint16 flags) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDefaultSecurityManager(nsIXPCSecurityManager **aManager, PRUint16 *flags) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateStackFrameLocation(PRUint32 aLanguage, const char *aFilename, const char *aFunctionName, PRInt32 aLineNumber, nsIStackFrame *aCaller, nsIStackFrame **_retval) = 0; ># 852 "../../../dist/include/xpconnect/nsIXPConnect.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SyncJSContexts(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCurrentJSStack(nsIStackFrame * *aCurrentJSStack) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCurrentNativeCallContext(nsAXPCNativeCallContext * *aCurrentNativeCallContext) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPendingException(nsIException * *aPendingException) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPendingException(nsIException * aPendingException) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DebugDump(PRInt16 depth) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DebugDumpObject(nsISupports *aCOMObj, PRInt16 depth) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DebugDumpJSStack(PRBool showArgs, PRBool showLocals, PRBool showThisProps) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DebugDumpEvalInJSStackFrame(PRUint32 aFrameNumber, const char *aSourceText) = 0; ># 884 "../../../dist/include/xpconnect/nsIXPConnect.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetSafeJSContextForCurrentThread(JSContext * cx) = 0; ># 901 "../../../dist/include/xpconnect/nsIXPConnect.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WrapJSAggregatedToNative(nsISupports *aOuter, JSContext * aJSContext, JSObject * aJSObj, const nsIID & aIID, void * *result) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWrappedNativeOfNativeObject(JSContext * aJSContext, JSObject * aScope, nsISupports *aCOMObj, const nsIID & aIID, nsIXPConnectWrappedNative **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFunctionThisTranslator(const nsIID & aIID, nsIXPCFunctionThisTranslator **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFunctionThisTranslator(const nsIID & aIID, nsIXPCFunctionThisTranslator *aTranslator, nsIXPCFunctionThisTranslator **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ReparentWrappedNativeIfFound(JSContext * aJSContext, JSObject * aScope, JSObject * aNewParent, nsISupports *aCOMObj, nsIXPConnectJSObjectHolder **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ReparentScopeAwareWrappers(JSContext * aJSContext, JSObject * aOldScope, JSObject * aNewScope) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ClearAllWrappedNativeSecurityPolicies(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWrappedNativePrototype(JSContext * aJSContext, JSObject * aScope, nsIClassInfo *aClassInfo, nsIXPConnectJSObjectHolder **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ReleaseJSContext(JSContext * aJSContext, PRBool noGC) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) VariantToJS(JSContext * ctx, JSObject * scope, nsIVariant *value, jsval *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) JSToVariant(JSContext * ctx, jsval value, nsIVariant **_retval) = 0; ># 950 "../../../dist/include/xpconnect/nsIXPConnect.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FlagSystemFilenamePrefix(const char *aFilenamePrefix, PRBool aWantNativeWrappers) = 0; ># 959 "../../../dist/include/xpconnect/nsIXPConnect.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RestoreWrappedNativePrototype(JSContext * aJSContext, JSObject * aScope, nsIClassInfo *aClassInfo, nsIXPConnectJSObjectHolder *aPrototype) = 0; ># 970 "../../../dist/include/xpconnect/nsIXPConnect.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateSandbox(JSContext * cx, nsIPrincipal *principal, nsIXPConnectJSObjectHolder **_retval) = 0; ># 991 "../../../dist/include/xpconnect/nsIXPConnect.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EvalInSandboxObject(const nsAString_internal & source, JSContext * cx, nsIXPConnectJSObjectHolder *sandbox, PRBool returnStringOnly, jsval *_retval) = 0; ># 1000 "../../../dist/include/xpconnect/nsIXPConnect.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetXOWForObject(JSContext * aJSContext, JSObject * aParent, JSObject * aWrappedObj, jsval *_retval) = 0; > > > > > enum { XPC_XOW_CLEARSCOPE = 1U }; ># 1016 "../../../dist/include/xpconnect/nsIXPConnect.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) UpdateXOWs(JSContext * aJSContext, nsIXPConnectWrappedNative *aObject, PRUint32 aWay) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddJSHolder(void * aHolder, nsScriptObjectTracer * aTracer) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveJSHolder(void * aHolder) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) NoteJSContext(JSContext * aJSContext, nsCycleCollectionTraversalCallback & aCb) = 0; ># 1048 "../../../dist/include/xpconnect/nsIXPConnect.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetXPCWrappedNativeJSClassInfo(const JSClass * *clazz, JSGetObjectOps *ops1, JSGetObjectOps *ops2) = 0; ># 1057 "../../../dist/include/xpconnect/nsIXPConnect.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetReportAllJSExceptions(PRBool reportAllJSExceptions) = 0; > >}; > > template <class Dummy> const nsIID nsIXPConnect::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xc1d4a482, 0x1beb, 0x4c82, { 0x9c, 0x0b, 0xd2, 0xab, 0x93, 0xac, 0xc7, 0xef }}; ># 15 "../../../dist/include/xpconnect/nsIXPCScriptable.h" 2 ># 33 "../../../dist/include/xpconnect/nsIXPCScriptable.h" >class nsIXPCScriptable : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > > enum { WANT_PRECREATE = 1U }; > > enum { WANT_CREATE = 2U }; > > enum { WANT_POSTCREATE = 4U }; > > enum { WANT_ADDPROPERTY = 8U }; > > enum { WANT_DELPROPERTY = 16U }; > > enum { WANT_GETPROPERTY = 32U }; > > enum { WANT_SETPROPERTY = 64U }; > > enum { WANT_ENUMERATE = 128U }; > > enum { WANT_NEWENUMERATE = 256U }; > > enum { WANT_NEWRESOLVE = 512U }; > > enum { WANT_CONVERT = 1024U }; > > enum { WANT_FINALIZE = 2048U }; > > enum { WANT_CHECKACCESS = 4096U }; > > enum { WANT_CALL = 8192U }; > > enum { WANT_CONSTRUCT = 16384U }; > > enum { WANT_HASINSTANCE = 32768U }; > > enum { WANT_TRACE = 65536U }; > > enum { USE_JSSTUB_FOR_ADDPROPERTY = 131072U }; > > enum { USE_JSSTUB_FOR_DELPROPERTY = 262144U }; > > enum { USE_JSSTUB_FOR_SETPROPERTY = 524288U }; > > enum { DONT_ENUM_STATIC_PROPS = 1048576U }; > > enum { DONT_ENUM_QUERY_INTERFACE = 2097152U }; > > enum { DONT_ASK_INSTANCE_FOR_SCRIPTABLE = 4194304U }; > > enum { CLASSINFO_INTERFACES_ONLY = 8388608U }; > > enum { ALLOW_PROP_MODS_DURING_RESOLVE = 16777216U }; > > enum { ALLOW_PROP_MODS_TO_PROTOTYPE = 33554432U }; > > enum { DONT_SHARE_PROTOTYPE = 67108864U }; > > enum { DONT_REFLECT_INTERFACE_NAMES = 134217728U }; > > enum { WANT_EQUALITY = 268435456U }; > > enum { WANT_OUTER_OBJECT = 536870912U }; > > enum { WANT_INNER_OBJECT = 1073741824U }; > > enum { RESERVED = 2147483648U }; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetClassName(char * *aClassName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetScriptableFlags(PRUint32 *aScriptableFlags) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PreCreate(nsISupports *nativeObj, JSContext * cx, JSObject * globalObj, JSObject * *parentObj) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Create(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PostCreate(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddProperty(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, jsval id, jsval * vp, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DelProperty(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, jsval id, jsval * vp, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetProperty(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, jsval id, jsval * vp, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetProperty(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, jsval id, jsval * vp, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Enumerate(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NewEnumerate(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, PRUint32 enum_op, jsval * statep, jsid *idp, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NewResolve(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, jsval id, PRUint32 flags, JSObject * *objp, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Convert(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, PRUint32 type, jsval * vp, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Finalize(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CheckAccess(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, jsval id, PRUint32 mode, jsval * vp, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Call(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, PRUint32 argc, jsval * argv, jsval * vp, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Construct(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, PRUint32 argc, jsval * argv, jsval * vp, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HasInstance(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, jsval val, PRBool *bp, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Trace(nsIXPConnectWrappedNative *wrapper, JSTracer * trc, JSObject * obj) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Equality(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, jsval val, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OuterObject(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, JSObject * *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InnerObject(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, JSObject * *_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIXPCScriptable::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x1455f6fe, 0x6de9, 0x4b62, { 0xa2, 0xb3, 0xd1, 0xae, 0xe8, 0x2d, 0xd8, 0x29 }}; ># 46 "../../../dist/include/dom/nsIDOMClassInfo.h" 2 ># 69 "../../../dist/include/dom/nsIDOMClassInfo.h" >typedef nsIClassInfo* (*nsDOMClassInfoExternalConstructorFnc) > (const char* aName); ># 88 "../../../dist/include/dom/nsIDOMClassInfo.h" ># 1 "../../../dist/include/xpcom/nsIServiceManager.h" 1 ># 89 "../../../dist/include/dom/nsIDOMClassInfo.h" 2 ># 1 "../../../dist/include/dom/nsIDOMScriptObjectFactory.h" 1 ># 90 "../../../dist/include/dom/nsIDOMClassInfo.h" 2 ># 1 "../../../dist/include/dom/nsDOMCID.h" 1 ># 42 "../../../dist/include/dom/nsDOMCID.h" ># 1 "../../../dist/include/xpcom/nsIFactory.h" 1 ># 43 "../../../dist/include/dom/nsDOMCID.h" 2 ># 1 "../../../dist/include/xpcom/nsIComponentManager.h" 1 ># 44 "../../../dist/include/dom/nsDOMCID.h" 2 ># 91 "../../../dist/include/dom/nsIDOMClassInfo.h" 2 ># 146 "../../../dist/include/dom/nsIDOMClassInfo.h" >class nsIDOMScriptObjectFactory; > >class nsIDOMCIExtension : public nsISupports { >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RegisterDOMCI(const char* aName, > nsIDOMScriptObjectFactory* aDOMSOFactory) = 0; >}; > >template <class Dummy> const nsIID nsIDOMCIExtension::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x891a7b01, 0x1b61, 0x11d6, { 0xa7, 0xf2, 0xf6, 0x90, 0xb6, 0x38, 0x89, 0x9c } }; ># 43 "../../../dist/include/dom/nsIDOMScriptObjectFactory.h" 2 > > > > > > >class nsIScriptContext; >class nsIScriptGlobalObject; >class nsIScriptRuntime; >class nsIDOMEventListener; > >class nsIDOMScriptObjectFactory : public nsISupports { >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetScriptRuntime(const nsAString_internal &aLanguageName, > nsIScriptRuntime **aLanguage) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetScriptRuntimeByID(PRUint32 aScriptTypeID, > nsIScriptRuntime **aLanguage) = 0; > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIDForScriptType(const nsAString_internal &aLanguageName, > PRUint32 *aScriptTypeID) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NewScriptGlobalObject(PRBool aIsChrome, > PRBool aIsModalContentWindow, > nsIScriptGlobalObject **aGlobal) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsISupports * __attribute__ ((regparm (0), cdecl)) GetClassInfoInstance(nsDOMClassInfoID aID) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsISupports * __attribute__ ((regparm (0), cdecl)) GetExternalClassInfoInstance(const nsAString_internal& aName) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RegisterDOMClassInfo(const char *aName, > nsDOMClassInfoExternalConstructorFnc aConstructorFptr, > const nsIID *aProtoChainInterface, > const nsIID **aInterfaces, > PRUint32 aScriptableFlags, > PRBool aHasClassInterface, > const nsCID *aConstructorCID) = 0; >}; > >template <class Dummy> const nsIID nsIDOMScriptObjectFactory::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0xd5a4f935, 0xe428, 0x47ec, { 0x8f, 0x36, 0x44, 0x23, 0xfa, 0xa2, 0x21, 0x90 } }; ># 57 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsDOMCID.h" 1 ># 58 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsContentUtils.h" 1 ># 45 "../../../dist/include/content/nsContentUtils.h" ># 1 "../../../dist/include/js/jspubtd.h" 1 ># 46 "../../../dist/include/content/nsContentUtils.h" 2 ># 1 "../../../dist/include/js/jsnum.h" 1 ># 51 "../../../dist/include/js/jsnum.h" >extern "C" { ># 64 "../../../dist/include/js/jsnum.h" >typedef union jsdpun { > struct { > > uint32 lo, hi; > > > > } s; > jsdouble d; >} jsdpun; ># 146 "../../../dist/include/js/jsnum.h" >extern JSBool >js_InitRuntimeNumberState(JSContext *cx); > >extern void >js_TraceRuntimeNumberState(JSTracer *trc); > >extern void >js_FinishRuntimeNumberState(JSContext *cx); > > >extern JSClass js_NumberClass; > >extern JSObject * >js_InitNumberClass(JSContext *cx, JSObject *obj); > > > > >extern const char js_Infinity_str[]; >extern const char js_NaN_str[]; >extern const char js_isNaN_str[]; >extern const char js_isFinite_str[]; >extern const char js_parseFloat_str[]; >extern const char js_parseInt_str[]; > > > > >extern JSBool >js_NewNumberInRootedValue(JSContext *cx, jsdouble d, jsval *vp); > > >extern JSString * >js_NumberToString(JSContext *cx, jsdouble d); > > > > > >char * >js_IntToCString(jsint i, char *buf, size_t bufSize); > > > > > >char * >js_NumberToCString(JSContext *cx, jsdouble d, char *buf, size_t bufSize); ># 202 "../../../dist/include/js/jsnum.h" >extern jsdouble >js_ValueToNumber(JSContext *cx, jsval* vp); ># 213 "../../../dist/include/js/jsnum.h" >extern int32 >js_ValueToECMAInt32(JSContext *cx, jsval *vp); > >extern uint32 >js_ValueToECMAUint32(JSContext *cx, jsval *vp); > > > > >extern int32 >js_DoubleToECMAInt32(jsdouble d); > >extern uint32 >js_DoubleToECMAUint32(jsdouble d); ># 236 "../../../dist/include/js/jsnum.h" >extern int32 >js_ValueToInt32(JSContext *cx, jsval *vp); > > > > > > >extern uint16 >js_ValueToUint16(JSContext *cx, jsval *vp); > > > > > >extern jsdouble >js_DoubleToInteger(jsdouble d); ># 264 "../../../dist/include/js/jsnum.h" >extern JSBool >js_strtod(JSContext *cx, const jschar *s, const jschar *send, > const jschar **ep, jsdouble *dp); ># 277 "../../../dist/include/js/jsnum.h" >extern JSBool >js_strtointeger(JSContext *cx, const jschar *s, const jschar *send, > const jschar **ep, jsint radix, jsdouble *dp); > >} ># 47 "../../../dist/include/content/nsContentUtils.h" 2 ># 1 "../../../dist/include/string/nsAString.h" 1 ># 48 "../../../dist/include/content/nsContentUtils.h" 2 ># 1 "../../../dist/include/layout/nsIStatefulFrame.h" 1 ># 9 "../../../dist/include/layout/nsIStatefulFrame.h" ># 1 "../../../dist/include/xpcom/nsISupports.h" 1 ># 10 "../../../dist/include/layout/nsIStatefulFrame.h" 2 > >class nsPresContext; >class nsPresState; > > > > > >class nsIStatefulFrame : public nsISupports { > public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > enum SpecialStateID {eNoID=0, eDocumentScrollState}; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SaveState(SpecialStateID aStateID, nsPresState** aState) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RestoreState(nsPresState* aState) = 0; >}; > >template <class Dummy> const nsIID nsIStatefulFrame::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x25c232cf, 0x40ba, 0x4394, { 0x84, 0xe4, 0x73, 0xa2, 0xf7, 0x4d, 0x8b, 0x64 } }; ># 49 "../../../dist/include/content/nsContentUtils.h" 2 ># 1 "../../../dist/include/pref/nsIPref.h" 1 ># 25 "../../../dist/include/pref/nsIPref.h" >class nsILocalFile; > >class nsIObserver; > >class nsIFileSpec; > > >typedef int (* PrefChangedFunc)(const char *, void *); > > >typedef void (*PrefEnumerationFunc)(const char *, void *); ># 62 "../../../dist/include/pref/nsIPref.h" >class nsIPref : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ReadUserPrefs(nsIFile *aFile) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ResetPrefs(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ResetUserPrefs(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SavePrefFile(nsIFile *aFile) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetBranch(const char *aPrefRoot, nsIPrefBranch **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDefaultBranch(const char *aPrefRoot, nsIPrefBranch **_retval) = 0; > > enum { ePrefInvalid = 0 }; > > enum { ePrefLocked = 1 }; > > enum { ePrefUserset = 2 }; > > enum { ePrefConfig = 4 }; > > enum { ePrefRemote = 8 }; > > enum { ePrefLilocal = 16 }; > > enum { ePrefString = 32 }; > > enum { ePrefInt = 64 }; > > enum { ePrefBool = 128 }; > > enum { ePrefValuetypeMask = 224 }; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRoot(char * *aRoot) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrefType(const char *aPrefName, PRInt32 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetBoolPref(const char *aPrefName, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetBoolPref(const char *aPrefName, PRInt32 aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCharPref(const char *aPrefName, char **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetCharPref(const char *aPrefName, const char *aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIntPref(const char *aPrefName, PRInt32 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetIntPref(const char *aPrefName, PRInt32 aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetComplexValue(const char *aPrefName, const nsIID & aType, void * *aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetComplexValue(const char *aPrefName, const nsIID & aType, nsISupports *aValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ClearUserPref(const char *aPrefName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PrefIsLocked(const char *aPrefName, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LockPref(const char *aPrefName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) UnlockPref(const char *aPrefName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ResetBranch(const char *aStartingAt) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DeleteBranch(const char *aStartingAt) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddObserver(const char *aDomain, nsIObserver *aObserver, PRBool aHoldWeak) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveObserver(const char *aDomain, nsIObserver *aObserver) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CopyCharPref(const char *pref, char **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CopyDefaultCharPref(const char *pref, char **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDefaultBoolPref(const char *pref, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDefaultIntPref(const char *pref, PRInt32 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDefaultBoolPref(const char *pref, PRBool value) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDefaultCharPref(const char *pref, const char *value) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDefaultIntPref(const char *pref, PRInt32 value) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CopyUnicharPref(const char *pref, PRUnichar **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CopyDefaultUnicharPref(const char *pref, PRUnichar **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetUnicharPref(const char *pref, const PRUnichar *value) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDefaultUnicharPref(const char *pref, const PRUnichar *value) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLocalizedUnicharPref(const char *pref, PRUnichar **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDefaultLocalizedUnicharPref(const char *pref, PRUnichar **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFilePref(const char *pref, nsIFileSpec **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFilePref(const char *pref, nsIFileSpec *value, PRBool setDefault) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFileXPref(const char *pref, nsILocalFile **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFileXPref(const char *pref, nsILocalFile *value) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RegisterCallback(const char *domain, PrefChangedFunc callback, void * closure) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) UnregisterCallback(const char *domain, PrefChangedFunc callback, void * closure) = 0; ># 230 "../../../dist/include/pref/nsIPref.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EnumerateChildren(const char *parent, PrefEnumerationFunc callback, void * data) = 0; > >}; > > template <class Dummy> const nsIID nsIPref::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa22ad7b0, 0xca86, 0x11d1, { 0xa9, 0xa4, 0x00, 0x80, 0x5f, 0x8a, 0x7a, 0xc4 }}; ># 50 "../../../dist/include/content/nsContentUtils.h" 2 ># 1 "../../../dist/include/content/nsINodeInfo.h" 1 ># 58 "../../../dist/include/content/nsINodeInfo.h" ># 1 "../../../dist/include/xpcom/nsISupports.h" 1 ># 59 "../../../dist/include/content/nsINodeInfo.h" 2 ># 1 "../../../dist/include/xpcom/nsIAtom.h" 1 ># 27 "../../../dist/include/xpcom/nsIAtom.h" >class nsIAtom : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(nsAString_internal & _retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToUTF8String(nsACString_internal & _retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetUTF8String(const char **aResult) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Equals(const nsAString_internal & aString, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EqualsUTF8(const nsACString_internal & aString, PRBool *_retval) = 0; > > > inline PRBool Equals(const nsAString_internal& s) { > PRBool result; > Equals(s, &result); > return result; > } > inline PRBool EqualsUTF8(const nsACString_internal& s) { > PRBool result; > EqualsUTF8(s, &result); > return result; > } >}; > > template <class Dummy> const nsIID nsIAtom::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x3d1b15b0, 0x93b4, 0x11d1, { 0x89, 0x5b, 0x00, 0x60, 0x08, 0x91, 0x1b, 0x81 }}; ># 180 "../../../dist/include/xpcom/nsIAtom.h" >extern nsIAtom* NS_NewAtom(const char* aUTF8String); >extern nsIAtom* NS_NewPermanentAtom(const char* aUTF8String); >inline already_AddRefed<nsIAtom> do_GetAtom(const char* aUTF8String) > { return NS_NewAtom(aUTF8String); } >inline already_AddRefed<nsIAtom> do_GetPermanentAtom(const char* aUTF8String) > { return NS_NewPermanentAtom(aUTF8String); } > > > > >extern nsIAtom* NS_NewAtom(const nsACString_internal& aUTF8String); >extern nsIAtom* NS_NewPermanentAtom(const nsACString_internal& aUTF8String); >inline already_AddRefed<nsIAtom> do_GetAtom(const nsACString_internal& aUTF8String) > { return NS_NewAtom(aUTF8String); } >inline already_AddRefed<nsIAtom> do_GetPermanentAtom(const nsACString_internal& aUTF8String) > { return NS_NewPermanentAtom(aUTF8String); } > > > > >extern nsIAtom* NS_NewAtom(const PRUnichar* aUTF16String); >extern nsIAtom* NS_NewPermanentAtom(const PRUnichar* aUTF16String); >inline already_AddRefed<nsIAtom> do_GetAtom(const PRUnichar* aUTF16String) > { return NS_NewAtom(aUTF16String); } >inline already_AddRefed<nsIAtom> do_GetPermanentAtom(const PRUnichar* aUTF16String) > { return NS_NewPermanentAtom(aUTF16String); } > > > >extern nsIAtom* NS_NewAtom(const nsAString_internal& aUTF16String); >extern nsIAtom* NS_NewPermanentAtom(const nsAString_internal& aUTF16String); >inline already_AddRefed<nsIAtom> do_GetAtom(const nsAString_internal& aUTF16String) > { return NS_NewAtom(aUTF16String); } >inline already_AddRefed<nsIAtom> do_GetPermanentAtom(const nsAString_internal& aUTF16String) > { return NS_NewPermanentAtom(aUTF16String); } > > > > >extern nsrefcnt NS_GetNumberOfAtoms(void); ># 60 "../../../dist/include/content/nsINodeInfo.h" 2 ># 1 "../../../dist/include/content/nsINameSpaceManager.h" 1 ># 42 "../../../dist/include/content/nsINameSpaceManager.h" ># 1 "../../../dist/include/xpcom/nsStringGlue.h" 1 ># 43 "../../../dist/include/content/nsINameSpaceManager.h" 2 > >class nsIAtom; >class nsString; > > > > >static const PRInt32 kNameSpaceID_None = 0; ># 84 "../../../dist/include/content/nsINameSpaceManager.h" >class nsINameSpaceManager : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual nsresult RegisterNameSpace(const nsAString_internal& aURI, > PRInt32& aNameSpaceID) = 0; > > virtual nsresult GetNameSpaceURI(PRInt32 aNameSpaceID, nsAString_internal& aURI) = 0; > virtual PRInt32 GetNameSpaceID(const nsAString_internal& aURI) = 0; > > virtual PRBool HasElementCreator(PRInt32 aNameSpaceID) = 0; >}; > >template <class Dummy> const nsIID nsINameSpaceManager::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0xd74e83e6, 0xf932, 0x4289, { 0xac, 0x95, 0x9e, 0x10, 0x24, 0x30, 0x88, 0xd6 } }; > >nsresult NS_GetNameSpaceManager(nsINameSpaceManager** aInstancePtrResult); > >void NS_NameSpaceManagerShutdown(); ># 61 "../../../dist/include/content/nsINodeInfo.h" 2 ># 1 "../../../dist/include/content/nsNodeInfoManager.h" 1 ># 45 "../../../dist/include/content/nsNodeInfoManager.h" ># 1 "../../../dist/include/xpcom/nsCOMPtr.h" 1 ># 46 "../../../dist/include/content/nsNodeInfoManager.h" 2 ># 1 "../../../dist/include/nspr/plhash.h" 1 ># 47 "../../../dist/include/content/nsNodeInfoManager.h" 2 ># 1 "../../../dist/include/xpcom/nsCycleCollectionParticipant.h" 1 ># 41 "../../../dist/include/xpcom/nsCycleCollectionParticipant.h" ># 1 "../../../dist/include/xpcom/nsISupports.h" 1 ># 42 "../../../dist/include/xpcom/nsCycleCollectionParticipant.h" 2 ># 81 "../../../dist/include/xpcom/nsCycleCollectionParticipant.h" >class nsCycleCollectionISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} >}; > >template <class Dummy> const nsIID nsCycleCollectionISupports::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0xc61eac14, 0x5f7a, 0x4481, { 0x96, 0x5e, 0x7e, 0xaa, 0x6e, 0xff, 0xa8, 0x5f } }; > > >class nsCycleCollectionParticipant; > >enum CCNodeType { RefCounted, GCMarked, GCUnmarked }; > >class nsCycleCollectionTraversalCallback >{ >public: ># 106 "../../../dist/include/xpcom/nsCycleCollectionParticipant.h" > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) DescribeNode(CCNodeType type, > nsrefcnt refcount) = 0; > > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) NoteXPCOMRoot(nsISupports *root) = 0; > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) NoteRoot(PRUint32 langID, void *root, > nsCycleCollectionParticipant* helper) = 0; > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) NoteScriptChild(PRUint32 langID, void *child) = 0; > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) NoteXPCOMChild(nsISupports *child) = 0; > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) NoteNativeChild(void *child, > nsCycleCollectionParticipant *helper) = 0; > > > > > >}; > >class nsCycleCollectionParticipant >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Traverse(void *p, nsCycleCollectionTraversalCallback &cb) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RootAndUnlinkJSObjects(void *p) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Unlink(void *p) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Unroot(void *p) = 0; >}; > >template <class Dummy> const nsIID nsCycleCollectionParticipant::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x9674489b, 0x1f6f, 0x4550, { 0xa7, 0x30, 0xcc, 0xae, 0xdd, 0x10, 0x4c, 0xf9 } }; > > > > > >typedef void >(* TraceCallback)(PRUint32 langID, void *p, void *closure); > >class nsScriptObjectTracer : public nsCycleCollectionParticipant >{ >public: > virtual void __attribute__ ((regparm (0), cdecl)) Trace(void *p, TraceCallback cb, void *closure) = 0; > void TraverseScriptObjects(void *p, > nsCycleCollectionTraversalCallback &cb); >}; > >class nsXPCOMCycleCollectionParticipant > : public nsScriptObjectTracer >{ >public: > virtual nsresult __attribute__ ((regparm (0), cdecl)) Traverse(void *p, nsCycleCollectionTraversalCallback &cb); > > virtual nsresult __attribute__ ((regparm (0), cdecl)) RootAndUnlinkJSObjects(void *p); > virtual nsresult __attribute__ ((regparm (0), cdecl)) Unlink(void *p); > virtual nsresult __attribute__ ((regparm (0), cdecl)) Unroot(void *p); > > virtual void __attribute__ ((regparm (0), cdecl)) Trace(void *p, TraceCallback cb, void *closure); > > virtual void __attribute__ ((regparm (0), cdecl)) UnmarkPurple(nsISupports *p); > > PRBool CheckForRightISupports(nsISupports *s); >}; ># 48 "../../../dist/include/content/nsNodeInfoManager.h" 2 > >class nsIAtom; >class nsIDocument; >class nsINodeInfo; >class nsNodeInfo; >class nsIPrincipal; >class nsIURI; >class nsDocument; >class nsIDOMDocumentType; >class nsIDOMDocument; >class nsAString_internal; >class nsIDOMNamedNodeMap; >class nsXULPrototypeDocument; >class nsBindingManager; > >class nsNodeInfoManager >{ >public: > nsNodeInfoManager(); > ~nsNodeInfoManager(); > > class cycleCollection : public nsCycleCollectionParticipant { public: virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RootAndUnlinkJSObjects(void *n); virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Unlink(void *n); virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Unroot(void *n); virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Traverse(void *n, nsCycleCollectionTraversalCallback &cb); }; static cycleCollection _cycleCollectorGlobal; > > nsrefcnt AddRef(void); > nsrefcnt Release(void); > > > > > nsresult Init(nsIDocument *aDocument); > > > > > > void DropDocumentReference(); > > > > > nsresult GetNodeInfo(nsIAtom *aName, nsIAtom *aPrefix, > PRInt32 aNamespaceID, nsINodeInfo** aNodeInfo); > nsresult GetNodeInfo(const nsAString_internal& aName, nsIAtom *aPrefix, > PRInt32 aNamespaceID, nsINodeInfo** aNodeInfo); > nsresult GetNodeInfo(const nsAString_internal& aQualifiedName, > const nsAString_internal& aNamespaceURI, > nsINodeInfo** aNodeInfo); > > > > > already_AddRefed<nsINodeInfo> GetTextNodeInfo(); > > > > > already_AddRefed<nsINodeInfo> GetCommentNodeInfo(); > > > > > already_AddRefed<nsINodeInfo> GetDocumentNodeInfo(); > > > > > > nsIDocument* GetDocument() const > { > return mDocument; > } > > > > > nsIPrincipal *DocumentPrincipal() const { > do { } while (0); > return mPrincipal; > } > > void RemoveNodeInfo(nsNodeInfo *aNodeInfo); > > nsBindingManager* GetBindingManager() const > { > return mBindingManager; > } > >protected: > friend class nsDocument; > friend class nsXULPrototypeDocument; > friend nsresult NS_NewDOMDocumentType(nsIDOMDocumentType** , > nsNodeInfoManager *, > nsIPrincipal *, > nsIAtom *, > nsIDOMNamedNodeMap *, > nsIDOMNamedNodeMap *, > const nsAString_internal& , > const nsAString_internal& , > const nsAString_internal& ); > > > > > void SetDocumentPrincipal(nsIPrincipal *aPrincipal); > >private: > static PRIntn NodeInfoInnerKeyCompare(const void *key1, > const void *key2); > static PLHashNumber GetNodeInfoInnerHashValue(const void *key); > > nsAutoRefCnt mRefCnt; > > > PLHashTable *mNodeInfoHash; > nsIDocument *mDocument; > nsIPrincipal *mPrincipal; > > > nsCOMPtr<nsIPrincipal> mDefaultPrincipal; > nsINodeInfo *mTextNodeInfo; > nsINodeInfo *mCommentNodeInfo; > nsINodeInfo *mDocumentNodeInfo; > nsBindingManager* mBindingManager; > > >}; ># 62 "../../../dist/include/content/nsINodeInfo.h" 2 > > > ># 1 "../../../dist/include/dom/nsDOMString.h" 1 ># 43 "../../../dist/include/dom/nsDOMString.h" ># 1 "../../../dist/include/string/nsAString.h" 1 ># 44 "../../../dist/include/dom/nsDOMString.h" 2 > >inline PRBool DOMStringIsNull(const nsAString_internal& aString) >{ > return aString.IsVoid(); >} > >inline void SetDOMStringToNull(nsAString_internal& aString) >{ > aString.SetIsVoid(1); >} ># 66 "../../../dist/include/content/nsINodeInfo.h" 2 > > > >class nsIDocument; >class nsIURI; >class nsIPrincipal; > > > > > > > >class nsINodeInfo : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > nsINodeInfo() > : mInner(0, 0, kNameSpaceID_None), > mOwnerManager(0) > { > } > > > > > > > > void GetName(nsAString_internal& aName) const > { > mInner.mName->ToString(aName); > } ># 108 "../../../dist/include/content/nsINodeInfo.h" > nsIAtom* NameAtom() const > { > return mInner.mName; > } ># 120 "../../../dist/include/content/nsINodeInfo.h" > virtual void GetQualifiedName(nsAString_internal& aQualifiedName) const = 0; ># 131 "../../../dist/include/content/nsINodeInfo.h" > virtual void GetLocalName(nsAString_internal& aLocalName) const = 0; ># 140 "../../../dist/include/content/nsINodeInfo.h" > void GetPrefix(nsAString_internal& aPrefix) const > { > if (mInner.mPrefix) { > mInner.mPrefix->ToString(aPrefix); > } else { > SetDOMStringToNull(aPrefix); > } > } ># 156 "../../../dist/include/content/nsINodeInfo.h" > nsIAtom* GetPrefixAtom() const > { > return mInner.mPrefix; > } ># 170 "../../../dist/include/content/nsINodeInfo.h" > virtual nsresult GetNamespaceURI(nsAString_internal& aNameSpaceURI) const = 0; ># 182 "../../../dist/include/content/nsINodeInfo.h" > PRInt32 NamespaceID() const > { > return mInner.mNamespaceID; > } > > > > > > > > nsIAtom* GetIDAttributeAtom() const > { > return mIDAttributeAtom; > } > > void SetIDAttributeAtom(nsIAtom* aID) > { > mIDAttributeAtom = aID; > } > > > > > > nsNodeInfoManager *NodeInfoManager() const > { > return mOwnerManager; > } > > > > > > > PRBool Equals(nsINodeInfo *aNodeInfo) const > { > return aNodeInfo == this || aNodeInfo->Equals(mInner.mName, mInner.mPrefix, > mInner.mNamespaceID); > } > > PRBool NameAndNamespaceEquals(nsINodeInfo *aNodeInfo) const > { > return aNodeInfo == this || aNodeInfo->Equals(mInner.mName, > mInner.mNamespaceID); > } > > PRBool Equals(nsIAtom *aNameAtom) const > { > return mInner.mName == aNameAtom; > } > > PRBool Equals(nsIAtom *aNameAtom, nsIAtom *aPrefixAtom) const > { > return (mInner.mName == aNameAtom) && (mInner.mPrefix == aPrefixAtom); > } > > PRBool Equals(nsIAtom *aNameAtom, PRInt32 aNamespaceID) const > { > return ((mInner.mName == aNameAtom) && > (mInner.mNamespaceID == aNamespaceID)); > } > > PRBool Equals(nsIAtom *aNameAtom, nsIAtom *aPrefixAtom, > PRInt32 aNamespaceID) const > { > return ((mInner.mName == aNameAtom) && > (mInner.mPrefix == aPrefixAtom) && > (mInner.mNamespaceID == aNamespaceID)); > } > > PRBool NamespaceEquals(PRInt32 aNamespaceID) const > { > return mInner.mNamespaceID == aNamespaceID; > } > > virtual PRBool Equals(const nsAString_internal& aName) const = 0; > virtual PRBool Equals(const nsAString_internal& aName, > const nsAString_internal& aPrefix) const = 0; > virtual PRBool Equals(const nsAString_internal& aName, > PRInt32 aNamespaceID) const = 0; > virtual PRBool Equals(const nsAString_internal& aName, const nsAString_internal& aPrefix, > PRInt32 aNamespaceID) const = 0; > virtual PRBool NamespaceEquals(const nsAString_internal& aNamespaceURI) const = 0; > > PRBool QualifiedNameEquals(nsIAtom* aNameAtom) const > { > do { } while (0); > if (!GetPrefixAtom()) > return Equals(aNameAtom); > > const char* utf8; > aNameAtom->GetUTF8String(&utf8); > return QualifiedNameEqualsInternal(nsDependentCString(utf8)); > } > > PRBool QualifiedNameEquals(const nsACString_internal& aQualifiedName) const > { > if (!GetPrefixAtom()) > return mInner.mName->EqualsUTF8(aQualifiedName); > > return QualifiedNameEqualsInternal(aQualifiedName); > } > > > > > nsIDocument* GetDocument() const > { > return mOwnerManager->GetDocument(); > } > >protected: > virtual PRBool > QualifiedNameEqualsInternal(const nsACString_internal& aQualifiedName) const = 0; ># 312 "../../../dist/include/content/nsINodeInfo.h" > class nsNodeInfoInner > { > public: > nsNodeInfoInner(nsIAtom *aName, nsIAtom *aPrefix, PRInt32 aNamespaceID) > : mName(aName), mPrefix(aPrefix), mNamespaceID(aNamespaceID) > { > } > > nsIAtom* mName; > nsIAtom* mPrefix; > PRInt32 mNamespaceID; > }; > > > friend class nsNodeInfoManager; > > nsNodeInfoInner mInner; > > nsCOMPtr<nsIAtom> mIDAttributeAtom; > nsNodeInfoManager* mOwnerManager; >}; > >template <class Dummy> const nsIID nsINodeInfo::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x35e53115, 0xb884, 0x4cfc, { 0xaa, 0x95, 0xbd, 0xf0, 0xaa, 0x51, 0x52, 0xcf } }; ># 51 "../../../dist/include/content/nsContentUtils.h" 2 > ># 1 "../../../dist/include/content/nsContentList.h" 1 ># 48 "../../../dist/include/content/nsContentList.h" ># 1 "../../../dist/include/xpcom/nsCOMArray.h" 1 ># 42 "../../../dist/include/xpcom/nsCOMArray.h" ># 1 "../../../dist/include/xpcom/nsVoidArray.h" 1 ># 43 "../../../dist/include/xpcom/nsCOMArray.h" 2 > > > > > > >class nsCOMArray_base >{ > friend class nsArray; >protected: > nsCOMArray_base() {} > nsCOMArray_base(PRInt32 aCount) : mArray(aCount) {} > nsCOMArray_base(const nsCOMArray_base& other); > ~nsCOMArray_base(); > > PRInt32 IndexOf(nsISupports* aObject) const { > return mArray.IndexOf(aObject); > } > > PRInt32 IndexOfObject(nsISupports* aObject) const; > > PRBool EnumerateForwards(nsVoidArrayEnumFunc aFunc, void* aData) { > return mArray.EnumerateForwards(aFunc, aData); > } > > PRBool EnumerateBackwards(nsVoidArrayEnumFunc aFunc, void* aData) { > return mArray.EnumerateBackwards(aFunc, aData); > } > > void Sort(nsVoidArrayComparatorFunc aFunc, void* aData) { > mArray.Sort(aFunc, aData); > } > > > > > void Clear(); > PRBool InsertObjectAt(nsISupports* aObject, PRInt32 aIndex); > PRBool InsertObjectsAt(const nsCOMArray_base& aObjects, PRInt32 aIndex); > PRBool ReplaceObjectAt(nsISupports* aObject, PRInt32 aIndex); > PRBool AppendObject(nsISupports *aObject) { > return InsertObjectAt(aObject, Count()); > } > PRBool AppendObjects(const nsCOMArray_base& aObjects) { > return InsertObjectsAt(aObjects, Count()); > } > PRBool RemoveObject(nsISupports *aObject); > PRBool RemoveObjectAt(PRInt32 aIndex); > >public: > > > PRInt32 Count() const { > return mArray.Count(); > } > > nsISupports* ObjectAt(PRInt32 aIndex) const { > return static_cast<nsISupports*>(mArray.FastElementAt(aIndex)); > } > > nsISupports* SafeObjectAt(PRInt32 aIndex) const { > return static_cast<nsISupports*>(mArray.SafeElementAt(aIndex)); > } > > nsISupports* operator[](PRInt32 aIndex) const { > return ObjectAt(aIndex); > } > > > > PRBool SetCapacity(PRUint32 aCapacity) { > return aCapacity > 0 ? mArray.SizeTo(static_cast<PRInt32>(aCapacity)) > : 1; > } > >private: > > > nsVoidArray mArray; > > > nsCOMArray_base& operator=(const nsCOMArray_base& other); >}; ># 145 "../../../dist/include/xpcom/nsCOMArray.h" >template <class T> >class nsCOMArray : public nsCOMArray_base >{ > public: > nsCOMArray() {} > nsCOMArray(PRInt32 aCount) : nsCOMArray_base(aCount) {} > > > > nsCOMArray(const nsCOMArray<T>& aOther) : nsCOMArray_base(aOther) { } > > ~nsCOMArray() {} > > > T* ObjectAt(PRInt32 aIndex) const { > return static_cast<T*>(nsCOMArray_base::ObjectAt(aIndex)); > } > > > T* SafeObjectAt(PRInt32 aIndex) const { > return static_cast<T*>(nsCOMArray_base::SafeObjectAt(aIndex)); > } > > > T* operator[](PRInt32 aIndex) const { > return ObjectAt(aIndex); > } > > > > > PRInt32 IndexOf(T* aObject) const { > return nsCOMArray_base::IndexOf(static_cast<nsISupports*>(aObject)); > } > > > > > > > PRInt32 IndexOfObject(T* aObject) const { > return nsCOMArray_base::IndexOfObject(static_cast<nsISupports*>(aObject)); > } > > > > PRBool InsertObjectAt(T* aObject, PRInt32 aIndex) { > return nsCOMArray_base::InsertObjectAt(static_cast<nsISupports*>(aObject), aIndex); > } > > > > PRBool InsertObjectsAt(const nsCOMArray<T>& aObjects, PRInt32 aIndex) { > return nsCOMArray_base::InsertObjectsAt(aObjects, aIndex); > } > > > > PRBool ReplaceObjectAt(T* aObject, PRInt32 aIndex) { > return nsCOMArray_base::ReplaceObjectAt(static_cast<nsISupports*>(aObject), aIndex); > } > > > > > > PRInt32 Count() const { > return nsCOMArray_base::Count(); > } > > > void Clear() { > nsCOMArray_base::Clear(); > } > > > > > typedef PRBool (* nsCOMArrayEnumFunc) > (T* aElement, void *aData); > > > PRBool EnumerateForwards(nsCOMArrayEnumFunc aFunc, void* aData) { > return nsCOMArray_base::EnumerateForwards(nsVoidArrayEnumFunc(aFunc), > aData); > } > > PRBool EnumerateBackwards(nsCOMArrayEnumFunc aFunc, void* aData) { > return nsCOMArray_base::EnumerateBackwards(nsVoidArrayEnumFunc(aFunc), > aData); > } > > typedef int (* nsCOMArrayComparatorFunc) > (T* aElement1, T* aElement2, void* aData); > > void Sort(nsCOMArrayComparatorFunc aFunc, void* aData) { > nsCOMArray_base::Sort(nsVoidArrayComparatorFunc(aFunc), aData); > } > > > PRBool AppendObject(T *aObject) { > return nsCOMArray_base::AppendObject(static_cast<nsISupports*>(aObject)); > } > > > PRBool AppendObjects(const nsCOMArray<T>& aObjects) { > return nsCOMArray_base::AppendObjects(aObjects); > } > > > > > PRBool RemoveObject(T *aObject) { > return nsCOMArray_base::RemoveObject(static_cast<nsISupports*>(aObject)); > } > > > > PRBool RemoveObjectAt(PRInt32 aIndex) { > return nsCOMArray_base::RemoveObjectAt(aIndex); > } > >private: > > > nsCOMArray<T>& operator=(const nsCOMArray<T>& other); >}; ># 49 "../../../dist/include/content/nsContentList.h" 2 ># 1 "../../../dist/include/string/nsString.h" 1 ># 50 "../../../dist/include/content/nsContentList.h" 2 ># 1 "../../../dist/include/dom/nsIDOMHTMLCollection.h" 1 ># 10 "../../../dist/include/dom/nsIDOMHTMLCollection.h" ># 1 "../../../dist/include/dom/domstubs.h" 1 ># 17 "../../../dist/include/dom/domstubs.h" >typedef PRUint64 DOMTimeStamp; > >class nsIDOMAttr; > >class nsIDOMCDATASection; > >class nsIDOMCharacterData; > >class nsIDOMComment; > >class nsIDOMDOMImplementation; > >class nsIDOMDocument; > >class nsIDOMDocumentFragment; > >class nsIDOMDocumentType; > >class nsIDOMElement; > >class nsIDOMEntity; > >class nsIDOMEntityReference; > >class nsIDOMNSDocument; > >class nsIDOMNSElement; > >class nsIDOMNamedNodeMap; > >class nsIDOMNode; > >class nsIDOMNodeList; > >class nsIDOMNotation; > >class nsIDOMProcessingInstruction; > >class nsIDOMText; > >class nsIDOMDOMStringList; > >class nsIDOMNameList; > >class nsIDOMClientRect; > >class nsIDOMClientRectList; > >class DOMException; > >class RangeException; > >class nsIDOMStyleSheetList; > >class nsIDOMLinkStyle; > >class nsIDOMStyleSheet; > >class nsIDOMMediaList; > >class nsIDOMAbstractView; > >class nsIDOMDocumentView; > >class nsIDOMWindow; > >class nsIDOMWindowInternal; > >class nsIDOMWindowCollection; > >class nsIDOMPlugin; > >class nsIDOMPluginArray; > >class nsIDOMMimeType; > >class nsIDOMMimeTypeArray; > >class nsIDOMBarProp; > >class nsIDOMNavigator; > >class nsIDOMScreen; > >class nsIDOMHistory; > >class nsIDOMEvent; > >class nsIDOMEventTarget; > >class nsIDOMEventListener; > >class nsIDOMEventGroup; > >class nsIDOMHTMLElement; > >class nsIDOMHTMLFormElement; > >class nsIDOMHTMLCollection; > >class nsIDOMCSSValue; > >class nsIDOMCSSValueList; > >class nsIDOMCSSPrimitiveValue; > >class nsIDOMCSSRule; > >class nsIDOMCSSRuleList; > >class nsIDOMCSSStyleSheet; > >class nsIDOMCSSStyleDeclaration; > >class nsIDOMCounter; > >class nsIDOMRect; > >class nsIDOMRGBColor; > >class nsIDOMCSSStyleRule; > >class nsIDOMCSSStyleRuleCollection; > >class nsIDOMHTMLTableCaptionElement; > >class nsIDOMHTMLTableSectionElement; > >class nsIDOMRange; > >class nsIDOMCRMFObject; > >class nsIDOMCrypto; > >class nsIDOMPkcs11; ># 11 "../../../dist/include/dom/nsIDOMHTMLCollection.h" 2 ># 25 "../../../dist/include/dom/nsIDOMHTMLCollection.h" >class nsIDOMHTMLCollection : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 40 "../../../dist/include/dom/nsIDOMHTMLCollection.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLength(PRUint32 *aLength) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Item(PRUint32 index, nsIDOMNode **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NamedItem(const nsAString_internal & name, nsIDOMNode **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMHTMLCollection::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa6cf9083, 0x15b3, 0x11d2, { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}; ># 51 "../../../dist/include/content/nsContentList.h" 2 ># 1 "../../../dist/include/dom/nsIDOMNodeList.h" 1 ># 25 "../../../dist/include/dom/nsIDOMNodeList.h" >class nsIDOMNodeList : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 42 "../../../dist/include/dom/nsIDOMNodeList.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Item(PRUint32 index, nsIDOMNode **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLength(PRUint32 *aLength) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMNodeList::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa6cf907d, 0x15b3, 0x11d2, { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}; ># 52 "../../../dist/include/content/nsContentList.h" 2 ># 1 "../../../dist/include/content/nsStubMutationObserver.h" 1 ># 48 "../../../dist/include/content/nsStubMutationObserver.h" ># 1 "../../../dist/include/content/nsIMutationObserver.h" 1 ># 42 "../../../dist/include/content/nsIMutationObserver.h" >class nsIAtom; >class nsIContent; >class nsIDocument; >class nsINode; ># 54 "../../../dist/include/content/nsIMutationObserver.h" >struct CharacterDataChangeInfo >{ > PRBool mAppend; > PRUint32 mChangeStart; > PRUint32 mChangeEnd; > PRUint32 mReplaceLength; >}; ># 73 "../../../dist/include/content/nsIMutationObserver.h" >class nsIMutationObserver : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 90 "../../../dist/include/content/nsIMutationObserver.h" > virtual void CharacterDataWillChange(nsIDocument *aDocument, > nsIContent* aContent, > CharacterDataChangeInfo* aInfo) = 0; ># 106 "../../../dist/include/content/nsIMutationObserver.h" > virtual void CharacterDataChanged(nsIDocument *aDocument, > nsIContent* aContent, > CharacterDataChangeInfo* aInfo) = 0; ># 123 "../../../dist/include/content/nsIMutationObserver.h" > virtual void AttributeChanged(nsIDocument* aDocument, > nsIContent* aContent, > PRInt32 aNameSpaceID, > nsIAtom* aAttribute, > PRInt32 aModType, > PRUint32 aStateMask) = 0; ># 140 "../../../dist/include/content/nsIMutationObserver.h" > virtual void ContentAppended(nsIDocument *aDocument, > nsIContent* aContainer, > PRInt32 aNewIndexInContainer) = 0; ># 157 "../../../dist/include/content/nsIMutationObserver.h" > virtual void ContentInserted(nsIDocument *aDocument, > nsIContent* aContainer, > nsIContent* aChild, > PRInt32 aIndexInContainer) = 0; ># 176 "../../../dist/include/content/nsIMutationObserver.h" > virtual void ContentRemoved(nsIDocument *aDocument, > nsIContent* aContainer, > nsIContent* aChild, > PRInt32 aIndexInContainer) = 0; ># 194 "../../../dist/include/content/nsIMutationObserver.h" > virtual void NodeWillBeDestroyed(const nsINode *aNode) = 0; ># 208 "../../../dist/include/content/nsIMutationObserver.h" > virtual void ParentChainChanged(nsIContent *aContent) = 0; >}; > >template <class Dummy> const nsIID nsIMutationObserver::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x32e68316, 0x67d4, 0x44a5, { 0x8d, 0x35, 0xd, 0x39, 0xf, 0xa9, 0xdf, 0x11 } }; ># 49 "../../../dist/include/content/nsStubMutationObserver.h" 2 ># 61 "../../../dist/include/content/nsStubMutationObserver.h" >class nsStubMutationObserver : public nsIMutationObserver { > virtual void CharacterDataWillChange(nsIDocument* aDocument, nsIContent* aContent, CharacterDataChangeInfo* aInfo); virtual void CharacterDataChanged(nsIDocument* aDocument, nsIContent* aContent, CharacterDataChangeInfo* aInfo); virtual void AttributeChanged(nsIDocument* aDocument, nsIContent* aContent, PRInt32 aNameSpaceID, nsIAtom* aAttribute, PRInt32 aModType, PRUint32 aStateMask); virtual void ContentAppended(nsIDocument* aDocument, nsIContent* aContainer, PRInt32 aNewIndexInContainer); virtual void ContentInserted(nsIDocument* aDocument, nsIContent* aContainer, nsIContent* aChild, PRInt32 aIndexInContainer); virtual void ContentRemoved(nsIDocument* aDocument, nsIContent* aContainer, nsIContent* aChild, PRInt32 aIndexInContainer); virtual void NodeWillBeDestroyed(const nsINode* aNode); virtual void ParentChainChanged(nsIContent *aContent); >}; ># 53 "../../../dist/include/content/nsContentList.h" 2 ># 65 "../../../dist/include/content/nsContentList.h" >typedef PRBool (*nsContentListMatchFunc)(nsIContent* aContent, > PRInt32 aNamespaceID, > nsIAtom* aAtom, > void* aData); > >typedef void (*nsContentListDestroyFunc)(void* aData); > >class nsIDocument; >class nsIDOMHTMLFormElement; > > >class nsBaseContentList : public nsIDOMNodeList >{ >public: > nsBaseContentList(); > virtual ~nsBaseContentList(); > > public: virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) QueryInterface(const nsIID& aIID, void** aInstancePtr); virtual __attribute__ ((visibility ("hidden"))) nsrefcnt __attribute__ ((regparm (0), cdecl)) AddRef(void); virtual __attribute__ ((visibility ("hidden"))) nsrefcnt __attribute__ ((regparm (0), cdecl)) Release(void); void UnmarkPurple() { mRefCnt.unmarkPurple(); } protected: nsCycleCollectingAutoRefCnt mRefCnt; public: > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Item(PRUint32 index, nsIDOMNode **_retval); virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLength(PRUint32 *aLength); > class cycleCollection : public nsXPCOMCycleCollectionParticipant { public: virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Traverse(void *p, nsCycleCollectionTraversalCallback &cb); virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) UnmarkPurple(nsISupports *s) { Downcast(s)->UnmarkPurple(); } static nsBaseContentList* Downcast(nsISupports* s) { return static_cast<nsBaseContentList*>(static_cast<nsBaseContentList*>(s)); } static nsISupports* Upcast(nsBaseContentList *p) { return static_cast<nsISupports*>(static_cast<nsBaseContentList*>(p)); } virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Unlink(void *p); }; static cycleCollection _cycleCollectorGlobal; > > void AppendElement(nsIContent *aContent); > void RemoveElement(nsIContent *aContent); > virtual PRInt32 IndexOf(nsIContent *aContent, PRBool aDoFlush); > void Reset(); > > static void Shutdown(); > >protected: > nsCOMArray<nsIContent> mElements; >}; > > > > > >class nsFormContentList : public nsBaseContentList >{ >public: > nsFormContentList(nsIDOMHTMLFormElement *aForm, > nsBaseContentList& aContentList); >}; > > > > > >class nsContentListKey >{ >public: > nsContentListKey(nsINode* aRootNode, > nsIAtom* aMatchAtom, > PRInt32 aMatchNameSpaceId) > : mMatchAtom(aMatchAtom), > mMatchNameSpaceId(aMatchNameSpaceId), > mRootNode(aRootNode) > { > } > > nsContentListKey(const nsContentListKey& aContentListKey) > : mMatchAtom(aContentListKey.mMatchAtom), > mMatchNameSpaceId(aContentListKey.mMatchNameSpaceId), > mRootNode(aContentListKey.mRootNode) > { > } > > PRBool Equals(const nsContentListKey& aContentListKey) const > { > return > mMatchAtom == aContentListKey.mMatchAtom && > mMatchNameSpaceId == aContentListKey.mMatchNameSpaceId && > mRootNode == aContentListKey.mRootNode; > } > inline PRUint32 GetHash(void) const > { > return > ((PRInt32) (PRWord) (mMatchAtom.get())) ^ > (((PRInt32) (PRWord) (mRootNode)) << 12) ^ > (mMatchNameSpaceId << 24); > } > >protected: > nsCOMPtr<nsIAtom> mMatchAtom; > PRInt32 mMatchNameSpaceId; > nsINode* mRootNode; >}; ># 178 "../../../dist/include/content/nsContentList.h" >class nsContentList : public nsBaseContentList, > protected nsContentListKey, > public nsIDOMHTMLCollection, > public nsStubMutationObserver >{ >public: > public: virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) QueryInterface(const nsIID& aIID, void** aInstancePtr); virtual __attribute__ ((visibility ("hidden"))) nsrefcnt __attribute__ ((regparm (0), cdecl)) AddRef(void); virtual __attribute__ ((visibility ("hidden"))) nsrefcnt __attribute__ ((regparm (0), cdecl)) Release(void); ># 202 "../../../dist/include/content/nsContentList.h" > nsContentList(nsINode* aRootNode, > nsIAtom* aMatchAtom, > PRInt32 aMatchNameSpaceId, > PRBool aDeep = 1); ># 220 "../../../dist/include/content/nsContentList.h" > nsContentList(nsINode* aRootNode, > nsContentListMatchFunc aFunc, > nsContentListDestroyFunc aDestroyFunc, > void* aData, > PRBool aDeep = 1, > nsIAtom* aMatchAtom = 0, > PRInt32 aMatchNameSpaceId = kNameSpaceID_None, > PRBool aFuncMayDependOnAttr = 1); > virtual ~nsContentList(); > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLength(PRUint32 *aLength); virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Item(PRUint32 index, nsIDOMNode **_retval); virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NamedItem(const nsAString_internal & name, nsIDOMNode **_retval); > > > virtual PRInt32 IndexOf(nsIContent *aContent, PRBool aDoFlush); > > > __attribute__ ((visibility ("hidden"))) nsISupports* GetParentObject(); > __attribute__ ((visibility ("hidden"))) PRUint32 Length(PRBool aDoFlush); > __attribute__ ((visibility ("hidden"))) nsIContent* Item(PRUint32 aIndex, PRBool aDoFlush); > __attribute__ ((visibility ("hidden"))) nsIContent* NamedItem(const nsAString_internal& aName, PRBool aDoFlush); > > nsContentListKey* GetKey() { > return static_cast<nsContentListKey*>(this); > } > > > > virtual void AttributeChanged(nsIDocument* aDocument, nsIContent* aContent, PRInt32 aNameSpaceID, nsIAtom* aAttribute, PRInt32 aModType, PRUint32 aStateMask); > virtual void ContentAppended(nsIDocument* aDocument, nsIContent* aContainer, PRInt32 aNewIndexInContainer); > virtual void ContentInserted(nsIDocument* aDocument, nsIContent* aContainer, nsIContent* aChild, PRInt32 aIndexInContainer); > virtual void ContentRemoved(nsIDocument* aDocument, nsIContent* aContainer, nsIContent* aChild, PRInt32 aIndexInContainer); > virtual void NodeWillBeDestroyed(const nsINode* aNode); > > static void OnDocumentDestroy(nsIDocument *aDocument); > >protected: > > > > > > > PRBool Match(nsIContent *aContent); > > > > > > > > PRBool MatchSelf(nsIContent *aContent); ># 286 "../../../dist/include/content/nsContentList.h" > void PopulateWith(nsIContent *aContent, PRUint32 & aElementsToAppend); ># 299 "../../../dist/include/content/nsContentList.h" > void PopulateWithStartingAfter(nsINode *aStartRoot, > nsINode *aStartChild, > PRUint32 & aElementsToAppend); ># 311 "../../../dist/include/content/nsContentList.h" > void PopulateSelf(PRUint32 aNeededLength); ># 320 "../../../dist/include/content/nsContentList.h" > PRBool MayContainRelevantNodes(nsINode* aContainer) > { > return mDeep || aContainer == mRootNode; > } > > > > > > void RemoveFromHashtable(); > > > > > inline void BringSelfUpToDate(PRBool aDoFlush); > > > > > > void SetDirty() > { > mState = 1; > Reset(); > } > > > > > > nsContentListMatchFunc mFunc; > > > > nsContentListDestroyFunc mDestroyFunc; > > > > void* mData; > > > > PRPackedBool mMatchAll; > > > > > PRUint8 mState; > > > > > PRPackedBool mDeep; > > > > > PRPackedBool mFuncMayDependOnAttr; > > > > >}; > >already_AddRefed<nsContentList> >NS_GetContentList(nsINode* aRootNode, nsIAtom* aMatchAtom, > PRInt32 aMatchNameSpaceId); ># 53 "../../../dist/include/content/nsContentUtils.h" 2 ># 1 "../../../dist/include/dom/nsDOMClassInfoID.h" 1 ># 54 "../../../dist/include/content/nsContentUtils.h" 2 ># 1 "../../../dist/include/xpcom/nsIClassInfo.h" 1 ># 55 "../../../dist/include/content/nsContentUtils.h" 2 ># 1 "../../../dist/include/dom/nsIDOM3Node.h" 1 ># 17 "../../../dist/include/dom/nsIDOM3Node.h" >class nsIVariant; > >class nsIDOMUserDataHandler; ># 29 "../../../dist/include/dom/nsIDOM3Node.h" >class nsIDOM3Node : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetBaseURI(nsAString_internal & aBaseURI) = 0; > > enum { DOCUMENT_POSITION_DISCONNECTED = 1U }; > > enum { DOCUMENT_POSITION_PRECEDING = 2U }; > > enum { DOCUMENT_POSITION_FOLLOWING = 4U }; > > enum { DOCUMENT_POSITION_CONTAINS = 8U }; > > enum { DOCUMENT_POSITION_CONTAINED_BY = 16U }; > > enum { DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32U }; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTextContent(nsAString_internal & aTextContent) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetTextContent(const nsAString_internal & aTextContent) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsSameNode(nsIDOMNode *other, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LookupPrefix(const nsAString_internal & namespaceURI, nsAString_internal & _retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsDefaultNamespace(const nsAString_internal & namespaceURI, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LookupNamespaceURI(const nsAString_internal & prefix, nsAString_internal & _retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsEqualNode(nsIDOMNode *arg, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFeature(const nsAString_internal & feature, const nsAString_internal & version, nsISupports **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetUserData(const nsAString_internal & key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetUserData(const nsAString_internal & key, nsIVariant **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIDOM3Node::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x29fb2a18, 0x1dd2, 0x11b2, { 0x8d, 0xd9, 0xa6, 0xfd, 0x5d, 0x5a, 0xd1, 0x2f }}; ># 56 "../../../dist/include/content/nsContentUtils.h" 2 ># 1 "../../../dist/include/xpcom/nsDataHashtable.h" 1 ># 41 "../../../dist/include/xpcom/nsDataHashtable.h" ># 1 "../../../dist/include/xpcom/nsHashKeys.h" 1 ># 43 "../../../dist/include/xpcom/nsHashKeys.h" ># 1 "../../../dist/include/xpcom/nsIHashable.h" 1 ># 30 "../../../dist/include/xpcom/nsIHashable.h" >class nsIHashable : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Equals(nsIHashable *aOther, PRBool *_retval) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHashCode(PRUint32 *aHashCode) = 0; > >}; > > template <class Dummy> const nsIID nsIHashable::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x17e595fa, 0xb57a, 0x4933, { 0xbd, 0x0f, 0xb1, 0x81, 0x2e, 0x8a, 0xb1, 0x88 }}; ># 44 "../../../dist/include/xpcom/nsHashKeys.h" 2 > ># 1 "../../../dist/include/xpcom/pldhash.h" 1 ># 47 "../../../dist/include/xpcom/pldhash.h" >extern "C" { ># 80 "../../../dist/include/xpcom/pldhash.h" >typedef PRUint32 PLDHashNumber; >typedef struct PLDHashEntryHdr PLDHashEntryHdr; >typedef struct PLDHashEntryStub PLDHashEntryStub; >typedef struct PLDHashTable PLDHashTable; >typedef struct PLDHashTableOps PLDHashTableOps; ># 115 "../../../dist/include/xpcom/pldhash.h" >struct PLDHashEntryHdr { > PLDHashNumber keyHash; >}; ># 195 "../../../dist/include/xpcom/pldhash.h" >struct PLDHashTable { > const PLDHashTableOps *ops; > void *data; > PRInt16 hashShift; > uint8 maxAlphaFrac; > uint8 minAlphaFrac; > PRUint32 entrySize; > PRUint32 entryCount; > PRUint32 removedCount; > PRUint32 generation; > char *entryStore; ># 227 "../../../dist/include/xpcom/pldhash.h" >}; ># 241 "../../../dist/include/xpcom/pldhash.h" >typedef void * >(* PLDHashAllocTable)(PLDHashTable *table, PRUint32 nbytes); > >typedef void >(* PLDHashFreeTable) (PLDHashTable *table, void *ptr); > > > > > >typedef PLDHashNumber >(* PLDHashHashKey) (PLDHashTable *table, const void *key); > > > > > >typedef PRBool >(* PLDHashMatchEntry)(PLDHashTable *table, > const PLDHashEntryHdr *entry, > const void *key); > > > > > > > >typedef void >(* PLDHashMoveEntry)(PLDHashTable *table, > const PLDHashEntryHdr *from, > PLDHashEntryHdr *to); > > > > > > >typedef void >(* PLDHashClearEntry)(PLDHashTable *table, > PLDHashEntryHdr *entry); > > > > > > >typedef void >(* PLDHashFinalize) (PLDHashTable *table); ># 298 "../../../dist/include/xpcom/pldhash.h" >typedef PRBool >(* PLDHashInitEntry)(PLDHashTable *table, > PLDHashEntryHdr *entry, > const void *key); ># 330 "../../../dist/include/xpcom/pldhash.h" >struct PLDHashTableOps { > > PLDHashAllocTable allocTable; > PLDHashFreeTable freeTable; > PLDHashHashKey hashKey; > PLDHashMatchEntry matchEntry; > PLDHashMoveEntry moveEntry; > PLDHashClearEntry clearEntry; > PLDHashFinalize finalize; > > > PLDHashInitEntry initEntry; >}; > > > > > void * >PL_DHashAllocTable(PLDHashTable *table, PRUint32 nbytes); > > void >PL_DHashFreeTable(PLDHashTable *table, void *ptr); > > PLDHashNumber >PL_DHashStringKey(PLDHashTable *table, const void *key); > > >struct PLDHashEntryStub { > PLDHashEntryHdr hdr; > const void *key; >}; > > PLDHashNumber >PL_DHashVoidPtrKeyStub(PLDHashTable *table, const void *key); > > PRBool >PL_DHashMatchEntryStub(PLDHashTable *table, > const PLDHashEntryHdr *entry, > const void *key); > > PRBool >PL_DHashMatchStringKey(PLDHashTable *table, > const PLDHashEntryHdr *entry, > const void *key); > > void >PL_DHashMoveEntryStub(PLDHashTable *table, > const PLDHashEntryHdr *from, > PLDHashEntryHdr *to); > > void >PL_DHashClearEntryStub(PLDHashTable *table, PLDHashEntryHdr *entry); > > void >PL_DHashFreeStringKey(PLDHashTable *table, PLDHashEntryHdr *entry); > > void >PL_DHashFinalizeStub(PLDHashTable *table); > > > > > > > const PLDHashTableOps * >PL_DHashGetStubOps(void); > > > > > > > > PLDHashTable * >PL_NewDHashTable(const PLDHashTableOps *ops, void *data, PRUint32 entrySize, > PRUint32 capacity); > > > > > > void >PL_DHashTableDestroy(PLDHashTable *table); > > > > > > > > PRBool >PL_DHashTableInit(PLDHashTable *table, const PLDHashTableOps *ops, void *data, > PRUint32 entrySize, PRUint32 capacity); ># 432 "../../../dist/include/xpcom/pldhash.h" > void >PL_DHashTableSetAlphaBounds(PLDHashTable *table, > float maxAlpha, > float minAlpha); ># 476 "../../../dist/include/xpcom/pldhash.h" > void >PL_DHashTableFinish(PLDHashTable *table); > > > > > > > >typedef enum PLDHashOperator { > PL_DHASH_LOOKUP = 0, > PL_DHASH_ADD = 1, > PL_DHASH_REMOVE = 2, > PL_DHASH_NEXT = 0, > PL_DHASH_STOP = 1 >} PLDHashOperator; ># 523 "../../../dist/include/xpcom/pldhash.h" > PLDHashEntryHdr * __attribute__ ((regparm (3),stdcall)) >PL_DHashTableOperate(PLDHashTable *table, const void *key, PLDHashOperator op); ># 535 "../../../dist/include/xpcom/pldhash.h" > void >PL_DHashTableRawRemove(PLDHashTable *table, PLDHashEntryHdr *entry); ># 577 "../../../dist/include/xpcom/pldhash.h" >typedef PLDHashOperator >(* PLDHashEnumerator)(PLDHashTable *table, PLDHashEntryHdr *hdr, > PRUint32 number, void *arg); > > PRUint32 >PL_DHashTableEnumerate(PLDHashTable *table, PLDHashEnumerator etor, void *arg); ># 591 "../../../dist/include/xpcom/pldhash.h" >} ># 46 "../../../dist/include/xpcom/nsHashKeys.h" 2 > > > ># 1 "../../../dist/include/xpcom/nsCRTGlue.h" 1 ># 52 "../../../dist/include/xpcom/nsCRTGlue.h" > const char* >NS_strspnp(const char *delims, const char *str); ># 71 "../../../dist/include/xpcom/nsCRTGlue.h" > char* >NS_strtok(const char *delims, char **str); > > > > > PRUint32 >NS_strlen(const PRUnichar *aString); > > > > > int >NS_strcmp(const PRUnichar *a, const PRUnichar *b); > > > > > PRUnichar* >NS_strdup(const PRUnichar *aString); > > > > > char* >NS_strdup(const char *aString); > > > > > > PRUnichar* >NS_strndup(const PRUnichar *aString, PRUint32 aLen); > > > > > >class nsLowerUpperUtils { >public: > static const unsigned char kLower2Upper[256]; > static const unsigned char kUpper2Lower[256]; >}; > >inline char NS_ToUpper(char aChar) >{ > return (char)nsLowerUpperUtils::kLower2Upper[(unsigned char)aChar]; >} > >inline char NS_ToLower(char aChar) >{ > return (char)nsLowerUpperUtils::kUpper2Lower[(unsigned char)aChar]; >} > > PRBool NS_IsUpper(char aChar); > PRBool NS_IsLower(char aChar); > > PRBool NS_IsAscii(PRUnichar aChar); > PRBool NS_IsAscii(const PRUnichar* aString); > PRBool NS_IsAsciiAlpha(PRUnichar aChar); > PRBool NS_IsAsciiDigit(PRUnichar aChar); > PRBool NS_IsAsciiWhitespace(PRUnichar aChar); > PRBool NS_IsAscii(const char* aString); > PRBool NS_IsAscii(const char* aString, PRUint32 aLength); ># 50 "../../../dist/include/xpcom/nsHashKeys.h" 2 ># 72 "../../../dist/include/xpcom/nsHashKeys.h" > PRUint32 HashString(const nsAString_internal& aStr); > PRUint32 HashString(const nsACString_internal& aStr); > PRUint32 HashString(const char* aKey); > PRUint32 HashString(const PRUnichar* aKey); > > > > > > >class nsStringHashKey : public PLDHashEntryHdr >{ >public: > typedef const nsAString_internal& KeyType; > typedef const nsAString_internal* KeyTypePointer; > > nsStringHashKey(KeyTypePointer aStr) : mStr(*aStr) { } > nsStringHashKey(const nsStringHashKey& toCopy) : mStr(toCopy.mStr) { } > ~nsStringHashKey() { } > > KeyType GetKey() const { return mStr; } > PRBool KeyEquals(const KeyTypePointer aKey) const > { > return mStr.Equals(*aKey); > } > > static KeyTypePointer KeyToPointer(KeyType aKey) { return &aKey; } > static PLDHashNumber HashKey(const KeyTypePointer aKey) > { > return HashString(*aKey); > } > enum { ALLOW_MEMMOVE = 1 }; > >private: > const nsString mStr; >}; > > > > > > >class nsCStringHashKey : public PLDHashEntryHdr >{ >public: > typedef const nsACString_internal& KeyType; > typedef const nsACString_internal* KeyTypePointer; > > nsCStringHashKey(const nsACString_internal* aStr) : mStr(*aStr) { } > nsCStringHashKey(const nsCStringHashKey& toCopy) : mStr(toCopy.mStr) { } > ~nsCStringHashKey() { } > > KeyType GetKey() const { return mStr; } > > PRBool KeyEquals(KeyTypePointer aKey) const { return mStr.Equals(*aKey); } > > static KeyTypePointer KeyToPointer(KeyType aKey) { return &aKey; } > static PLDHashNumber HashKey(KeyTypePointer aKey) > { > return HashString(*aKey); > } > enum { ALLOW_MEMMOVE = 1 }; > >private: > const nsCString mStr; >}; > > > > > > >class nsUint32HashKey : public PLDHashEntryHdr >{ >public: > typedef const PRUint32& KeyType; > typedef const PRUint32* KeyTypePointer; > > nsUint32HashKey(KeyTypePointer aKey) : mValue(*aKey) { } > nsUint32HashKey(const nsUint32HashKey& toCopy) : mValue(toCopy.mValue) { } > ~nsUint32HashKey() { } > > KeyType GetKey() const { return mValue; } > PRBool KeyEquals(KeyTypePointer aKey) const { return *aKey == mValue; } > > static KeyTypePointer KeyToPointer(KeyType aKey) { return &aKey; } > static PLDHashNumber HashKey(KeyTypePointer aKey) { return *aKey; } > enum { ALLOW_MEMMOVE = 1 }; > >private: > const PRUint32 mValue; >}; > > > > > > >class nsISupportsHashKey : public PLDHashEntryHdr >{ >public: > typedef nsISupports* KeyType; > typedef const nsISupports* KeyTypePointer; > > nsISupportsHashKey(const nsISupports* key) : > mSupports(const_cast<nsISupports*>(key)) { } > nsISupportsHashKey(const nsISupportsHashKey& toCopy) : > mSupports(toCopy.mSupports) { } > ~nsISupportsHashKey() { } > > KeyType GetKey() const { return mSupports; } > > PRBool KeyEquals(KeyTypePointer aKey) const { return aKey == mSupports; } > > static KeyTypePointer KeyToPointer(KeyType aKey) { return aKey; } > static PLDHashNumber HashKey(KeyTypePointer aKey) > { > return ((PRInt32) (PRWord) (aKey)) >>2; > } > enum { ALLOW_MEMMOVE = 1 }; > >private: > nsCOMPtr<nsISupports> mSupports; >}; > > > > > > >class nsVoidPtrHashKey : public PLDHashEntryHdr >{ >public: > typedef const void* KeyType; > typedef const void* KeyTypePointer; > > nsVoidPtrHashKey(const void* key) : > mKey(key) { } > nsVoidPtrHashKey(const nsVoidPtrHashKey& toCopy) : > mKey(toCopy.mKey) { } > ~nsVoidPtrHashKey() { } > > KeyType GetKey() const { return mKey; } > > PRBool KeyEquals(KeyTypePointer aKey) const { return aKey == mKey; } > > static KeyTypePointer KeyToPointer(KeyType aKey) { return aKey; } > static PLDHashNumber HashKey(KeyTypePointer aKey) > { > return ((PRInt32) (PRWord) (aKey)) >>2; > } > enum { ALLOW_MEMMOVE = 1 }; > >private: > const void* mKey; >}; ># 237 "../../../dist/include/xpcom/nsHashKeys.h" >class nsClearingVoidPtrHashKey : public PLDHashEntryHdr >{ >public: > typedef const void* KeyType; > typedef const void* KeyTypePointer; > > nsClearingVoidPtrHashKey(const void* key) : > mKey(key) { } > nsClearingVoidPtrHashKey(const nsClearingVoidPtrHashKey& toCopy) : > mKey(toCopy.mKey) { } > ~nsClearingVoidPtrHashKey() { mKey = __null; } > > KeyType GetKey() const { return mKey; } > > PRBool KeyEquals(KeyTypePointer aKey) const { return aKey == mKey; } > > static KeyTypePointer KeyToPointer(KeyType aKey) { return aKey; } > static PLDHashNumber HashKey(KeyTypePointer aKey) > { > return ((PRInt32) (PRWord) (aKey)) >>2; > } > enum { ALLOW_MEMMOVE = 1 }; > >private: > const void* mKey; >}; > > > > > > >class nsIDHashKey : public PLDHashEntryHdr >{ >public: > typedef const nsID& KeyType; > typedef const nsID* KeyTypePointer; > > nsIDHashKey(const nsID* inID) : mID(*inID) { } > nsIDHashKey(const nsIDHashKey& toCopy) : mID(toCopy.mID) { } > ~nsIDHashKey() { } > > KeyType GetKey() const { return mID; } > > PRBool KeyEquals(KeyTypePointer aKey) const { return aKey->Equals(mID); } > > static KeyTypePointer KeyToPointer(KeyType aKey) { return &aKey; } > static PLDHashNumber HashKey(KeyTypePointer aKey); > enum { ALLOW_MEMMOVE = 1 }; > >private: > const nsID mID; >}; ># 301 "../../../dist/include/xpcom/nsHashKeys.h" >class nsDepCharHashKey : public PLDHashEntryHdr >{ >public: > typedef const char* KeyType; > typedef const char* KeyTypePointer; > > nsDepCharHashKey(const char* aKey) { mKey = aKey; } > nsDepCharHashKey(const nsDepCharHashKey& toCopy) { mKey = toCopy.mKey; } > ~nsDepCharHashKey() { } > > const char* GetKey() const { return mKey; } > PRBool KeyEquals(const char* aKey) const > { > return !strcmp(mKey, aKey); > } > > static const char* KeyToPointer(const char* aKey) { return aKey; } > static PLDHashNumber HashKey(const char* aKey) { return HashString(aKey); } > enum { ALLOW_MEMMOVE = 1 }; > >private: > const char* mKey; >}; > > > > > > >class nsCharPtrHashKey : public PLDHashEntryHdr >{ >public: > typedef const char* KeyType; > typedef const char* KeyTypePointer; > > nsCharPtrHashKey(const char* aKey) : mKey(strdup(aKey)) { } > nsCharPtrHashKey(const nsCharPtrHashKey& toCopy) : mKey(strdup(toCopy.mKey)) { } > ~nsCharPtrHashKey() { if (mKey) free(const_cast<char *>(mKey)); } > > const char* GetKey() const { return mKey; } > PRBool KeyEquals(KeyTypePointer aKey) const > { > return !strcmp(mKey, aKey); > } > > static KeyTypePointer KeyToPointer(KeyType aKey) { return aKey; } > static PLDHashNumber HashKey(KeyTypePointer aKey) { return HashString(aKey); } > > enum { ALLOW_MEMMOVE = 1 }; > >private: > const char* mKey; >}; > > > > > > >class nsUnicharPtrHashKey : public PLDHashEntryHdr >{ >public: > typedef const PRUnichar* KeyType; > typedef const PRUnichar* KeyTypePointer; > > nsUnicharPtrHashKey(const PRUnichar* aKey) : mKey(NS_strdup(aKey)) { } > nsUnicharPtrHashKey(const nsUnicharPtrHashKey& toCopy) : mKey(NS_strdup(toCopy.mKey)) { } > ~nsUnicharPtrHashKey() { if (mKey) NS_Free_P(const_cast<PRUnichar *>(mKey)); } > > const PRUnichar* GetKey() const { return mKey; } > PRBool KeyEquals(KeyTypePointer aKey) const > { > return !NS_strcmp(mKey, aKey); > } > > static KeyTypePointer KeyToPointer(KeyType aKey) { return aKey; } > static PLDHashNumber HashKey(KeyTypePointer aKey) { return HashString(aKey); } > > enum { ALLOW_MEMMOVE = 1 }; > >private: > const PRUnichar* mKey; >}; > > > > >class nsHashableHashKey : public PLDHashEntryHdr >{ >public: > typedef nsIHashable* KeyType; > typedef const nsIHashable* KeyTypePointer; > > nsHashableHashKey(const nsIHashable* aKey) : > mKey(const_cast<nsIHashable*>(aKey)) { } > nsHashableHashKey(const nsHashableHashKey& toCopy) : > mKey(toCopy.mKey) { } > ~nsHashableHashKey() { } > > nsIHashable* GetKey() const { return mKey; } > > PRBool KeyEquals(const nsIHashable* aKey) const { > PRBool eq; > if (((__builtin_expect(!!(!((mKey->Equals(const_cast<nsIHashable*>(aKey), &eq)) & 0x80000000)), 1)))) { > return eq; > } > return 0; > } > > static const nsIHashable* KeyToPointer(nsIHashable* aKey) { return aKey; } > static PLDHashNumber HashKey(const nsIHashable* aKey) { > PRUint32 code = 8888; > > > > const_cast<nsIHashable*>(aKey)->GetHashCode(&code); > do { } while (0); > return code; > } > > enum { ALLOW_MEMMOVE = 1 }; > >private: > nsCOMPtr<nsIHashable> mKey; >}; ># 42 "../../../dist/include/xpcom/nsDataHashtable.h" 2 ># 1 "../../../dist/include/xpcom/nsBaseHashtable.h" 1 ># 41 "../../../dist/include/xpcom/nsBaseHashtable.h" ># 1 "../../../dist/include/xpcom/nsTHashtable.h" 1 ># 47 "../../../dist/include/xpcom/nsTHashtable.h" > PLDHashOperator >PL_DHashStubEnumRemove(PLDHashTable *table, > PLDHashEntryHdr *entry, > PRUint32 ordinal, > void *userArg); ># 105 "../../../dist/include/xpcom/nsTHashtable.h" >template<class EntryType> >class nsTHashtable >{ >public: > > > > nsTHashtable(); > > > > > ~nsTHashtable(); > > > > > > > > PRBool Init(PRUint32 initSize = 16); > > > > > > PRBool IsInitialized() const { return !!mTable.entrySize; } > > > > > typedef typename EntryType::KeyType KeyType; > > > > > typedef typename EntryType::KeyTypePointer KeyTypePointer; > > > > > > PRUint32 Count() const { return mTable.entryCount; } > > > > > > > > EntryType* GetEntry(KeyType aKey) const > { > do { } while (0); > > EntryType* entry = > reinterpret_cast<EntryType*> > (PL_DHashTableOperate( > const_cast<PLDHashTable*>(&mTable), > EntryType::KeyToPointer(aKey), > PL_DHASH_LOOKUP)); > return (!((entry)->keyHash == 0)) ? entry : 0; > } > > > > > > > > EntryType* PutEntry(KeyType aKey) > { > do { } while (0); > > return static_cast<EntryType*> > (PL_DHashTableOperate( > &mTable, > EntryType::KeyToPointer(aKey), > PL_DHASH_ADD)); > } > > > > > > void RemoveEntry(KeyType aKey) > { > do { } while (0); > > PL_DHashTableOperate(&mTable, > EntryType::KeyToPointer(aKey), > PL_DHASH_REMOVE); > } ># 206 "../../../dist/include/xpcom/nsTHashtable.h" > void RawRemoveEntry(EntryType* aEntry) > { > PL_DHashTableRawRemove(&mTable, aEntry); > } ># 221 "../../../dist/include/xpcom/nsTHashtable.h" > typedef PLDHashOperator (* Enumerator)(EntryType* aEntry, void* userArg); ># 230 "../../../dist/include/xpcom/nsTHashtable.h" > PRUint32 EnumerateEntries(Enumerator enumFunc, void* userArg) > { > do { } while (0); > > s_EnumArgs args = { enumFunc, userArg }; > return PL_DHashTableEnumerate(&mTable, s_EnumStub, &args); > } > > > > > void Clear() > { > do { } while (0); > > PL_DHashTableEnumerate(&mTable, PL_DHashStubEnumRemove, 0); > } > >protected: > PLDHashTable mTable; > > static const void* s_GetKey(PLDHashTable *table, > PLDHashEntryHdr *entry); > > static PLDHashNumber s_HashKey(PLDHashTable *table, > const void *key); > > static PRBool s_MatchEntry(PLDHashTable *table, > const PLDHashEntryHdr *entry, > const void *key); > > static void s_CopyEntry(PLDHashTable *table, > const PLDHashEntryHdr *from, > PLDHashEntryHdr *to); > > static void s_ClearEntry(PLDHashTable *table, > PLDHashEntryHdr *entry); > > static PRBool s_InitEntry(PLDHashTable *table, > PLDHashEntryHdr *entry, > const void *key); ># 279 "../../../dist/include/xpcom/nsTHashtable.h" > struct s_EnumArgs > { > Enumerator userFunc; > void* userArg; > }; > > static PLDHashOperator s_EnumStub(PLDHashTable *table, > PLDHashEntryHdr *entry, > PRUint32 number, > void *arg); >private: > > nsTHashtable(nsTHashtable<EntryType>& toCopy); > > > nsTHashtable<EntryType>& operator= (nsTHashtable<EntryType>& toEqual); >}; > > > > > >template<class EntryType> >nsTHashtable<EntryType>::nsTHashtable() >{ > > mTable.entrySize = 0; >} > >template<class EntryType> >nsTHashtable<EntryType>::~nsTHashtable() >{ > if (mTable.entrySize) > PL_DHashTableFinish(&mTable); >} > >template<class EntryType> >PRBool >nsTHashtable<EntryType>::Init(PRUint32 initSize) >{ > if (mTable.entrySize) > { > do { } while (0); > return 1; > } > > static PLDHashTableOps sOps = > { > ::PL_DHashAllocTable, > ::PL_DHashFreeTable, > s_HashKey, > s_MatchEntry, > ::PL_DHashMoveEntryStub, > s_ClearEntry, > ::PL_DHashFinalizeStub, > s_InitEntry > }; > > if (!EntryType::ALLOW_MEMMOVE) > { > sOps.moveEntry = s_CopyEntry; > } > > if (!PL_DHashTableInit(&mTable, &sOps, 0, sizeof(EntryType), initSize)) > { > > mTable.entrySize = 0; > return 0; > } > > return 1; >} > > > >template<class EntryType> >PLDHashNumber >nsTHashtable<EntryType>::s_HashKey(PLDHashTable *table, > const void *key) >{ > return EntryType::HashKey(reinterpret_cast<const KeyTypePointer>(key)); >} > >template<class EntryType> >PRBool >nsTHashtable<EntryType>::s_MatchEntry(PLDHashTable *table, > const PLDHashEntryHdr *entry, > const void *key) >{ > return ((const EntryType*) entry)->KeyEquals( > reinterpret_cast<const KeyTypePointer>(key)); >} > >template<class EntryType> >void >nsTHashtable<EntryType>::s_CopyEntry(PLDHashTable *table, > const PLDHashEntryHdr *from, > PLDHashEntryHdr *to) >{ > EntryType* fromEntry = > const_cast<EntryType*>(reinterpret_cast<const EntryType*>(from)); > > new(to) EntryType(*fromEntry); > > fromEntry->~EntryType(); >} > >template<class EntryType> >void >nsTHashtable<EntryType>::s_ClearEntry(PLDHashTable *table, > PLDHashEntryHdr *entry) >{ > reinterpret_cast<EntryType*>(entry)->~EntryType(); >} > >template<class EntryType> >PRBool >nsTHashtable<EntryType>::s_InitEntry(PLDHashTable *table, > PLDHashEntryHdr *entry, > const void *key) >{ > new(entry) EntryType(reinterpret_cast<KeyTypePointer>(key)); > return 1; >} > >template<class EntryType> >PLDHashOperator >nsTHashtable<EntryType>::s_EnumStub(PLDHashTable *table, > PLDHashEntryHdr *entry, > PRUint32 number, > void *arg) >{ > > return (* reinterpret_cast<s_EnumArgs*>(arg)->userFunc)( > reinterpret_cast<EntryType*>(entry), > reinterpret_cast<s_EnumArgs*>(arg)->userArg); >} ># 42 "../../../dist/include/xpcom/nsBaseHashtable.h" 2 ># 1 "../../../dist/include/nspr/prlock.h" 1 ># 43 "../../../dist/include/xpcom/nsBaseHashtable.h" 2 > > >template<class KeyClass,class DataType,class UserDataType> >class nsBaseHashtable; > > > > > > >template<class KeyClass,class DataType> >class nsBaseHashtableET : public KeyClass >{ >public: > DataType mData; > friend class nsTHashtable< nsBaseHashtableET<KeyClass,DataType> >; > >private: > typedef typename KeyClass::KeyType KeyType; > typedef typename KeyClass::KeyTypePointer KeyTypePointer; > > nsBaseHashtableET(KeyTypePointer aKey); > nsBaseHashtableET(nsBaseHashtableET<KeyClass,DataType>& toCopy); > ~nsBaseHashtableET(); >}; ># 81 "../../../dist/include/xpcom/nsBaseHashtable.h" >template<class KeyClass,class DataType,class UserDataType> >class nsBaseHashtable : > protected nsTHashtable< nsBaseHashtableET<KeyClass,DataType> > >{ >public: > typedef typename KeyClass::KeyType KeyType; > typedef nsBaseHashtableET<KeyClass,DataType> EntryType; ># 98 "../../../dist/include/xpcom/nsBaseHashtable.h" > PRBool Init(PRUint32 initSize = 16) > { return nsTHashtable<EntryType>::Init(initSize); } > > > > > > > PRBool IsInitialized() const { return !!this->mTable.entrySize; } > > > > > > PRUint32 Count() const > { return nsTHashtable<EntryType>::Count(); } ># 124 "../../../dist/include/xpcom/nsBaseHashtable.h" > PRBool Get(KeyType aKey, UserDataType* pData) const > { > EntryType* ent = GetEntry(aKey); > > if (!ent) > return 0; > > if (pData) > *pData = ent->mData; > > return 1; > } > > > > > > > > PRBool Put(KeyType aKey, UserDataType aData) > { > EntryType* ent = PutEntry(aKey); > > if (!ent) > return 0; > > ent->mData = aData; > > return 1; > } > > > > > > void Remove(KeyType aKey) { RemoveEntry(aKey); } ># 170 "../../../dist/include/xpcom/nsBaseHashtable.h" > typedef PLDHashOperator > (* EnumReadFunction)(KeyType aKey, > UserDataType aData, > void* userArg); > > > > > > > PRUint32 EnumerateRead(EnumReadFunction enumFunc, void* userArg) const > { > do { } while (0); > > > s_EnumReadArgs enumData = { enumFunc, userArg }; > return PL_DHashTableEnumerate(const_cast<PLDHashTable*>(&this->mTable), > s_EnumReadStub, > &enumData); > } ># 202 "../../../dist/include/xpcom/nsBaseHashtable.h" > typedef PLDHashOperator > (* EnumFunction)(KeyType aKey, > DataType& aData, > void* userArg); > > > > > > > > PRUint32 Enumerate(EnumFunction enumFunc, void* userArg) > { > do { } while (0); > > > s_EnumArgs enumData = { enumFunc, userArg }; > return PL_DHashTableEnumerate(&this->mTable, > s_EnumStub, > &enumData); > } > > > > > void Clear() { nsTHashtable<EntryType>::Clear(); } > >protected: > > > > > > struct s_EnumReadArgs > { > EnumReadFunction func; > void* userArg; > }; > > static PLDHashOperator s_EnumReadStub(PLDHashTable *table, > PLDHashEntryHdr *hdr, > PRUint32 number, > void *arg); > > struct s_EnumArgs > { > EnumFunction func; > void* userArg; > }; > > static PLDHashOperator s_EnumStub(PLDHashTable *table, > PLDHashEntryHdr *hdr, > PRUint32 number, > void *arg); >}; > > > > >template<class KeyClass,class DataType,class UserDataType> >class nsBaseHashtableMT : > protected nsBaseHashtable<KeyClass,DataType,UserDataType> >{ >public: > typedef typename > nsBaseHashtable<KeyClass,DataType,UserDataType>::EntryType EntryType; > typedef typename > nsBaseHashtable<KeyClass,DataType,UserDataType>::KeyType KeyType; > typedef typename > nsBaseHashtable<KeyClass,DataType,UserDataType>::EnumFunction EnumFunction; > typedef typename > nsBaseHashtable<KeyClass,DataType,UserDataType>::EnumReadFunction EnumReadFunction; > > nsBaseHashtableMT() : mLock(0) { } > ~nsBaseHashtableMT(); > > PRBool Init(PRUint32 initSize = 16); > PRBool IsInitialized() const { return mLock != 0; } > PRUint32 Count() const; > PRBool Get(KeyType aKey, UserDataType* pData) const; > PRBool Put(KeyType aKey, UserDataType aData); > void Remove(KeyType aKey); > > PRUint32 EnumerateRead(EnumReadFunction enumFunc, void* userArg) const; > PRUint32 Enumerate(EnumFunction enumFunc, void* userArg); > void Clear(); > >protected: > PRLock* mLock; >}; > > > > > > >template<class KeyClass,class DataType> >nsBaseHashtableET<KeyClass,DataType>::nsBaseHashtableET(KeyTypePointer aKey) : > KeyClass(aKey) >{ } > >template<class KeyClass,class DataType> >nsBaseHashtableET<KeyClass,DataType>::nsBaseHashtableET > (nsBaseHashtableET<KeyClass,DataType>& toCopy) : > KeyClass(toCopy), > mData(toCopy.mData) >{ } > >template<class KeyClass,class DataType> >nsBaseHashtableET<KeyClass,DataType>::~nsBaseHashtableET() >{ } > > > > > > >template<class KeyClass,class DataType,class UserDataType> >PLDHashOperator >nsBaseHashtable<KeyClass,DataType,UserDataType>::s_EnumReadStub > (PLDHashTable *table, PLDHashEntryHdr *hdr, PRUint32 number, void* arg) >{ > EntryType* ent = static_cast<EntryType*>(hdr); > s_EnumReadArgs* eargs = (s_EnumReadArgs*) arg; > > PLDHashOperator res = (eargs->func)(ent->GetKey(), ent->mData, eargs->userArg); > > do { } while (0); > > > if (res & PL_DHASH_STOP) > return PL_DHASH_STOP; > > return PL_DHASH_NEXT; >} > >template<class KeyClass,class DataType,class UserDataType> >PLDHashOperator >nsBaseHashtable<KeyClass,DataType,UserDataType>::s_EnumStub > (PLDHashTable *table, PLDHashEntryHdr *hdr, PRUint32 number, void* arg) >{ > EntryType* ent = static_cast<EntryType*>(hdr); > s_EnumArgs* eargs = (s_EnumArgs*) arg; > > return (eargs->func)(ent->GetKey(), ent->mData, eargs->userArg); >} > > > > > > >template<class KeyClass,class DataType,class UserDataType> >nsBaseHashtableMT<KeyClass,DataType,UserDataType>::~nsBaseHashtableMT() >{ > if (this->mLock) > PR_DestroyLock(this->mLock); >} > >template<class KeyClass,class DataType,class UserDataType> >PRBool >nsBaseHashtableMT<KeyClass,DataType,UserDataType>::Init(PRUint32 initSize) >{ > if (!nsTHashtable<EntryType>::IsInitialized() && !nsTHashtable<EntryType>::Init(initSize)) > return 0; > > this->mLock = PR_NewLock(); > do { } while (0); > > return (this->mLock != 0); >} > >template<class KeyClass,class DataType,class UserDataType> >PRUint32 >nsBaseHashtableMT<KeyClass,DataType,UserDataType>::Count() const >{ > PR_Lock(this->mLock); > PRUint32 count = nsTHashtable<EntryType>::Count(); > PR_Unlock(this->mLock); > > return count; >} > >template<class KeyClass,class DataType,class UserDataType> >PRBool >nsBaseHashtableMT<KeyClass,DataType,UserDataType>::Get(KeyType aKey, > UserDataType* pData) const >{ > PR_Lock(this->mLock); > PRBool res = > nsBaseHashtable<KeyClass,DataType,UserDataType>::Get(aKey, pData); > PR_Unlock(this->mLock); > > return res; >} > >template<class KeyClass,class DataType,class UserDataType> >PRBool >nsBaseHashtableMT<KeyClass,DataType,UserDataType>::Put(KeyType aKey, > UserDataType aData) >{ > PR_Lock(this->mLock); > PRBool res = > nsBaseHashtable<KeyClass,DataType,UserDataType>::Put(aKey, aData); > PR_Unlock(this->mLock); > > return res; >} > >template<class KeyClass,class DataType,class UserDataType> >void >nsBaseHashtableMT<KeyClass,DataType,UserDataType>::Remove(KeyType aKey) >{ > PR_Lock(this->mLock); > nsBaseHashtable<KeyClass,DataType,UserDataType>::Remove(aKey); > PR_Unlock(this->mLock); >} > >template<class KeyClass,class DataType,class UserDataType> >PRUint32 >nsBaseHashtableMT<KeyClass,DataType,UserDataType>::EnumerateRead > (EnumReadFunction fEnumCall, void* userArg) const >{ > PR_Lock(this->mLock); > PRUint32 count = > nsBaseHashtable<KeyClass,DataType,UserDataType>::EnumerateRead(fEnumCall, userArg); > PR_Unlock(this->mLock); > > return count; >} > >template<class KeyClass,class DataType,class UserDataType> >PRUint32 >nsBaseHashtableMT<KeyClass,DataType,UserDataType>::Enumerate > (EnumFunction fEnumCall, void* userArg) >{ > PR_Lock(this->mLock); > PRUint32 count = > nsBaseHashtable<KeyClass,DataType,UserDataType>::Enumerate(fEnumCall, userArg); > PR_Unlock(this->mLock); > > return count; >} > >template<class KeyClass,class DataType,class UserDataType> >void >nsBaseHashtableMT<KeyClass,DataType,UserDataType>::Clear() >{ > PR_Lock(this->mLock); > nsBaseHashtable<KeyClass,DataType,UserDataType>::Clear(); > PR_Unlock(this->mLock); >} ># 43 "../../../dist/include/xpcom/nsDataHashtable.h" 2 ># 52 "../../../dist/include/xpcom/nsDataHashtable.h" >template<class KeyClass,class DataType> >class nsDataHashtable : > public nsBaseHashtable<KeyClass,DataType,DataType> >{ }; > >template<class KeyClass,class DataType> >class nsDataHashtableMT : > public nsBaseHashtableMT<KeyClass,DataType,DataType> >{ }; ># 57 "../../../dist/include/content/nsContentUtils.h" 2 ># 1 "../../../dist/include/dom/nsIScriptRuntime.h" 1 ># 40 "../../../dist/include/dom/nsIScriptRuntime.h" ># 1 "../../../dist/include/dom/nsIScriptContext.h" 1 ># 41 "../../../dist/include/dom/nsIScriptRuntime.h" 2 ># 52 "../../../dist/include/dom/nsIScriptRuntime.h" >class nsIScriptRuntime : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > virtual PRUint32 GetScriptTypeID() = 0; > > > > > virtual void ShutDown() = 0; > > > > > > > virtual nsresult ParseVersion(const nsString &aVersionStr, PRUint32 *verFlags) = 0; > > > virtual nsresult CreateContext(nsIScriptContext **ret) = 0; > > > > > > virtual nsresult DropScriptObject(void *object) = 0; > virtual nsresult HoldScriptObject(void *object) = 0; >}; > >template <class Dummy> const nsIID nsIScriptRuntime::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x47032a4d, 0xc22, 0x4125, { 0x94, 0xb7, 0x86, 0x4a, 0x4b, 0x74, 0x43, 0x35 } }; > > >nsresult NS_GetScriptRuntime(const nsAString_internal &aLanguageName, > nsIScriptRuntime **aRuntime); > >nsresult NS_GetScriptRuntimeByID(PRUint32 aLanguageID, > nsIScriptRuntime **aRuntime); ># 58 "../../../dist/include/content/nsContentUtils.h" 2 ># 1 "../../../dist/include/dom/nsIScriptGlobalObject.h" 1 ># 59 "../../../dist/include/content/nsContentUtils.h" 2 ># 1 "../../../dist/include/dom/nsIDOMEvent.h" 1 ># 17 "../../../dist/include/dom/nsIDOMEvent.h" >class nsIDOMEventTarget; ># 27 "../../../dist/include/dom/nsIDOMEvent.h" >class nsIDOMEvent : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 44 "../../../dist/include/dom/nsIDOMEvent.h" > enum { CAPTURING_PHASE = 1U }; > > > > > enum { AT_TARGET = 2U }; > > > > > enum { BUBBLING_PHASE = 3U }; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetType(nsAString_internal & aType) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTarget(nsIDOMEventTarget * *aTarget) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCurrentTarget(nsIDOMEventTarget * *aCurrentTarget) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetEventPhase(PRUint16 *aEventPhase) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetBubbles(PRBool *aBubbles) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCancelable(PRBool *aCancelable) = 0; ># 109 "../../../dist/include/dom/nsIDOMEvent.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTimeStamp(DOMTimeStamp *aTimeStamp) = 0; ># 120 "../../../dist/include/dom/nsIDOMEvent.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) StopPropagation(void) = 0; ># 135 "../../../dist/include/dom/nsIDOMEvent.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PreventDefault(void) = 0; ># 164 "../../../dist/include/dom/nsIDOMEvent.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InitEvent(const nsAString_internal & eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMEvent::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa66b7b80, 0xff46, 0xbd97, { 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0x8a, 0xdd, 0x32 }}; ># 60 "../../../dist/include/content/nsContentUtils.h" 2 ># 1 "../../../dist/include/xpcom/nsTArray.h" 1 ># 43 "../../../dist/include/xpcom/nsTArray.h" ># 1 "../../../dist/include/xpcom/nsQuickSort.h" 1 ># 49 "../../../dist/include/xpcom/nsQuickSort.h" >extern "C" { ># 63 "../../../dist/include/xpcom/nsQuickSort.h" > void NS_QuickSort(void *, unsigned int, unsigned int, > int (*)(const void *, const void *, void *), > void *); > >} ># 44 "../../../dist/include/xpcom/nsTArray.h" 2 ># 53 "../../../dist/include/xpcom/nsTArray.h" >class nsTArray_base { > public: > typedef PRUint32 size_type; > typedef PRUint32 index_type; > > > > enum { > NoIndex = index_type(-1) > }; > > > size_type Length() const { > return mHdr->mLength; > } > > > PRBool IsEmpty() const { > return Length() == 0; > } > > > > > size_type Capacity() const { > return mHdr->mCapacity; > } > > > > > > > > protected: > nsTArray_base(); > ~nsTArray_base(); > > > > > > PRBool EnsureCapacity(size_type capacity, size_type elementSize); > > > > void ShrinkCapacity(size_type elementSize); ># 108 "../../../dist/include/xpcom/nsTArray.h" > void ShiftData(index_type start, size_type oldLen, size_type newLen, > size_type elementSize); > > > > > > void IncrementLength(PRUint32 n) { > do { } while (0); > mHdr->mLength += n; > } > > > > > > > PRBool InsertSlotsAt(index_type index, size_type count, > size_type elementSize); > > protected: > > > > PRBool SwapArrayElements(nsTArray_base& other, size_type elementSize); > > > > PRBool EnsureNotUsingAutoArrayBuffer(size_type elemSize); > > > > struct Header { > PRUint32 mLength; > PRUint32 mCapacity : 31; > PRUint32 mIsAutoArray : 1; > }; > > > PRBool IsAutoArray() { > return mHdr->mIsAutoArray; > } > > > Header* GetAutoArrayBuffer() { > do { } while (0); > > return reinterpret_cast<Header*>(&mHdr + 1); > } > > > > PRBool UsesAutoArrayBuffer() { > return mHdr->mIsAutoArray && mHdr == GetAutoArrayBuffer(); > } > > > > > static Header sEmptyHdr; > > > > Header *mHdr; >}; > > > > > >template<class E> >class nsTArrayElementTraits { > public: > > static inline void Construct(E *e) { > > > > > > new (static_cast<void *>(e)) E; > } > > template<class A> > static inline void Construct(E *e, const A &arg) { > new (static_cast<void *>(e)) E(arg); > } > > static inline void Destruct(E *e) { > e->~E(); > } >}; > > > >template <class E, class Comparator> >class nsQuickSortComparator { > public: > typedef E elem_type; > > > > static int Compare(const void* e1, const void* e2, void *data) { > const Comparator* c = reinterpret_cast<const Comparator*>(data); > const elem_type* a = static_cast<const elem_type*>(e1); > const elem_type* b = static_cast<const elem_type*>(e2); > return c->LessThan(*a, *b) ? -1 : (c->Equals(*a, *b) ? 0 : 1); > } >}; > > >template<class A, class B> >class nsDefaultComparator { > public: > PRBool Equals(const A& a, const B& b) const { > return a == b; > } > PRBool LessThan(const A& a, const B& b) const { > return a < b; > } >}; ># 256 "../../../dist/include/xpcom/nsTArray.h" >template<class E> >class nsTArray : public nsTArray_base { > public: > typedef E elem_type; > typedef nsTArray<E> self_type; > typedef nsTArrayElementTraits<E> elem_traits; > > > > > > ~nsTArray() { Clear(); } > > > > > > nsTArray() {} > > > explicit nsTArray(size_type capacity) { > SetCapacity(capacity); > } > > > > nsTArray(const self_type& other) { > AppendElements(other); > } > > > > > nsTArray& operator=(const self_type& other) { > ReplaceElementsAt(0, Length(), other.Elements(), other.Length()); > return *this; > } ># 301 "../../../dist/include/xpcom/nsTArray.h" > elem_type* Elements() { > return reinterpret_cast<elem_type *>(mHdr + 1); > } > > > > > const elem_type* Elements() const { > return reinterpret_cast<const elem_type *>(mHdr + 1); > } > > > > > > elem_type& ElementAt(index_type i) { > do { } while (0); > return Elements()[i]; > } > > > > > > const elem_type& ElementAt(index_type i) const { > do { } while (0); > return Elements()[i]; > } > > > > > > > elem_type& SafeElementAt(index_type i, elem_type& def) { > return i < Length() ? Elements()[i] : def; > } > > > > > > > const elem_type& SafeElementAt(index_type i, const elem_type& def) const { > return i < Length() ? Elements()[i] : def; > } > > > elem_type& operator[](index_type i) { > return ElementAt(i); > } > > > const elem_type& operator[](index_type i) const { > return ElementAt(i); > } ># 367 "../../../dist/include/xpcom/nsTArray.h" > template<class Item, class Comparator> > PRBool Contains(const Item& item, const Comparator& comp) const { > return IndexOf(item, 0, comp) != NoIndex; > } > > > > > > > template<class Item> > PRBool Contains(const Item& item) const { > return IndexOf(item) != NoIndex; > } > > > > > > > > template<class Item, class Comparator> > index_type IndexOf(const Item& item, index_type start, > const Comparator& comp) const { > const elem_type* iter = Elements() + start, *end = iter + Length(); > for (; iter != end; ++iter) { > if (comp.Equals(*iter, item)) > return iter - Elements(); > } > return NoIndex; > } > > > > > > > > template<class Item> > index_type IndexOf(const Item& item, index_type start = 0) const { > return IndexOf(item, start, nsDefaultComparator<elem_type, Item>()); > } ># 417 "../../../dist/include/xpcom/nsTArray.h" > template<class Item, class Comparator> > index_type LastIndexOf(const Item& item, index_type start, > const Comparator& comp) const { > if (start >= Length()) > start = Length() - 1; > const elem_type* end = Elements() - 1, *iter = end + start + 1; > for (; iter != end; --iter) { > if (comp.Equals(*iter, item)) > return iter - Elements(); > } > return NoIndex; > } ># 437 "../../../dist/include/xpcom/nsTArray.h" > template<class Item> > index_type LastIndexOf(const Item& item, > index_type start = NoIndex) const { > return LastIndexOf(item, start, nsDefaultComparator<elem_type, Item>()); > } > > > > > > > template<class Item, class Comparator> > index_type BinaryIndexOf(const Item& item, const Comparator& comp) const { > index_type low = 0, high = Length(); > while (high > low) { > index_type mid = (high + low) >> 1; > if (comp.Equals(ElementAt(mid), item)) > return mid; > if (comp.LessThan(ElementAt(mid), item)) > low = mid + 1; > else > high = mid; > } > return NoIndex; > } > > > > > > > template<class Item> > index_type BinaryIndexOf(const Item& item) const { > return BinaryIndexOf(item, nsDefaultComparator<elem_type, Item>()); > } ># 487 "../../../dist/include/xpcom/nsTArray.h" > template<class Item> > elem_type *ReplaceElementsAt(index_type start, size_type count, > const Item* array, size_type arrayLen) { > > if (!EnsureCapacity(Length() + arrayLen - count, sizeof(elem_type))) > return 0; > DestructRange(start, count); > ShiftData(start, count, arrayLen, sizeof(elem_type)); > AssignRange(start, arrayLen, array); > return Elements() + start; > } > > > template<class Item> > elem_type *ReplaceElementsAt(index_type start, size_type count, > const nsTArray<Item>& array) { > return ReplaceElementsAt(start, count, array.Elements(), array.Length()); > } > > > template<class Item> > elem_type *ReplaceElementsAt(index_type start, size_type count, > const Item& item) { > return ReplaceElementsAt(start, count, &item, 1); > } > > > template<class Item> > elem_type *InsertElementsAt(index_type index, const Item* array, > size_type arrayLen) { > return ReplaceElementsAt(index, 0, array, arrayLen); > } > > > template<class Item> > elem_type *InsertElementsAt(index_type index, const nsTArray<Item>& array) { > return ReplaceElementsAt(index, 0, array.Elements(), array.Length()); > } > > > template<class Item> > elem_type *InsertElementAt(index_type index, const Item& item) { > return ReplaceElementsAt(index, 0, &item, 1); > } > > > > > elem_type* InsertElementAt(index_type index) { > if (!EnsureCapacity(Length() + 1, sizeof(elem_type))) > return 0; > ShiftData(index, 0, 1, sizeof(elem_type)); > elem_type *elem = Elements() + index; > elem_traits::Construct(elem); > return elem; > } > > > > > > > template<class Item> > elem_type *AppendElements(const Item* array, size_type arrayLen) { > if (!EnsureCapacity(Length() + arrayLen, sizeof(elem_type))) > return 0; > index_type len = Length(); > AssignRange(len, arrayLen, array); > IncrementLength(arrayLen); > return Elements() + len; > } > > > template<class Item> > elem_type *AppendElements(const nsTArray<Item>& array) { > return AppendElements(array.Elements(), array.Length()); > } > > > template<class Item> > elem_type *AppendElement(const Item& item) { > return AppendElements(&item, 1); > } > > > > > elem_type *AppendElements(size_type count) { > if (!EnsureCapacity(Length() + count, sizeof(elem_type))) > return 0; > elem_type *elems = Elements() + Length(); > size_type i; > for (i = 0; i < count; ++i) { > elem_traits::Construct(elems + i); > } > IncrementLength(count); > return elems; > } > > > > > elem_type *AppendElement() { > return AppendElements(1); > } > > > > > void RemoveElementsAt(index_type start, size_type count) { > do { } while (0); > do { } while (0); > DestructRange(start, count); > ShiftData(start, count, 0, sizeof(elem_type)); > } > > > void RemoveElementAt(index_type index) { > RemoveElementsAt(index, 1); > } > > > void Clear() { > RemoveElementsAt(0, Length()); > } > > > > > > > template<class Item, class Comparator> > PRBool RemoveElement(const Item& item, const Comparator& comp) { > index_type i = IndexOf(item, 0, comp); > if (i == NoIndex) > return 0; > > RemoveElementAt(i); > return 1; > } > > > > template<class Item> > PRBool RemoveElement(const Item& item) { > return RemoveElement(item, nsDefaultComparator<elem_type, Item>()); > } > > > > > > PRBool SwapElements(self_type& other) { > return SwapArrayElements(other, sizeof(elem_type)); > } ># 653 "../../../dist/include/xpcom/nsTArray.h" > PRBool SetCapacity(size_type capacity) { > return EnsureCapacity(capacity, sizeof(elem_type)); > } > > > > > > > > PRBool SetLength(size_type newLen) { > size_type oldLen = Length(); > if (newLen > oldLen) { > return InsertElementsAt(oldLen, newLen - oldLen) != 0; > } > > RemoveElementsAt(newLen, oldLen - newLen); > return 1; > } > > > > > > > elem_type *InsertElementsAt(index_type index, size_type count) { > if (!nsTArray_base::InsertSlotsAt(index, count, sizeof(elem_type))) { > return 0; > } > > > elem_type *iter = Elements() + index, *end = iter + count; > for (; iter != end; ++iter) { > elem_traits::Construct(iter); > } > > return Elements() + index; > } ># 699 "../../../dist/include/xpcom/nsTArray.h" > template<class Item> > elem_type *InsertElementsAt(index_type index, size_type count, > const Item& item) { > if (!nsTArray_base::InsertSlotsAt(index, count, sizeof(elem_type))) { > return 0; > } > > > elem_type *iter = Elements() + index, *end = iter + count; > for (; iter != end; ++iter) { > elem_traits::Construct(iter, item); > } > > return Elements() + index; > } > > > void Compact() { > ShrinkCapacity(sizeof(elem_type)); > } ># 727 "../../../dist/include/xpcom/nsTArray.h" > template<class Comparator> > void Sort(const Comparator& comp) { > NS_QuickSort(Elements(), Length(), sizeof(elem_type), > nsQuickSortComparator<elem_type, Comparator>::Compare, > const_cast<Comparator*>(&comp)); > } > > > > void Sort() { > Sort(nsDefaultComparator<elem_type, elem_type>()); > } > > protected: > > > > > void DestructRange(index_type start, size_type count) { > elem_type *iter = Elements() + start, *end = iter + count; > for (; iter != end; ++iter) { > elem_traits::Destruct(iter); > } > } > > > > > > template<class Item> > void AssignRange(index_type start, size_type count, > const Item *values) { > elem_type *iter = Elements() + start, *end = iter + count; > for (; iter != end; ++iter, ++values) { > elem_traits::Construct(iter, *values); > } > } >}; > >template<class E, PRUint32 N> >class nsAutoTArray : public nsTArray<E> { > public: > typedef nsTArray<E> base_type; > typedef typename base_type::Header Header; > typedef typename base_type::elem_type elem_type; > > nsAutoTArray() { > base_type::mHdr = reinterpret_cast<Header*>(&mAutoBuf); > base_type::mHdr->mLength = 0; > base_type::mHdr->mCapacity = N; > base_type::mHdr->mIsAutoArray = 1; > > do { } while (0); > > > } > > protected: > char mAutoBuf[sizeof(Header) + N * sizeof(elem_type)]; >}; > > > >template<class E> >class nsAutoTArray<E, 0> : public nsTArray<E> { > public: > nsAutoTArray() {} >}; ># 61 "../../../dist/include/content/nsContentUtils.h" 2 > >struct nsNativeKeyEvent; > >class nsIDOMScriptObjectFactory; >class nsIXPConnect; >class nsINode; >class nsIContent; >class nsIDOMNode; >class nsIDocument; >class nsIDocShell; >class nsINameSpaceManager; >class nsIScriptSecurityManager; >class nsIJSContextStack; >class nsIThreadJSContextStack; >class nsIParserService; >class nsIIOService; >class nsIURI; >class imgIDecoderObserver; >class imgIRequest; >class imgILoader; >class nsIPrefBranch; >class nsIImage; >class nsIImageLoadingContent; >class nsIDOMHTMLFormElement; >class nsIDOMDocument; >class nsIConsoleService; >class nsIStringBundleService; >class nsIStringBundle; >class nsIContentPolicy; >class nsILineBreaker; >class nsIWordBreaker; >class nsIJSRuntimeService; >class nsIEventListenerManager; >class nsIScriptContext; >class nsIRunnable; >template<class E> class nsCOMArray; >class nsIPref; >class nsVoidArray; >struct JSRuntime; >class nsICaseConversion; >class nsIWidget; >class nsPIDOMWindow; > >class nsIXTFService; > > >class nsIBidiKeyboard; > > >extern const char kLoadAsData[]; > >enum EventNameType { > EventNameType_None = 0x0000, > EventNameType_HTML = 0x0001, > EventNameType_XUL = 0x0002, > EventNameType_SVGGraphic = 0x0004, > EventNameType_SVGSVG = 0x0008, > > EventNameType_HTMLXUL = 0x0003, > EventNameType_All = 0xFFFF >}; > >struct EventNameMapping { > PRUint32 mId; > PRInt32 mType; >}; > >struct nsShortcutCandidate { > nsShortcutCandidate(PRUint32 aCharCode, PRBool aIgnoreShift) : > mCharCode(aCharCode), mIgnoreShift(aIgnoreShift) > { > } > PRUint32 mCharCode; > PRBool mIgnoreShift; >}; > >class nsContentUtils >{ >public: > static nsresult Init(); > > > > > > > > static nsresult ReparentContentWrapper(nsIContent *aNode, > nsIContent *aNewParent, > nsIDocument *aNewDocument, > nsIDocument *aOldDocument); ># 164 "../../../dist/include/content/nsContentUtils.h" > static nsresult GetContextAndScopes(nsIDocument *aOldDocument, > nsIDocument *aNewDocument, > JSContext **aCx, JSObject **aOldScope, > JSObject **aNewScope); > > > > > > static nsresult ReparentContentWrappersInScope(nsIScriptGlobalObject *aOldScope, > nsIScriptGlobalObject *aNewScope); > > static PRBool IsCallerChrome(); > > static PRBool IsCallerTrustedForRead(); > > static PRBool IsCallerTrustedForWrite(); > > > > > > static PRBool IsCallerTrustedForCapability(const char* aCapability); ># 201 "../../../dist/include/content/nsContentUtils.h" > static PRBool ContentIsDescendantOf(nsINode* aPossibleDescendant, > nsINode* aPossibleAncestor); ># 211 "../../../dist/include/content/nsContentUtils.h" > static nsresult GetAncestors(nsIDOMNode* aNode, > nsVoidArray* aArray); ># 226 "../../../dist/include/content/nsContentUtils.h" > static nsresult GetAncestorsAndOffsets(nsIDOMNode* aNode, > PRInt32 aOffset, > nsVoidArray* aAncestorNodes, > nsVoidArray* aAncestorOffsets); > > > > > > > > static nsresult GetCommonAncestor(nsIDOMNode *aNode, > nsIDOMNode *aOther, > nsIDOMNode** aCommonAncestor); > > > > > > static nsINode* GetCommonAncestor(nsINode* aNode1, > nsINode* aNode2); ># 262 "../../../dist/include/content/nsContentUtils.h" > static PRUint16 ComparePosition(nsINode* aNode1, > nsINode* aNode2); > > > > > > static PRBool PositionIsBefore(nsINode* aNode1, > nsINode* aNode2) > { > return (ComparePosition(aNode1, aNode2) & > (nsIDOM3Node::DOCUMENT_POSITION_PRECEDING | > nsIDOM3Node::DOCUMENT_POSITION_DISCONNECTED)) == > nsIDOM3Node::DOCUMENT_POSITION_PRECEDING; > } ># 287 "../../../dist/include/content/nsContentUtils.h" > static PRInt32 ComparePoints(nsINode* aParent1, PRInt32 aOffset1, > nsINode* aParent2, PRInt32 aOffset2, > PRBool* aDisconnected = 0); ># 301 "../../../dist/include/content/nsContentUtils.h" > static nsIContent* FindFirstChildWithResolvedTag(nsIContent* aParent, > PRInt32 aNamespace, > nsIAtom* aTag); > > > > > > > static nsIContent* MatchElementId(nsIContent *aContent, > const nsAString_internal& aId); > > > > > static nsIContent* MatchElementId(nsIContent *aContent, > nsIAtom* aId); ># 334 "../../../dist/include/content/nsContentUtils.h" > static nsIContent* GetReferencedElement(nsIURI* aURI, > nsIContent *aFromContent); ># 347 "../../../dist/include/content/nsContentUtils.h" > static PRUint16 ReverseDocumentPosition(PRUint16 aDocumentPosition); > > static PRUint32 CopyNewlineNormalizedUnicodeTo(const nsAString_internal& aSource, > PRUint32 aSrcOffset, > PRUnichar* aDest, > PRUint32 aLength, > PRBool& aLastCharCR); > > static PRUint32 CopyNewlineNormalizedUnicodeTo(nsReadingIterator<PRUnichar>& aSrcStart, const nsReadingIterator<PRUnichar>& aSrcEnd, nsAString_internal& aDest); > > static nsISupports * > GetClassInfoInstance(nsDOMClassInfoID aID); > > static const nsDependentSubstring TrimCharsInSet(const char* aSet, > const nsAString_internal& aValue); > > static const nsDependentSubstring TrimWhitespace(const nsAString_internal& aStr, > PRBool aTrimTrailing = 1); > > > > > > static PRBool IsPunctuationMark(PRUnichar aChar); > > static void Shutdown(); ># 381 "../../../dist/include/content/nsContentUtils.h" > static nsresult CheckSameOrigin(nsIDOMNode* aTrustedNode, > nsIDOMNode* aUnTrustedNode); > > > static PRBool CanCallerAccess(nsIDOMNode *aNode); > > > > static PRBool CanCallerAccess(nsPIDOMWindow* aWindow); > > > > > > > > static nsIDocShell *GetDocShellFromCaller(); ># 421 "../../../dist/include/content/nsContentUtils.h" > static nsIDOMDocument *GetDocumentFromCaller(); ># 430 "../../../dist/include/content/nsContentUtils.h" > static nsIDOMDocument *GetDocumentFromContext(); > > > > static PRBool InProlog(nsINode *aNode); > > static nsIParserService* GetParserService(); > > static nsINameSpaceManager* NameSpaceManager() > { > return sNameSpaceManager; > } > > static nsIIOService* GetIOService() > { > return sIOService; > } > > static imgILoader* GetImgLoader() > { > return sImgLoader; > } > > > static nsIXTFService* GetXTFService(); > > > > static nsIBidiKeyboard* GetBidiKeyboard(); > > > > > > > static nsIScriptSecurityManager* GetSecurityManager() > { > return sSecurityManager; > } > > static nsresult GenerateStateKey(nsIContent* aContent, > nsIDocument* aDocument, > nsIStatefulFrame::SpecialStateID aID, > nsACString_internal& aKey); > > > > > > > static nsresult NewURIWithDocumentCharset(nsIURI** aResult, > const nsAString_internal& aSpec, > nsIDocument* aDocument, > nsIURI* aBaseURI); > > > > > > > static nsresult ConvertStringFromCharset(const nsACString_internal& aCharset, > const nsACString_internal& aInput, > nsAString_internal& aOutput); ># 503 "../../../dist/include/content/nsContentUtils.h" > static PRBool CheckForBOM(const unsigned char* aBuffer, PRUint32 aLength, > nsACString_internal& aCharset); ># 515 "../../../dist/include/content/nsContentUtils.h" > static PRBool BelongsInForm(nsIDOMHTMLFormElement *aForm, > nsIContent *aContent); > > static nsresult CheckQName(const nsAString_internal& aQualifiedName, > PRBool aNamespaceAware = 1); > > static nsresult SplitQName(nsIContent* aNamespaceResolver, > const nsAFlatString& aQName, > PRInt32 *aNamespace, nsIAtom **aLocalName); > > static nsresult LookupNamespaceURI(nsIContent* aNamespaceResolver, > const nsAString_internal& aNamespacePrefix, > nsAString_internal& aNamespaceURI); > > static nsresult GetNodeInfoFromQName(const nsAString_internal& aNamespaceURI, > const nsAString_internal& aQualifiedName, > nsNodeInfoManager* aNodeInfoManager, > nsINodeInfo** aNodeInfo); > > static void SplitExpatName(const PRUnichar *aExpatName, nsIAtom **aPrefix, > nsIAtom **aTagName, PRInt32 *aNameSpaceID); > > static nsAdoptingCString GetCharPref(const char *aPref); > static PRPackedBool GetBoolPref(const char *aPref, > PRBool aDefault = 0); > static PRInt32 GetIntPref(const char *aPref, PRInt32 aDefault = 0); > static nsAdoptingString GetLocalizedStringPref(const char *aPref); > static nsAdoptingString GetStringPref(const char *aPref); > static void RegisterPrefCallback(const char *aPref, > PrefChangedFunc aCallback, > void * aClosure); > static void UnregisterPrefCallback(const char *aPref, > PrefChangedFunc aCallback, > void * aClosure); > static void AddBoolPrefVarCache(const char* aPref, PRBool* aVariable); > static nsIPrefBranch *GetPrefBranch() > { > return sPrefBranch; > } > > static nsILineBreaker* LineBreaker() > { > return sLineBreaker; > } > > static nsIWordBreaker* WordBreaker() > { > return sWordBreaker; > } > > static nsICaseConversion* GetCaseConv() > { > return sCaseConv; > } > > > > > > static PRBool HasNonEmptyAttr(nsIContent* aContent, PRInt32 aNameSpaceID, > nsIAtom* aName); ># 584 "../../../dist/include/content/nsContentUtils.h" > static nsPresContext* GetContextForContent(nsIContent* aContent); ># 602 "../../../dist/include/content/nsContentUtils.h" > static PRBool CanLoadImage(nsIURI* aURI, > nsISupports* aContext, > nsIDocument* aLoadingDocument, > nsIPrincipal* aLoadingPrincipal, > PRInt16* aImageBlockingStatus = 0); ># 620 "../../../dist/include/content/nsContentUtils.h" > static nsresult LoadImage(nsIURI* aURI, > nsIDocument* aLoadingDocument, > nsIPrincipal* aLoadingPrincipal, > nsIURI* aReferrer, > imgIDecoderObserver* aObserver, > PRInt32 aLoadFlags, > imgIRequest** aRequest); ># 635 "../../../dist/include/content/nsContentUtils.h" > static already_AddRefed<nsIImage> GetImageFromContent(nsIImageLoadingContent* aContent, imgIRequest **aRequest = 0); > > > > > > > > static PRBool ContentIsDraggable(nsIContent* aContent) { > return IsDraggableImage(aContent) || IsDraggableLink(aContent); > } > > > > > > > > static PRBool IsDraggableImage(nsIContent* aContent); > > > > > > > > static PRBool IsDraggableLink(nsIContent* aContent); > > > > > > static nsresult NameChanged(nsINodeInfo *aNodeInfo, nsIAtom *aName, > nsINodeInfo** aResult) > { > nsNodeInfoManager *niMgr = aNodeInfo->NodeInfoManager(); > > return niMgr->GetNodeInfo(aName, aNodeInfo->GetPrefixAtom(), > aNodeInfo->NamespaceID(), aResult); > } > > > > > > static nsresult PrefixChanged(nsINodeInfo *aNodeInfo, nsIAtom *aPrefix, > nsINodeInfo** aResult) > { > nsNodeInfoManager *niMgr = aNodeInfo->NodeInfoManager(); > > return niMgr->GetNodeInfo(aNodeInfo->NameAtom(), aPrefix, > aNodeInfo->NamespaceID(), aResult); > } > > > > > > > > static void GetEventArgNames(PRInt32 aNameSpaceID, nsIAtom *aEventName, > PRUint32 *aArgCount, const char*** aArgNames); ># 712 "../../../dist/include/content/nsContentUtils.h" > static PRBool IsInSameAnonymousTree(nsINode* aNode, nsIContent* aContent); > > > > > static nsIXPConnect *XPConnect() > { > return sXPConnect; > } ># 736 "../../../dist/include/content/nsContentUtils.h" > enum PropertiesFile { > eCSS_PROPERTIES, > eXBL_PROPERTIES, > eXUL_PROPERTIES, > eLAYOUT_PROPERTIES, > eFORMS_PROPERTIES, > ePRINTING_PROPERTIES, > eDOM_PROPERTIES, > > eSVG_PROPERTIES, > > eBRAND_PROPERTIES, > eCOMMON_DIALOG_PROPERTIES, > PropertiesFile_COUNT > }; > static nsresult ReportToConsole(PropertiesFile aFile, > const char *aMessageName, > const PRUnichar **aParams, > PRUint32 aParamsLength, > nsIURI* aURI, > const nsAFlatString& aSourceLine, > PRUint32 aLineNumber, > PRUint32 aColumnNumber, > PRUint32 aErrorFlags, > const char *aCategory); > > > > > static nsresult GetLocalizedString(PropertiesFile aFile, > const char* aKey, > nsXPIDLString& aResult); > > > > > > static nsresult FormatLocalizedString(PropertiesFile aFile, > const char* aKey, > const PRUnichar **aParams, > PRUint32 aParamsLength, > nsXPIDLString& aResult); > > > > > static PRBool IsChromeDoc(nsIDocument *aDocument); > > > > > static void NotifyXPCIfExceptionPending(JSContext *aCx); > > > > > static nsresult ReleasePtrOnShutdown(nsISupports** aSupportsPtr) { > do { } while (0); > do { } while (0); > return sPtrsToPtrsToRelease->AppendElement(aSupportsPtr) ? 0 : > ((nsresult) 0x8007000eL); > } > > > > > static nsIContentPolicy *GetContentPolicy(); ># 817 "../../../dist/include/content/nsContentUtils.h" > static PRBool HasMutationListeners(nsINode* aNode, > PRUint32 aType, > nsINode* aTargetForSubtreeModified); ># 834 "../../../dist/include/content/nsContentUtils.h" > static nsresult DispatchTrustedEvent(nsIDocument* aDoc, > nsISupports* aTarget, > const nsAString_internal& aEventName, > PRBool aCanBubble, > PRBool aCancelable, > PRBool *aDefaultAction = 0); ># 849 "../../../dist/include/content/nsContentUtils.h" > static PRBool IsEventAttributeName(nsIAtom* aName, PRInt32 aType); ># 858 "../../../dist/include/content/nsContentUtils.h" > static PRUint32 GetEventId(nsIAtom* aName); ># 871 "../../../dist/include/content/nsContentUtils.h" > static void TraverseListenerManager(nsINode *aNode, > nsCycleCollectionTraversalCallback &cb); ># 883 "../../../dist/include/content/nsContentUtils.h" > static nsresult GetListenerManager(nsINode *aNode, > PRBool aCreateIfNotFound, > nsIEventListenerManager **aResult); > > > > > > > static void RemoveListenerManager(nsINode *aNode); > > static PRBool IsInitialized() > { > return sInitialized; > } ># 908 "../../../dist/include/content/nsContentUtils.h" > static PRBool IsValidNodeName(nsIAtom *aLocalName, nsIAtom *aPrefix, > PRInt32 aNamespaceID); ># 921 "../../../dist/include/content/nsContentUtils.h" > static nsresult CreateContextualFragment(nsIDOMNode* aContextNode, > const nsAString_internal& aFragment, > PRBool aWillOwnFragment, > nsIDOMDocumentFragment** aReturn); ># 943 "../../../dist/include/content/nsContentUtils.h" > static nsresult CreateDocument(const nsAString_internal& aNamespaceURI, > const nsAString_internal& aQualifiedName, > nsIDOMDocumentType* aDoctype, > nsIURI* aDocumentURI, > nsIURI* aBaseURI, > nsIPrincipal* aPrincipal, > nsIScriptGlobalObject* aScriptObject, > nsIDOMDocument** aResult); ># 966 "../../../dist/include/content/nsContentUtils.h" > static nsresult SetNodeTextContent(nsIContent* aContent, > const nsAString_internal& aValue, > PRBool aTryReuse); ># 984 "../../../dist/include/content/nsContentUtils.h" > static void GetNodeTextContent(nsINode* aNode, PRBool aDeep, > nsAString_internal& aResult) > { > aResult.Truncate(); > AppendNodeTextContent(aNode, aDeep, aResult); > } > > > > > static void AppendNodeTextContent(nsINode* aNode, PRBool aDeep, > nsAString_internal& aResult); > > > > > > > > static PRBool HasNonEmptyTextContent(nsINode* aNode); > > > > > static void DestroyMatchString(void* aData) > { > if (aData) { > nsString* matchString = static_cast<nsString*>(aData); > delete matchString; > } > } > > > > > static void DestroyAnonymousContent(nsCOMPtr<nsIContent>* aContent); ># 1036 "../../../dist/include/content/nsContentUtils.h" > static nsresult HoldScriptObject(PRUint32 aLangID, void* aScriptObjectHolder, > nsScriptObjectTracer* aTracer, > void* aNewObject, PRBool aWasHoldingObjects) > { > if (aLangID == nsIProgrammingLanguage::JAVASCRIPT) { > return aWasHoldingObjects ? 0 : > HoldJSObjects(aScriptObjectHolder, aTracer); > } > > return HoldScriptObject(aLangID, aNewObject); > } ># 1059 "../../../dist/include/content/nsContentUtils.h" > static nsresult DropScriptObjects(PRUint32 aLangID, void* aScriptObjectHolder, > nsScriptObjectTracer* aTracer) > { > if (aLangID == nsIProgrammingLanguage::JAVASCRIPT) { > return DropJSObjects(aScriptObjectHolder); > } > > aTracer->Trace(aScriptObjectHolder, DropScriptObject, 0); > > return 0; > } ># 1078 "../../../dist/include/content/nsContentUtils.h" > static nsresult HoldJSObjects(void* aScriptObjectHolder, > nsScriptObjectTracer* aTracer); > > > > > > > > static nsresult DropJSObjects(void* aScriptObjectHolder); > > > > > static PRUint32 GetKBStateControlStatusFromIMEStatus(PRUint32 aState); > > > > > > > static void NotifyInstalledMenuKeyboardListener(PRBool aInstalling); ># 1124 "../../../dist/include/content/nsContentUtils.h" > static nsresult CheckSecurityBeforeLoad(nsIURI* aURIToLoad, > nsIPrincipal* aLoadingPrincipal, > PRUint32 aCheckLoadFlags, > PRBool aAllowData, > PRUint32 aContentPolicyType, > nsISupports* aContext, > const nsACString_internal& aMimeGuess = EmptyCString(), > nsISupports* aExtra = 0); ># 1148 "../../../dist/include/content/nsContentUtils.h" > static void TriggerLink(nsIContent *aContent, nsPresContext *aPresContext, > nsIURI *aLinkURI, const nsString& aTargetSpec, > PRBool aClick, PRBool aIsUserTriggered); > > > > > static nsIWidget* GetTopLevelWidget(nsIWidget* aWidget); > > > > > static const nsDependentString GetLocalizedEllipsis(); > > > > > > > static nsEvent* GetNativeEvent(nsIDOMEvent* aDOMEvent); > static PRBool DOMEventToNativeKeyEvent(nsIDOMEvent* aDOMEvent, > nsNativeKeyEvent* aNativeEvent, > PRBool aGetCharCode); ># 1179 "../../../dist/include/content/nsContentUtils.h" > static void GetAccelKeyCandidates(nsIDOMEvent* aDOMEvent, > nsTArray<nsShortcutCandidate>& aCandidates); ># 1189 "../../../dist/include/content/nsContentUtils.h" > static void GetAccessKeyCandidates(nsKeyEvent* aNativeKeyEvent, > nsTArray<PRUint32>& aCandidates); > > > > > > static void HidePopupsInDocument(nsIDocument* aDocument); > > > > > static PRBool URIIsLocalFile(nsIURI *aURI); ># 1211 "../../../dist/include/content/nsContentUtils.h" > static void GetOfflineAppManifest(nsIDOMWindow *aWindow, nsIURI **aURI); > > > > > static PRBool OfflineAppAllowed(nsIURI *aURI); > > > > > > > static void AddScriptBlocker(); ># 1232 "../../../dist/include/content/nsContentUtils.h" > static void RemoveScriptBlocker(); ># 1245 "../../../dist/include/content/nsContentUtils.h" > static PRBool AddScriptRunner(nsIRunnable* aRunnable); > > > > > > > > static PRBool IsSafeToRunScript() { > return sScriptBlockerCount == 0; > } > > > > > > > > static void AddRemovableScriptBlocker() > { > AddScriptBlocker(); > ++sRemovableScriptBlockerCount; > } > static void RemoveRemovableScriptBlocker() > { > do { } while (0); > > --sRemovableScriptBlockerCount; > RemoveScriptBlocker(); > } > static PRUint32 GetRemovableScriptBlockerLevel() > { > return sRemovableScriptBlockerCount; > } > >private: > > static PRBool InitializeEventTable(); > > static nsresult doReparentContentWrapper(nsIContent *aChild, > JSContext *cx, > JSObject *aOldGlobal, > JSObject *aNewGlobal, > nsIDocument *aOldDocument, > nsIDocument *aNewDocument); > > static nsresult EnsureStringBundle(PropertiesFile aFile); > > static nsIDOMScriptObjectFactory *GetDOMScriptObjectFactory(); > > static nsresult HoldScriptObject(PRUint32 aLangID, void* aObject); > static void DropScriptObject(PRUint32 aLangID, void *aObject, > void *aClosure); > > static PRBool CanCallerAccess(nsIPrincipal* aSubjectPrincipal, > nsIPrincipal* aPrincipal); > > static nsIDOMScriptObjectFactory *sDOMScriptObjectFactory; > > static nsIXPConnect *sXPConnect; > > static nsIScriptSecurityManager *sSecurityManager; > > static nsIThreadJSContextStack *sThreadJSContextStack; > > static nsIParserService *sParserService; > > static nsINameSpaceManager *sNameSpaceManager; > > static nsIIOService *sIOService; > > > static nsIXTFService *sXTFService; > > > static nsIPrefBranch *sPrefBranch; > > static nsIPref *sPref; > > static imgILoader* sImgLoader; > > static nsIConsoleService* sConsoleService; > > static nsDataHashtable<nsISupportsHashKey, EventNameMapping>* sEventTable; > > static nsIStringBundleService* sStringBundleService; > static nsIStringBundle* sStringBundles[PropertiesFile_COUNT]; > > static nsIContentPolicy* sContentPolicyService; > static PRBool sTriedToGetContentPolicy; > > static nsILineBreaker* sLineBreaker; > static nsIWordBreaker* sWordBreaker; > static nsICaseConversion* sCaseConv; > > > static nsVoidArray* sPtrsToPtrsToRelease; > > static nsIScriptRuntime* sScriptRuntimes[((nsIProgrammingLanguage::MAX > 0x000FU ? 0x000FU : nsIProgrammingLanguage::MAX)-nsIProgrammingLanguage::JAVASCRIPT+1)]; > static PRInt32 sScriptRootCount[((nsIProgrammingLanguage::MAX > 0x000FU ? 0x000FU : nsIProgrammingLanguage::MAX)-nsIProgrammingLanguage::JAVASCRIPT+1)]; > static PRUint32 sJSGCThingRootCount; > > > static nsIBidiKeyboard* sBidiKeyboard; > > > static PRBool sInitialized; > static PRUint32 sScriptBlockerCount; > static PRUint32 sRemovableScriptBlockerCount; > static nsCOMArray<nsIRunnable>* sBlockedScriptRunners; > static PRUint32 sRunnersCountAtFirstBlocker; >}; ># 1366 "../../../dist/include/content/nsContentUtils.h" >class nsCxPusher >{ >public: > nsCxPusher(); > ~nsCxPusher(); > > > PRBool Push(nsISupports *aCurrentTarget); > PRBool Push(JSContext *cx); > void Pop(); > >private: > nsCOMPtr<nsIJSContextStack> mStack; > nsCOMPtr<nsIScriptContext> mScx; > PRBool mScriptIsRunning; >}; > >class nsAutoGCRoot { >public: > > nsAutoGCRoot(jsval* aPtr, nsresult* aResult) : > mPtr(aPtr) > { > mResult = *aResult = AddJSGCRoot(aPtr, "nsAutoGCRoot"); > } > > > nsAutoGCRoot(JSObject** aPtr, nsresult* aResult) : > mPtr(aPtr) > { > mResult = *aResult = AddJSGCRoot(aPtr, "nsAutoGCRoot"); > } > > > nsAutoGCRoot(void* aPtr, nsresult* aResult) : > mPtr(aPtr) > { > mResult = *aResult = AddJSGCRoot(aPtr, "nsAutoGCRoot"); > } > > ~nsAutoGCRoot() { > if (((__builtin_expect(!!(!((mResult) & 0x80000000)), 1)))) { > RemoveJSGCRoot(mPtr); > } > } > > static void Shutdown(); > >private: > static nsresult AddJSGCRoot(void *aPtr, const char* aName); > static nsresult RemoveJSGCRoot(void *aPtr); > > static nsIJSRuntimeService* sJSRuntimeService; > static JSRuntime* sJSScriptRuntime; > > void* mPtr; > nsresult mResult; >}; > >class nsAutoScriptBlocker { >public: > nsAutoScriptBlocker() { > nsContentUtils::AddScriptBlocker(); > } > ~nsAutoScriptBlocker() { > nsContentUtils::RemoveScriptBlocker(); > } >}; > >class mozAutoRemovableBlockerRemover >{ >public: > mozAutoRemovableBlockerRemover() > { > mNestingLevel = nsContentUtils::GetRemovableScriptBlockerLevel(); > for (PRUint32 i = 0; i < mNestingLevel; ++i) { > nsContentUtils::RemoveRemovableScriptBlocker(); > } > > do { } while (0); > } > > ~mozAutoRemovableBlockerRemover() > { > do { } while (0); > > for (PRUint32 i = 0; i < mNestingLevel; ++i) { > nsContentUtils::AddRemovableScriptBlocker(); > } > } > >private: > PRUint32 mNestingLevel; >}; ># 1494 "../../../dist/include/content/nsContentUtils.h" >inline __attribute__ ((visibility ("hidden"))) PRBool NS_FloatIsFinite(jsdouble f) { > return (((__extension__ ({ jsdpun u; u.d = (f); u.s.hi; })) & 0x7ff00000) != 0x7ff00000); >} ># 59 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/xpconnect/nsIXPConnect.h" 1 ># 60 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsIContent.h" 1 ># 42 "../../../dist/include/content/nsIContent.h" ># 1 "../../../dist/include/content/nsCaseTreatment.h" 1 ># 45 "../../../dist/include/content/nsCaseTreatment.h" >enum nsCaseTreatment { > eCaseMatters, > eIgnoreCase >}; ># 43 "../../../dist/include/content/nsIContent.h" 2 ># 1 "../../../dist/include/layout/nsChangeHint.h" 1 ># 43 "../../../dist/include/layout/nsChangeHint.h" ># 1 "../../../dist/include/nspr/prtypes.h" 1 ># 44 "../../../dist/include/layout/nsChangeHint.h" 2 > > > >enum nsChangeHint { > nsChangeHint_RepaintFrame = 0x01, > nsChangeHint_ReflowFrame = 0x02, > nsChangeHint_SyncFrameView = 0x04, > nsChangeHint_UpdateCursor = 0x08, > nsChangeHint_ReconstructFrame = 0x10 > > > >}; ># 73 "../../../dist/include/layout/nsChangeHint.h" >inline nsChangeHint NS_CombineHint(nsChangeHint aH1, nsChangeHint aH2) { > return (nsChangeHint)(aH1 | aH2); >} > > >inline nsChangeHint NS_SubtractHint(nsChangeHint aH1, nsChangeHint aH2) { > return (nsChangeHint)(aH1 & ~aH2); >} > > > >inline PRBool NS_UpdateHint(nsChangeHint& aDest, nsChangeHint aSrc) { > nsChangeHint r = (nsChangeHint)(aDest | aSrc); > PRBool changed = (int)r != (int)aDest; > aDest = r; > return changed; >} > > >inline PRBool NS_IsHintSubset(nsChangeHint aSubset, nsChangeHint aSuperSet) { > return (aSubset & aSuperSet) == aSubset; >} ># 112 "../../../dist/include/layout/nsChangeHint.h" >enum nsReStyleHint { > eReStyle_Self = 0x1, > eReStyle_LaterSiblings = 0x2 >}; ># 44 "../../../dist/include/content/nsIContent.h" 2 ># 1 "../../../dist/include/content/nsINode.h" 1 ># 41 "../../../dist/include/content/nsINode.h" ># 1 "../../../dist/include/content/nsPIDOMEventTarget.h" 1 ># 42 "../../../dist/include/content/nsPIDOMEventTarget.h" ># 1 "../../../dist/include/widget/nsEvent.h" 1 ># 43 "../../../dist/include/content/nsPIDOMEventTarget.h" 2 > >class nsIDOMEvent; >class nsPresContext; >class nsEventChainPreVisitor; >class nsEventChainPostVisitor; >class nsIEventListenerManager; >class nsIDOMEventListener; >class nsIDOMEventGroup; > > > > > > >class nsPIDOMEventTarget : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > > virtual nsPIDOMEventTarget* GetTargetForDOMEvent() { return this; } > > > > > > > > virtual nsPIDOMEventTarget* GetTargetForEventTargetChain() { return this; } ># 93 "../../../dist/include/content/nsPIDOMEventTarget.h" > virtual nsresult PreHandleEvent(nsEventChainPreVisitor& aVisitor) = 0; > > > > > virtual nsresult WillHandleEvent(nsEventChainPostVisitor& aVisitor) > { > return 0; > } ># 111 "../../../dist/include/content/nsPIDOMEventTarget.h" > virtual nsresult PostHandleEvent(nsEventChainPostVisitor& aVisitor) = 0; ># 130 "../../../dist/include/content/nsPIDOMEventTarget.h" > virtual nsresult DispatchDOMEvent(nsEvent* aEvent, > nsIDOMEvent* aDOMEvent, > nsPresContext* aPresContext, > nsEventStatus* aEventStatus) = 0; ># 142 "../../../dist/include/content/nsPIDOMEventTarget.h" > virtual nsresult GetListenerManager(PRBool aCreateIfNotFound, > nsIEventListenerManager** aResult) = 0; > > > > > virtual nsresult AddEventListenerByIID(nsIDOMEventListener *aListener, > const nsIID& aIID) = 0; > > > > virtual nsresult RemoveEventListenerByIID(nsIDOMEventListener *aListener, > const nsIID& aIID) = 0; > > > > > virtual nsresult GetSystemEventGroup(nsIDOMEventGroup** aGroup) = 0; >}; > >template <class Dummy> const nsIID nsPIDOMEventTarget::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0xf35ffc3b, 0xc8c0, 0x43fd, { 0xb0, 0xb0, 0xf3, 0x39, 0xe9, 0x5f, 0x57, 0x4a } }; ># 42 "../../../dist/include/content/nsINode.h" 2 > ># 1 "../../../dist/include/content/nsPropertyTable.h" 1 ># 58 "../../../dist/include/content/nsPropertyTable.h" ># 1 "../../../dist/include/xpcom/nscore.h" 1 ># 59 "../../../dist/include/content/nsPropertyTable.h" 2 > >class nsIAtom; >typedef unsigned long PtrBits; > >typedef void >(*NSPropertyFunc)(void *aObject, > nsIAtom *aPropertyName, > void *aPropertyValue, > void *aData); > > > > > > > >typedef NSPropertyFunc NSPropertyDtorFunc; >class nsINode; >class nsIFrame; > >class nsPropertyOwner >{ >public: > nsPropertyOwner(const nsPropertyOwner& aOther) : mObject(aOther.mObject) {} > > > > > nsPropertyOwner(const nsINode* aObject) : mObject(aObject) {} > nsPropertyOwner(const nsIFrame* aObject) : mObject(aObject) {} > > operator const void*() { return mObject; } > const void* get() { return mObject; } > >private: > const void* mObject; >}; > > > > > > >class nsPropertyTable >{ > public: > > > > > void* GetProperty(nsPropertyOwner aObject, > nsIAtom *aPropertyName, > nsresult *aResult = 0) > { > return GetPropertyInternal(aObject, 0, aPropertyName, 0, aResult); > } > > void* GetProperty(nsPropertyOwner aObject, > PRUint16 aCategory, > nsIAtom *aPropertyName, > nsresult *aResult = 0) > { > return GetPropertyInternal(aObject, aCategory, aPropertyName, 0, > aResult); > } ># 142 "../../../dist/include/content/nsPropertyTable.h" > __attribute__ ((visibility ("hidden"))) nsresult SetProperty(nsPropertyOwner aObject, > nsIAtom *aPropertyName, > void *aPropertyValue, > NSPropertyDtorFunc aDtor, > void *aDtorData, > PRBool aTransfer = 0, > void **aOldValue = 0) > { > return SetPropertyInternal(aObject, 0, aPropertyName, aPropertyValue, > aDtor, aDtorData, aTransfer, aOldValue); > } ># 171 "../../../dist/include/content/nsPropertyTable.h" > __attribute__ ((visibility ("hidden"))) nsresult SetProperty(nsPropertyOwner aObject, > PRUint16 aCategory, > nsIAtom *aPropertyName, > void *aPropertyValue, > NSPropertyDtorFunc aDtor, > void *aDtorData, > PRBool aTransfer = 0, > void **aOldValue = 0) > { > return SetPropertyInternal(aObject, aCategory, aPropertyName, > aPropertyValue, aDtor, aDtorData, aTransfer, > aOldValue); > } > > > > > > __attribute__ ((visibility ("hidden"))) nsresult DeleteProperty(nsPropertyOwner aObject, > nsIAtom *aPropertyName) > { > return DeleteProperty(aObject, 0, aPropertyName); > } > > > > > > __attribute__ ((visibility ("hidden"))) nsresult DeleteProperty(nsPropertyOwner aObject, > PRUint16 aCategory, > nsIAtom *aPropertyName); > > > > > > > void* UnsetProperty(nsPropertyOwner aObject, > nsIAtom *aPropertyName, > nsresult *aStatus = 0) > { > return GetPropertyInternal(aObject, 0, aPropertyName, 1, aStatus); > } > > > > > > > void* UnsetProperty(nsPropertyOwner aObject, > PRUint16 aCategory, > nsIAtom *aPropertyName, > nsresult *aStatus = 0) > { > return GetPropertyInternal(aObject, aCategory, aPropertyName, 1, > aStatus); > } > > > > > > __attribute__ ((visibility ("hidden"))) void DeleteAllPropertiesFor(nsPropertyOwner aObject); > > > > > > __attribute__ ((visibility ("hidden"))) void DeleteAllPropertiesFor(nsPropertyOwner aObject, > PRUint16 aCategory); ># 249 "../../../dist/include/content/nsPropertyTable.h" > __attribute__ ((visibility ("hidden"))) nsresult > TransferOrDeleteAllPropertiesFor(nsPropertyOwner aObject, > nsPropertyTable *aOtherTable); > > > > > > > __attribute__ ((visibility ("hidden"))) void Enumerate(nsPropertyOwner aObject, PRUint16 aCategory, > NSPropertyFunc aCallback, void *aData); > > > > > > __attribute__ ((visibility ("hidden"))) void DeleteAllProperties(); > > ~nsPropertyTable() { > DeleteAllProperties(); > } > > > > > > > static void SupportsDtorFunc(void *aObject, nsIAtom *aPropertyName, > void *aPropertyValue, void *aData); > > class PropertyList; > > private: > __attribute__ ((visibility ("hidden"))) void DestroyPropertyList(); > __attribute__ ((visibility ("hidden"))) PropertyList* GetPropertyListFor(PRUint16 aCategory, > nsIAtom *aPropertyName) const; > __attribute__ ((visibility ("hidden"))) void* GetPropertyInternal(nsPropertyOwner aObject, > PRUint16 aCategory, > nsIAtom *aPropertyName, > PRBool aRemove, > nsresult *aStatus); > __attribute__ ((visibility ("hidden"))) nsresult SetPropertyInternal(nsPropertyOwner aObject, > PRUint16 aCategory, > nsIAtom *aPropertyName, > void *aPropertyValue, > NSPropertyDtorFunc aDtor, > void *aDtorData, > PRBool aTransfer, > void **aOldValue); > > PropertyList *mPropertyList; >}; ># 44 "../../../dist/include/content/nsINode.h" 2 ># 1 "../../../dist/include/xpcom/nsTObserverArray.h" 1 ># 42 "../../../dist/include/xpcom/nsTObserverArray.h" ># 1 "../../../dist/include/xpcom/nsTArray.h" 1 ># 43 "../../../dist/include/xpcom/nsTObserverArray.h" 2 > >class nsTObserverArray_base { > public: > typedef PRUint32 index_type; > typedef PRUint32 size_type; > typedef PRInt32 diff_type; > > protected: > class Iterator_base { > protected: > friend class nsTObserverArray_base; > > Iterator_base(index_type aPosition, Iterator_base* aNext) > : mPosition(aPosition), > mNext(aNext) { > } > > > > index_type mPosition; > > > Iterator_base* mNext; > }; > > nsTObserverArray_base() > : mIterators(0) { > } > > ~nsTObserverArray_base() { > do { } while (0); > } ># 83 "../../../dist/include/xpcom/nsTObserverArray.h" > void AdjustIterators(index_type aModPos, diff_type aAdjustment); > > > > > void ClearIterators(); > > mutable Iterator_base* mIterators; >}; ># 103 "../../../dist/include/xpcom/nsTObserverArray.h" >template<class T, PRUint32 N> >class nsAutoTObserverArray : protected nsTObserverArray_base { > public: > typedef T elem_type; > typedef nsTArray<T> array_type; > > nsAutoTObserverArray() { > } > > > > > > > size_type Length() const { > return mArray.Length(); > } > > > PRBool IsEmpty() const { > return mArray.IsEmpty(); > } > > > > > > elem_type& ElementAt(index_type i) { > return mArray.ElementAt(i); > } > > > const elem_type& ElementAt(index_type i) const { > return mArray.ElementAt(i); > } > > > > > > > elem_type& SafeElementAt(index_type i, elem_type& def) { > return mArray.SafeElementAt(i, def); > } > > > const elem_type& SafeElementAt(index_type i, const elem_type& def) const { > return mArray.SafeElementAt(i, def); > } ># 162 "../../../dist/include/xpcom/nsTObserverArray.h" > template<class Item> > PRBool Contains(const Item& item) const { > return IndexOf(item) != array_type::NoIndex; > } > > > > > > > > template<class Item> > index_type IndexOf(const Item& item, index_type start = 0) const { > return mArray.IndexOf(item, start); > } ># 186 "../../../dist/include/xpcom/nsTObserverArray.h" > template<class Item> > PRBool PrependElementUnlessExists(const Item& item) { > return Contains(item) || mArray.InsertElementAt(0, item) != 0; > } > > > > > template<class Item> > elem_type* AppendElement(const Item& item) { > return mArray.AppendElement(item); > } > > > > elem_type* AppendElement() { > return mArray.AppendElement(); > } > > > > > > template<class Item> > PRBool AppendElementUnlessExists(const Item& item) { > return Contains(item) || AppendElement(item) != 0; > } > > > > void RemoveElementAt(index_type index) { > do { } while (0); > mArray.RemoveElementAt(index); > AdjustIterators(index, -1); > } > > > > > > > template<class Item> > PRBool RemoveElement(const Item& item) { > index_type index = mArray.IndexOf(item, 0); > if (index == array_type::NoIndex) > return 0; > > mArray.RemoveElementAt(index); > AdjustIterators(index, -1); > return 1; > } > > > > > void Clear() { > mArray.Clear(); > ClearIterators(); > } > > > > > > > class Iterator : public Iterator_base { > protected: > friend class nsAutoTObserverArray; > typedef nsAutoTObserverArray<T, N> array_type; > > Iterator(index_type aPosition, const array_type& aArray) > : Iterator_base(aPosition, aArray.mIterators), > mArray(const_cast<array_type&>(aArray)) { > aArray.mIterators = this; > } > > ~Iterator() { > do { } while (0); > > > > mArray.mIterators = mNext; > } > > > array_type& mArray; > }; ># 281 "../../../dist/include/xpcom/nsTObserverArray.h" > class ForwardIterator : protected Iterator { > public: > typedef nsAutoTObserverArray<T, N> array_type; > typedef Iterator base_type; > > ForwardIterator(const array_type& aArray) > : Iterator(0, aArray) { > } > > ForwardIterator(const array_type& aArray, index_type aPos) > : Iterator(aPos, aArray) { > } > > PRBool operator <(const ForwardIterator& aOther) const { > do { } while (0); > > return base_type::mPosition < aOther.mPosition; > } > > > > > PRBool HasMore() const { > return base_type::mPosition < base_type::mArray.Length(); > } > > > > > elem_type& GetNext() { > do { } while (0); > return base_type::mArray.ElementAt(base_type::mPosition++); > } > }; > > > > class EndLimitedIterator : protected ForwardIterator { > public: > typedef nsAutoTObserverArray<T, N> array_type; > typedef Iterator base_type; > > EndLimitedIterator(const array_type& aArray) > : ForwardIterator(aArray), > mEnd(aArray, aArray.Length()) { > } > > > > > PRBool HasMore() const { > return *this < mEnd; > } > > > > > elem_type& GetNext() { > do { } while (0); > return base_type::mArray.ElementAt(base_type::mPosition++); > } > > private: > ForwardIterator mEnd; > }; > > protected: > nsAutoTArray<T, N> mArray; >}; > >template<class T> >class nsTObserverArray : public nsAutoTObserverArray<T, 0> { > public: > typedef nsAutoTObserverArray<T, 0> base_type; > typedef nsTObserverArray_base::size_type size_type; > > > > > > nsTObserverArray() {} > > > explicit nsTObserverArray(size_type capacity) { > base_type::mArray.SetCapacity(capacity); > } >}; ># 45 "../../../dist/include/content/nsINode.h" 2 > > > >class nsIContent; >class nsIDocument; >class nsIDOMEvent; >class nsIPresShell; >class nsPresContext; >class nsEventChainVisitor; >class nsEventChainPreVisitor; >class nsEventChainPostVisitor; >class nsIEventListenerManager; >class nsIPrincipal; >class nsVoidArray; >class nsIMutationObserver; >class nsChildContentList; >class nsNodeWeakReference; >class nsNodeSupportsWeakRefTearoff; >class nsIEditor; > >enum { > > NODE_DOESNT_HAVE_SLOTS = 0x00000001U, > > > > NODE_HAS_LISTENERMANAGER = 0x00000002U, > > > NODE_HAS_PROPERTIES = 0x00000004U, > > > > NODE_IS_ANONYMOUS = 0x00000008U, > > NODE_IS_IN_ANONYMOUS_SUBTREE = 0x00000010U, > > > > NODE_MAY_HAVE_FRAME = 0x00000020U, > > > > NODE_FORCE_XBL_BINDINGS = 0x00000040U, > > > NODE_MAY_BE_IN_BINDING_MNGR = 0x00000080U, > > NODE_IS_EDITABLE = 0x00000100U, > > > > NODE_MAY_HAVE_ID = 0x00000200U, > NODE_MAY_HAVE_CLASS = 0x00000400U, > NODE_MAY_HAVE_STYLE = 0x00000800U, > > NODE_IS_INSERTION_PARENT = 0x00001000U, > > > NODE_HAS_EMPTY_SELECTOR = 0x00002000U, > > > > NODE_HAS_SLOW_SELECTOR = 0x00004000U, > > > > NODE_HAS_EDGE_CHILD_SELECTOR = 0x00008000U, > > > > > NODE_HAS_SLOW_SELECTOR_NOAPPEND > = 0x00010000U, > > NODE_ALL_SELECTOR_FLAGS = NODE_HAS_EMPTY_SELECTOR | > NODE_HAS_SLOW_SELECTOR | > NODE_HAS_EDGE_CHILD_SELECTOR | > NODE_HAS_SLOW_SELECTOR_NOAPPEND, > > > NODE_SCRIPT_TYPE_OFFSET = 17, > > NODE_SCRIPT_TYPE_SIZE = 4, > > > NODE_TYPE_SPECIFIC_BITS_OFFSET = > NODE_SCRIPT_TYPE_OFFSET + NODE_SCRIPT_TYPE_SIZE >}; > > > > > > >template<class C, class D> >inline nsINode* NODE_FROM(C& aContent, D& aDocument) >{ > if (aContent) > return static_cast<nsINode*>(aContent); > return static_cast<nsINode*>(aDocument); >} ># 159 "../../../dist/include/content/nsINode.h" >class nsINode : public nsPIDOMEventTarget { >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > friend class nsNodeUtils; > friend class nsNodeWeakReference; > friend class nsNodeSupportsWeakRefTearoff; > > > nsINode(nsINodeInfo* aNodeInfo) > : mNodeInfo(aNodeInfo), > mParentPtrBits(0), > mFlagsOrSlots(NODE_DOESNT_HAVE_SLOTS) > { > } > > > virtual ~nsINode(); > > > > > enum { > > eCONTENT = 1 << 0, > > eDOCUMENT = 1 << 1, > > eATTRIBUTE = 1 << 2, > > eELEMENT = 1 << 3, > > eTEXT = 1 << 4, > > ePROCESSING_INSTRUCTION = 1 << 5, > > eCOMMENT = 1 << 6, > > eHTML = 1 << 7, > > eHTML_FORM_CONTROL = 1 << 8, > > eXUL = 1 << 9, > > eSVG = 1 << 10, > > eDOCUMENT_FRAGMENT = 1 << 11, > > > eDATA_NODE = 1 << 12, > > eMATHML = 1 << 13 > }; ># 221 "../../../dist/include/content/nsINode.h" > virtual PRBool IsNodeOfType(PRUint32 aFlags) const = 0; > > > > > > virtual PRUint32 GetChildCount() const = 0; > > > > > > > virtual nsIContent* GetChildAt(PRUint32 aIndex) const = 0; ># 244 "../../../dist/include/content/nsINode.h" > virtual PRInt32 IndexOf(nsINode* aPossibleChild) const = 0; > > > > > > > > nsIDocument *GetOwnerDoc() const > { > return mNodeInfo->GetDocument(); > } > > > > > > > PRBool IsInDoc() const > { > return mParentPtrBits & PARENT_BIT_INDOCUMENT; > } > > > > > > > > nsIDocument *GetCurrentDoc() const > { > return IsInDoc() ? GetOwnerDoc() : 0; > } ># 298 "../../../dist/include/content/nsINode.h" > virtual nsresult InsertChildAt(nsIContent* aKid, PRUint32 aIndex, > PRBool aNotify) = 0; ># 319 "../../../dist/include/content/nsINode.h" > nsresult AppendChildTo(nsIContent* aKid, PRBool aNotify) > { > return InsertChildAt(aKid, GetChildCount(), aNotify); > } ># 335 "../../../dist/include/content/nsINode.h" > virtual nsresult RemoveChildAt(PRUint32 aIndex, PRBool aNotify) = 0; ># 348 "../../../dist/include/content/nsINode.h" > void* GetProperty(nsIAtom *aPropertyName, > nsresult *aStatus = 0) const > { > return GetProperty(0, aPropertyName, aStatus); > } ># 366 "../../../dist/include/content/nsINode.h" > virtual void* GetProperty(PRUint16 aCategory, > nsIAtom *aPropertyName, > nsresult *aStatus = 0) const; ># 387 "../../../dist/include/content/nsINode.h" > nsresult SetProperty(nsIAtom *aPropertyName, > void *aValue, > NSPropertyDtorFunc aDtor = 0, > PRBool aTransfer = 0) > { > return SetProperty(0, aPropertyName, aValue, aDtor, aTransfer); > } ># 414 "../../../dist/include/content/nsINode.h" > virtual nsresult SetProperty(PRUint16 aCategory, > nsIAtom *aPropertyName, > void *aValue, > NSPropertyDtorFunc aDtor = 0, > PRBool aTransfer = 0, > void **aOldValue = 0); ># 429 "../../../dist/include/content/nsINode.h" > nsresult DeleteProperty(nsIAtom *aPropertyName) > { > return DeleteProperty(0, aPropertyName); > } ># 443 "../../../dist/include/content/nsINode.h" > virtual nsresult DeleteProperty(PRUint16 aCategory, nsIAtom *aPropertyName); ># 458 "../../../dist/include/content/nsINode.h" > void* UnsetProperty(nsIAtom *aPropertyName, > nsresult *aStatus = 0) > { > return UnsetProperty(0, aPropertyName, aStatus); > } ># 478 "../../../dist/include/content/nsINode.h" > virtual void* UnsetProperty(PRUint16 aCategory, > nsIAtom *aPropertyName, > nsresult *aStatus = 0); > > PRBool HasProperties() const > { > return HasFlag(NODE_HAS_PROPERTIES); > } > > > > > > nsIPrincipal* NodePrincipal() const { > return mNodeInfo->NodeInfoManager()->DocumentPrincipal(); > } > > > > > > nsIContent* GetParent() const > { > return (__builtin_expect(!!(mParentPtrBits & PARENT_BIT_PARENT_IS_CONTENT), 1)) ? > reinterpret_cast<nsIContent*> > (mParentPtrBits & ~kParentBitMask) : > 0; > } > > > > > > > nsINode* GetNodeParent() const > { > return reinterpret_cast<nsINode*>(mParentPtrBits & ~kParentBitMask); > } ># 525 "../../../dist/include/content/nsINode.h" > virtual void AddMutationObserver(nsIMutationObserver* aMutationObserver); > > > > > virtual void RemoveMutationObserver(nsIMutationObserver* aMutationObserver); ># 541 "../../../dist/include/content/nsINode.h" > virtual nsresult Clone(nsINodeInfo *aNodeInfo, nsINode **aResult) const = 0; ># 553 "../../../dist/include/content/nsINode.h" > PRBool HasSameOwnerDoc(nsINode *aOther) > { > > > return mNodeInfo->NodeInfoManager() == aOther->mNodeInfo->NodeInfoManager(); > } > > > > class nsSlots > { > public: > nsSlots(PtrBits aFlags) > : mFlags(aFlags), > mChildNodes(0), > mWeakReference(0) > { > } > > > > virtual ~nsSlots(); > > > > > > > PtrBits mFlags; > > > > > nsTObserverArray<nsIMutationObserver*> mMutationObservers; ># 595 "../../../dist/include/content/nsINode.h" > nsChildContentList* mChildNodes; > > > > > nsNodeWeakReference* mWeakReference; > }; ># 613 "../../../dist/include/content/nsINode.h" > PRBool HasFlag(PtrBits aFlag) const > { > return !!(GetFlags() & aFlag); > } > > PtrBits GetFlags() const > { > return (__builtin_expect(!!(HasSlots()), 0)) ? FlagsAsSlots()->mFlags : mFlagsOrSlots; > } > > void SetFlags(PtrBits aFlagsToSet) > { > do { } while (0); > > > PtrBits* flags = HasSlots() ? &FlagsAsSlots()->mFlags : > &mFlagsOrSlots; > *flags |= aFlagsToSet; > } > > void UnsetFlags(PtrBits aFlagsToUnset) > { > PtrBits* flags = HasSlots() ? &FlagsAsSlots()->mFlags : > &mFlagsOrSlots; > *flags &= ~aFlagsToUnset; > } > > void SetEditableFlag(PRBool aEditable) > { > if (aEditable) { > SetFlags(NODE_IS_EDITABLE); > } > else { > UnsetFlags(NODE_IS_EDITABLE); > } > } > > PRBool IsEditable() const > { > > return IsEditableInternal(); > > > > } > > > > > > > nsIContent* GetTextEditorRootContent(nsIEditor** aEditor = 0); ># 673 "../../../dist/include/content/nsINode.h" > nsIContent* GetSelectionRootContent(nsIPresShell* aPresShell); > >protected: > > > virtual nsINode::nsSlots* CreateSlots(); > > PRBool HasSlots() const > { > return !(mFlagsOrSlots & NODE_DOESNT_HAVE_SLOTS); > } > > nsSlots* FlagsAsSlots() const > { > do { } while (0); > return reinterpret_cast<nsSlots*>(mFlagsOrSlots); > } > > nsSlots* GetExistingSlots() const > { > return HasSlots() ? FlagsAsSlots() : 0; > } > > nsSlots* GetSlots() > { > if (HasSlots()) { > return FlagsAsSlots(); > } > > nsSlots* slots = CreateSlots(); > if (slots) { > mFlagsOrSlots = reinterpret_cast<PtrBits>(slots); > } > > return slots; > } > > nsTObserverArray<nsIMutationObserver*> *GetMutationObservers() > { > return HasSlots() ? &FlagsAsSlots()->mMutationObservers : 0; > } > > PRBool IsEditableInternal() const; > virtual PRBool IsEditableExternal() const > { > return IsEditableInternal(); > } > > nsCOMPtr<nsINodeInfo> mNodeInfo; > > enum { PARENT_BIT_INDOCUMENT = 1 << 0, PARENT_BIT_PARENT_IS_CONTENT = 1 << 1 }; > enum { kParentBitMask = 0x3 }; > > PtrBits mParentPtrBits; > > > > > > > > PtrBits mFlagsOrSlots; >}; > >template <class Dummy> const nsIID nsINode::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x6f69dd90, 0x318d, 0x40ac, { 0xb8, 0xb8, 0x99, 0xb8, 0xa7, 0xbb, 0x9a, 0x58 } }; ># 45 "../../../dist/include/content/nsIContent.h" 2 ># 1 "../../../dist/include/xpcom/nsIProgrammingLanguage.h" 1 ># 46 "../../../dist/include/content/nsIContent.h" 2 > > >class nsIAtom; >class nsIDocument; >class nsPresContext; >class nsVoidArray; >class nsIDOMEvent; >class nsIContent; >class nsIEventListenerManager; >class nsIURI; >class nsICSSStyleRule; >class nsRuleWalker; >class nsAttrValue; >class nsAttrName; >class nsTextFragment; >class nsIDocShell; ># 72 "../../../dist/include/content/nsIContent.h" >class nsIContent : public nsINode { >public: > > > > > nsIContent(nsINodeInfo *aNodeInfo) > : nsINode(aNodeInfo) > { > do { } while (0); > > } > > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 113 "../../../dist/include/content/nsIContent.h" > virtual nsresult BindToTree(nsIDocument* aDocument, nsIContent* aParent, > nsIContent* aBindingParent, > PRBool aCompileEventHandlers) = 0; ># 131 "../../../dist/include/content/nsIContent.h" > virtual void UnbindFromTree(PRBool aDeep = 1, > PRBool aNullParent = 1) = 0; > > > > > > > nsIDocument *GetDocument() const > { > return GetCurrentDoc(); > } > > > > > > > PRBool IsNativeAnonymous() const > { > return HasFlag(NODE_IS_ANONYMOUS); > } > > > > > > void SetNativeAnonymous() > { > SetFlags(NODE_IS_ANONYMOUS); > } > > > > > > virtual nsIContent* FindFirstNonNativeAnonymous() const; > > > > > PRBool IsInNativeAnonymousSubtree() const > { ># 188 "../../../dist/include/content/nsIContent.h" > return HasFlag(NODE_IS_IN_ANONYMOUS_SUBTREE); > > } > > > > > > PRInt32 GetNameSpaceID() const > { > return mNodeInfo->NamespaceID(); > } > > > > > > nsIAtom *Tag() const > { > return mNodeInfo->NameAtom(); > } > > > > > > nsINodeInfo *NodeInfo() const > { > return mNodeInfo; > } > > > > > > > virtual nsIAtom *GetIDAttributeName() const = 0; ># 236 "../../../dist/include/content/nsIContent.h" > virtual already_AddRefed<nsINodeInfo> GetExistingAttrNameFromQName(const nsAString_internal& aStr) const = 0; ># 251 "../../../dist/include/content/nsIContent.h" > nsresult SetAttr(PRInt32 aNameSpaceID, nsIAtom* aName, > const nsAString_internal& aValue, PRBool aNotify) > { > return SetAttr(aNameSpaceID, aName, 0, aValue, aNotify); > } ># 271 "../../../dist/include/content/nsIContent.h" > virtual nsresult SetAttr(PRInt32 aNameSpaceID, nsIAtom* aName, > nsIAtom* aPrefix, const nsAString_internal& aValue, > PRBool aNotify) = 0; ># 285 "../../../dist/include/content/nsIContent.h" > virtual PRBool GetAttr(PRInt32 aNameSpaceID, nsIAtom* aName, > nsAString_internal& aResult) const = 0; ># 295 "../../../dist/include/content/nsIContent.h" > virtual PRBool HasAttr(PRInt32 aNameSpaceID, nsIAtom* aName) const = 0; ># 307 "../../../dist/include/content/nsIContent.h" > virtual PRBool AttrValueIs(PRInt32 aNameSpaceID, > nsIAtom* aName, > const nsAString_internal& aValue, > nsCaseTreatment aCaseSensitive) const > { > return 0; > } ># 325 "../../../dist/include/content/nsIContent.h" > virtual PRBool AttrValueIs(PRInt32 aNameSpaceID, > nsIAtom* aName, > nsIAtom* aValue, > nsCaseTreatment aCaseSensitive) const > { > return 0; > } > > enum { > ATTR_MISSING = -1, > ATTR_VALUE_NO_MATCH = -2 > }; ># 354 "../../../dist/include/content/nsIContent.h" > typedef nsIAtom* const* const AttrValuesArray; > virtual PRInt32 FindAttrValueIn(PRInt32 aNameSpaceID, > nsIAtom* aName, > AttrValuesArray* aValues, > nsCaseTreatment aCaseSensitive) const > { > return ATTR_MISSING; > } ># 371 "../../../dist/include/content/nsIContent.h" > virtual nsresult UnsetAttr(PRInt32 aNameSpaceID, nsIAtom* aAttr, > PRBool aNotify) = 0; ># 386 "../../../dist/include/content/nsIContent.h" > virtual const nsAttrName* GetAttrNameAt(PRUint32 aIndex) const = 0; > > > > > > > virtual PRUint32 GetAttrCount() const = 0; > > > > > > > virtual const nsTextFragment *GetText() = 0; > > > > > > virtual PRUint32 TextLength() = 0; > > > > > > > virtual nsresult SetText(const PRUnichar* aBuffer, PRUint32 aLength, > PRBool aNotify) = 0; > > > > > > > virtual nsresult AppendText(const PRUnichar* aBuffer, PRUint32 aLength, > PRBool aNotify) = 0; > > > > > > > nsresult SetText(const nsAString_internal& aStr, PRBool aNotify) > { > return SetText(aStr.BeginReading(), aStr.Length(), aNotify); > } > > > > > > virtual PRBool TextIsOnlyWhitespace() = 0; > > > > > > virtual void AppendTextTo(nsAString_internal& aResult) = 0; ># 457 "../../../dist/include/content/nsIContent.h" > virtual void SetFocus(nsPresContext* aPresContext) > { > } ># 472 "../../../dist/include/content/nsIContent.h" > virtual void RemoveFocus(nsPresContext* aPresContext) > { > } ># 498 "../../../dist/include/content/nsIContent.h" > virtual PRBool IsFocusable(PRInt32 *aTabIndex = 0) > { > if (aTabIndex) > *aTabIndex = -1; > return 0; > } ># 513 "../../../dist/include/content/nsIContent.h" > virtual void PerformAccesskey(PRBool aKeyCausesActivation, > PRBool aIsTrustedEvent) > { > } ># 537 "../../../dist/include/content/nsIContent.h" > enum { > IME_STATUS_NONE = 0x0000, > IME_STATUS_ENABLE = 0x0001, > IME_STATUS_DISABLE = 0x0002, > IME_STATUS_PASSWORD = 0x0004, > IME_STATUS_OPEN = 0x0008, > IME_STATUS_CLOSE = 0x0010 > }; > enum { > IME_STATUS_MASK_ENABLED = IME_STATUS_ENABLE | IME_STATUS_DISABLE | > IME_STATUS_PASSWORD, > IME_STATUS_MASK_OPENED = IME_STATUS_OPEN | IME_STATUS_CLOSE > }; > virtual PRUint32 GetDesiredIMEState() > { > if (!IsEditableInternal()) > return IME_STATUS_DISABLE; > nsIContent *editableAncestor = 0; > for (nsIContent* parent = GetParent(); > parent && parent->HasFlag(NODE_IS_EDITABLE); > parent = parent->GetParent()) > editableAncestor = parent; > > if (editableAncestor) > return editableAncestor->GetDesiredIMEState(); > return IME_STATUS_ENABLE; > } ># 572 "../../../dist/include/content/nsIContent.h" > virtual nsIContent *GetBindingParent() const = 0; ># 582 "../../../dist/include/content/nsIContent.h" > virtual already_AddRefed<nsIURI> GetBaseURI() const = 0; ># 597 "../../../dist/include/content/nsIContent.h" > virtual PRBool IsLink(nsIURI** aURI) const = 0; ># 614 "../../../dist/include/content/nsIContent.h" > virtual nsresult MaybeTriggerAutoLink(nsIDocShell *aShell) > { > return 0; > } ># 646 "../../../dist/include/content/nsIContent.h" > virtual void DoneCreatingElement() > { > } > > > > > > > virtual void SetMayHaveFrame(PRBool aMayHaveFrame) > { > } > > > > > > > virtual PRBool MayHaveFrame() const > { > return 1; > } > > > > > > > > virtual void BeginAddingChildren() > { > } ># 707 "../../../dist/include/content/nsIContent.h" > virtual nsresult DoneAddingChildren(PRBool aHaveNotified) > { > return 0; > } ># 721 "../../../dist/include/content/nsIContent.h" > virtual PRBool IsDoneAddingChildren() > { > return 1; > } ># 734 "../../../dist/include/content/nsIContent.h" > virtual PRInt32 IntrinsicState() const; > > > > > virtual PRUint32 GetScriptTypeID() const > { return nsIProgrammingLanguage::JAVASCRIPT; } > > > virtual nsresult SetScriptTypeID(PRUint32 aLang) > { > do { } while (0); > return ((nsresult) 0x80004001L); > } > > > > > > > virtual nsIAtom* GetID() const = 0; > > > > > > > > virtual const nsAttrValue* GetClasses() const = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WalkContentStyleRules(nsRuleWalker* aRuleWalker) = 0; > > > > > virtual nsICSSStyleRule* GetInlineStyleRule() = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetInlineStyleRule(nsICSSStyleRule* aStyleRule, PRBool aNotify) = 0; ># 788 "../../../dist/include/content/nsIContent.h" > virtual __attribute__ ((visibility ("hidden"))) PRBool __attribute__ ((regparm (0), cdecl)) IsAttributeMapped(const nsIAtom* aAttribute) const = 0; > > > > > > > > virtual nsChangeHint GetAttributeChangeHint(const nsIAtom* aAttribute, > PRInt32 aModType) const = 0; > > > > > > > virtual nsIAtom *GetClassAttributeName() const = 0; > > > > > > > virtual void UpdateEditableState(); > > > > > > virtual void DestroyContent() = 0; > > > > > virtual void SaveSubtreeState() = 0; ># 839 "../../../dist/include/content/nsIContent.h" > enum ETabFocusType { > > eTabFocus_formElementsMask = (1<<1), > eTabFocus_linksMask = (1<<2), > eTabFocus_any = 1 + (1<<1) + (1<<2) > }; > > > static PRInt32 sTabFocusModel; > > > > static PRBool sTabFocusModelAppliesToXUL; > >}; > >template <class Dummy> const nsIID nsIContent::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x0acd0482, 0x09a2, 0x42fd, { 0xb6, 0x1b, 0x95, 0xa2, 0x01, 0x6a, 0x55, 0xd3 } }; ># 61 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsIDocument.h" 1 ># 42 "../../../dist/include/content/nsIDocument.h" ># 1 "../../../dist/include/content/nsIDocumentObserver.h" 1 ># 43 "../../../dist/include/content/nsIDocumentObserver.h" >class nsIAtom; >class nsIContent; >class nsIPresShell; >class nsIStyleSheet; >class nsIStyleRule; >class nsString; >class nsIDocument; > > > > > >typedef PRUint32 nsUpdateType; > > > > > > > >class nsIDocumentObserver : public nsIMutationObserver >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > virtual void BeginUpdate(nsIDocument *aDocument, > nsUpdateType aUpdateType) = 0; > > > > > > virtual void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType) = 0; > > > > > virtual void BeginLoad(nsIDocument *aDocument) = 0; > > > > > > > virtual void EndLoad(nsIDocument *aDocument) = 0; ># 116 "../../../dist/include/content/nsIDocumentObserver.h" > virtual void ContentStatesChanged(nsIDocument* aDocument, > nsIContent* aContent1, > nsIContent* aContent2, > PRInt32 aStateMask) = 0; ># 132 "../../../dist/include/content/nsIDocumentObserver.h" > virtual void StyleSheetAdded(nsIDocument *aDocument, > nsIStyleSheet* aStyleSheet, > PRBool aDocumentSheet) = 0; ># 147 "../../../dist/include/content/nsIDocumentObserver.h" > virtual void StyleSheetRemoved(nsIDocument *aDocument, > nsIStyleSheet* aStyleSheet, > PRBool aDocumentSheet) = 0; ># 163 "../../../dist/include/content/nsIDocumentObserver.h" > virtual void StyleSheetApplicableStateChanged(nsIDocument *aDocument, > nsIStyleSheet* aStyleSheet, > PRBool aApplicable) = 0; ># 190 "../../../dist/include/content/nsIDocumentObserver.h" > virtual void StyleRuleChanged(nsIDocument *aDocument, > nsIStyleSheet* aStyleSheet, > nsIStyleRule* aOldStyleRule, > nsIStyleRule* aNewStyleRule) = 0; ># 206 "../../../dist/include/content/nsIDocumentObserver.h" > virtual void StyleRuleAdded(nsIDocument *aDocument, > nsIStyleSheet* aStyleSheet, > nsIStyleRule* aStyleRule) = 0; ># 221 "../../../dist/include/content/nsIDocumentObserver.h" > virtual void StyleRuleRemoved(nsIDocument *aDocument, > nsIStyleSheet* aStyleSheet, > nsIStyleRule* aStyleRule) = 0; >}; > >template <class Dummy> const nsIID nsIDocumentObserver::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x4e14e321, 0xa4bb, 0x49f8, { 0xa5, 0x7a, 0x23, 0x63, 0x66, 0x8d, 0x14, 0xd0 } }; ># 43 "../../../dist/include/content/nsIDocument.h" 2 > > ># 1 "../../../dist/include/necko/nsIURI.h" 1 ># 72 "../../../dist/include/necko/nsIURI.h" >class nsIURI : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 87 "../../../dist/include/necko/nsIURI.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSpec(nsACString_internal & aSpec) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetSpec(const nsACString_internal & aSpec) = 0; ># 97 "../../../dist/include/necko/nsIURI.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrePath(nsACString_internal & aPrePath) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetScheme(nsACString_internal & aScheme) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetScheme(const nsACString_internal & aScheme) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetUserPass(nsACString_internal & aUserPass) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetUserPass(const nsACString_internal & aUserPass) = 0; ># 123 "../../../dist/include/necko/nsIURI.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetUsername(nsACString_internal & aUsername) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetUsername(const nsACString_internal & aUsername) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPassword(nsACString_internal & aPassword) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPassword(const nsACString_internal & aPassword) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHostPort(nsACString_internal & aHostPort) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetHostPort(const nsACString_internal & aHostPort) = 0; ># 147 "../../../dist/include/necko/nsIURI.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHost(nsACString_internal & aHost) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetHost(const nsACString_internal & aHost) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPort(PRInt32 *aPort) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPort(PRInt32 aPort) = 0; ># 165 "../../../dist/include/necko/nsIURI.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPath(nsACString_internal & aPath) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPath(const nsACString_internal & aPath) = 0; ># 177 "../../../dist/include/necko/nsIURI.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Equals(nsIURI *other, PRBool *_retval) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SchemeIs(const char *scheme, PRBool *_retval) = 0; ># 194 "../../../dist/include/necko/nsIURI.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Clone(nsIURI **_retval) = 0; ># 203 "../../../dist/include/necko/nsIURI.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Resolve(const nsACString_internal & relativePath, nsACString_internal & _retval) = 0; ># 214 "../../../dist/include/necko/nsIURI.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsciiSpec(nsACString_internal & aAsciiSpec) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAsciiHost(nsACString_internal & aAsciiHost) = 0; ># 234 "../../../dist/include/necko/nsIURI.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetOriginCharset(nsACString_internal & aOriginCharset) = 0; > >}; > > template <class Dummy> const nsIID nsIURI::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x07a22cc0, 0x0ce5, 0x11d3, { 0x93, 0x31, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40 }}; ># 46 "../../../dist/include/content/nsIDocument.h" 2 ># 1 "../../../dist/include/xpcom/nsWeakPtr.h" 1 ># 43 "../../../dist/include/xpcom/nsWeakPtr.h" ># 1 "../../../dist/include/xpcom/nsIWeakReference.h" 1 ># 40 "../../../dist/include/xpcom/nsIWeakReference.h" >class nsIWeakReference : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 52 "../../../dist/include/xpcom/nsIWeakReference.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) QueryReferent(const nsIID & uuid, void * *result) = 0; > >}; > > template <class Dummy> const nsIID nsIWeakReference::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x9188bc85, 0xf92e, 0x11d2, { 0x81, 0xef, 0x00, 0x60, 0x08, 0x3a, 0x0b, 0xcf }}; ># 129 "../../../dist/include/xpcom/nsIWeakReference.h" >class nsISupportsWeakReference : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 144 "../../../dist/include/xpcom/nsIWeakReference.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWeakReference(nsIWeakReference **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsWeakReference::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x9188bc86, 0xf92e, 0x11d2, { 0x81, 0xef, 0x00, 0x60, 0x08, 0x3a, 0x0b, 0xcf }}; ># 204 "../../../dist/include/xpcom/nsIWeakReference.h" ># 1 "../../../dist/include/xpcom/nsIWeakReferenceUtils.h" 1 ># 46 "../../../dist/include/xpcom/nsIWeakReferenceUtils.h" >typedef nsCOMPtr<nsIWeakReference> nsWeakPtr; > > > > > > > >template <class T, class DestinationType> >inline >nsresult >CallQueryReferent( T* aSource, DestinationType** aDestination ) > { > do { } while (0); > do { } while (0); > > return aSource->QueryReferent((DestinationType::template COMTypeInfo<int>::kIID), > reinterpret_cast<void**>(aDestination)); > } > > >class nsQueryReferent : public nsCOMPtr_helper > { > public: > nsQueryReferent( nsIWeakReference* aWeakPtr, nsresult* error ) > : mWeakPtr(aWeakPtr), > mErrorPtr(error) > { > > } > > virtual nsresult __attribute__ ((regparm (3), stdcall)) operator()( const nsIID& aIID, void** ) const; > > private: > nsIWeakReference* mWeakPtr; > nsresult* mErrorPtr; > }; > >inline >const nsQueryReferent >do_QueryReferent( nsIWeakReference* aRawPtr, nsresult* error = 0 ) > { > return nsQueryReferent(aRawPtr, error); > } > > > > > >extern >nsIWeakReference* >NS_GetWeakReference( nsISupports* , nsresult* aResult=0 ); ># 106 "../../../dist/include/xpcom/nsIWeakReferenceUtils.h" >inline >already_AddRefed<nsIWeakReference> >do_GetWeakReference( nsISupports* aRawPtr, nsresult* error = 0 ) > { > return NS_GetWeakReference(aRawPtr, error); > } > >inline >void >do_GetWeakReference( nsIWeakReference* aRawPtr, nsresult* error = 0 ) > { > > > > } > >template <class T> >inline >void >do_GetWeakReference( already_AddRefed<T>& ) > { > > > > } > >template <class T> >inline >void >do_GetWeakReference( already_AddRefed<T>&, nsresult* ) > { > > > > } ># 205 "../../../dist/include/xpcom/nsIWeakReference.h" 2 ># 44 "../../../dist/include/xpcom/nsWeakPtr.h" 2 ># 47 "../../../dist/include/content/nsIDocument.h" 2 ># 1 "../../../dist/include/xpcom/nsIWeakReferenceUtils.h" 1 ># 48 "../../../dist/include/content/nsIDocument.h" 2 ># 1 "../../../dist/include/necko/nsILoadGroup.h" 1 ># 10 "../../../dist/include/necko/nsILoadGroup.h" ># 1 "../../../dist/include/necko/nsIRequest.h" 1 ># 17 "../../../dist/include/necko/nsIRequest.h" >class nsILoadGroup; > >typedef PRUint32 nsLoadFlags; ># 34 "../../../dist/include/necko/nsIRequest.h" >class nsIRequest : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetName(nsACString_internal & aName) = 0; ># 61 "../../../dist/include/necko/nsIRequest.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsPending(PRBool *_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetStatus(nsresult *aStatus) = 0; ># 91 "../../../dist/include/necko/nsIRequest.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Cancel(nsresult aStatus) = 0; ># 108 "../../../dist/include/necko/nsIRequest.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Suspend(void) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Resume(void) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLoadGroup(nsILoadGroup * *aLoadGroup) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetLoadGroup(nsILoadGroup * aLoadGroup) = 0; ># 134 "../../../dist/include/necko/nsIRequest.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLoadFlags(nsLoadFlags *aLoadFlags) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetLoadFlags(nsLoadFlags aLoadFlags) = 0; > > > > > > > > enum { LOAD_NORMAL = 0U }; > > > > > > enum { LOAD_BACKGROUND = 1U }; ># 158 "../../../dist/include/necko/nsIRequest.h" > enum { INHIBIT_CACHING = 128U }; > > > > > > > enum { INHIBIT_PERSISTENT_CACHING = 256U }; ># 176 "../../../dist/include/necko/nsIRequest.h" > enum { LOAD_BYPASS_CACHE = 512U }; > > > > > > > > enum { LOAD_FROM_CACHE = 1024U }; ># 208 "../../../dist/include/necko/nsIRequest.h" > enum { VALIDATE_ALWAYS = 2048U }; > > enum { VALIDATE_NEVER = 4096U }; > > enum { VALIDATE_ONCE_PER_SESSION = 8192U }; > >}; > > template <class Dummy> const nsIID nsIRequest::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xef6bfbd2, 0xfd46, 0x48d8, { 0x96, 0xb7, 0x9f, 0x8f, 0x0f, 0xd3, 0x87, 0xfe }}; ># 11 "../../../dist/include/necko/nsILoadGroup.h" 2 > > > > > > >class nsISimpleEnumerator; > >class nsIRequestObserver; > >class nsIInterfaceRequestor; ># 31 "../../../dist/include/necko/nsILoadGroup.h" >class nsILoadGroup : public nsIRequest { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 46 "../../../dist/include/necko/nsILoadGroup.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetGroupObserver(nsIRequestObserver * *aGroupObserver) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetGroupObserver(nsIRequestObserver * aGroupObserver) = 0; ># 59 "../../../dist/include/necko/nsILoadGroup.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDefaultLoadRequest(nsIRequest * *aDefaultLoadRequest) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDefaultLoadRequest(nsIRequest * aDefaultLoadRequest) = 0; ># 72 "../../../dist/include/necko/nsILoadGroup.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddRequest(nsIRequest *aRequest, nsISupports *aContext) = 0; ># 82 "../../../dist/include/necko/nsILoadGroup.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRequests(nsISimpleEnumerator * *aRequests) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetActiveCount(PRUint32 *aActiveCount) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetNotificationCallbacks(nsIInterfaceRequestor * aNotificationCallbacks) = 0; > >}; > > template <class Dummy> const nsIID nsILoadGroup::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x3de0a31c, 0xfeaf, 0x400f, { 0x9f, 0x1e, 0x4e, 0xf7, 0x1f, 0x8b, 0x20, 0xcc }}; ># 49 "../../../dist/include/content/nsIDocument.h" 2 ># 1 "../../../dist/include/xpcom/nsCRT.h" 1 ># 43 "../../../dist/include/xpcom/nsCRT.h" ># 1 "../../../dist/include/nspr/plstr.h" 1 ># 64 "../../../dist/include/nspr/plstr.h" >extern "C" { > > > > > > >extern __attribute__((visibility("default"))) PRUint32 >PL_strlen(const char *str); ># 82 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) PRUint32 >PL_strnlen(const char *str, PRUint32 max); ># 93 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strcpy(char *dest, const char *src); ># 106 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strncpy(char *dest, const char *src, PRUint32 max); ># 129 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strncpyz(char *dest, const char *src, PRUint32 max); ># 143 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strdup(const char *s); > > > > > > > >extern __attribute__((visibility("default"))) void >PL_strfree(char *s); ># 167 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strndup(const char *s, PRUint32 max); ># 179 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strcat(char *dst, const char *src); ># 194 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strncat(char *dst, const char *src, PRUint32 max); ># 208 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strcatn(char *dst, PRUint32 max, const char *src); ># 220 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) PRIntn >PL_strcmp(const char *a, const char *b); ># 234 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) PRIntn >PL_strncmp(const char *a, const char *b, PRUint32 max); ># 246 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) PRIntn >PL_strcasecmp(const char *a, const char *b); ># 258 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) PRIntn >PL_strncasecmp(const char *a, const char *b, PRUint32 max); ># 269 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strchr(const char *s, char c); ># 280 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strrchr(const char *s, char c); ># 292 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strnchr(const char *s, char c, PRUint32 n); ># 304 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strnrchr(const char *s, char c, PRUint32 n); ># 320 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strpbrk(const char *s, const char *list); ># 331 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strprbrk(const char *s, const char *list); ># 342 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strnpbrk(const char *s, const char *list, PRUint32 n); ># 353 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strnprbrk(const char *s, const char *list, PRUint32 n); ># 363 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strstr(const char *big, const char *little); ># 373 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strrstr(const char *big, const char *little); ># 384 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strnstr(const char *big, const char *little, PRUint32 n); ># 395 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strnrstr(const char *big, const char *little, PRUint32 max); ># 405 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strcasestr(const char *big, const char *little); ># 415 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strcaserstr(const char *big, const char *little); ># 426 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strncasestr(const char *big, const char *little, PRUint32 max); ># 437 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strncaserstr(const char *big, const char *little, PRUint32 max); ># 459 "../../../dist/include/nspr/plstr.h" >extern __attribute__((visibility("default"))) char * >PL_strtok_r(char *s1, const char *s2, char **lasts); > > > > > > > >} ># 44 "../../../dist/include/xpcom/nsCRT.h" 2 > > ># 1 "../../../dist/include/xpcom/nsCppSharedAllocator.h" 1 > > > ># 1 "../../../dist/include/xpcom/nsMemory.h" 1 ># 5 "../../../dist/include/xpcom/nsCppSharedAllocator.h" 2 ># 22 "../../../dist/include/xpcom/nsCppSharedAllocator.h" ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/limits.h" 1 3 4 ># 11 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/limits.h" 3 4 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/syslimits.h" 1 3 4 > > > > > > ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/limits.h" 1 3 4 ># 122 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/limits.h" 3 4 ># 1 "/usr/include/limits.h" 1 3 4 ># 145 "/usr/include/limits.h" 3 4 ># 1 "/usr/include/bits/posix1_lim.h" 1 3 4 ># 153 "/usr/include/bits/posix1_lim.h" 3 4 ># 1 "/usr/include/bits/local_lim.h" 1 3 4 ># 36 "/usr/include/bits/local_lim.h" 3 4 ># 1 "/usr/include/linux/limits.h" 1 3 4 ># 37 "/usr/include/bits/local_lim.h" 2 3 4 ># 154 "/usr/include/bits/posix1_lim.h" 2 3 4 ># 146 "/usr/include/limits.h" 2 3 4 > > > ># 1 "/usr/include/bits/posix2_lim.h" 1 3 4 ># 150 "/usr/include/limits.h" 2 3 4 > > > ># 1 "/usr/include/bits/xopen_lim.h" 1 3 4 ># 34 "/usr/include/bits/xopen_lim.h" 3 4 ># 1 "/usr/include/bits/stdio_lim.h" 1 3 4 ># 35 "/usr/include/bits/xopen_lim.h" 2 3 4 ># 154 "/usr/include/limits.h" 2 3 4 ># 123 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/limits.h" 2 3 4 ># 8 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/syslimits.h" 2 3 4 ># 12 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/limits.h" 2 3 4 ># 23 "../../../dist/include/xpcom/nsCppSharedAllocator.h" 2 > > > >template <class T> >class nsCppSharedAllocator > > > > > { > public: > typedef T value_type; > typedef size_t size_type; > typedef ptrdiff_t difference_type; > > typedef T* pointer; > typedef const T* const_pointer; > > typedef T& reference; > typedef const T& const_reference; > > > > nsCppSharedAllocator() { } > > > > > > > ~nsCppSharedAllocator() { } > > > pointer > address( reference r ) const > { > return &r; > } > > const_pointer > address( const_reference r ) const > { > return &r; > } > > pointer > allocate( size_type n, const void* =0 ) > { > return reinterpret_cast<pointer>(nsMemory::Alloc(static_cast<PRUint32>(n*sizeof(T)))); > } > > void > deallocate( pointer p, size_type ) > { > nsMemory::Free(p); > } > > void > construct( pointer p, const T& val ) > { > new (p) T(val); > } > > void > destroy( pointer p ) > { > p->~T(); > } > > size_type > max_size() const > { > > > > return (2147483647L * 2UL + 1UL) / sizeof(T); > > } ># 109 "../../../dist/include/xpcom/nsCppSharedAllocator.h" > }; > > >template <class T> >PRBool >operator==( const nsCppSharedAllocator<T>&, const nsCppSharedAllocator<T>& ) > { > return 1; > } > >template <class T> >PRBool >operator!=( const nsCppSharedAllocator<T>&, const nsCppSharedAllocator<T>& ) > { > return 0; > } ># 47 "../../../dist/include/xpcom/nsCRT.h" 2 ># 59 "../../../dist/include/xpcom/nsCRT.h" >extern const PRUnichar kIsoLatin1ToUCS2[256]; ># 98 "../../../dist/include/xpcom/nsCRT.h" >class nsCRT { >public: > enum { > LF='\n' , > VTAB='\v' , > CR='\r' > }; ># 129 "../../../dist/include/xpcom/nsCRT.h" > static PRUint32 strlen(const char* s) { > return PRUint32(::strlen(s)); > } > > > static PRInt32 strcmp(const char* s1, const char* s2) { > return PRInt32(PL_strcmp(s1, s2)); > } > > static PRInt32 strncmp(const char* s1, const char* s2, > PRUint32 aMaxLen) { > return PRInt32(PL_strncmp(s1, s2, aMaxLen)); > } > > > static PRInt32 strcasecmp(const char* s1, const char* s2) { > return PRInt32(PL_strcasecmp(s1, s2)); > } > > > static PRInt32 strncasecmp(const char* s1, const char* s2, PRUint32 aMaxLen) { > PRInt32 result=PRInt32(PL_strncasecmp(s1, s2, aMaxLen)); > > > if (result<0) > result=-1; > return result; > } > > static PRInt32 strncmp(const char* s1, const char* s2, PRInt32 aMaxLen) { > > PRInt32 diff = ((const unsigned char*)s1)[0] - ((const unsigned char*)s2)[0]; > if (diff != 0) return diff; > return PRInt32(PL_strncmp(s1,s2,unsigned(aMaxLen))); > } > > static char* strdup(const char* str) { > return PL_strdup(str); > } > > static char* strndup(const char* str, PRUint32 len) { > return PL_strndup(str, len); > } > > static void free(char* str) { > PL_strfree(str); > } ># 196 "../../../dist/include/xpcom/nsCRT.h" > static char* strtok(char* str, const char* delims, char* *newStr); > > static PRUint32 strlen(const PRUnichar* s) { > > if (!s) { > do { } while (0); > return 0; > } > return NS_strlen(s); > } > > > static PRInt32 strcmp(const PRUnichar* s1, const PRUnichar* s2); > > static PRInt32 strncmp(const PRUnichar* s1, const PRUnichar* s2, > PRUint32 aMaxLen); > > > > static PRUnichar* strdup(const PRUnichar* str); > > > > static PRUnichar* strndup(const PRUnichar* str, PRUint32 len); > > static void free(PRUnichar* str) { > nsCppSharedAllocator<PRUnichar> shared_allocator; > shared_allocator.deallocate(str, 0 ); > } > > > > static PRUint32 HashCode(const char* str, > PRUint32* resultingStrLen = 0); > > > static PRUint32 HashCode(const char* start, PRUint32 length); > > > > static PRUint32 HashCode(const PRUnichar* str, > PRUint32* resultingStrLen = 0); > > > > > > > static PRUint32 HashCodeAsUTF8(const PRUnichar* start, PRUint32 length); > > > static PRUint32 BufferHashCode(const PRUnichar* str, PRUint32 strLen); > > > static PRInt64 atoll(const char *str); > > static char ToUpper(char aChar) { return NS_ToUpper(aChar); } > static char ToLower(char aChar) { return NS_ToLower(aChar); } > > static PRBool IsUpper(char aChar) { return NS_IsUpper(aChar); } > static PRBool IsLower(char aChar) { return NS_IsLower(aChar); } > > static PRBool IsAscii(PRUnichar aChar) { return NS_IsAscii(aChar); } > static PRBool IsAscii(const PRUnichar* aString) { return NS_IsAscii(aString); } > static PRBool IsAsciiAlpha(PRUnichar aChar) { return NS_IsAsciiAlpha(aChar); } > static PRBool IsAsciiDigit(PRUnichar aChar) { return NS_IsAsciiDigit(aChar); } > static PRBool IsAsciiSpace(PRUnichar aChar) { return NS_IsAsciiWhitespace(aChar); } > static PRBool IsAscii(const char* aString) { return NS_IsAscii(aString); } > static PRBool IsAscii(const char* aString, PRUint32 aLength) { return NS_IsAscii(aString, aLength); } >}; ># 50 "../../../dist/include/content/nsIDocument.h" 2 ># 1 "../../../dist/include/content/mozFlushType.h" 1 ># 44 "../../../dist/include/content/mozFlushType.h" >enum mozFlushType { > Flush_Content = 1, > Flush_ContentAndNotify = 2, > > > Flush_Style = 3, > Flush_Frames = Flush_Style, > Flush_Layout = 4, > Flush_Display = 5 >}; ># 51 "../../../dist/include/content/nsIDocument.h" 2 > ># 1 "../../../dist/include/layout/nsCompatibility.h" 1 ># 44 "../../../dist/include/layout/nsCompatibility.h" >enum nsCompatibility { > eCompatibility_FullStandards = 1, > eCompatibility_AlmostStandards = 2, > eCompatibility_NavQuirks = 3 >}; ># 53 "../../../dist/include/content/nsIDocument.h" 2 > > > >class nsIContent; >class nsPresContext; >class nsIPresShell; >class nsIDocShell; >class nsIStreamListener; >class nsIStreamObserver; >class nsStyleSet; >class nsIStyleSheet; >class nsIStyleRule; >class nsIViewManager; >class nsIScriptGlobalObject; >class nsPIDOMWindow; >class nsIDOMEvent; >class nsIDeviceContext; >class nsIParser; >class nsIDOMNode; >class nsIDOMDocumentFragment; >class nsILineBreaker; >class nsIWordBreaker; >class nsISelection; >class nsIChannel; >class nsIPrincipal; >class nsIDOMDocument; >class nsIDOMDocumentType; >class nsIObserver; >class nsScriptLoader; >class nsIContentSink; >class nsIScriptEventManager; >class nsICSSLoader; >class nsHTMLStyleSheet; >class nsIHTMLCSSStyleSheet; >class nsILayoutHistoryState; >class nsIVariant; >class nsIDOMUserDataHandler; >template<class E> class nsCOMArray; >class nsIDocumentObserver; >class nsBindingManager; >class nsIDOMNodeList; >class mozAutoSubtreeModified; >struct JSObject; >class nsFrameLoader; ># 110 "../../../dist/include/content/nsIDocument.h" >class nsIDocument : public nsINode >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > void* operator new(size_t sz) throw() { void* rv = ::operator new(sz); if (rv) { memset(rv, 0, sz); } return rv; } void operator delete(void* ptr) { ::operator delete(ptr); } > > > nsIDocument() > : nsINode(0), > mCharacterSet(static_cast<const nsDependentCString&>(nsDependentCString("ISO-8859-1", PRUint32(sizeof("ISO-8859-1")-1)))), > mNodeInfoManager(0), > mCompatMode(eCompatibility_FullStandards), > mIsInitialDocumentInWindow(0), > mMayStartLayout(1), > mPartID(0), > mJSObject(0) > { > mParentPtrBits |= PARENT_BIT_INDOCUMENT; > } ># 160 "../../../dist/include/content/nsIDocument.h" > virtual nsresult StartDocumentLoad(const char* aCommand, > nsIChannel* aChannel, > nsILoadGroup* aLoadGroup, > nsISupports* aContainer, > nsIStreamListener **aDocListener, > PRBool aReset, > nsIContentSink* aSink = 0) = 0; > virtual void StopDocumentLoad() = 0; > > > > > > const nsString& GetDocumentTitle() const > { > return mDocumentTitle; > } > > > > > nsIURI* GetDocumentURI() const > { > return mDocumentURI; > } > > > > > virtual void SetDocumentURI(nsIURI* aURI) = 0; > > > > > virtual void SetPrincipal(nsIPrincipal *aPrincipal) = 0; > > > > > already_AddRefed<nsILoadGroup> GetDocumentLoadGroup() const > { > nsILoadGroup *group = 0; > if (mDocumentLoadGroup) > CallQueryReferent(mDocumentLoadGroup.get(), &group); > > return group; > } > > > > > > > nsIURI* GetBaseURI() const > { > return mDocumentBaseURI ? mDocumentBaseURI : mDocumentURI; > } > virtual nsresult SetBaseURI(nsIURI* aURI) = 0; > > > > > virtual void GetBaseTarget(nsAString_internal &aBaseTarget) const = 0; > virtual void SetBaseTarget(const nsAString_internal &aBaseTarget) = 0; > > > > > > > const nsCString& GetDocumentCharacterSet() const > { > return mCharacterSet; > } > > > > > > virtual void SetDocumentCharacterSet(const nsACString_internal& aCharSetID) = 0; > > PRInt32 GetDocumentCharacterSetSource() const > { > return mCharacterSetSource; > } > > > > void SetDocumentCharacterSetSource(PRInt32 aCharsetSource) > { > mCharacterSetSource = aCharsetSource; > } > > > > > virtual nsresult AddCharSetObserver(nsIObserver* aObserver) = 0; > > > > > virtual void RemoveCharSetObserver(nsIObserver* aObserver) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetContentType(nsAString_internal& aContentType) = 0; > > > > > virtual void SetContentType(const nsAString_internal& aContentType) = 0; > > > > > void GetContentLanguage(nsAString_internal& aContentLanguage) const > { > CopyASCIItoUTF16(mContentLanguage, aContentLanguage); > } ># 290 "../../../dist/include/content/nsIDocument.h" > PRBool GetBidiEnabled() const > { > return mBidiEnabled; > } > > > > > > > > void SetBidiEnabled(PRBool aBidiEnabled) > { > mBidiEnabled = aBidiEnabled; > } > > > > > PRBool GetMathMLEnabled() const > { > return mMathMLEnabled; > } > > void SetMathMLEnabled() > { > mMathMLEnabled = 1; > } > > > > > PRBool IsInitialDocument() const > { > return mIsInitialDocumentInWindow; > } > > > > > > void SetIsInitialDocument(PRBool aIsInitialDocument) > { > mIsInitialDocumentInWindow = aIsInitialDocument; > } > > > > > > > PRUint32 GetBidiOptions() const > { > return mBidiOptions; > } > > > > > > > > void SetBidiOptions(PRUint32 aBidiOptions) > { > mBidiOptions = aBidiOptions; > } > > > > > > virtual void GetHeaderData(nsIAtom* aHeaderField, nsAString_internal& aData) const = 0; > virtual void SetHeaderData(nsIAtom* aheaderField, const nsAString_internal& aData) = 0; ># 371 "../../../dist/include/content/nsIDocument.h" > virtual nsresult CreateShell(nsPresContext* aContext, > nsIViewManager* aViewManager, > nsStyleSet* aStyleSet, > nsIPresShell** aInstancePtrResult) = 0; > virtual PRBool DeleteShell(nsIPresShell* aShell) = 0; > virtual nsIPresShell *GetPrimaryShell() const = 0; > void SetShellsHidden(PRBool aHide) { mShellsAreHidden = aHide; } > PRBool ShellsAreHidden() const { return mShellsAreHidden; } > > > > > > > nsIDocument *GetParentDocument() const > { > return mParentDocument; > } > > > > > void SetParentDocument(nsIDocument* aParent) > { > mParentDocument = aParent; > } > > > > > virtual nsresult SetSubDocumentFor(nsIContent *aContent, > nsIDocument* aSubDoc) = 0; > > > > > virtual nsIDocument *GetSubDocumentFor(nsIContent *aContent) const = 0; > > > > > virtual nsIContent *FindContentForSubDocument(nsIDocument *aDocument) const = 0; > > > > > nsIContent *GetRootContent() const > { > return (mCachedRootContent && > mCachedRootContent->GetNodeParent() == this) ? > reinterpret_cast<nsIContent*>(mCachedRootContent.get()) : > GetRootContentInternal(); > } > virtual nsIContent *GetRootContentInternal() const = 0; ># 437 "../../../dist/include/content/nsIDocument.h" > virtual PRInt32 GetNumberOfStyleSheets() const = 0; > > > > > > > > virtual nsIStyleSheet* GetStyleSheetAt(PRInt32 aIndex) const = 0; ># 454 "../../../dist/include/content/nsIDocument.h" > virtual void InsertStyleSheetAt(nsIStyleSheet* aSheet, PRInt32 aIndex) = 0; > > > > > > > > virtual PRInt32 GetIndexOfStyleSheet(nsIStyleSheet* aSheet) const = 0; ># 472 "../../../dist/include/content/nsIDocument.h" > virtual void UpdateStyleSheets(nsCOMArray<nsIStyleSheet>& aOldSheets, > nsCOMArray<nsIStyleSheet>& aNewSheets) = 0; > > > > > virtual void AddStyleSheet(nsIStyleSheet* aSheet) = 0; > > > > > virtual void RemoveStyleSheet(nsIStyleSheet* aSheet) = 0; > > > > > > virtual void SetStyleSheetApplicableState(nsIStyleSheet* aSheet, > PRBool aApplicable) = 0; > > > > > > virtual PRInt32 GetNumberOfCatalogStyleSheets() const = 0; > virtual nsIStyleSheet* GetCatalogStyleSheetAt(PRInt32 aIndex) const = 0; > virtual void AddCatalogStyleSheet(nsIStyleSheet* aSheet) = 0; > virtual void EnsureCatalogStyleSheet(const char *aStyleSheetURI) = 0; > > > > > nsICSSLoader* CSSLoader() const { > return mCSSLoader; > } > > > > > > > virtual nsIChannel* GetChannel() const = 0; > > > > > > virtual nsHTMLStyleSheet* GetAttributeStyleSheet() const = 0; > > > > > > virtual nsIHTMLCSSStyleSheet* GetInlineStyleSheet() const = 0; > > > > > > > > virtual nsIScriptGlobalObject* GetScriptGlobalObject() const = 0; > virtual void SetScriptGlobalObject(nsIScriptGlobalObject* aGlobalObject) = 0; ># 545 "../../../dist/include/content/nsIDocument.h" > virtual nsIScriptGlobalObject* > GetScriptHandlingObject(PRBool& aHasHadScriptHandlingObject) const = 0; > virtual void SetScriptHandlingObject(nsIScriptGlobalObject* aScriptObject) = 0; ># 556 "../../../dist/include/content/nsIDocument.h" > virtual nsIScriptGlobalObject* GetScopeObject() = 0; > > > > > virtual nsPIDOMWindow *GetWindow() = 0; > > > > > > > virtual nsPIDOMWindow *GetInnerWindow() = 0; > > > > > virtual nsScriptLoader* ScriptLoader() = 0; ># 584 "../../../dist/include/content/nsIDocument.h" > virtual void AddObserver(nsIDocumentObserver* aObserver) = 0; > > > > > > virtual PRBool RemoveObserver(nsIDocumentObserver* aObserver) = 0; > > > > > > virtual void BeginUpdate(nsUpdateType aUpdateType) = 0; > virtual void EndUpdate(nsUpdateType aUpdateType) = 0; > virtual void BeginLoad() = 0; > virtual void EndLoad() = 0; > > > virtual void ContentStatesChanged(nsIContent* aContent1, > nsIContent* aContent2, > PRInt32 aStateMask) = 0; > > > > virtual void StyleRuleChanged(nsIStyleSheet* aStyleSheet, > nsIStyleRule* aOldStyleRule, > nsIStyleRule* aNewStyleRule) = 0; > virtual void StyleRuleAdded(nsIStyleSheet* aStyleSheet, > nsIStyleRule* aStyleRule) = 0; > virtual void StyleRuleRemoved(nsIStyleSheet* aStyleSheet, > nsIStyleRule* aStyleRule) = 0; > > > > > virtual void AttributeWillChange(nsIContent* aChild, > PRInt32 aNameSpaceID, > nsIAtom* aAttribute) = 0; > > > > > > virtual void FlushPendingNotifications(mozFlushType aType) = 0; > > nsBindingManager* BindingManager() const > { > return mNodeInfoManager->GetBindingManager(); > } > > > > > > nsNodeInfoManager* NodeInfoManager() const > { > return mNodeInfoManager; > } > > > > > > > virtual void Reset(nsIChannel* aChannel, nsILoadGroup* aLoadGroup) = 0; > > > > > > > virtual void ResetToURI(nsIURI *aURI, nsILoadGroup* aLoadGroup, > nsIPrincipal* aPrincipal) = 0; > > virtual void AddReference(void *aKey, nsISupports *aReference) = 0; > virtual nsISupports *GetReference(void *aKey) = 0; > virtual void RemoveReference(void *aKey) = 0; > > > > > void SetContainer(nsISupports *aContainer) > { > mDocumentContainer = do_GetWeakReference(aContainer); > } > > > > > already_AddRefed<nsISupports> GetContainer() const > { > nsISupports* container = 0; > if (mDocumentContainer) > CallQueryReferent(mDocumentContainer.get(), &container); > > return container; > } > > virtual nsIScriptEventManager* GetScriptEventManager() = 0; > > > > > > > > virtual void SetXMLDeclaration(const PRUnichar *aVersion, > const PRUnichar *aEncoding, > const PRInt32 aStandalone) = 0; > virtual void GetXMLDeclaration(nsAString_internal& aVersion, > nsAString_internal& aEncoding, > nsAString_internal& Standalone) = 0; > > virtual PRBool IsCaseSensitive() > { > return 1; > } > > virtual PRBool IsScriptEnabled() = 0; > > virtual nsresult AddXMLEventsContent(nsIContent * aXMLEventsElement) = 0; > > > > > > > > virtual nsresult CreateElem(nsIAtom *aName, nsIAtom *aPrefix, > PRInt32 aNamespaceID, > PRBool aDocumentDefaultType, > nsIContent** aResult) = 0; ># 724 "../../../dist/include/content/nsIDocument.h" > nsISupports *GetSecurityInfo() > { > return mSecurityInfo; > } > > > > > > virtual PRInt32 GetDefaultNamespaceID() const = 0; > > nsPropertyTable* PropertyTable() { return &mPropertyTable; } > > > > > void SetPartID(PRUint32 aID) { > mPartID = aID; > } > > > > > PRUint32 GetPartID() const { > return mPartID; > } > > > > > > virtual nsresult Sanitize() = 0; > > > > > > > typedef PRBool (*nsSubDocEnumFunc)(nsIDocument *aDocument, void *aData); > virtual void EnumerateSubDocuments(nsSubDocEnumFunc aCallback, > void *aData) = 0; ># 783 "../../../dist/include/content/nsIDocument.h" > virtual PRBool CanSavePresentation(nsIRequest *aNewRequest) = 0; > > > > > > > virtual void Destroy() = 0; > > > > > > > > virtual void RemovedFromDocShell() = 0; > > > > > > > virtual already_AddRefed<nsILayoutHistoryState> GetLayoutHistoryState() const = 0; ># 814 "../../../dist/include/content/nsIDocument.h" > virtual void BlockOnload() = 0; > > > > > > > virtual void UnblockOnload(PRBool aFireSync) = 0; ># 831 "../../../dist/include/content/nsIDocument.h" > virtual void OnPageShow(PRBool aPersisted) = 0; ># 841 "../../../dist/include/content/nsIDocument.h" > virtual void OnPageHide(PRBool aPersisted) = 0; ># 851 "../../../dist/include/content/nsIDocument.h" > virtual void AddStyleRelevantLink(nsIContent* aContent, nsIURI* aURI) = 0; > > > > > > > virtual void ForgetLink(nsIContent* aContent) = 0; > > > > > virtual void NotifyURIVisitednessChanged(nsIURI* aURI) = 0; > > > > > > > virtual void ClearBoxObjectFor(nsIContent *aContent) = 0; > > > > > nsCompatibility GetCompatibilityMode() const { > return mCompatMode; > } > > > > > virtual nsresult GetXBLChildNodesFor(nsIContent* aContent, > nsIDOMNodeList** aResult) = 0; > > > > > virtual nsresult GetContentListFor(nsIContent* aContent, > nsIDOMNodeList** aResult) = 0; > > > > > virtual void FlushSkinBindings() = 0; ># 903 "../../../dist/include/content/nsIDocument.h" > void MayDispatchMutationEvent(nsINode* aTarget) > { > if (mSubtreeModifiedDepth > 0) { > mSubtreeModifiedTargets.AppendObject(aTarget); > } > } > > > > > > void MarkUncollectableForCCGeneration(PRUint32 aGeneration) > { > mMarkedCCGeneration = aGeneration; > } > > > > > PRUint32 GetMarkedCCGeneration() > { > return mMarkedCCGeneration; > } > > PRBool IsLoadedAsData() > { > return mLoadedAsData; > } > > PRBool MayStartLayout() > { > return mMayStartLayout; > } > > void SetMayStartLayout(PRBool aMayStartLayout) > { > mMayStartLayout = aMayStartLayout; > } > > JSObject* GetJSObject() const > { > return mJSObject; > } > > void SetJSObject(JSObject *aJSObject) > { > mJSObject = aJSObject; > } > > > > virtual already_AddRefed<nsIParser> GetFragmentParser() { > return 0; > } > > virtual void SetFragmentParser(nsIParser* aParser) { > > } > > > virtual nsresult InitializeFrameLoader(nsFrameLoader* aLoader) = 0; > > > virtual nsresult FinalizeFrameLoader(nsFrameLoader* aLoader) = 0; > > virtual void TryCancelFrameLoaderInitialization(nsIDocShell* aShell) = 0; > > virtual PRBool FrameLoaderScheduledToBeFinalized(nsIDocShell* aShell) = 0; >protected: > ~nsIDocument() > { > > > > > } > > > > > > > virtual void WillDispatchMutationEvent(nsINode* aTarget) = 0; > virtual void MutationEventDispatched(nsINode* aTarget) = 0; > friend class mozAutoSubtreeModified; > friend class nsPresShellIterator; > > nsString mDocumentTitle; > nsCOMPtr<nsIURI> mDocumentURI; > nsCOMPtr<nsIURI> mDocumentBaseURI; > > nsWeakPtr mDocumentLoadGroup; > > nsWeakPtr mDocumentContainer; > > nsCString mCharacterSet; > PRInt32 mCharacterSetSource; > > > nsIDocument* mParentDocument; > > > > > nsCOMPtr<nsINode> mCachedRootContent; > > > > > nsNodeInfoManager* mNodeInfoManager; > nsICSSLoader* mCSSLoader; > > > nsPropertyTable mPropertyTable; > > > nsCompatibility mCompatMode; > > > PRPackedBool mBidiEnabled; > > PRPackedBool mMathMLEnabled; > > > > > > PRPackedBool mIsInitialDocumentInWindow; > > PRPackedBool mShellsAreHidden; > > > > PRPackedBool mLoadedAsData; > > > > PRPackedBool mMayStartLayout; > > > > PRUint32 mBidiOptions; > > nsCString mContentLanguage; > nsCString mContentType; > > > nsCOMPtr<nsISupports> mSecurityInfo; > > > > PRUint32 mPartID; > > > > PRUint32 mMarkedCCGeneration; > > nsTObserverArray<nsIPresShell*> mPresShells; > > nsCOMArray<nsINode> mSubtreeModifiedTargets; > PRUint32 mSubtreeModifiedDepth; > >private: > > > > JSObject *mJSObject; >}; > >template <class Dummy> const nsIID nsIDocument::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0xc81acf0b, 0x2539, 0x47ab, { 0xa6, 0x04, 0x64, 0x04, 0x07, 0x63, 0xc8, 0x3d } }; > > > > > > >class mozAutoSubtreeModified >{ >public: > > > > > > > mozAutoSubtreeModified(nsIDocument* aSubtreeOwner, nsINode* aTarget) > { > UpdateTarget(aSubtreeOwner, aTarget); > } > > ~mozAutoSubtreeModified() > { > UpdateTarget(0, 0); > } > > void UpdateTarget(nsIDocument* aSubtreeOwner, nsINode* aTarget) > { > if (mSubtreeOwner) { > mSubtreeOwner->MutationEventDispatched(mTarget); > } > > mTarget = aTarget; > mSubtreeOwner = aSubtreeOwner; > if (mSubtreeOwner) { > mSubtreeOwner->WillDispatchMutationEvent(mTarget); > } > } > >private: > nsCOMPtr<nsINode> mTarget; > nsCOMPtr<nsIDocument> mSubtreeOwner; >}; > > >nsresult >NS_NewHTMLDocument(nsIDocument** aInstancePtrResult); > >nsresult >NS_NewXMLDocument(nsIDocument** aInstancePtrResult); > > >nsresult >NS_NewSVGDocument(nsIDocument** aInstancePtrResult); > > >nsresult >NS_NewImageDocument(nsIDocument** aInstancePtrResult); > >nsresult >NS_NewDocumentFragment(nsIDOMDocumentFragment** aInstancePtrResult, > nsNodeInfoManager *aNodeInfoManager); > > > > >nsresult >NS_NewDOMDocument(nsIDOMDocument** aInstancePtrResult, > const nsAString_internal& aNamespaceURI, > const nsAString_internal& aQualifiedName, > nsIDOMDocumentType* aDoctype, > nsIURI* aDocumentURI, > nsIURI* aBaseURI, > nsIPrincipal* aPrincipal, > PRBool aLoadedAsData); >nsresult >NS_NewPluginDocument(nsIDocument** aInstancePtrResult); ># 62 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsINodeInfo.h" 1 ># 63 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/string/nsReadableUtils.h" 1 ># 64 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIDOMDocument.h" 1 ># 10 "../../../dist/include/dom/nsIDOMDocument.h" ># 1 "../../../dist/include/dom/nsIDOMNode.h" 1 ># 25 "../../../dist/include/dom/nsIDOMNode.h" >class nsIDOMNode : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 40 "../../../dist/include/dom/nsIDOMNode.h" > enum { ELEMENT_NODE = 1U }; > > enum { ATTRIBUTE_NODE = 2U }; > > enum { TEXT_NODE = 3U }; > > enum { CDATA_SECTION_NODE = 4U }; > > enum { ENTITY_REFERENCE_NODE = 5U }; > > enum { ENTITY_NODE = 6U }; > > enum { PROCESSING_INSTRUCTION_NODE = 7U }; > > enum { COMMENT_NODE = 8U }; > > enum { DOCUMENT_NODE = 9U }; > > enum { DOCUMENT_TYPE_NODE = 10U }; > > enum { DOCUMENT_FRAGMENT_NODE = 11U }; > > enum { NOTATION_NODE = 12U }; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNodeName(nsAString_internal & aNodeName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNodeValue(nsAString_internal & aNodeValue) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetNodeValue(const nsAString_internal & aNodeValue) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNodeType(PRUint16 *aNodeType) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetParentNode(nsIDOMNode * *aParentNode) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetChildNodes(nsIDOMNodeList * *aChildNodes) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFirstChild(nsIDOMNode * *aFirstChild) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLastChild(nsIDOMNode * *aLastChild) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPreviousSibling(nsIDOMNode * *aPreviousSibling) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNextSibling(nsIDOMNode * *aNextSibling) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAttributes(nsIDOMNamedNodeMap * *aAttributes) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetOwnerDocument(nsIDOMDocument * *aOwnerDocument) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HasChildNodes(PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CloneNode(PRBool deep, nsIDOMNode **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Normalize(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsSupported(const nsAString_internal & feature, const nsAString_internal & version, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNamespaceURI(nsAString_internal & aNamespaceURI) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrefix(nsAString_internal & aPrefix) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrefix(const nsAString_internal & aPrefix) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLocalName(nsAString_internal & aLocalName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HasAttributes(PRBool *_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMNode::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa6cf907c, 0x15b3, 0x11d2, { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}; ># 11 "../../../dist/include/dom/nsIDOMDocument.h" 2 ># 25 "../../../dist/include/dom/nsIDOMDocument.h" >class nsIDOMDocument : public nsIDOMNode { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 45 "../../../dist/include/dom/nsIDOMDocument.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDoctype(nsIDOMDocumentType * *aDoctype) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetImplementation(nsIDOMDOMImplementation * *aImplementation) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDocumentElement(nsIDOMElement * *aDocumentElement) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateElement(const nsAString_internal & tagName, nsIDOMElement **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateDocumentFragment(nsIDOMDocumentFragment **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateTextNode(const nsAString_internal & data, nsIDOMText **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateComment(const nsAString_internal & data, nsIDOMComment **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateCDATASection(const nsAString_internal & data, nsIDOMCDATASection **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateProcessingInstruction(const nsAString_internal & target, const nsAString_internal & data, nsIDOMProcessingInstruction **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateAttribute(const nsAString_internal & name, nsIDOMAttr **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateEntityReference(const nsAString_internal & name, nsIDOMEntityReference **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetElementsByTagName(const nsAString_internal & tagname, nsIDOMNodeList **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateElementNS(const nsAString_internal & namespaceURI, const nsAString_internal & qualifiedName, nsIDOMElement **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateAttributeNS(const nsAString_internal & namespaceURI, const nsAString_internal & qualifiedName, nsIDOMAttr **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetElementsByTagNameNS(const nsAString_internal & namespaceURI, const nsAString_internal & localName, nsIDOMNodeList **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetElementById(const nsAString_internal & elementId, nsIDOMElement **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMDocument::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa6cf9075, 0x15b3, 0x11d2, { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}; ># 65 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIDOMNodeList.h" 1 ># 66 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIDOMNode.h" 1 ># 67 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIDOM3Node.h" 1 ># 68 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/necko/nsIIOService.h" 1 ># 17 "../../../dist/include/necko/nsIIOService.h" >class nsIProtocolHandler; > >class nsIChannel; > >class nsIURI; > >class nsIFile; ># 44 "../../../dist/include/necko/nsIIOService.h" >class nsIIOService : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 56 "../../../dist/include/necko/nsIIOService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval) = 0; ># 65 "../../../dist/include/necko/nsIIOService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetProtocolFlags(const char *aScheme, PRUint32 *_retval) = 0; ># 76 "../../../dist/include/necko/nsIIOService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NewURI(const nsACString_internal & aSpec, const char *aOriginCharset, nsIURI *aBaseURI, nsIURI **_retval) = 0; ># 85 "../../../dist/include/necko/nsIIOService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NewFileURI(nsIFile *aFile, nsIURI **_retval) = 0; ># 94 "../../../dist/include/necko/nsIIOService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NewChannel(const nsACString_internal & aSpec, const char *aOriginCharset, nsIURI *aBaseURI, nsIChannel **_retval) = 0; ># 112 "../../../dist/include/necko/nsIIOService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetOffline(PRBool *aOffline) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetOffline(PRBool aOffline) = 0; ># 127 "../../../dist/include/necko/nsIIOService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval) = 0; ># 143 "../../../dist/include/necko/nsIIOService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ExtractScheme(const nsACString_internal & urlString, nsACString_internal & _retval) = 0; > >}; > > template <class Dummy> const nsIID nsIIOService::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xbddeda3f, 0x9020, 0x4d12, { 0x8c, 0x70, 0x98, 0x4e, 0xe9, 0xf7, 0x93, 0x5e }}; ># 69 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/necko/nsNetCID.h" 1 ># 70 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/necko/nsNetUtil.h" 1 ># 44 "../../../dist/include/necko/nsNetUtil.h" ># 1 "../../../dist/include/necko/nsNetError.h" 1 ># 41 "../../../dist/include/necko/nsNetError.h" ># 1 "../../../dist/include/xpcom/nsError.h" 1 ># 42 "../../../dist/include/necko/nsNetError.h" 2 ># 45 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsNetCID.h" 1 ># 46 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsStringGlue.h" 1 ># 47 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsMemory.h" 1 ># 48 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsCOMPtr.h" 1 ># 49 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/nspr/prio.h" 1 ># 49 "../../../dist/include/nspr/prio.h" ># 1 "../../../dist/include/nspr/prtime.h" 1 ># 50 "../../../dist/include/nspr/prio.h" 2 > ># 1 "../../../dist/include/nspr/prinet.h" 1 ># 64 "../../../dist/include/nspr/prinet.h" ># 1 "/usr/include/sys/socket.h" 1 3 4 ># 25 "/usr/include/sys/socket.h" 3 4 >extern "C" { > ># 1 "/usr/include/sys/uio.h" 1 3 4 ># 26 "/usr/include/sys/uio.h" 3 4 >extern "C" { > > ># 1 "/usr/include/bits/uio.h" 1 3 4 ># 42 "/usr/include/bits/uio.h" 3 4 >struct iovec > { > void *iov_base; > size_t iov_len; > }; ># 30 "/usr/include/sys/uio.h" 2 3 4 ># 40 "/usr/include/sys/uio.h" 3 4 >extern ssize_t readv (int __fd, __const struct iovec *__iovec, int __count); ># 50 "/usr/include/sys/uio.h" 3 4 >extern ssize_t writev (int __fd, __const struct iovec *__iovec, int __count); > >} ># 28 "/usr/include/sys/socket.h" 2 3 4 > ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 30 "/usr/include/sys/socket.h" 2 3 4 > > > > > ># 1 "/usr/include/bits/socket.h" 1 3 4 ># 29 "/usr/include/bits/socket.h" 3 4 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 30 "/usr/include/bits/socket.h" 2 3 4 > ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/limits.h" 1 3 4 ># 32 "/usr/include/bits/socket.h" 2 3 4 > > > > >typedef __socklen_t socklen_t; > > > > >enum __socket_type >{ > SOCK_STREAM = 1, > > > SOCK_DGRAM = 2, > > > SOCK_RAW = 3, > > SOCK_RDM = 4, > > SOCK_SEQPACKET = 5, > > > SOCK_PACKET = 10 > > > >}; ># 142 "/usr/include/bits/socket.h" 3 4 ># 1 "/usr/include/bits/sockaddr.h" 1 3 4 ># 29 "/usr/include/bits/sockaddr.h" 3 4 >typedef unsigned short int sa_family_t; ># 143 "/usr/include/bits/socket.h" 2 3 4 > > >struct sockaddr > { > sa_family_t sa_family; > char sa_data[14]; > }; ># 162 "/usr/include/bits/socket.h" 3 4 >struct sockaddr_storage > { > sa_family_t ss_family; > __uint32_t __ss_align; > char __ss_padding[(128 - (2 * sizeof (__uint32_t)))]; > }; > > > >enum > { > MSG_OOB = 0x01, > > MSG_PEEK = 0x02, > > MSG_DONTROUTE = 0x04, > > > > MSG_TRYHARD = MSG_DONTROUTE, > > > MSG_CTRUNC = 0x08, > > MSG_PROXY = 0x10, > > MSG_TRUNC = 0x20, > > MSG_DONTWAIT = 0x40, > > MSG_EOR = 0x80, > > MSG_WAITALL = 0x100, > > MSG_FIN = 0x200, > > MSG_SYN = 0x400, > > MSG_CONFIRM = 0x800, > > MSG_RST = 0x1000, > > MSG_ERRQUEUE = 0x2000, > > MSG_NOSIGNAL = 0x4000, > > MSG_MORE = 0x8000 > > }; > > > > >struct msghdr > { > void *msg_name; > socklen_t msg_namelen; > > struct iovec *msg_iov; > size_t msg_iovlen; > > void *msg_control; > size_t msg_controllen; > > int msg_flags; > }; > > >struct cmsghdr > { > size_t cmsg_len; > > int cmsg_level; > int cmsg_type; > > __extension__ unsigned char __cmsg_data []; > > }; ># 257 "/usr/include/bits/socket.h" 3 4 >extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr, > struct cmsghdr *__cmsg) throw (); ># 284 "/usr/include/bits/socket.h" 3 4 >enum > { > SCM_RIGHTS = 0x01 > > > , SCM_CREDENTIALS = 0x02 > > > }; > > > >struct ucred >{ > pid_t pid; > uid_t uid; > gid_t gid; >}; > > ># 1 "/usr/include/asm/socket.h" 1 3 4 > > > ># 1 "/usr/include/asm/sockios.h" 1 3 4 ># 5 "/usr/include/asm/socket.h" 2 3 4 ># 305 "/usr/include/bits/socket.h" 2 3 4 > > > >struct linger > { > int l_onoff; > int l_linger; > }; ># 36 "/usr/include/sys/socket.h" 2 3 4 > > > > >struct osockaddr > { > unsigned short int sa_family; > unsigned char sa_data[14]; > }; > > > > >enum >{ > SHUT_RD = 0, > > SHUT_WR, > > SHUT_RDWR > >}; ># 100 "/usr/include/sys/socket.h" 3 4 >extern int socket (int __domain, int __type, int __protocol) throw (); > > > > > >extern int socketpair (int __domain, int __type, int __protocol, > int __fds[2]) throw (); > > >extern int bind (int __fd, __const struct sockaddr * __addr, socklen_t __len) > throw (); > > >extern int getsockname (int __fd, struct sockaddr *__restrict __addr, > socklen_t *__restrict __len) throw (); ># 124 "/usr/include/sys/socket.h" 3 4 >extern int connect (int __fd, __const struct sockaddr * __addr, socklen_t __len); > > > >extern int getpeername (int __fd, struct sockaddr *__restrict __addr, > socklen_t *__restrict __len) throw (); > > > > > > >extern ssize_t send (int __fd, __const void *__buf, size_t __n, int __flags); > > > > > > >extern ssize_t recv (int __fd, void *__buf, size_t __n, int __flags); > > > > > > >extern ssize_t sendto (int __fd, __const void *__buf, size_t __n, > int __flags, __const struct sockaddr * __addr, > socklen_t __addr_len); ># 161 "/usr/include/sys/socket.h" 3 4 >extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n, > int __flags, struct sockaddr *__restrict __addr, > socklen_t *__restrict __addr_len); > > > > > > > >extern ssize_t sendmsg (int __fd, __const struct msghdr *__message, > int __flags); > > > > > > >extern ssize_t recvmsg (int __fd, struct msghdr *__message, int __flags); > > > > > >extern int getsockopt (int __fd, int __level, int __optname, > void *__restrict __optval, > socklen_t *__restrict __optlen) throw (); > > > > >extern int setsockopt (int __fd, int __level, int __optname, > __const void *__optval, socklen_t __optlen) throw (); > > > > > >extern int listen (int __fd, int __n) throw (); ># 209 "/usr/include/sys/socket.h" 3 4 >extern int accept (int __fd, struct sockaddr *__restrict __addr, > socklen_t *__restrict __addr_len); > > > > > > > >extern int shutdown (int __fd, int __how) throw (); > > > > >extern int sockatmark (int __fd) throw (); > > > > > > > >extern int isfdtype (int __fd, int __fdtype) throw (); ># 240 "/usr/include/sys/socket.h" 3 4 >} ># 65 "../../../dist/include/nspr/prinet.h" 2 ># 1 "/usr/include/netinet/in.h" 1 3 4 ># 23 "/usr/include/netinet/in.h" 3 4 ># 1 "/usr/include/stdint.h" 1 3 4 ># 28 "/usr/include/stdint.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 29 "/usr/include/stdint.h" 2 3 4 ># 49 "/usr/include/stdint.h" 3 4 >typedef unsigned char uint8_t; >typedef unsigned short int uint16_t; > >typedef unsigned int uint32_t; > > > > > >__extension__ >typedef unsigned long long int uint64_t; > > > > > > >typedef signed char int_least8_t; >typedef short int int_least16_t; >typedef int int_least32_t; > > > >__extension__ >typedef long long int int_least64_t; > > > >typedef unsigned char uint_least8_t; >typedef unsigned short int uint_least16_t; >typedef unsigned int uint_least32_t; > > > >__extension__ >typedef unsigned long long int uint_least64_t; > > > > > > >typedef signed char int_fast8_t; > > > > > >typedef int int_fast16_t; >typedef int int_fast32_t; >__extension__ >typedef long long int int_fast64_t; > > > >typedef unsigned char uint_fast8_t; > > > > > >typedef unsigned int uint_fast16_t; >typedef unsigned int uint_fast32_t; >__extension__ >typedef unsigned long long int uint_fast64_t; ># 126 "/usr/include/stdint.h" 3 4 >typedef int intptr_t; > > >typedef unsigned int uintptr_t; ># 138 "/usr/include/stdint.h" 3 4 >__extension__ >typedef long long int intmax_t; >__extension__ >typedef unsigned long long int uintmax_t; ># 24 "/usr/include/netinet/in.h" 2 3 4 > > > > >extern "C" { > > >enum > { > IPPROTO_IP = 0, > > IPPROTO_HOPOPTS = 0, > > IPPROTO_ICMP = 1, > > IPPROTO_IGMP = 2, > > IPPROTO_IPIP = 4, > > IPPROTO_TCP = 6, > > IPPROTO_EGP = 8, > > IPPROTO_PUP = 12, > > IPPROTO_UDP = 17, > > IPPROTO_IDP = 22, > > IPPROTO_TP = 29, > > IPPROTO_IPV6 = 41, > > IPPROTO_ROUTING = 43, > > IPPROTO_FRAGMENT = 44, > > IPPROTO_RSVP = 46, > > IPPROTO_GRE = 47, > > IPPROTO_ESP = 50, > > IPPROTO_AH = 51, > > IPPROTO_ICMPV6 = 58, > > IPPROTO_NONE = 59, > > IPPROTO_DSTOPTS = 60, > > IPPROTO_MTP = 92, > > IPPROTO_ENCAP = 98, > > IPPROTO_PIM = 103, > > IPPROTO_COMP = 108, > > IPPROTO_SCTP = 132, > > IPPROTO_RAW = 255, > > IPPROTO_MAX > }; > > > >typedef uint16_t in_port_t; > > >enum > { > IPPORT_ECHO = 7, > IPPORT_DISCARD = 9, > IPPORT_SYSTAT = 11, > IPPORT_DAYTIME = 13, > IPPORT_NETSTAT = 15, > IPPORT_FTP = 21, > IPPORT_TELNET = 23, > IPPORT_SMTP = 25, > IPPORT_TIMESERVER = 37, > IPPORT_NAMESERVER = 42, > IPPORT_WHOIS = 43, > IPPORT_MTP = 57, > > IPPORT_TFTP = 69, > IPPORT_RJE = 77, > IPPORT_FINGER = 79, > IPPORT_TTYLINK = 87, > IPPORT_SUPDUP = 95, > > > IPPORT_EXECSERVER = 512, > IPPORT_LOGINSERVER = 513, > IPPORT_CMDSERVER = 514, > IPPORT_EFSSERVER = 520, > > > IPPORT_BIFFUDP = 512, > IPPORT_WHOSERVER = 513, > IPPORT_ROUTESERVER = 520, > > > IPPORT_RESERVED = 1024, > > > IPPORT_USERRESERVED = 5000 > }; > > > >typedef uint32_t in_addr_t; >struct in_addr > { > in_addr_t s_addr; > }; ># 193 "/usr/include/netinet/in.h" 3 4 >struct in6_addr > { > union > { > uint8_t u6_addr8[16]; > uint16_t u6_addr16[8]; > uint32_t u6_addr32[4]; > } in6_u; > > > > }; > >extern const struct in6_addr in6addr_any; >extern const struct in6_addr in6addr_loopback; ># 219 "/usr/include/netinet/in.h" 3 4 >struct sockaddr_in > { > sa_family_t sin_family; > in_port_t sin_port; > struct in_addr sin_addr; > > > unsigned char sin_zero[sizeof (struct sockaddr) - > (sizeof (unsigned short int)) - > sizeof (in_port_t) - > sizeof (struct in_addr)]; > }; > > >struct sockaddr_in6 > { > sa_family_t sin6_family; > in_port_t sin6_port; > uint32_t sin6_flowinfo; > struct in6_addr sin6_addr; > uint32_t sin6_scope_id; > }; > > > >struct ip_mreq > { > > struct in_addr imr_multiaddr; > > > struct in_addr imr_interface; > }; > >struct ip_mreq_source > { > > struct in_addr imr_multiaddr; > > > struct in_addr imr_interface; > > > struct in_addr imr_sourceaddr; > }; > > >struct ipv6_mreq > { > > struct in6_addr ipv6mr_multiaddr; > > > unsigned int ipv6mr_interface; > }; > > > >struct group_req > { > > uint32_t gr_interface; > > > struct sockaddr_storage gr_group; > }; > >struct group_source_req > { > > uint32_t gsr_interface; > > > struct sockaddr_storage gsr_group; > > > struct sockaddr_storage gsr_source; > }; > > > >struct ip_msfilter > { > > struct in_addr imsf_multiaddr; > > > struct in_addr imsf_interface; > > > uint32_t imsf_fmode; > > > uint32_t imsf_numsrc; > > struct in_addr imsf_slist[1]; > }; > > > > > >struct group_filter > { > > uint32_t gf_interface; > > > struct sockaddr_storage gf_group; > > > uint32_t gf_fmode; > > > uint32_t gf_numsrc; > > struct sockaddr_storage gf_slist[1]; >}; ># 345 "/usr/include/netinet/in.h" 3 4 ># 1 "/usr/include/bits/in.h" 1 3 4 ># 82 "/usr/include/bits/in.h" 3 4 >struct ip_opts > { > struct in_addr ip_dst; > char ip_opts[40]; > }; > > >struct ip_mreqn > { > struct in_addr imr_multiaddr; > struct in_addr imr_address; > int imr_ifindex; > }; > > >struct in_pktinfo > { > int ipi_ifindex; > struct in_addr ipi_spec_dst; > struct in_addr ipi_addr; > }; ># 346 "/usr/include/netinet/in.h" 2 3 4 ># 354 "/usr/include/netinet/in.h" 3 4 >extern uint32_t ntohl (uint32_t __netlong) throw () __attribute__ ((__const__)); >extern uint16_t ntohs (uint16_t __netshort) > throw () __attribute__ ((__const__)); >extern uint32_t htonl (uint32_t __hostlong) > throw () __attribute__ ((__const__)); >extern uint16_t htons (uint16_t __hostshort) > throw () __attribute__ ((__const__)); > > > > ># 1 "/usr/include/bits/byteswap.h" 1 3 4 ># 366 "/usr/include/netinet/in.h" 2 3 4 ># 428 "/usr/include/netinet/in.h" 3 4 >extern int bindresvport (int __sockfd, struct sockaddr_in *__sock_in) throw (); > > >extern int bindresvport6 (int __sockfd, struct sockaddr_in6 *__sock_in) > throw (); ># 456 "/usr/include/netinet/in.h" 3 4 >struct in6_pktinfo > { > struct in6_addr ipi6_addr; > unsigned int ipi6_ifindex; > }; > > > > >extern int inet6_option_space (int __nbytes) throw (); >extern int inet6_option_init (void *__bp, struct cmsghdr **__cmsgp, > int __type) throw (); >extern int inet6_option_append (struct cmsghdr *__cmsg, > __const uint8_t *__typep, int __multx, > int __plusy) throw (); >extern uint8_t *inet6_option_alloc (struct cmsghdr *__cmsg, int __datalen, > int __multx, int __plusy) throw (); >extern int inet6_option_next (__const struct cmsghdr *__cmsg, > uint8_t **__tptrp) throw (); >extern int inet6_option_find (__const struct cmsghdr *__cmsg, > uint8_t **__tptrp, int __type) throw (); > > > > > >extern int getipv4sourcefilter (int __s, struct in_addr __interface_addr, > struct in_addr __group, uint32_t *__fmode, > uint32_t *__numsrc, struct in_addr *__slist) > throw (); > > >extern int setipv4sourcefilter (int __s, struct in_addr __interface_addr, > struct in_addr __group, uint32_t __fmode, > uint32_t __numsrc, > __const struct in_addr *__slist) > throw (); > > > >extern int getsourcefilter (int __s, uint32_t __interface_addr, > __const struct sockaddr *__group, > socklen_t __grouplen, uint32_t *__fmode, > uint32_t *__numsrc, > struct sockaddr_storage *__slist) throw (); > > >extern int setsourcefilter (int __s, uint32_t __interface_addr, > __const struct sockaddr *__group, > socklen_t __grouplen, uint32_t __fmode, > uint32_t __numsrc, > __const struct sockaddr_storage *__slist) throw (); > > >} ># 66 "../../../dist/include/nspr/prinet.h" 2 ># 80 "../../../dist/include/nspr/prinet.h" ># 1 "/usr/include/arpa/inet.h" 1 3 4 ># 31 "/usr/include/arpa/inet.h" 3 4 >extern "C" { > > > >extern in_addr_t inet_addr (__const char *__cp) throw (); > > >extern in_addr_t inet_lnaof (struct in_addr __in) throw (); > > > >extern struct in_addr inet_makeaddr (in_addr_t __net, in_addr_t __host) > throw (); > > >extern in_addr_t inet_netof (struct in_addr __in) throw (); > > > >extern in_addr_t inet_network (__const char *__cp) throw (); > > > >extern char *inet_ntoa (struct in_addr __in) throw (); > > > > >extern int inet_pton (int __af, __const char *__restrict __cp, > void *__restrict __buf) throw (); > > > > >extern __const char *inet_ntop (int __af, __const void *__restrict __cp, > char *__restrict __buf, socklen_t __len) > throw (); > > > > > > >extern int inet_aton (__const char *__cp, struct in_addr *__inp) throw (); > > > >extern char *inet_neta (in_addr_t __net, char *__buf, size_t __len) throw (); > > > > >extern char *inet_net_ntop (int __af, __const void *__cp, int __bits, > char *__buf, size_t __len) throw (); > > > > >extern int inet_net_pton (int __af, __const char *__cp, > void *__buf, size_t __len) throw (); > > > > >extern unsigned int inet_nsap_addr (__const char *__cp, > unsigned char *__buf, int __len) throw (); > > > >extern char *inet_nsap_ntoa (int __len, __const unsigned char *__cp, > char *__buf) throw (); > > >} ># 81 "../../../dist/include/nspr/prinet.h" 2 > ># 1 "/usr/include/netdb.h" 1 3 4 ># 33 "/usr/include/netdb.h" 3 4 ># 1 "/usr/include/rpc/netdb.h" 1 3 4 ># 42 "/usr/include/rpc/netdb.h" 3 4 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 43 "/usr/include/rpc/netdb.h" 2 3 4 > >extern "C" { > >struct rpcent >{ > char *r_name; > char **r_aliases; > int r_number; >}; > >extern void setrpcent (int __stayopen) throw (); >extern void endrpcent (void) throw (); >extern struct rpcent *getrpcbyname (__const char *__name) throw (); >extern struct rpcent *getrpcbynumber (int __number) throw (); >extern struct rpcent *getrpcent (void) throw (); > > >extern int getrpcbyname_r (__const char *__name, struct rpcent *__result_buf, > char *__buffer, size_t __buflen, > struct rpcent **__result) throw (); > >extern int getrpcbynumber_r (int __number, struct rpcent *__result_buf, > char *__buffer, size_t __buflen, > struct rpcent **__result) throw (); > >extern int getrpcent_r (struct rpcent *__result_buf, char *__buffer, > size_t __buflen, struct rpcent **__result) throw (); > > >} ># 34 "/usr/include/netdb.h" 2 3 4 > > > > ># 1 "/usr/include/bits/siginfo.h" 1 3 4 ># 25 "/usr/include/bits/siginfo.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 26 "/usr/include/bits/siginfo.h" 2 3 4 > > > > > > > >typedef union sigval > { > int sival_int; > void *sival_ptr; > } sigval_t; ># 273 "/usr/include/bits/siginfo.h" 3 4 >typedef struct sigevent > { > sigval_t sigev_value; > int sigev_signo; > int sigev_notify; > > union > { > int _pad[((64 / sizeof (int)) - 3)]; > > > > __pid_t _tid; > > struct > { > void (*_function) (sigval_t); > void *_attribute; > } _sigev_thread; > } _sigev_un; > } sigevent_t; > > > > > > >enum >{ > SIGEV_SIGNAL = 0, > > SIGEV_NONE, > > SIGEV_THREAD, > > > SIGEV_THREAD_ID = 4 > >}; ># 39 "/usr/include/netdb.h" 2 3 4 > ># 1 "/usr/include/time.h" 1 3 4 ># 41 "/usr/include/netdb.h" 2 3 4 > > ># 1 "/usr/include/bits/netdb.h" 1 3 4 ># 27 "/usr/include/bits/netdb.h" 3 4 >struct netent >{ > char *n_name; > char **n_aliases; > int n_addrtype; > uint32_t n_net; >}; ># 44 "/usr/include/netdb.h" 2 3 4 ># 54 "/usr/include/netdb.h" 3 4 >extern "C" { > > > > > > >extern int *__h_errno_location (void) throw () __attribute__ ((__const__)); ># 88 "/usr/include/netdb.h" 3 4 >extern void herror (__const char *__str) throw (); > > >extern __const char *hstrerror (int __err_num) throw (); > > > > >struct hostent >{ > char *h_name; > char **h_aliases; > int h_addrtype; > int h_length; > char **h_addr_list; > >}; > > > > > > >extern void sethostent (int __stay_open); > > > > > >extern void endhostent (void); > > > > > > >extern struct hostent *gethostent (void); > > > > > > >extern struct hostent *gethostbyaddr (__const void *__addr, __socklen_t __len, > int __type); > > > > > >extern struct hostent *gethostbyname (__const char *__name); ># 149 "/usr/include/netdb.h" 3 4 >extern struct hostent *gethostbyname2 (__const char *__name, int __af); ># 161 "/usr/include/netdb.h" 3 4 >extern int gethostent_r (struct hostent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct hostent **__restrict __result, > int *__restrict __h_errnop); > >extern int gethostbyaddr_r (__const void *__restrict __addr, __socklen_t __len, > int __type, > struct hostent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct hostent **__restrict __result, > int *__restrict __h_errnop); > >extern int gethostbyname_r (__const char *__restrict __name, > struct hostent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct hostent **__restrict __result, > int *__restrict __h_errnop); > >extern int gethostbyname2_r (__const char *__restrict __name, int __af, > struct hostent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct hostent **__restrict __result, > int *__restrict __h_errnop); ># 192 "/usr/include/netdb.h" 3 4 >extern void setnetent (int __stay_open); > > > > > >extern void endnetent (void); > > > > > > >extern struct netent *getnetent (void); > > > > > > >extern struct netent *getnetbyaddr (uint32_t __net, int __type); > > > > > >extern struct netent *getnetbyname (__const char *__name); ># 231 "/usr/include/netdb.h" 3 4 >extern int getnetent_r (struct netent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct netent **__restrict __result, > int *__restrict __h_errnop); > >extern int getnetbyaddr_r (uint32_t __net, int __type, > struct netent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct netent **__restrict __result, > int *__restrict __h_errnop); > >extern int getnetbyname_r (__const char *__restrict __name, > struct netent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct netent **__restrict __result, > int *__restrict __h_errnop); > > > > >struct servent >{ > char *s_name; > char **s_aliases; > int s_port; > char *s_proto; >}; > > > > > > >extern void setservent (int __stay_open); > > > > > >extern void endservent (void); > > > > > > >extern struct servent *getservent (void); > > > > > > >extern struct servent *getservbyname (__const char *__name, > __const char *__proto); > > > > > > >extern struct servent *getservbyport (int __port, __const char *__proto); ># 303 "/usr/include/netdb.h" 3 4 >extern int getservent_r (struct servent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct servent **__restrict __result); > >extern int getservbyname_r (__const char *__restrict __name, > __const char *__restrict __proto, > struct servent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct servent **__restrict __result); > >extern int getservbyport_r (int __port, __const char *__restrict __proto, > struct servent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct servent **__restrict __result); > > > > >struct protoent >{ > char *p_name; > char **p_aliases; > int p_proto; >}; > > > > > > >extern void setprotoent (int __stay_open); > > > > > >extern void endprotoent (void); > > > > > > >extern struct protoent *getprotoent (void); > > > > > >extern struct protoent *getprotobyname (__const char *__name); > > > > > >extern struct protoent *getprotobynumber (int __proto); ># 369 "/usr/include/netdb.h" 3 4 >extern int getprotoent_r (struct protoent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct protoent **__restrict __result); > >extern int getprotobyname_r (__const char *__restrict __name, > struct protoent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct protoent **__restrict __result); > >extern int getprotobynumber_r (int __proto, > struct protoent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct protoent **__restrict __result); ># 390 "/usr/include/netdb.h" 3 4 >extern int setnetgrent (__const char *__netgroup); > > > > > > > >extern void endnetgrent (void); ># 407 "/usr/include/netdb.h" 3 4 >extern int getnetgrent (char **__restrict __hostp, > char **__restrict __userp, > char **__restrict __domainp); ># 418 "/usr/include/netdb.h" 3 4 >extern int innetgr (__const char *__netgroup, __const char *__host, > __const char *__user, __const char *domain); > > > > > > > >extern int getnetgrent_r (char **__restrict __hostp, > char **__restrict __userp, > char **__restrict __domainp, > char *__restrict __buffer, size_t __buflen); ># 446 "/usr/include/netdb.h" 3 4 >extern int rcmd (char **__restrict __ahost, unsigned short int __rport, > __const char *__restrict __locuser, > __const char *__restrict __remuser, > __const char *__restrict __cmd, int *__restrict __fd2p); ># 458 "/usr/include/netdb.h" 3 4 >extern int rcmd_af (char **__restrict __ahost, unsigned short int __rport, > __const char *__restrict __locuser, > __const char *__restrict __remuser, > __const char *__restrict __cmd, int *__restrict __fd2p, > sa_family_t __af); ># 474 "/usr/include/netdb.h" 3 4 >extern int rexec (char **__restrict __ahost, int __rport, > __const char *__restrict __name, > __const char *__restrict __pass, > __const char *__restrict __cmd, int *__restrict __fd2p); ># 486 "/usr/include/netdb.h" 3 4 >extern int rexec_af (char **__restrict __ahost, int __rport, > __const char *__restrict __name, > __const char *__restrict __pass, > __const char *__restrict __cmd, int *__restrict __fd2p, > sa_family_t __af); ># 500 "/usr/include/netdb.h" 3 4 >extern int ruserok (__const char *__rhost, int __suser, > __const char *__remuser, __const char *__locuser); ># 510 "/usr/include/netdb.h" 3 4 >extern int ruserok_af (__const char *__rhost, int __suser, > __const char *__remuser, __const char *__locuser, > sa_family_t __af); ># 522 "/usr/include/netdb.h" 3 4 >extern int rresvport (int *__alport); ># 531 "/usr/include/netdb.h" 3 4 >extern int rresvport_af (int *__alport, sa_family_t __af); > > > > > > >struct addrinfo >{ > int ai_flags; > int ai_family; > int ai_socktype; > int ai_protocol; > socklen_t ai_addrlen; > struct sockaddr *ai_addr; > char *ai_canonname; > struct addrinfo *ai_next; >}; > > > >struct gaicb >{ > const char *ar_name; > const char *ar_service; > const struct addrinfo *ar_request; > struct addrinfo *ar_result; > > int __return; > int __unused[5]; >}; ># 631 "/usr/include/netdb.h" 3 4 >extern int getaddrinfo (__const char *__restrict __name, > __const char *__restrict __service, > __const struct addrinfo *__restrict __req, > struct addrinfo **__restrict __pai); > > >extern void freeaddrinfo (struct addrinfo *__ai) throw (); > > >extern __const char *gai_strerror (int __ecode) throw (); > > > > > >extern int getnameinfo (__const struct sockaddr *__restrict __sa, > socklen_t __salen, char *__restrict __host, > socklen_t __hostlen, char *__restrict __serv, > socklen_t __servlen, unsigned int __flags); ># 661 "/usr/include/netdb.h" 3 4 >extern int getaddrinfo_a (int __mode, struct gaicb *__list[], > int __ent, struct sigevent *__restrict __sig); ># 672 "/usr/include/netdb.h" 3 4 >extern int gai_suspend (__const struct gaicb *__const __list[], int __ent, > __const struct timespec *__timeout); > > >extern int gai_error (struct gaicb *__req) throw (); > > >extern int gai_cancel (struct gaicb *__gaicbp) throw (); > > >} ># 83 "../../../dist/include/nspr/prinet.h" 2 ># 52 "../../../dist/include/nspr/prio.h" 2 > >extern "C" { > > >typedef struct PRDir PRDir; >typedef struct PRDirEntry PRDirEntry; > > > > >typedef struct PRFileDesc PRFileDesc; >typedef struct PRFileInfo PRFileInfo; >typedef struct PRFileInfo64 PRFileInfo64; >typedef union PRNetAddr PRNetAddr; >typedef struct PRIOMethods PRIOMethods; >typedef struct PRPollDesc PRPollDesc; >typedef struct PRFilePrivate PRFilePrivate; >typedef struct PRSendFileData PRSendFileData; ># 82 "../../../dist/include/nspr/prio.h" >typedef PRIntn PRDescIdentity; > >struct PRFileDesc { > const PRIOMethods *methods; > PRFilePrivate *secret; > PRFileDesc *lower, *higher; > void ( *dtor)(PRFileDesc *fd); > > PRDescIdentity identity; >}; ># 102 "../../../dist/include/nspr/prio.h" >typedef enum PRTransmitFileFlags { > PR_TRANSMITFILE_KEEP_OPEN = 0, > > PR_TRANSMITFILE_CLOSE_SOCKET = 1 > >} PRTransmitFileFlags; ># 159 "../../../dist/include/nspr/prio.h" >struct PRIPv6Addr { > union { > PRUint8 _S6_u8[16]; > PRUint16 _S6_u16[8]; > PRUint32 _S6_u32[4]; > PRUint64 _S6_u64[2]; > } _S6_un; >}; > > > > > >typedef struct PRIPv6Addr PRIPv6Addr; > >union PRNetAddr { > struct { > PRUint16 family; > > > > char data[14]; > > } raw; > struct { > PRUint16 family; > PRUint16 port; > PRUint32 ip; > > > > char pad[8]; > > } inet; > struct { > PRUint16 family; > PRUint16 port; > PRUint32 flowinfo; > PRIPv6Addr ip; > PRUint32 scope_id; > } ipv6; > > struct { > PRUint16 family; > > > > > char path[104]; > > } local; > >}; ># 222 "../../../dist/include/nspr/prio.h" >typedef enum PRSockOption >{ > PR_SockOpt_Nonblocking, > PR_SockOpt_Linger, > PR_SockOpt_Reuseaddr, > PR_SockOpt_Keepalive, > PR_SockOpt_RecvBufferSize, > PR_SockOpt_SendBufferSize, > > PR_SockOpt_IpTimeToLive, > PR_SockOpt_IpTypeOfService, > > PR_SockOpt_AddMember, > PR_SockOpt_DropMember, > PR_SockOpt_McastInterface, > PR_SockOpt_McastTimeToLive, > PR_SockOpt_McastLoopback, > > PR_SockOpt_NoDelay, > PR_SockOpt_MaxSegment, > PR_SockOpt_Broadcast, > PR_SockOpt_Last >} PRSockOption; > >typedef struct PRLinger { > PRBool polarity; > PRIntervalTime linger; >} PRLinger; > >typedef struct PRMcastRequest { > PRNetAddr mcaddr; > PRNetAddr ifaddr; >} PRMcastRequest; > >typedef struct PRSocketOptionData >{ > PRSockOption option; > union > { > PRUintn ip_ttl; > PRUintn mcast_ttl; > PRUintn tos; > PRBool non_blocking; > PRBool reuse_addr; > PRBool keep_alive; > PRBool mcast_loopback; > PRBool no_delay; > PRBool broadcast; > PRSize max_segment; > PRSize recv_buffer_size; > PRSize send_buffer_size; > PRLinger linger; > PRMcastRequest add_member; > PRMcastRequest drop_member; > PRNetAddr mcast_if; > } value; >} PRSocketOptionData; ># 288 "../../../dist/include/nspr/prio.h" >typedef struct PRIOVec { > char *iov_base; > int iov_len; >} PRIOVec; > > > > > > >typedef enum PRDescType >{ > PR_DESC_FILE = 1, > PR_DESC_SOCKET_TCP = 2, > PR_DESC_SOCKET_UDP = 3, > PR_DESC_LAYERED = 4, > PR_DESC_PIPE = 5 >} PRDescType; > >typedef enum PRSeekWhence { > PR_SEEK_SET = 0, > PR_SEEK_CUR = 1, > PR_SEEK_END = 2 >} PRSeekWhence; > >extern __attribute__((visibility("default"))) PRDescType PR_GetDescType(PRFileDesc *file); ># 331 "../../../dist/include/nspr/prio.h" >typedef PRStatus ( *PRCloseFN)(PRFileDesc *fd); >typedef PRInt32 ( *PRReadFN)(PRFileDesc *fd, void *buf, PRInt32 amount); >typedef PRInt32 ( *PRWriteFN)(PRFileDesc *fd, const void *buf, PRInt32 amount); >typedef PRInt32 ( *PRAvailableFN)(PRFileDesc *fd); >typedef PRInt64 ( *PRAvailable64FN)(PRFileDesc *fd); >typedef PRStatus ( *PRFsyncFN)(PRFileDesc *fd); >typedef PROffset32 ( *PRSeekFN)(PRFileDesc *fd, PROffset32 offset, PRSeekWhence how); >typedef PROffset64 ( *PRSeek64FN)(PRFileDesc *fd, PROffset64 offset, PRSeekWhence how); >typedef PRStatus ( *PRFileInfoFN)(PRFileDesc *fd, PRFileInfo *info); >typedef PRStatus ( *PRFileInfo64FN)(PRFileDesc *fd, PRFileInfo64 *info); >typedef PRInt32 ( *PRWritevFN)( > PRFileDesc *fd, const PRIOVec *iov, PRInt32 iov_size, > PRIntervalTime timeout); >typedef PRStatus ( *PRConnectFN)( > PRFileDesc *fd, const PRNetAddr *addr, PRIntervalTime timeout); >typedef PRFileDesc* ( *PRAcceptFN) ( > PRFileDesc *fd, PRNetAddr *addr, PRIntervalTime timeout); >typedef PRStatus ( *PRBindFN)(PRFileDesc *fd, const PRNetAddr *addr); >typedef PRStatus ( *PRListenFN)(PRFileDesc *fd, PRIntn backlog); >typedef PRStatus ( *PRShutdownFN)(PRFileDesc *fd, PRIntn how); >typedef PRInt32 ( *PRRecvFN)( > PRFileDesc *fd, void *buf, PRInt32 amount, > PRIntn flags, PRIntervalTime timeout); >typedef PRInt32 ( *PRSendFN) ( > PRFileDesc *fd, const void *buf, PRInt32 amount, > PRIntn flags, PRIntervalTime timeout); >typedef PRInt32 ( *PRRecvfromFN)( > PRFileDesc *fd, void *buf, PRInt32 amount, > PRIntn flags, PRNetAddr *addr, PRIntervalTime timeout); >typedef PRInt32 ( *PRSendtoFN)( > PRFileDesc *fd, const void *buf, PRInt32 amount, > PRIntn flags, const PRNetAddr *addr, PRIntervalTime timeout); >typedef PRInt16 ( *PRPollFN)( > PRFileDesc *fd, PRInt16 in_flags, PRInt16 *out_flags); >typedef PRInt32 ( *PRAcceptreadFN)( > PRFileDesc *sd, PRFileDesc **nd, PRNetAddr **raddr, > void *buf, PRInt32 amount, PRIntervalTime t); >typedef PRInt32 ( *PRTransmitfileFN)( > PRFileDesc *sd, PRFileDesc *fd, const void *headers, > PRInt32 hlen, PRTransmitFileFlags flags, PRIntervalTime t); >typedef PRStatus ( *PRGetsocknameFN)(PRFileDesc *fd, PRNetAddr *addr); >typedef PRStatus ( *PRGetpeernameFN)(PRFileDesc *fd, PRNetAddr *addr); >typedef PRStatus ( *PRGetsocketoptionFN)( > PRFileDesc *fd, PRSocketOptionData *data); >typedef PRStatus ( *PRSetsocketoptionFN)( > PRFileDesc *fd, const PRSocketOptionData *data); >typedef PRInt32 ( *PRSendfileFN)( > PRFileDesc *networkSocket, PRSendFileData *sendData, > PRTransmitFileFlags flags, PRIntervalTime timeout); >typedef PRStatus ( *PRConnectcontinueFN)( > PRFileDesc *fd, PRInt16 out_flags); >typedef PRIntn ( *PRReservedFN)(PRFileDesc *fd); > >struct PRIOMethods { > PRDescType file_type; > PRCloseFN close; > PRReadFN read; > PRWriteFN write; > PRAvailableFN available; > PRAvailable64FN available64; > PRFsyncFN fsync; > PRSeekFN seek; > PRSeek64FN seek64; > PRFileInfoFN fileInfo; > PRFileInfo64FN fileInfo64; > PRWritevFN writev; > PRConnectFN connect; > PRAcceptFN accept; > PRBindFN bind; > PRListenFN listen; > PRShutdownFN shutdown; > PRRecvFN recv; > PRSendFN send; > PRRecvfromFN recvfrom; > PRSendtoFN sendto; > PRPollFN poll; > PRAcceptreadFN acceptread; > PRTransmitfileFN transmitfile; > PRGetsocknameFN getsockname; > PRGetpeernameFN getpeername; > PRReservedFN reserved_fn_6; > PRReservedFN reserved_fn_5; > PRGetsocketoptionFN getsocketoption; > > PRSetsocketoptionFN setsocketoption; > > PRSendfileFN sendfile; > PRConnectcontinueFN connectcontinue; > > PRReservedFN reserved_fn_3; > PRReservedFN reserved_fn_2; > PRReservedFN reserved_fn_1; > PRReservedFN reserved_fn_0; >}; ># 445 "../../../dist/include/nspr/prio.h" >typedef enum PRSpecialFD >{ > PR_StandardInput, > PR_StandardOutput, > PR_StandardError >} PRSpecialFD; > >extern __attribute__((visibility("default"))) PRFileDesc* PR_GetSpecialFD(PRSpecialFD id); ># 492 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRDescIdentity PR_GetUniqueIdentity(const char *layer_name); >extern __attribute__((visibility("default"))) const char* PR_GetNameForIdentity(PRDescIdentity ident); >extern __attribute__((visibility("default"))) PRDescIdentity PR_GetLayersIdentity(PRFileDesc* fd); >extern __attribute__((visibility("default"))) PRFileDesc* PR_GetIdentitiesLayer(PRFileDesc* fd_stack, PRDescIdentity id); ># 505 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) const PRIOMethods * PR_GetDefaultIOMethods(void); ># 516 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRFileDesc* PR_CreateIOLayerStub( > PRDescIdentity ident, const PRIOMethods *methods); ># 533 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRFileDesc* PR_CreateIOLayer(PRFileDesc* fd); ># 549 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_PushIOLayer( > PRFileDesc *fd_stack, PRDescIdentity id, PRFileDesc *layer); ># 566 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRFileDesc* PR_PopIOLayer(PRFileDesc *fd_stack, PRDescIdentity id); ># 640 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRFileDesc* PR_Open(const char *name, PRIntn flags, PRIntn mode); ># 666 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRFileDesc* PR_OpenFile( > const char *name, PRIntn flags, PRIntn mode); ># 697 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_Close(PRFileDesc *fd); ># 732 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRInt32 PR_Read(PRFileDesc *fd, void *buf, PRInt32 amount); ># 756 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRInt32 PR_Write(PRFileDesc *fd,const void *buf,PRInt32 amount); ># 790 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRInt32 PR_Writev( > PRFileDesc *fd, const PRIOVec *iov, PRInt32 iov_size, > PRIntervalTime timeout); ># 811 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_Delete(const char *name); > > > >typedef enum PRFileType >{ > PR_FILE_FILE = 1, > PR_FILE_DIRECTORY = 2, > PR_FILE_OTHER = 3 >} PRFileType; > >struct PRFileInfo { > PRFileType type; > PROffset32 size; > PRTime creationTime; > PRTime modifyTime; >}; > >struct PRFileInfo64 { > PRFileType type; > PROffset64 size; > PRTime creationTime; > PRTime modifyTime; >}; ># 854 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_GetFileInfo(const char *fn, PRFileInfo *info); >extern __attribute__((visibility("default"))) PRStatus PR_GetFileInfo64(const char *fn, PRFileInfo64 *info); ># 881 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_GetOpenFileInfo(PRFileDesc *fd, PRFileInfo *info); >extern __attribute__((visibility("default"))) PRStatus PR_GetOpenFileInfo64(PRFileDesc *fd, PRFileInfo64 *info); ># 900 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_Rename(const char *from, const char *to); ># 926 "../../../dist/include/nspr/prio.h" >typedef enum PRAccessHow { > PR_ACCESS_EXISTS = 1, > PR_ACCESS_WRITE_OK = 2, > PR_ACCESS_READ_OK = 3 >} PRAccessHow; > >extern __attribute__((visibility("default"))) PRStatus PR_Access(const char *name, PRAccessHow how); ># 967 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PROffset32 PR_Seek(PRFileDesc *fd, PROffset32 offset, PRSeekWhence whence); >extern __attribute__((visibility("default"))) PROffset64 PR_Seek64(PRFileDesc *fd, PROffset64 offset, PRSeekWhence whence); ># 990 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRInt32 PR_Available(PRFileDesc *fd); >extern __attribute__((visibility("default"))) PRInt64 PR_Available64(PRFileDesc *fd); ># 1010 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_Sync(PRFileDesc *fd); > > > >struct PRDirEntry { > const char *name; >}; ># 1049 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRDir* PR_OpenDir(const char *name); ># 1081 "../../../dist/include/nspr/prio.h" >typedef enum PRDirFlags { > PR_SKIP_NONE = 0x0, > PR_SKIP_DOT = 0x1, > PR_SKIP_DOT_DOT = 0x2, > PR_SKIP_BOTH = 0x3, > PR_SKIP_HIDDEN = 0x4 >} PRDirFlags; > >extern __attribute__((visibility("default"))) PRDirEntry* PR_ReadDir(PRDir *dir, PRDirFlags flags); ># 1115 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_CloseDir(PRDir *dir); ># 1144 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_MkDir(const char *name, PRIntn mode); ># 1156 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_MakeDir(const char *name, PRIntn mode); ># 1176 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_RmDir(const char *name); ># 1195 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRFileDesc* PR_NewUDPSocket(void); ># 1214 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRFileDesc* PR_NewTCPSocket(void); ># 1234 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRFileDesc* PR_OpenUDPSocket(PRIntn af); ># 1254 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRFileDesc* PR_OpenTCPSocket(PRIntn af); ># 1278 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_Connect( > PRFileDesc *fd, const PRNetAddr *addr, PRIntervalTime timeout); ># 1313 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_ConnectContinue(PRFileDesc *fd, PRInt16 out_flags); ># 1343 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_GetConnectStatus(const PRPollDesc *pd); ># 1367 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRFileDesc* PR_Accept( > PRFileDesc *fd, PRNetAddr *addr, PRIntervalTime timeout); ># 1389 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_Bind(PRFileDesc *fd, const PRNetAddr *addr); ># 1411 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_Listen(PRFileDesc *fd, PRIntn backlog); ># 1435 "../../../dist/include/nspr/prio.h" >typedef enum PRShutdownHow >{ > PR_SHUTDOWN_RCV = 0, > PR_SHUTDOWN_SEND = 1, > PR_SHUTDOWN_BOTH = 2 >} PRShutdownHow; > >extern __attribute__((visibility("default"))) PRStatus PR_Shutdown(PRFileDesc *fd, PRShutdownHow how); ># 1475 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRInt32 PR_Recv(PRFileDesc *fd, void *buf, PRInt32 amount, > PRIntn flags, PRIntervalTime timeout); ># 1506 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRInt32 PR_Send(PRFileDesc *fd, const void *buf, PRInt32 amount, > PRIntn flags, PRIntervalTime timeout); ># 1541 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRInt32 PR_RecvFrom( > PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, > PRNetAddr *addr, PRIntervalTime timeout); ># 1574 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRInt32 PR_SendTo( > PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, > const PRNetAddr *addr, PRIntervalTime timeout); ># 1614 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRInt32 PR_TransmitFile( > PRFileDesc *networkSocket, PRFileDesc *sourceFile, > const void *headers, PRInt32 hlen, PRTransmitFileFlags flags, > PRIntervalTime timeout); ># 1653 "../../../dist/include/nspr/prio.h" >struct PRSendFileData { > PRFileDesc *fd; > PRUint32 file_offset; > PRSize file_nbytes; > > > const void *header; > PRInt32 hlen; > const void *trailer; > PRInt32 tlen; >}; > > >extern __attribute__((visibility("default"))) PRInt32 PR_SendFile( > PRFileDesc *networkSocket, PRSendFileData *sendData, > PRTransmitFileFlags flags, PRIntervalTime timeout); ># 1720 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRInt32 PR_AcceptRead( > PRFileDesc *listenSock, PRFileDesc **acceptedSock, > PRNetAddr **peerAddr, void *buf, PRInt32 amount, PRIntervalTime timeout); ># 1744 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_NewTCPSocketPair(PRFileDesc *fds[2]); ># 1764 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_GetSockName(PRFileDesc *fd, PRNetAddr *addr); ># 1786 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_GetPeerName(PRFileDesc *fd, PRNetAddr *addr); > >extern __attribute__((visibility("default"))) PRStatus PR_GetSocketOption( > PRFileDesc *fd, PRSocketOptionData *data); > >extern __attribute__((visibility("default"))) PRStatus PR_SetSocketOption( > PRFileDesc *fd, const PRSocketOptionData *data); ># 1821 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_SetFDInheritable( > PRFileDesc *fd, > PRBool inheritable); ># 1841 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRFileDesc * PR_GetInheritedFD(const char *name); ># 1851 "../../../dist/include/nspr/prio.h" >typedef struct PRFileMap PRFileMap; > > > > >typedef enum PRFileMapProtect { > PR_PROT_READONLY, > PR_PROT_READWRITE, > PR_PROT_WRITECOPY >} PRFileMapProtect; > >extern __attribute__((visibility("default"))) PRFileMap * PR_CreateFileMap( > PRFileDesc *fd, > PRInt64 size, > PRFileMapProtect prot); > > > > >extern __attribute__((visibility("default"))) PRInt32 PR_GetMemMapAlignment(void); > >extern __attribute__((visibility("default"))) void * PR_MemMap( > PRFileMap *fmap, > PROffset64 offset, > > PRUint32 len); > >extern __attribute__((visibility("default"))) PRStatus PR_MemUnmap(void *addr, PRUint32 len); > >extern __attribute__((visibility("default"))) PRStatus PR_CloseFileMap(PRFileMap *fmap); ># 1895 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRStatus PR_CreatePipe( > PRFileDesc **readPipe, > PRFileDesc **writePipe >); > > > > > >struct PRPollDesc { > PRFileDesc* fd; > PRInt16 in_flags; > PRInt16 out_flags; >}; ># 1976 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRInt32 PR_Poll( > PRPollDesc *pds, PRIntn npds, PRIntervalTime timeout); ># 2020 "../../../dist/include/nspr/prio.h" >extern __attribute__((visibility("default"))) PRFileDesc * PR_NewPollableEvent(void); > >extern __attribute__((visibility("default"))) PRStatus PR_DestroyPollableEvent(PRFileDesc *event); > >extern __attribute__((visibility("default"))) PRStatus PR_SetPollableEvent(PRFileDesc *event); > >extern __attribute__((visibility("default"))) PRStatus PR_WaitForPollableEvent(PRFileDesc *event); > >} ># 50 "../../../dist/include/necko/nsNetUtil.h" 2 > ># 1 "../../../dist/include/necko/nsIURI.h" 1 ># 52 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsIInputStream.h" 1 ># 17 "../../../dist/include/xpcom/nsIInputStream.h" >class nsIInputStream; ># 45 "../../../dist/include/xpcom/nsIInputStream.h" >typedef nsresult (* nsWriteSegmentFun)(nsIInputStream *aInStream, > void *aClosure, > const char *aFromSegment, > PRUint32 aToOffset, > PRUint32 aCount, > PRUint32 *aWriteCount); ># 59 "../../../dist/include/xpcom/nsIInputStream.h" >class nsIInputStream : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 86 "../../../dist/include/xpcom/nsIInputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Close(void) = 0; ># 110 "../../../dist/include/xpcom/nsIInputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Available(PRUint32 *_retval) = 0; ># 128 "../../../dist/include/xpcom/nsIInputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Read(char * aBuf, PRUint32 aCount, PRUint32 *_retval) = 0; ># 155 "../../../dist/include/xpcom/nsIInputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ReadSegments(nsWriteSegmentFun aWriter, void * aClosure, PRUint32 aCount, PRUint32 *_retval) = 0; ># 168 "../../../dist/include/xpcom/nsIInputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsNonBlocking(PRBool *_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIInputStream::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xfa9c7f6c, 0x61b3, 0x11d4, { 0x98, 0x77, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a }}; ># 53 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsIOutputStream.h" 1 ># 17 "../../../dist/include/xpcom/nsIOutputStream.h" >class nsIOutputStream; > >class nsIInputStream; ># 42 "../../../dist/include/xpcom/nsIOutputStream.h" >typedef nsresult (* nsReadSegmentFun)(nsIOutputStream *aOutStream, > void *aClosure, > char *aToSegment, > PRUint32 aFromOffset, > PRUint32 aCount, > PRUint32 *aReadCount); ># 56 "../../../dist/include/xpcom/nsIOutputStream.h" >class nsIOutputStream : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 84 "../../../dist/include/xpcom/nsIOutputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Close(void) = 0; ># 93 "../../../dist/include/xpcom/nsIOutputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Flush(void) = 0; ># 108 "../../../dist/include/xpcom/nsIOutputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Write(const char *aBuf, PRUint32 aCount, PRUint32 *_retval) = 0; ># 129 "../../../dist/include/xpcom/nsIOutputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WriteFrom(nsIInputStream *aFromStream, PRUint32 aCount, PRUint32 *_retval) = 0; ># 153 "../../../dist/include/xpcom/nsIOutputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WriteSegments(nsReadSegmentFun aReader, void * aClosure, PRUint32 aCount, PRUint32 *_retval) = 0; ># 166 "../../../dist/include/xpcom/nsIOutputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsNonBlocking(PRBool *_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIOutputStream::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x0d0acd2a, 0x61b4, 0x11d4, { 0x98, 0x77, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a }}; ># 54 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsISafeOutputStream.h" 1 ># 44 "../../../dist/include/necko/nsISafeOutputStream.h" >class nsISafeOutputStream : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 58 "../../../dist/include/necko/nsISafeOutputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Finish(void) = 0; > >}; > > template <class Dummy> const nsIID nsISafeOutputStream::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x5f914307, 0x5c34, 0x4e1f, { 0x8e, 0x32, 0xec, 0x74, 0x9d, 0x25, 0xb2, 0x7a }}; ># 55 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIStreamListener.h" 1 ># 10 "../../../dist/include/necko/nsIStreamListener.h" ># 1 "../../../dist/include/necko/nsIRequestObserver.h" 1 ># 17 "../../../dist/include/necko/nsIRequestObserver.h" >class nsIRequest; ># 32 "../../../dist/include/necko/nsIRequestObserver.h" >class nsIRequestObserver : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 47 "../../../dist/include/necko/nsIRequestObserver.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnStartRequest(nsIRequest *aRequest, nsISupports *aContext) = 0; ># 60 "../../../dist/include/necko/nsIRequestObserver.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode) = 0; > >}; > > template <class Dummy> const nsIID nsIRequestObserver::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xfd91e2e0, 0x1481, 0x11d3, { 0x93, 0x33, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40 }}; ># 11 "../../../dist/include/necko/nsIStreamListener.h" 2 > > > > > > >class nsIInputStream; ># 32 "../../../dist/include/necko/nsIStreamListener.h" >class nsIStreamListener : public nsIRequestObserver { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 59 "../../../dist/include/necko/nsIStreamListener.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext, nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount) = 0; > >}; > > template <class Dummy> const nsIID nsIStreamListener::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x1a637020, 0x1482, 0x11d3, { 0x93, 0x33, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40 }}; ># 56 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIRequestObserverProxy.h" 1 ># 17 "../../../dist/include/necko/nsIRequestObserverProxy.h" >class nsIEventTarget; ># 35 "../../../dist/include/necko/nsIRequestObserverProxy.h" >class nsIRequestObserverProxy : public nsIRequestObserver { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 47 "../../../dist/include/necko/nsIRequestObserverProxy.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsIRequestObserver *observer, nsIEventTarget *target) = 0; > >}; > > template <class Dummy> const nsIID nsIRequestObserverProxy::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x7df8845f, 0x938a, 0x4437, { 0x9e, 0xa4, 0xb1, 0x1b, 0x85, 0x00, 0x48, 0xf1 }}; ># 57 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsISimpleStreamListener.h" 1 ># 17 "../../../dist/include/necko/nsISimpleStreamListener.h" >class nsIOutputStream; ># 31 "../../../dist/include/necko/nsISimpleStreamListener.h" >class nsISimpleStreamListener : public nsIStreamListener { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 44 "../../../dist/include/necko/nsISimpleStreamListener.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsIOutputStream *aSink, nsIRequestObserver *aObserver) = 0; > >}; > > template <class Dummy> const nsIID nsISimpleStreamListener::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa9b84f6a, 0x0824, 0x4278, { 0xba, 0xe6, 0xbf, 0xca, 0x05, 0x70, 0xa2, 0x6e }}; ># 58 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsILoadGroup.h" 1 ># 59 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsIInterfaceRequestor.h" 1 ># 38 "../../../dist/include/xpcom/nsIInterfaceRequestor.h" >class nsIInterfaceRequestor : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 54 "../../../dist/include/xpcom/nsIInterfaceRequestor.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInterface(const nsIID & uuid, void * *result) = 0; > >}; > > template <class Dummy> const nsIID nsIInterfaceRequestor::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x033a1470, 0x8b2a, 0x11d3, { 0xaf, 0x88, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c }}; ># 60 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsIInterfaceRequestorUtils.h" 1 ># 46 "../../../dist/include/xpcom/nsIInterfaceRequestorUtils.h" >template <class T, class DestinationType> >inline >nsresult >CallGetInterface( T* aSource, DestinationType** aDestination ) > { > do { } while (0); > do { } while (0); > > return aSource->GetInterface((DestinationType::template COMTypeInfo<int>::kIID), > reinterpret_cast<void**>(aDestination)); > } > >class nsGetInterface : public nsCOMPtr_helper > { > public: > nsGetInterface( nsISupports* aSource, nsresult* error ) > : mSource(aSource), > mErrorPtr(error) > { > > } > > virtual nsresult __attribute__ ((regparm (3), stdcall)) operator()( const nsIID&, void** ) const; > > private: > nsISupports* mSource; > nsresult* mErrorPtr; > }; > >inline >const nsGetInterface >do_GetInterface( nsISupports* aSource, nsresult* error = 0 ) > { > return nsGetInterface(aSource, error); > } ># 61 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIIOService.h" 1 ># 62 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsIServiceManager.h" 1 ># 63 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIChannel.h" 1 ># 17 "../../../dist/include/necko/nsIChannel.h" >class nsIURI; > >class nsIInterfaceRequestor; > >class nsIInputStream; > >class nsIStreamListener; ># 47 "../../../dist/include/necko/nsIChannel.h" >class nsIChannel : public nsIRequest { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 62 "../../../dist/include/necko/nsIChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetOriginalURI(nsIURI * *aOriginalURI) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetOriginalURI(nsIURI * aOriginalURI) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetURI(nsIURI * *aURI) = 0; ># 81 "../../../dist/include/necko/nsIChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetOwner(nsISupports * *aOwner) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetOwner(nsISupports * aOwner) = 0; ># 104 "../../../dist/include/necko/nsIChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetNotificationCallbacks(nsIInterfaceRequestor * aNotificationCallbacks) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSecurityInfo(nsISupports * *aSecurityInfo) = 0; ># 139 "../../../dist/include/necko/nsIChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetContentType(nsACString_internal & aContentType) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetContentType(const nsACString_internal & aContentType) = 0; ># 149 "../../../dist/include/necko/nsIChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetContentCharset(nsACString_internal & aContentCharset) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetContentCharset(const nsACString_internal & aContentCharset) = 0; ># 161 "../../../dist/include/necko/nsIChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetContentLength(PRInt32 *aContentLength) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetContentLength(PRInt32 aContentLength) = 0; ># 177 "../../../dist/include/necko/nsIChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Open(nsIInputStream **_retval) = 0; ># 211 "../../../dist/include/necko/nsIChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext) = 0; ># 223 "../../../dist/include/necko/nsIChannel.h" > enum { LOAD_DOCUMENT_URI = 65536U }; > > > > > > enum { LOAD_RETARGETED_DOCUMENT_URI = 131072U }; ># 248 "../../../dist/include/necko/nsIChannel.h" > enum { LOAD_REPLACE = 262144U }; > > > > > > enum { LOAD_INITIAL_DOCUMENT_URI = 524288U }; > > > > > > enum { LOAD_TARGETED = 1048576U }; ># 269 "../../../dist/include/necko/nsIChannel.h" > enum { LOAD_CALL_CONTENT_SNIFFERS = 2097152U }; > >}; > > template <class Dummy> const nsIID nsIChannel::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xc63a055a, 0xa676, 0x4e71, { 0xbf, 0x3c, 0x6c, 0xfa, 0x11, 0x08, 0x20, 0x18 }}; ># 64 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIInputStreamChannel.h" 1 ># 17 "../../../dist/include/necko/nsIInputStreamChannel.h" >class nsIInputStream; ># 33 "../../../dist/include/necko/nsIInputStreamChannel.h" >class nsIInputStreamChannel : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetURI(nsIURI *aURI) = 0; ># 60 "../../../dist/include/necko/nsIInputStreamChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetContentStream(nsIInputStream * *aContentStream) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetContentStream(nsIInputStream * aContentStream) = 0; > >}; > > template <class Dummy> const nsIID nsIInputStreamChannel::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x274c4d7a, 0x2447, 0x4ceb, { 0xa6, 0xde, 0x80, 0xdb, 0x1b, 0x83, 0xf5, 0xd2 }}; ># 65 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsITransport.h" 1 ># 17 "../../../dist/include/necko/nsITransport.h" >class nsIInputStream; > >class nsIOutputStream; > >class nsITransportEventSink; > >class nsIEventTarget; ># 48 "../../../dist/include/necko/nsITransport.h" >class nsITransport : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > enum { OPEN_BLOCKING = 1U }; > > enum { OPEN_UNBUFFERED = 2U }; ># 92 "../../../dist/include/necko/nsITransport.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OpenInputStream(PRUint32 aFlags, PRUint32 aSegmentSize, PRUint32 aSegmentCount, nsIInputStream **_retval) = 0; ># 126 "../../../dist/include/necko/nsITransport.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OpenOutputStream(PRUint32 aFlags, PRUint32 aSegmentSize, PRUint32 aSegmentCount, nsIOutputStream **_retval) = 0; ># 135 "../../../dist/include/necko/nsITransport.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Close(nsresult aReason) = 0; ># 148 "../../../dist/include/necko/nsITransport.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetEventSink(nsITransportEventSink *aSink, nsIEventTarget *aEventTarget) = 0; > > > > > > > enum { STATUS_READING = 2152398856U }; > > enum { STATUS_WRITING = 2152398857U }; > >}; > > template <class Dummy> const nsIID nsITransport::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xd8786c64, 0xeb49, 0x4a0b, { 0xb4, 0x2c, 0x09, 0x36, 0xa7, 0x45, 0xfb, 0xe8 }}; ># 251 "../../../dist/include/necko/nsITransport.h" >class nsITransportEventSink : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 273 "../../../dist/include/necko/nsITransport.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnTransportStatus(nsITransport *aTransport, nsresult aStatus, PRUint64 aProgress, PRUint64 aProgressMax) = 0; > >}; > > template <class Dummy> const nsIID nsITransportEventSink::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xeda4f520, 0x67f7, 0x484b, { 0xa6, 0x91, 0x8c, 0x32, 0x26, 0xa5, 0xb0, 0xa6 }}; ># 66 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIStreamTransportService.h" 1 ># 17 "../../../dist/include/necko/nsIStreamTransportService.h" >class nsITransport; > >class nsIInputStream; > >class nsIOutputStream; ># 38 "../../../dist/include/necko/nsIStreamTransportService.h" >class nsIStreamTransportService : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 63 "../../../dist/include/necko/nsIStreamTransportService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateInputTransport(nsIInputStream *aStream, PRInt64 aStartOffset, PRInt64 aReadLimit, PRBool aCloseWhenDone, nsITransport **_retval) = 0; ># 85 "../../../dist/include/necko/nsIStreamTransportService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateOutputTransport(nsIOutputStream *aStream, PRInt64 aStartOffset, PRInt64 aWriteLimit, PRBool aCloseWhenDone, nsITransport **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIStreamTransportService::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x8268d474, 0xefbf, 0x494f, { 0xa1, 0x52, 0xe8, 0xa8, 0x61, 0x6f, 0x4e, 0x52 }}; ># 67 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIHttpChannel.h" 1 ># 17 "../../../dist/include/necko/nsIHttpChannel.h" >class nsIHttpHeaderVisitor; ># 36 "../../../dist/include/necko/nsIHttpChannel.h" >class nsIHttpChannel : public nsIChannel { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 60 "../../../dist/include/necko/nsIHttpChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRequestMethod(nsACString_internal & aRequestMethod) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetRequestMethod(const nsACString_internal & aRequestMethod) = 0; ># 79 "../../../dist/include/necko/nsIHttpChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetReferrer(nsIURI * *aReferrer) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetReferrer(nsIURI * aReferrer) = 0; ># 93 "../../../dist/include/necko/nsIHttpChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRequestHeader(const nsACString_internal & aHeader, nsACString_internal & _retval) = 0; ># 123 "../../../dist/include/necko/nsIHttpChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetRequestHeader(const nsACString_internal & aHeader, const nsACString_internal & aValue, PRBool aMerge) = 0; ># 133 "../../../dist/include/necko/nsIHttpChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor) = 0; ># 150 "../../../dist/include/necko/nsIHttpChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAllowPipelining(PRBool *aAllowPipelining) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAllowPipelining(PRBool aAllowPipelining) = 0; ># 166 "../../../dist/include/necko/nsIHttpChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRedirectionLimit(PRUint32 *aRedirectionLimit) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetRedirectionLimit(PRUint32 aRedirectionLimit) = 0; ># 181 "../../../dist/include/necko/nsIHttpChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetResponseStatus(PRUint32 *aResponseStatus) = 0; ># 194 "../../../dist/include/necko/nsIHttpChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetResponseStatusText(nsACString_internal & aResponseStatusText) = 0; ># 210 "../../../dist/include/necko/nsIHttpChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRequestSucceeded(PRBool *aRequestSucceeded) = 0; ># 226 "../../../dist/include/necko/nsIHttpChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetResponseHeader(const nsACString_internal & header, nsACString_internal & _retval) = 0; ># 256 "../../../dist/include/necko/nsIHttpChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetResponseHeader(const nsACString_internal & header, const nsACString_internal & value, PRBool merge) = 0; ># 270 "../../../dist/include/necko/nsIHttpChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor) = 0; ># 280 "../../../dist/include/necko/nsIHttpChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsNoStoreResponse(PRBool *_retval) = 0; ># 292 "../../../dist/include/necko/nsIHttpChannel.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsNoCacheResponse(PRBool *_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIHttpChannel::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x9277fe09, 0xf0cc, 0x4cd9, { 0xbb, 0xce, 0x58, 0x1d, 0xd9, 0x4b, 0x02, 0x60 }}; ># 68 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIDownloader.h" 1 ># 17 "../../../dist/include/necko/nsIDownloader.h" >class nsIFile; > >class nsIDownloadObserver; ># 38 "../../../dist/include/necko/nsIDownloader.h" >class nsIDownloader : public nsIStreamListener { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 58 "../../../dist/include/necko/nsIDownloader.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsIDownloadObserver *observer, nsIFile *downloadLocation) = 0; > >}; > > template <class Dummy> const nsIID nsIDownloader::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xfafe41a9, 0xa531, 0x4d6d, { 0x89, 0xbc, 0x58, 0x8a, 0x65, 0x22, 0xfb, 0x4e }}; ># 125 "../../../dist/include/necko/nsIDownloader.h" >class nsIDownloadObserver : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnDownloadComplete(nsIDownloader *downloader, nsIRequest *request, nsISupports *ctxt, nsresult status, nsIFile *result) = 0; > >}; > > template <class Dummy> const nsIID nsIDownloadObserver::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x44b3153e, 0xa54e, 0x4077, { 0xa5, 0x27, 0xb0, 0x32, 0x5e, 0x40, 0x92, 0x4e }}; ># 69 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIStreamLoader.h" 1 ># 17 "../../../dist/include/necko/nsIStreamLoader.h" >class nsIRequest; > >class nsIStreamLoader; ># 29 "../../../dist/include/necko/nsIStreamLoader.h" >class nsIStreamLoaderObserver : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 48 "../../../dist/include/necko/nsIStreamLoader.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnStreamComplete(nsIStreamLoader *loader, nsISupports *ctxt, nsresult status, PRUint32 resultLength, const PRUint8 *result) = 0; > >}; > > template <class Dummy> const nsIID nsIStreamLoaderObserver::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x359f7990, 0xd4e9, 0x11d3, { 0xa1, 0xa5, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44 }}; ># 115 "../../../dist/include/necko/nsIStreamLoader.h" >class nsIStreamLoader : public nsIStreamListener { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 138 "../../../dist/include/necko/nsIStreamLoader.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsIStreamLoaderObserver *aObserver) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNumBytesRead(PRUint32 *aNumBytesRead) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRequest(nsIRequest * *aRequest) = 0; > >}; > > template <class Dummy> const nsIID nsIStreamLoader::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x8ea7e890, 0x8211, 0x11d9, { 0x8b, 0xde, 0xf6, 0x6b, 0xad, 0x1e, 0x3f, 0x3a }}; ># 70 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIUnicharStreamLoader.h" 1 ># 17 "../../../dist/include/necko/nsIUnicharStreamLoader.h" >class nsIUnicharInputStream; > >class nsIUnicharStreamLoader; > >class nsIChannel; ># 31 "../../../dist/include/necko/nsIUnicharStreamLoader.h" >class nsIUnicharStreamLoaderObserver : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 50 "../../../dist/include/necko/nsIUnicharStreamLoader.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnDetermineCharset(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, const char *aFirstSegment, PRUint32 aLength, nsACString_internal & _retval) = 0; ># 69 "../../../dist/include/necko/nsIUnicharStreamLoader.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnStreamComplete(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, nsresult aStatus, nsIUnicharInputStream *aUnicharData) = 0; > >}; > > template <class Dummy> const nsIID nsIUnicharStreamLoaderObserver::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x6bb3e55b, 0x69c0, 0x4fc9, { 0x87, 0xe5, 0xbe, 0xd7, 0x80, 0xd9, 0x97, 0xce }}; ># 145 "../../../dist/include/necko/nsIUnicharStreamLoader.h" >class nsIUnicharStreamLoader : public nsIStreamListener { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 159 "../../../dist/include/necko/nsIUnicharStreamLoader.h" > enum { DEFAULT_SEGMENT_SIZE = 4096U }; ># 169 "../../../dist/include/necko/nsIUnicharStreamLoader.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsIUnicharStreamLoaderObserver *aObserver, PRUint32 aSegmentSize) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetChannel(nsIChannel * *aChannel) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCharset(nsACString_internal & aCharset) = 0; > >}; > > template <class Dummy> const nsIID nsIUnicharStreamLoader::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x9037f476, 0x7c08, 0x4729, { 0xb6, 0x90, 0x3e, 0x42, 0x52, 0x69, 0x80, 0x2b }}; ># 71 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsIPipe.h" 1 ># 10 "../../../dist/include/xpcom/nsIPipe.h" ># 1 "../../../dist/include/xpcom/nsIAsyncInputStream.h" 1 ># 17 "../../../dist/include/xpcom/nsIAsyncInputStream.h" >class nsIInputStreamCallback; > >class nsIEventTarget; ># 41 "../../../dist/include/xpcom/nsIAsyncInputStream.h" >class nsIAsyncInputStream : public nsIInputStream { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 65 "../../../dist/include/xpcom/nsIAsyncInputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CloseWithStatus(nsresult aStatus) = 0; ># 99 "../../../dist/include/xpcom/nsIAsyncInputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AsyncWait(nsIInputStreamCallback *aCallback, PRUint32 aFlags, PRUint32 aRequestedCount, nsIEventTarget *aEventTarget) = 0; ># 108 "../../../dist/include/xpcom/nsIAsyncInputStream.h" > enum { WAIT_CLOSURE_ONLY = 1U }; > >}; > > template <class Dummy> const nsIID nsIAsyncInputStream::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa5f255ab, 0x4801, 0x4161, { 0x88, 0x16, 0x27, 0x7a, 0xc9, 0x2f, 0x6a, 0xd1 }}; ># 184 "../../../dist/include/xpcom/nsIAsyncInputStream.h" >class nsIInputStreamCallback : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 199 "../../../dist/include/xpcom/nsIAsyncInputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnInputStreamReady(nsIAsyncInputStream *aStream) = 0; > >}; > > template <class Dummy> const nsIID nsIInputStreamCallback::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xd1f28e94, 0x3a6e, 0x4050, { 0xa5, 0xf5, 0x2e, 0x81, 0xb1, 0xfc, 0x2a, 0x43 }}; ># 11 "../../../dist/include/xpcom/nsIPipe.h" 2 > > > ># 1 "../../../dist/include/xpcom/nsIAsyncOutputStream.h" 1 ># 17 "../../../dist/include/xpcom/nsIAsyncOutputStream.h" >class nsIOutputStreamCallback; > >class nsIEventTarget; ># 41 "../../../dist/include/xpcom/nsIAsyncOutputStream.h" >class nsIAsyncOutputStream : public nsIOutputStream { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 65 "../../../dist/include/xpcom/nsIAsyncOutputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CloseWithStatus(nsresult reason) = 0; ># 99 "../../../dist/include/xpcom/nsIAsyncOutputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AsyncWait(nsIOutputStreamCallback *aCallback, PRUint32 aFlags, PRUint32 aRequestedCount, nsIEventTarget *aEventTarget) = 0; ># 108 "../../../dist/include/xpcom/nsIAsyncOutputStream.h" > enum { WAIT_CLOSURE_ONLY = 1U }; > >}; > > template <class Dummy> const nsIID nsIAsyncOutputStream::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xbeb632d3, 0xd77a, 0x4e90, { 0x91, 0x34, 0xf9, 0xec, 0xe6, 0x9e, 0x82, 0x00 }}; ># 184 "../../../dist/include/xpcom/nsIAsyncOutputStream.h" >class nsIOutputStreamCallback : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 199 "../../../dist/include/xpcom/nsIAsyncOutputStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnOutputStreamReady(nsIAsyncOutputStream *aStream) = 0; > >}; > > template <class Dummy> const nsIID nsIOutputStreamCallback::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x40dbcdff, 0x9053, 0x42c5, { 0xa5, 0x7c, 0x3e, 0xc9, 0x10, 0xd0, 0xf1, 0x48 }}; ># 15 "../../../dist/include/xpcom/nsIPipe.h" 2 > > > > > > >class nsIMemory; ># 59 "../../../dist/include/xpcom/nsIPipe.h" >class nsIPipe : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 84 "../../../dist/include/xpcom/nsIPipe.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(PRBool nonBlockingInput, PRBool nonBlockingOutput, PRUint32 segmentSize, PRUint32 segmentCount, nsIMemory *segmentAllocator) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInputStream(nsIAsyncInputStream * *aInputStream) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetOutputStream(nsIAsyncOutputStream * *aOutputStream) = 0; > >}; > > template <class Dummy> const nsIID nsIPipe::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xf4211abc, 0x61b3, 0x11d4, { 0x98, 0x77, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a }}; ># 185 "../../../dist/include/xpcom/nsIPipe.h" >class nsISearchableInputStream : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 201 "../../../dist/include/xpcom/nsIPipe.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Search(const char *forString, PRBool ignoreCase, PRBool *found, PRUint32 *offsetSearchedTo) = 0; > >}; > > template <class Dummy> const nsIID nsISearchableInputStream::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x8c39ef62, 0xf7c9, 0x11d4, { 0x98, 0xf5, 0x00, 0x10, 0x83, 0x01, 0x0e, 0x9b }}; ># 289 "../../../dist/include/xpcom/nsIPipe.h" >extern nsresult >NS_NewPipe2(nsIAsyncInputStream **pipeIn, > nsIAsyncOutputStream **pipeOut, > PRBool nonBlockingInput = 0, > PRBool nonBlockingOutput = 0, > PRUint32 segmentSize = 0, > PRUint32 segmentCount = 0, > nsIMemory *segmentAlloc = 0); ># 325 "../../../dist/include/xpcom/nsIPipe.h" >extern nsresult >NS_NewPipe(nsIInputStream **pipeIn, > nsIOutputStream **pipeOut, > PRUint32 segmentSize = 0, > PRUint32 maxSize = 0, > PRBool nonBlockingInput = 0, > PRBool nonBlockingOutput = 0, > nsIMemory *segmentAlloc = 0); ># 72 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIProtocolHandler.h" 1 ># 17 "../../../dist/include/necko/nsIProtocolHandler.h" >class nsIURI; > >class nsIChannel; ># 34 "../../../dist/include/necko/nsIProtocolHandler.h" >class nsIProtocolHandler : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetScheme(nsACString_internal & aScheme) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDefaultPort(PRInt32 *aDefaultPort) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetProtocolFlags(PRUint32 *aProtocolFlags) = 0; ># 85 "../../../dist/include/necko/nsIProtocolHandler.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NewURI(const nsACString_internal & aSpec, const char *aOriginCharset, nsIURI *aBaseURI, nsIURI **_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NewChannel(nsIURI *aURI, nsIChannel **_retval) = 0; ># 103 "../../../dist/include/necko/nsIProtocolHandler.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AllowPort(PRInt32 port, const char *scheme, PRBool *_retval) = 0; ># 115 "../../../dist/include/necko/nsIProtocolHandler.h" > enum { URI_STD = 0U }; > > > > > enum { URI_NORELATIVE = 1U }; > > > > > enum { URI_NOAUTH = 2U }; > > > > > > > enum { URI_INHERITS_SECURITY_CONTEXT = 16U }; ># 147 "../../../dist/include/necko/nsIProtocolHandler.h" > enum { URI_FORBIDS_AUTOMATIC_DOCUMENT_REPLACEMENT = 32U }; ># 172 "../../../dist/include/necko/nsIProtocolHandler.h" > enum { URI_LOADABLE_BY_ANYONE = 64U }; > > > > > > > > enum { URI_DANGEROUS_TO_LOAD = 128U }; ># 190 "../../../dist/include/necko/nsIProtocolHandler.h" > enum { URI_IS_UI_RESOURCE = 256U }; ># 199 "../../../dist/include/necko/nsIProtocolHandler.h" > enum { URI_IS_LOCAL_FILE = 512U }; > > > > > > enum { URI_NON_PERSISTABLE = 1024U }; > > > > > > > enum { URI_DOES_NOT_RETURN_DATA = 2048U }; ># 225 "../../../dist/include/necko/nsIProtocolHandler.h" > enum { ALLOWS_PROXY = 4U }; > > > > > > > > enum { ALLOWS_PROXY_HTTP = 8U }; > >}; > > template <class Dummy> const nsIID nsIProtocolHandler::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x15fd6940, 0x8ea7, 0x11d3, { 0x93, 0xad, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40 }}; ># 73 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIFileProtocolHandler.h" 1 ># 17 "../../../dist/include/necko/nsIFileProtocolHandler.h" >class nsIFile; ># 27 "../../../dist/include/necko/nsIFileProtocolHandler.h" >class nsIFileProtocolHandler : public nsIProtocolHandler { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 39 "../../../dist/include/necko/nsIFileProtocolHandler.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NewFileURI(nsIFile *aFile, nsIURI **_retval) = 0; ># 50 "../../../dist/include/necko/nsIFileProtocolHandler.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetURLSpecFromFile(nsIFile *file, nsACString_internal & _retval) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFileFromURLSpec(const nsACString_internal & url, nsIFile **_retval) = 0; ># 69 "../../../dist/include/necko/nsIFileProtocolHandler.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ReadURLFile(nsIFile *file, nsIURI **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIFileProtocolHandler::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x255602ea, 0xc31f, 0x4d29, { 0x8f, 0x35, 0x90, 0x5e, 0xad, 0x3f, 0x76, 0xf4 }}; ># 74 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsIStringStream.h" 1 ># 33 "../../../dist/include/xpcom/nsIStringStream.h" >class nsIStringInputStream : public nsIInputStream { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 53 "../../../dist/include/xpcom/nsIStringStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(const char *data, PRInt32 dataLen) = 0; ># 68 "../../../dist/include/xpcom/nsIStringStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AdoptData(char * data, PRInt32 dataLen) = 0; ># 79 "../../../dist/include/xpcom/nsIStringStream.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ShareData(const char *data, PRInt32 dataLen) = 0; > >}; > > template <class Dummy> const nsIID nsIStringInputStream::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x450cd2d4, 0xf0fd, 0x424d, { 0xb3, 0x65, 0xb1, 0x25, 0x1f, 0x80, 0xfd, 0x53 }}; ># 75 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsILocalFile.h" 1 ># 10 "../../../dist/include/xpcom/nsILocalFile.h" ># 1 "../../../dist/include/xpcom/nsIFile.h" 1 ># 17 "../../../dist/include/xpcom/nsIFile.h" >class nsISimpleEnumerator; ># 42 "../../../dist/include/xpcom/nsIFile.h" >class nsIFile : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > > enum { NORMAL_FILE_TYPE = 0U }; > > enum { DIRECTORY_TYPE = 1U }; ># 69 "../../../dist/include/xpcom/nsIFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Append(const nsAString_internal & node) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AppendNative(const nsACString_internal & node) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Normalize(void) = 0; ># 101 "../../../dist/include/xpcom/nsIFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Create(PRUint32 type, PRUint32 permissions) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLeafName(nsAString_internal & aLeafName) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetLeafName(const nsAString_internal & aLeafName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNativeLeafName(nsACString_internal & aNativeLeafName) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetNativeLeafName(const nsACString_internal & aNativeLeafName) = 0; ># 144 "../../../dist/include/xpcom/nsIFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CopyTo(nsIFile *newParentDir, const nsAString_internal & newName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CopyToNative(nsIFile *newParentDir, const nsACString_internal & newName) = 0; ># 159 "../../../dist/include/xpcom/nsIFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CopyToFollowingLinks(nsIFile *newParentDir, const nsAString_internal & newName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CopyToFollowingLinksNative(nsIFile *newParentDir, const nsACString_internal & newName) = 0; ># 196 "../../../dist/include/xpcom/nsIFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) MoveTo(nsIFile *newParentDir, const nsAString_internal & newName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) MoveToNative(nsIFile *newParentDir, const nsACString_internal & newName) = 0; ># 208 "../../../dist/include/xpcom/nsIFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Remove(PRBool recursive) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPermissions(PRUint32 *aPermissions) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPermissions(PRUint32 aPermissions) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPermissionsOfLink(PRUint32 *aPermissionsOfLink) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPermissionsOfLink(PRUint32 aPermissionsOfLink) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLastModifiedTime(PRInt64 *aLastModifiedTime) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetLastModifiedTime(PRInt64 aLastModifiedTime) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLastModifiedTimeOfLink(PRInt64 *aLastModifiedTimeOfLink) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetLastModifiedTimeOfLink(PRInt64 aLastModifiedTimeOfLink) = 0; ># 241 "../../../dist/include/xpcom/nsIFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFileSize(PRInt64 *aFileSize) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFileSize(PRInt64 aFileSize) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFileSizeOfLink(PRInt64 *aFileSizeOfLink) = 0; ># 273 "../../../dist/include/xpcom/nsIFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTarget(nsAString_internal & aTarget) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNativeTarget(nsACString_internal & aNativeTarget) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPath(nsAString_internal & aPath) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNativePath(nsACString_internal & aNativePath) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Exists(PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsWritable(PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsReadable(PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsExecutable(PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsHidden(PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsDirectory(PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsFile(PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsSymlink(PRBool *_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsSpecial(PRBool *_retval) = 0; ># 340 "../../../dist/include/xpcom/nsIFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateUnique(PRUint32 type, PRUint32 permissions) = 0; ># 354 "../../../dist/include/xpcom/nsIFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Clone(nsIFile **_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Equals(nsIFile *inFile, PRBool *_retval) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Contains(nsIFile *inFile, PRBool recur, PRBool *_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetParent(nsIFile * *aParent) = 0; ># 383 "../../../dist/include/xpcom/nsIFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDirectoryEntries(nsISimpleEnumerator * *aDirectoryEntries) = 0; > >}; > > template <class Dummy> const nsIID nsIFile::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xc8c0a080, 0x0868, 0x11d3, { 0x91, 0x5f, 0xd9, 0xd8, 0x89, 0xd4, 0x8e, 0x3c }}; ># 825 "../../../dist/include/xpcom/nsIFile.h" ># 1 "../../../dist/include/xpcom/nsDirectoryServiceUtils.h" 1 ># 43 "../../../dist/include/xpcom/nsDirectoryServiceUtils.h" ># 1 "../../../dist/include/xpcom/nsIProperties.h" 1 ># 25 "../../../dist/include/xpcom/nsIProperties.h" >class nsIProperties : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 38 "../../../dist/include/xpcom/nsIProperties.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Get(const char *prop, const nsIID & iid, void * *result) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Set(const char *prop, nsISupports *value) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Has(const char *prop, PRBool *_retval) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Undefine(const char *prop) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetKeys(PRUint32 *count, char ***keys) = 0; > >}; > > template <class Dummy> const nsIID nsIProperties::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x78650582, 0x4e93, 0x4b60, { 0x8e, 0x85, 0x26, 0xeb, 0xd3, 0xeb, 0x14, 0xca }}; ># 44 "../../../dist/include/xpcom/nsDirectoryServiceUtils.h" 2 > > > ># 1 "../../../dist/include/xpcom/nsIFile.h" 1 ># 48 "../../../dist/include/xpcom/nsDirectoryServiceUtils.h" 2 > >inline nsresult >NS_GetSpecialDirectory(const char* specialDirName, nsIFile* *result) >{ > nsresult rv; > nsCOMPtr<nsIProperties> serv(do_GetService("@mozilla.org/file/directory_service;1", &rv)); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > return rv; > > return serv->Get(specialDirName, (::nsIFile::COMTypeInfo<int>::kIID), > reinterpret_cast<void**>(result)); >} ># 826 "../../../dist/include/xpcom/nsIFile.h" 2 ># 11 "../../../dist/include/xpcom/nsILocalFile.h" 2 > > > > > > ># 1 "../../../dist/include/nspr/prio.h" 1 ># 18 "../../../dist/include/xpcom/nsILocalFile.h" 2 ># 1 "../../../dist/include/nspr/prlink.h" 1 ># 46 "../../../dist/include/nspr/prlink.h" >extern "C" { > >typedef struct PRLibrary PRLibrary; > >typedef struct PRStaticLinkTable { > const char *name; > void (*fp)(); >} PRStaticLinkTable; ># 62 "../../../dist/include/nspr/prlink.h" >extern __attribute__((visibility("default"))) PRStatus PR_SetLibraryPath(const char *path); ># 72 "../../../dist/include/nspr/prlink.h" >extern __attribute__((visibility("default"))) char* PR_GetLibraryPath(void); ># 85 "../../../dist/include/nspr/prlink.h" >extern __attribute__((visibility("default"))) char* PR_GetLibraryName(const char *dir, const char *lib); > > > > > >extern __attribute__((visibility("default"))) void PR_FreeLibraryName(char *mem); ># 105 "../../../dist/include/nspr/prlink.h" >extern __attribute__((visibility("default"))) PRLibrary* PR_LoadLibrary(const char *name); ># 126 "../../../dist/include/nspr/prlink.h" >typedef enum PRLibSpecType { > PR_LibSpec_Pathname, > PR_LibSpec_MacNamedFragment, > PR_LibSpec_MacIndexedFragment, > PR_LibSpec_PathnameU >} PRLibSpecType; > >struct FSSpec; > >typedef struct PRLibSpec { > PRLibSpecType type; > union { > > const char *pathname; > > > struct { > const struct FSSpec *fsspec; > const char *name; > } mac_named_fragment; > > > struct { > const struct FSSpec *fsspec; > PRUint32 index; > } mac_indexed_fragment; > > > const PRUnichar *pathname_u; > } value; >} PRLibSpec; ># 174 "../../../dist/include/nspr/prlink.h" >extern __attribute__((visibility("default"))) PRLibrary * >PR_LoadLibraryWithFlags( > PRLibSpec libSpec, > PRIntn flags >); ># 189 "../../../dist/include/nspr/prlink.h" >extern __attribute__((visibility("default"))) PRStatus PR_UnloadLibrary(PRLibrary *lib); ># 199 "../../../dist/include/nspr/prlink.h" >extern __attribute__((visibility("default"))) void* PR_FindSymbol(PRLibrary *lib, const char *name); ># 209 "../../../dist/include/nspr/prlink.h" >typedef void (*PRFuncPtr)(); >extern __attribute__((visibility("default"))) PRFuncPtr PR_FindFunctionSymbol(PRLibrary *lib, const char *name); ># 222 "../../../dist/include/nspr/prlink.h" >extern __attribute__((visibility("default"))) void* PR_FindSymbolAndLibrary(const char *name, > PRLibrary* *lib); ># 233 "../../../dist/include/nspr/prlink.h" >extern __attribute__((visibility("default"))) PRFuncPtr PR_FindFunctionSymbolAndLibrary(const char *name, > PRLibrary* *lib); ># 247 "../../../dist/include/nspr/prlink.h" >extern __attribute__((visibility("default"))) PRLibrary* PR_LoadStaticLibrary( > const char *name, const PRStaticLinkTable *table); > > > > > > > >extern __attribute__((visibility("default"))) char * PR_GetLibraryFilePathname(const char *name, PRFuncPtr addr); > >} ># 19 "../../../dist/include/xpcom/nsILocalFile.h" 2 ># 36 "../../../dist/include/xpcom/nsILocalFile.h" >class nsILocalFile : public nsIFile { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 59 "../../../dist/include/xpcom/nsILocalFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InitWithPath(const nsAString_internal & filePath) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InitWithNativePath(const nsACString_internal & filePath) = 0; ># 73 "../../../dist/include/xpcom/nsILocalFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InitWithFile(nsILocalFile *aFile) = 0; ># 84 "../../../dist/include/xpcom/nsILocalFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFollowLinks(PRBool *aFollowLinks) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFollowLinks(PRBool aFollowLinks) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OpenNSPRFileDesc(PRInt32 flags, PRInt32 mode, PRFileDesc * *_retval) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OpenANSIFileDesc(const char *mode, FILE * *_retval) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Load(PRLibrary * *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDiskSpaceAvailable(PRInt64 *aDiskSpaceAvailable) = 0; ># 123 "../../../dist/include/xpcom/nsILocalFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AppendRelativePath(const nsAString_internal & relativeFilePath) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AppendRelativeNativePath(const nsACString_internal & relativeFilePath) = 0; ># 136 "../../../dist/include/xpcom/nsILocalFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPersistentDescriptor(nsACString_internal & aPersistentDescriptor) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPersistentDescriptor(const nsACString_internal & aPersistentDescriptor) = 0; ># 147 "../../../dist/include/xpcom/nsILocalFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Reveal(void) = 0; ># 157 "../../../dist/include/xpcom/nsILocalFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Launch(void) = 0; ># 173 "../../../dist/include/xpcom/nsILocalFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRelativeDescriptor(nsILocalFile *fromFile, nsACString_internal & _retval) = 0; ># 187 "../../../dist/include/xpcom/nsILocalFile.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetRelativeDescriptor(nsILocalFile *fromFile, const nsACString_internal & relativeDesc) = 0; > >}; > > template <class Dummy> const nsIID nsILocalFile::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xaa610f20, 0xa889, 0x11d3, { 0x8c, 0x81, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}; ># 76 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIFileStreams.h" 1 ># 21 "../../../dist/include/necko/nsIFileStreams.h" >class nsIFile; ># 34 "../../../dist/include/necko/nsIFileStreams.h" >class nsIFileInputStream : public nsIInputStream { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 50 "../../../dist/include/necko/nsIFileStreams.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsIFile *file, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags) = 0; ># 60 "../../../dist/include/necko/nsIFileStreams.h" > enum { DELETE_ON_CLOSE = 2 }; > > > > > > enum { CLOSE_ON_EOF = 4 }; > > > > > > > enum { REOPEN_ON_REWIND = 8 }; > >}; > > template <class Dummy> const nsIID nsIFileInputStream::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xe3d56a20, 0xc7ec, 0x11d3, { 0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }}; ># 143 "../../../dist/include/necko/nsIFileStreams.h" >class nsIFileOutputStream : public nsIOutputStream { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 160 "../../../dist/include/necko/nsIFileStreams.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsIFile *file, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags) = 0; > >}; > > template <class Dummy> const nsIID nsIFileOutputStream::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xe6f68040, 0xc7ec, 0x11d3, { 0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }}; ># 77 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIProtocolProxyService.h" 1 ># 17 "../../../dist/include/necko/nsIProtocolProxyService.h" >class nsICancelable; > >class nsIProtocolProxyCallback; > >class nsIProtocolProxyFilter; > >class nsIProxyInfo; > >class nsIChannel; > >class nsIURI; ># 43 "../../../dist/include/necko/nsIProtocolProxyService.h" >class nsIProtocolProxyService : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 62 "../../../dist/include/necko/nsIProtocolProxyService.h" > enum { RESOLVE_NON_BLOCKING = 1U }; ># 97 "../../../dist/include/necko/nsIProtocolProxyService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Resolve(nsIURI *aURI, PRUint32 aFlags, nsIProxyInfo **_retval) = 0; ># 119 "../../../dist/include/necko/nsIProtocolProxyService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AsyncResolve(nsIURI *aURI, PRUint32 aFlags, nsIProtocolProxyCallback *aCallback, nsICancelable **_retval) = 0; ># 154 "../../../dist/include/necko/nsIProtocolProxyService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NewProxyInfo(const nsACString_internal & aType, const nsACString_internal & aHost, PRInt32 aPort, PRUint32 aFlags, PRUint32 aFailoverTimeout, nsIProxyInfo *aFailoverProxy, nsIProxyInfo **_retval) = 0; ># 173 "../../../dist/include/necko/nsIProtocolProxyService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFailoverForProxy(nsIProxyInfo *aProxyInfo, nsIURI *aURI, nsresult aReason, nsIProxyInfo **_retval) = 0; ># 209 "../../../dist/include/necko/nsIProtocolProxyService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RegisterFilter(nsIProtocolProxyFilter *aFilter, PRUint32 aPosition) = 0; ># 219 "../../../dist/include/necko/nsIProtocolProxyService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) UnregisterFilter(nsIProtocolProxyFilter *aFilter) = 0; > >}; > > template <class Dummy> const nsIID nsIProtocolProxyService::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xe38ab577, 0x786e, 0x4a7f, { 0x93, 0x6b, 0x7a, 0xe4, 0xc7, 0xd8, 0x77, 0xb2 }}; ># 78 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIProxyInfo.h" 1 ># 30 "../../../dist/include/necko/nsIProxyInfo.h" >class nsIProxyInfo : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHost(nsACString_internal & aHost) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPort(PRInt32 *aPort) = 0; ># 61 "../../../dist/include/necko/nsIProxyInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetType(nsACString_internal & aType) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFlags(PRUint32 *aFlags) = 0; ># 78 "../../../dist/include/necko/nsIProxyInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFailoverTimeout(PRUint32 *aFailoverTimeout) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFailoverProxy(nsIProxyInfo * *aFailoverProxy) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFailoverProxy(nsIProxyInfo * aFailoverProxy) = 0; ># 97 "../../../dist/include/necko/nsIProxyInfo.h" > enum { TRANSPARENT_PROXY_RESOLVES_HOST = 1U }; > >}; > > template <class Dummy> const nsIID nsIProxyInfo::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x3fe9308b, 0x1608, 0x4fa0, { 0x93, 0x3c, 0xc5, 0xec, 0x2c, 0x61, 0x75, 0xfd }}; ># 79 "../../../dist/include/necko/nsNetUtil.h" 2 > ># 1 "../../../dist/include/necko/nsIBufferedStreams.h" 1 ># 33 "../../../dist/include/necko/nsIBufferedStreams.h" >class nsIBufferedInputStream : public nsIInputStream { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsIInputStream *fillFromStream, PRUint32 bufferSize) = 0; > >}; > > template <class Dummy> const nsIID nsIBufferedInputStream::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x616f5b48, 0xda09, 0x11d3, { 0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }}; ># 115 "../../../dist/include/necko/nsIBufferedStreams.h" >class nsIBufferedOutputStream : public nsIOutputStream { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsIOutputStream *sinkToStream, PRUint32 bufferSize) = 0; > >}; > > template <class Dummy> const nsIID nsIBufferedOutputStream::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x6476378a, 0xda09, 0x11d3, { 0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }}; ># 81 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIInputStreamPump.h" 1 ># 17 "../../../dist/include/necko/nsIInputStreamPump.h" >class nsIInputStream; > >class nsIStreamListener; ># 43 "../../../dist/include/necko/nsIInputStreamPump.h" >class nsIInputStreamPump : public nsIRequest { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 76 "../../../dist/include/necko/nsIInputStreamPump.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsIInputStream *aStream, PRInt64 aStreamPos, PRInt64 aStreamLen, PRUint32 aSegmentSize, PRUint32 aSegmentCount, PRBool aCloseWhenDone) = 0; ># 88 "../../../dist/include/necko/nsIInputStreamPump.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AsyncRead(nsIStreamListener *aListener, nsISupports *aListenerContext) = 0; > >}; > > template <class Dummy> const nsIID nsIInputStreamPump::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x400f5468, 0x97e7, 0x4d2b, { 0x9c, 0x65, 0xa8, 0x2a, 0xec, 0xc7, 0xae, 0x82 }}; ># 82 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIAsyncStreamCopier.h" 1 ># 17 "../../../dist/include/necko/nsIAsyncStreamCopier.h" >class nsIInputStream; > >class nsIOutputStream; > >class nsIRequestObserver; > >class nsIEventTarget; ># 33 "../../../dist/include/necko/nsIAsyncStreamCopier.h" >class nsIAsyncStreamCopier : public nsIRequest { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 61 "../../../dist/include/necko/nsIAsyncStreamCopier.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsIInputStream *aSource, nsIOutputStream *aSink, nsIEventTarget *aTarget, PRBool aSourceBuffered, PRBool aSinkBuffered, PRUint32 aChunkSize) = 0; ># 73 "../../../dist/include/necko/nsIAsyncStreamCopier.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AsyncCopy(nsIRequestObserver *aObserver, nsISupports *aObserverContext) = 0; > >}; > > template <class Dummy> const nsIID nsIAsyncStreamCopier::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x72e515de, 0xa91e, 0x4154, { 0xbb, 0x78, 0xe5, 0x24, 0x4c, 0xba, 0xae, 0x74 }}; ># 83 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsIPersistentProperties2.h" 1 ># 25 "../../../dist/include/xpcom/nsIPersistentProperties2.h" >class nsIInputStream; > >class nsIOutputStream; ># 37 "../../../dist/include/xpcom/nsIPersistentProperties2.h" >class nsIPropertyElement : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetKey(nsACString_internal & aKey) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetKey(const nsACString_internal & aKey) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetValue(nsAString_internal & aValue) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetValue(const nsAString_internal & aValue) = 0; > >}; > > template <class Dummy> const nsIID nsIPropertyElement::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x283ee646, 0x1aef, 0x11d4, { 0x98, 0xb3, 0x00, 0xc0, 0x4f, 0xa0, 0xce, 0x9a }}; ># 138 "../../../dist/include/xpcom/nsIPersistentProperties2.h" >class nsIPersistentProperties : public nsIProperties { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Load(nsIInputStream *input) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Save(nsIOutputStream *output, const nsACString_internal & header) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Subclass(nsIPersistentProperties *superclass) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Enumerate(nsISimpleEnumerator **_retval) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetStringProperty(const nsACString_internal & key, nsAString_internal & _retval) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetStringProperty(const nsACString_internal & key, const nsAString_internal & value, nsAString_internal & _retval) = 0; > >}; > > template <class Dummy> const nsIID nsIPersistentProperties::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x1a180f60, 0x93b2, 0x11d2, { 0x9b, 0x8b, 0x00, 0x80, 0x5f, 0x8a, 0x16, 0xd9 }}; ># 84 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsISyncStreamListener.h" 1 ># 25 "../../../dist/include/necko/nsISyncStreamListener.h" >class nsISyncStreamListener : public nsIStreamListener { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 39 "../../../dist/include/necko/nsISyncStreamListener.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInputStream(nsIInputStream * *aInputStream) = 0; > >}; > > template <class Dummy> const nsIID nsISyncStreamListener::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x7e1aa658, 0x6e3f, 0x4521, { 0x99, 0x46, 0x96, 0x85, 0xa1, 0x69, 0xf7, 0x64 }}; ># 85 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsInterfaceRequestorAgg.h" 1 ># 40 "../../../dist/include/xpcom/nsInterfaceRequestorAgg.h" ># 1 "../../../dist/include/xpcom/nsIInterfaceRequestor.h" 1 ># 41 "../../../dist/include/xpcom/nsInterfaceRequestorAgg.h" 2 ># 49 "../../../dist/include/xpcom/nsInterfaceRequestorAgg.h" >extern nsresult >NS_NewInterfaceRequestorAggregation(nsIInterfaceRequestor *aFirst, > nsIInterfaceRequestor *aSecond, > nsIInterfaceRequestor **aResult); ># 86 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsInt64.h" 1 ># 41 "../../../dist/include/xpcom/nsInt64.h" ># 1 "../../../dist/include/nspr/prlong.h" 1 ># 42 "../../../dist/include/xpcom/nsInt64.h" 2 ># 53 "../../../dist/include/xpcom/nsInt64.h" >template<class T> >class nsTInt64 >{ >public: > T mValue; > >public: > > > > nsTInt64(void) : mValue(0LL) { > } > > > > > nsTInt64(const PRInt32 aInt32) { > ((mValue) = (PRInt64)(aInt32)); > } > > > > > nsTInt64(const PRUint32 aUint32) { > ((mValue) = (PRInt64)(aUint32)); > } > > > > > nsTInt64(const PRFloat64 aFloat64) { > ((mValue) = (PRInt64)(aFloat64)); > } > > > > > nsTInt64(const T aInt64) : mValue(aInt64) { > } > > > > > nsTInt64(const nsTInt64& aObject) : mValue(aObject.mValue) { > } > > > > > > > const nsTInt64& operator =(const nsTInt64& aObject) { > mValue = aObject.mValue; > return *this; > } > > > > > operator PRInt32(void) const { > PRInt32 result; > ((result) = (PRInt32)(mValue)); > return result; > } > > > > > operator PRUint32(void) const { > PRUint32 result; > ((result) = (PRUint32)(mValue)); > return result; > } > > > > > operator PRFloat64(void) const { > PRFloat64 result; > ((result) = (PRFloat64)(mValue)); > return result; > } > > > > > operator T() const { > return mValue; > } > > > > > const nsTInt64 operator -(void) { > nsTInt64 result; > ((result.mValue) = -(mValue)); > return result; > } > > > > > > > nsTInt64& operator +=(const nsTInt64& aObject) { > ((mValue) = (mValue) + (aObject.mValue)); > return *this; > } > > > > > nsTInt64& operator -=(const nsTInt64& aObject) { > ((mValue) = (mValue) - (aObject.mValue)); > return *this; > } > > > > > nsTInt64& operator *=(const nsTInt64& aObject) { > ((mValue) = (mValue) * (aObject.mValue)); > return *this; > } > > > > > nsTInt64& operator /=(const nsTInt64& aObject) { > ((mValue) = (mValue) / (aObject.mValue)); > return *this; > } > > > > > nsTInt64& operator %=(const nsTInt64& aObject) { > ((mValue) = (mValue) % (aObject.mValue)); > return *this; > } > > > > > nsTInt64& operator <<=(int aCount) { > ((mValue) = (PRInt64)(mValue) << (aCount)); > return *this; > } > > > > > nsTInt64& operator >>=(int aCount) { > ((mValue) = (PRInt64)(mValue) >> (aCount)); > return *this; > } > > > > > > inline const nsTInt64 > operator +(const nsTInt64& aObject2) const { > return nsTInt64(*this) += aObject2; > } > > > > > inline const nsTInt64 > operator -(const nsTInt64& aObject2) const { > return nsTInt64(*this) -= aObject2; > } > > > > > inline const nsTInt64 > operator *(const nsTInt64& aObject2) const { > return nsTInt64(*this) *= aObject2; > } > > > > > inline const nsTInt64 > operator /(const nsTInt64& aObject2) const { > return nsTInt64(*this) /= aObject2; > } > > > > > inline const nsTInt64 > operator %(const nsTInt64& aObject2) const { > return nsTInt64(*this) %= aObject2; > } > > > > > inline const nsTInt64 > operator <<(int aCount) const { > return nsTInt64(*this) <<= aCount; > } > > > > > inline const nsTInt64 > operator >>(int aCount) const { > return nsTInt64(*this) >>= aCount; > } > > > > > inline PRBool > operator ==(const nsTInt64& aObject2) const { > return ((mValue) == (aObject2.mValue)); > } > > inline PRBool > operator ==(T aValue) const { > return ((mValue) == (aValue)); > } > > > > > inline PRBool > operator !=(const nsTInt64& aObject2) const { > return ((mValue) != (aObject2.mValue)); > } > > inline PRBool > operator !=(T aValue) const { > return ((mValue) != (aValue)); > } > > > > > inline const nsTInt64 > operator &(const nsTInt64& aObject2) const { > return nsTInt64(*this) &= aObject2; > } > > > > > inline const nsTInt64 > operator |(const nsTInt64& aObject2) const { > return nsTInt64(*this) |= aObject2; > } > > > > > inline const nsTInt64 > operator ^(const nsTInt64& aObject2) const { > return nsTInt64(*this) ^= aObject2; > } > > > > > > > const nsTInt64 operator ~(void) const { > nsTInt64 result; > ((result.mValue) = ~(mValue)); > return result; > } > > > > > nsTInt64& operator &=(const nsTInt64& aObject) { > ((mValue) = (mValue) & (aObject.mValue)); > return *this; > } > > > > > nsTInt64& operator |=(const nsTInt64& aObject) { > ((mValue) = (mValue) | (aObject.mValue)); > return *this; > } > > > > > nsTInt64& operator ^=(const nsTInt64& aObject) { > ((mValue) = (mValue) ^ (aObject.mValue)); > return *this; > } > > > > > > PRBool operator!() const { > return ((mValue) == 0); > } > >}; > >typedef nsTInt64<PRInt64> nsInt64; >typedef nsTInt64<PRUint64> nsUint64; > > > > >inline PRBool >operator >(const nsInt64& aObject1, const nsInt64& aObject2) { > return ((PRInt64)(aObject1.mValue) > (PRInt64)(aObject2.mValue)); >} > >inline PRBool >operator >(const nsUint64& aObject1, const nsUint64& aObject2) { > return ((PRUint64)(aObject1.mValue) > (PRUint64)(aObject2.mValue)); >} > > > > >inline PRBool >operator >=(const nsInt64& aObject1, const nsInt64& aObject2) { > return ! ((PRInt64)(aObject1.mValue) < (PRInt64)(aObject2.mValue)); >} > >inline PRBool >operator >=(const nsUint64& aObject1, const nsUint64& aObject2) { > return ! ((PRUint64)(aObject1.mValue) < (PRUint64)(aObject2.mValue)); >} > > > > >inline PRBool >operator <(const nsInt64& aObject1, const nsInt64& aObject2) { > return ((PRInt64)(aObject1.mValue) < (PRInt64)(aObject2.mValue)); >} > >inline PRBool >operator <(const nsUint64& aObject1, const nsUint64& aObject2) { > return ((PRUint64)(aObject1.mValue) < (PRUint64)(aObject2.mValue)); >} > > > > >inline PRBool >operator <=(const nsInt64& aObject1, const nsInt64& aObject2) { > return ! ((PRInt64)(aObject1.mValue) > (PRInt64)(aObject2.mValue)); >} > >inline PRBool >operator <=(const nsUint64& aObject1, const nsUint64& aObject2) { > return ! ((PRUint64)(aObject1.mValue) > (PRUint64)(aObject2.mValue)); >} ># 87 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsINetUtil.h" 1 ># 17 "../../../dist/include/necko/nsINetUtil.h" >class nsIURI; ># 30 "../../../dist/include/necko/nsINetUtil.h" >class nsINetUtil : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 46 "../../../dist/include/necko/nsINetUtil.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ParseContentType(const nsACString_internal & aTypeHeader, nsACString_internal & aCharset, PRBool *aHadCharset, nsACString_internal & _retval) = 0; ># 58 "../../../dist/include/necko/nsINetUtil.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, PRBool *_retval) = 0; ># 72 "../../../dist/include/necko/nsINetUtil.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, PRBool *_retval) = 0; ># 81 "../../../dist/include/necko/nsINetUtil.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToImmutableURI(nsIURI *aURI, nsIURI **_retval) = 0; > > > enum { ESCAPE_ALL = 0U }; > > > enum { ESCAPE_XALPHAS = 1U }; > > > > enum { ESCAPE_XPALPHAS = 2U }; > > > > enum { ESCAPE_URL_PATH = 4U }; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EscapeString(const nsACString_internal & aString, PRUint32 aEscapeType, nsACString_internal & _retval) = 0; > > > enum { ESCAPE_URL_SCHEME = 1U }; > > > enum { ESCAPE_URL_USERNAME = 2U }; > > > enum { ESCAPE_URL_PASSWORD = 4U }; > > > enum { ESCAPE_URL_HOST = 8U }; > > > enum { ESCAPE_URL_DIRECTORY = 16U }; > > > enum { ESCAPE_URL_FILE_BASENAME = 32U }; > > > enum { ESCAPE_URL_FILE_EXTENSION = 64U }; > > > enum { ESCAPE_URL_PARAM = 128U }; > > > enum { ESCAPE_URL_QUERY = 256U }; > > > enum { ESCAPE_URL_REF = 512U }; > > > enum { ESCAPE_URL_FILEPATH = 112U }; > > > enum { ESCAPE_URL_MINIMAL = 1023U }; > > > enum { ESCAPE_URL_FORCED = 1024U }; > > > enum { ESCAPE_URL_ONLY_ASCII = 2048U }; > > > > > > enum { ESCAPE_URL_ONLY_NONASCII = 4096U }; > > > enum { ESCAPE_URL_COLON = 16384U }; > > > enum { ESCAPE_URL_SKIP_CONTROL = 32768U }; ># 167 "../../../dist/include/necko/nsINetUtil.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EscapeURL(const nsACString_internal & aStr, PRUint32 aFlags, nsACString_internal & _retval) = 0; ># 179 "../../../dist/include/necko/nsINetUtil.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) UnescapeString(const nsACString_internal & aStr, PRUint32 aFlags, nsACString_internal & _retval) = 0; ># 204 "../../../dist/include/necko/nsINetUtil.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ExtractCharsetFromContentType(const nsACString_internal & aTypeHeader, nsACString_internal & aCharset, PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, PRBool *_retval) = 0; > >}; > > template <class Dummy> const nsIID nsINetUtil::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x57322c6f, 0xf4ec, 0x4e46, { 0x82, 0x53, 0xb7, 0x4b, 0xe2, 0x20, 0xde, 0x16 }}; ># 88 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIAuthPrompt.h" 1 ># 17 "../../../dist/include/necko/nsIAuthPrompt.h" >class nsIPrompt; ># 30 "../../../dist/include/necko/nsIAuthPrompt.h" >class nsIAuthPrompt : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > enum { SAVE_PASSWORD_NEVER = 0U }; > > enum { SAVE_PASSWORD_FOR_SESSION = 1U }; > > enum { SAVE_PASSWORD_PERMANENTLY = 2U }; ># 56 "../../../dist/include/necko/nsIAuthPrompt.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Prompt(const PRUnichar *dialogTitle, const PRUnichar *text, const PRUnichar *passwordRealm, PRUint32 savePassword, const PRUnichar *defaultText, PRUnichar **result, PRBool *_retval) = 0; ># 72 "../../../dist/include/necko/nsIAuthPrompt.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PromptUsernameAndPassword(const PRUnichar *dialogTitle, const PRUnichar *text, const PRUnichar *passwordRealm, PRUint32 savePassword, PRUnichar **user, PRUnichar **pwd, PRBool *_retval) = 0; ># 90 "../../../dist/include/necko/nsIAuthPrompt.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PromptPassword(const PRUnichar *dialogTitle, const PRUnichar *text, const PRUnichar *passwordRealm, PRUint32 savePassword, PRUnichar **pwd, PRBool *_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIAuthPrompt::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x358089f9, 0xee4b, 0x4711, { 0x82, 0xfd, 0xbc, 0xd0, 0x7f, 0xc6, 0x20, 0x61 }}; ># 89 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIAuthPrompt2.h" 1 ># 17 "../../../dist/include/necko/nsIAuthPrompt2.h" >class nsIAuthPromptCallback; > >class nsIChannel; > >class nsICancelable; > >class nsIAuthInformation; ># 39 "../../../dist/include/necko/nsIAuthPrompt2.h" >class nsIAuthPrompt2 : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > enum { LEVEL_NONE = 0U }; > > > > > > enum { LEVEL_PW_ENCRYPTED = 1U }; > > > > > enum { LEVEL_SECURE = 2U }; ># 87 "../../../dist/include/necko/nsIAuthPrompt2.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PromptAuth(nsIChannel *aChannel, PRUint32 level, nsIAuthInformation *authInfo, PRBool *_retval) = 0; ># 107 "../../../dist/include/necko/nsIAuthPrompt2.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AsyncPromptAuth(nsIChannel *aChannel, nsIAuthPromptCallback *aCallback, nsISupports *aContext, PRUint32 level, nsIAuthInformation *authInfo, nsICancelable **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIAuthPrompt2::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x447fc780, 0x1d28, 0x412a, { 0x91, 0xa1, 0x46, 0x6d, 0x48, 0x12, 0x9c, 0x65 }}; ># 90 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIAuthPromptAdapterFactory.h" 1 ># 17 "../../../dist/include/necko/nsIAuthPromptAdapterFactory.h" >class nsIAuthPrompt; > >class nsIAuthPrompt2; ># 33 "../../../dist/include/necko/nsIAuthPromptAdapterFactory.h" >class nsIAuthPromptAdapterFactory : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateAdapter(nsIAuthPrompt *aPrompt, nsIAuthPrompt2 **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIAuthPromptAdapterFactory::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x60e46383, 0xbb9a, 0x4860, { 0x89, 0x62, 0x80, 0xd9, 0xc5, 0xc0, 0x5d, 0xdc }}; ># 91 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsComponentManagerUtils.h" 1 ># 92 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsServiceManagerUtils.h" 1 ># 93 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsINestedURI.h" 1 ># 17 "../../../dist/include/necko/nsINestedURI.h" >class nsIURI; ># 41 "../../../dist/include/necko/nsINestedURI.h" >class nsINestedURI : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 55 "../../../dist/include/necko/nsINestedURI.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInnerURI(nsIURI * *aInnerURI) = 0; ># 66 "../../../dist/include/necko/nsINestedURI.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInnermostURI(nsIURI * *aInnermostURI) = 0; > >}; > > template <class Dummy> const nsIID nsINestedURI::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x6de2c874, 0x796c, 0x46bf, { 0xb5, 0x7f, 0x0d, 0x7b, 0xd7, 0xd6, 0xca, 0xb0 }}; ># 94 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsIMutable.h" 1 ># 29 "../../../dist/include/xpcom/nsIMutable.h" >class nsIMutable : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 41 "../../../dist/include/xpcom/nsIMutable.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMutable(PRBool *aMutable) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetMutable(PRBool aMutable) = 0; > >}; > > template <class Dummy> const nsIID nsIMutable::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x321578d0, 0x03c1, 0x4d95, { 0x88, 0x21, 0x02, 0x1a, 0xc6, 0x12, 0xd1, 0x8d }}; ># 95 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/xpcom/nsIPropertyBag2.h" 1 ># 10 "../../../dist/include/xpcom/nsIPropertyBag2.h" ># 1 "../../../dist/include/xpcom/nsIPropertyBag.h" 1 ># 17 "../../../dist/include/xpcom/nsIPropertyBag.h" >class nsIVariant; > >class nsISimpleEnumerator; ># 29 "../../../dist/include/xpcom/nsIPropertyBag.h" >class nsIPropertyBag : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetEnumerator(nsISimpleEnumerator * *aEnumerator) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetProperty(const nsAString_internal & name, nsIVariant **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIPropertyBag::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xbfcd37b0, 0xa49f, 0x11d5, { 0x91, 0x0d, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}; ># 11 "../../../dist/include/xpcom/nsIPropertyBag2.h" 2 ># 25 "../../../dist/include/xpcom/nsIPropertyBag2.h" >class nsIPropertyBag2 : public nsIPropertyBag { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPropertyAsInt32(const nsAString_internal & prop, PRInt32 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPropertyAsUint32(const nsAString_internal & prop, PRUint32 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPropertyAsInt64(const nsAString_internal & prop, PRInt64 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPropertyAsUint64(const nsAString_internal & prop, PRUint64 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPropertyAsDouble(const nsAString_internal & prop, double *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPropertyAsAString(const nsAString_internal & prop, nsAString_internal & _retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPropertyAsACString(const nsAString_internal & prop, nsACString_internal & _retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPropertyAsAUTF8String(const nsAString_internal & prop, nsACString_internal & _retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPropertyAsBool(const nsAString_internal & prop, PRBool *_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPropertyAsInterface(const nsAString_internal & prop, const nsIID & iid, void * *result) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Get(const nsAString_internal & prop, nsIVariant **_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HasKey(const nsAString_internal & prop, PRBool *_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIPropertyBag2::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x625cfd1e, 0xda1e, 0x4417, { 0x9e, 0xe9, 0xdb, 0xc8, 0xe0, 0xb3, 0xfd, 0x79 }}; ># 96 "../../../dist/include/necko/nsNetUtil.h" 2 ># 1 "../../../dist/include/necko/nsIIDNService.h" 1 ># 39 "../../../dist/include/necko/nsIIDNService.h" >class nsIIDNService : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ConvertUTF8toACE(const nsACString_internal & input, nsACString_internal & _retval) = 0; ># 58 "../../../dist/include/necko/nsIIDNService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ConvertACEtoUTF8(const nsACString_internal & input, nsACString_internal & _retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsACE(const nsACString_internal & input, PRBool *_retval) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Normalize(const nsACString_internal & input, nsACString_internal & _retval) = 0; ># 80 "../../../dist/include/necko/nsIIDNService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ConvertToDisplayIDN(const nsACString_internal & input, PRBool *isASCII, nsACString_internal & _retval) = 0; > >}; > > template <class Dummy> const nsIID nsIIDNService::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa592a60e, 0x3621, 0x4f19, { 0xa3, 0x18, 0x2b, 0xf2, 0x33, 0xcf, 0xad, 0x3e }}; ># 97 "../../../dist/include/necko/nsNetUtil.h" 2 > > >inline const nsGetServiceByContractIDWithError >do_GetIOService(nsresult* error = 0) >{ > return nsGetServiceByContractIDWithError("@mozilla.org/network/io-service;1", error); >} > > >inline nsresult >net_EnsureIOService(nsIIOService **ios, nsCOMPtr<nsIIOService> &grip) >{ > nsresult rv = 0; > if (!*ios) { > grip = do_GetIOService(&rv); > *ios = grip; > } > return rv; >} > >inline nsresult >NS_NewURI(nsIURI **result, > const nsACString_internal &spec, > const char *charset = 0, > nsIURI *baseURI = 0, > nsIIOService *ioService = 0) >{ > nsresult rv; > nsCOMPtr<nsIIOService> grip; > rv = net_EnsureIOService(&ioService, grip); > if (ioService) > rv = ioService->NewURI(spec, charset, baseURI, result); > return rv; >} > >inline nsresult >NS_NewURI(nsIURI* *result, > const nsAString_internal& spec, > const char *charset = 0, > nsIURI* baseURI = 0, > nsIIOService* ioService = 0) >{ > return NS_NewURI(result, NS_ConvertUTF16toUTF8(spec), charset, baseURI, ioService); >} > >inline nsresult >NS_NewURI(nsIURI* *result, > const char *spec, > nsIURI* baseURI = 0, > nsIIOService* ioService = 0) >{ > return NS_NewURI(result, nsDependentCString(spec), 0, baseURI, ioService); >} > >inline nsresult >NS_NewFileURI(nsIURI* *result, > nsIFile* spec, > nsIIOService* ioService = 0) >{ > nsresult rv; > nsCOMPtr<nsIIOService> grip; > rv = net_EnsureIOService(&ioService, grip); > if (ioService) > rv = ioService->NewFileURI(spec, result); > return rv; >} > >inline nsresult >NS_NewChannel(nsIChannel **result, > nsIURI *uri, > nsIIOService *ioService = 0, > nsILoadGroup *loadGroup = 0, > nsIInterfaceRequestor *callbacks = 0, > PRUint32 loadFlags = nsIRequest::LOAD_NORMAL) >{ > nsresult rv; > nsCOMPtr<nsIIOService> grip; > rv = net_EnsureIOService(&ioService, grip); > if (ioService) { > nsIChannel *chan; > rv = ioService->NewChannelFromURI(uri, &chan); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > if (loadGroup) > rv |= chan->SetLoadGroup(loadGroup); > if (callbacks) > rv |= chan->SetNotificationCallbacks(callbacks); > if (loadFlags != nsIRequest::LOAD_NORMAL) > rv |= chan->SetLoadFlags(loadFlags); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > *result = chan; > else > do { (chan)->Release(); (chan) = 0; } while (0); > } > } > return rv; >} > > > > > >inline nsresult >NS_OpenURI(nsIInputStream **result, > nsIURI *uri, > nsIIOService *ioService = 0, > nsILoadGroup *loadGroup = 0, > nsIInterfaceRequestor *callbacks = 0, > PRUint32 loadFlags = nsIRequest::LOAD_NORMAL, > nsIChannel **channelOut = 0) >{ > nsresult rv; > nsCOMPtr<nsIChannel> channel; > rv = NS_NewChannel(getter_AddRefs(channel), uri, ioService, > loadGroup, callbacks, loadFlags); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > nsIInputStream *stream; > rv = channel->Open(&stream); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > *result = stream; > if (channelOut) { > *channelOut = 0; > channel.swap(*channelOut); > } > } > } > return rv; >} > >inline nsresult >NS_OpenURI(nsIStreamListener *listener, > nsISupports *context, > nsIURI *uri, > nsIIOService *ioService = 0, > nsILoadGroup *loadGroup = 0, > nsIInterfaceRequestor *callbacks = 0, > PRUint32 loadFlags = nsIRequest::LOAD_NORMAL) >{ > nsresult rv; > nsCOMPtr<nsIChannel> channel; > rv = NS_NewChannel(getter_AddRefs(channel), uri, ioService, > loadGroup, callbacks, loadFlags); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > rv = channel->AsyncOpen(listener, context); > return rv; >} > >inline nsresult >NS_MakeAbsoluteURI(nsACString_internal &result, > const nsACString_internal &spec, > nsIURI *baseURI, > nsIIOService *unused = 0) >{ > nsresult rv; > if (!baseURI) { > do { } while (0); > result = spec; > rv = 0; > } > else if (spec.IsEmpty()) > rv = baseURI->GetSpec(result); > else > rv = baseURI->Resolve(spec, result); > return rv; >} > >inline nsresult >NS_MakeAbsoluteURI(char **result, > const char *spec, > nsIURI *baseURI, > nsIIOService *unused = 0) >{ > nsresult rv; > nsCAutoString resultBuf; > rv = NS_MakeAbsoluteURI(resultBuf, nsDependentCString(spec), baseURI); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > *result = ToNewCString(resultBuf); > if (!*result) > rv = ((nsresult) 0x8007000eL); > } > return rv; >} > >inline nsresult >NS_MakeAbsoluteURI(nsAString_internal &result, > const nsAString_internal &spec, > nsIURI *baseURI, > nsIIOService *unused = 0) >{ > nsresult rv; > if (!baseURI) { > do { } while (0); > result = spec; > rv = 0; > } > else { > nsCAutoString resultBuf; > if (spec.IsEmpty()) > rv = baseURI->GetSpec(resultBuf); > else > rv = baseURI->Resolve(NS_ConvertUTF16toUTF8(spec), resultBuf); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > CopyUTF8toUTF16(resultBuf, result); > } > return rv; >} > > > > >inline PRInt32 >NS_GetDefaultPort(const char *scheme, > nsIIOService* ioService = 0) >{ > nsresult rv; > > nsCOMPtr<nsIIOService> grip; > net_EnsureIOService(&ioService, grip); > if (!ioService) > return -1; > > nsCOMPtr<nsIProtocolHandler> handler; > rv = ioService->GetProtocolHandler(scheme, getter_AddRefs(handler)); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > return -1; > PRInt32 port; > rv = handler->GetDefaultPort(&port); > return ((__builtin_expect(!!(!((rv) & 0x80000000)), 1))) ? port : -1; >} > > > > > >inline PRBool >NS_StringToACE(const nsACString_internal &idn, nsACString_internal &result) >{ > nsCOMPtr<nsIIDNService> idnSrv = do_GetService("@mozilla.org/network/idn-service;1"); > if (!idnSrv) > return 0; > nsresult rv = idnSrv->ConvertUTF8toACE(idn, result); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > return 0; > > return 1; >} > > > > > > >inline PRInt32 >NS_GetRealPort(nsIURI* aURI, > nsIIOService* ioService = 0) >{ > PRInt32 port; > nsresult rv = aURI->GetPort(&port); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > return -1; > > if (port != -1) > return port; > > > > > nsCAutoString scheme; > rv = aURI->GetScheme(scheme); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > return -1; > > return NS_GetDefaultPort(scheme.get()); >} > >inline nsresult >NS_NewInputStreamChannel(nsIChannel **result, > nsIURI *uri, > nsIInputStream *stream, > const nsACString_internal &contentType, > const nsACString_internal *contentCharset) >{ > nsresult rv; > nsCOMPtr<nsIInputStreamChannel> isc = > do_CreateInstance("@mozilla.org/network/input-stream-channel;1", &rv); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > return rv; > rv |= isc->SetURI(uri); > rv |= isc->SetContentStream(stream); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > return rv; > nsCOMPtr<nsIChannel> chan = do_QueryInterface(isc, &rv); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > return rv; > if (!contentType.IsEmpty()) > rv |= chan->SetContentType(contentType); > if (contentCharset && !contentCharset->IsEmpty()) > rv |= chan->SetContentCharset(*contentCharset); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > *result = 0; > chan.swap(*result); > } > return rv; >} > >inline nsresult >NS_NewInputStreamChannel(nsIChannel **result, > nsIURI *uri, > nsIInputStream *stream, > const nsACString_internal &contentType = EmptyCString()) >{ > return NS_NewInputStreamChannel(result, uri, stream, contentType, 0); >} > >inline nsresult >NS_NewInputStreamChannel(nsIChannel **result, > nsIURI *uri, > nsIInputStream *stream, > const nsACString_internal &contentType, > const nsACString_internal &contentCharset) >{ > return NS_NewInputStreamChannel(result, uri, stream, contentType, > &contentCharset); >} > >inline nsresult >NS_NewInputStreamPump(nsIInputStreamPump **result, > nsIInputStream *stream, > PRInt64 streamPos = nsInt64(-1), > PRInt64 streamLen = nsInt64(-1), > PRUint32 segsize = 0, > PRUint32 segcount = 0, > PRBool closeWhenDone = 0) >{ > nsresult rv; > nsCOMPtr<nsIInputStreamPump> pump = > do_CreateInstance("@mozilla.org/network/input-stream-pump;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = pump->Init(stream, streamPos, streamLen, > segsize, segcount, closeWhenDone); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > *result = 0; > pump.swap(*result); > } > } > return rv; >} > > > > >inline nsresult >NS_NewAsyncStreamCopier(nsIAsyncStreamCopier **result, > nsIInputStream *source, > nsIOutputStream *sink, > nsIEventTarget *target, > PRBool sourceBuffered = 1, > PRBool sinkBuffered = 1, > PRUint32 chunkSize = 0) >{ > nsresult rv; > nsCOMPtr<nsIAsyncStreamCopier> copier = > do_CreateInstance("@mozilla.org/network/async-stream-copier;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = copier->Init(source, sink, target, sourceBuffered, sinkBuffered, chunkSize); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > *result = 0; > copier.swap(*result); > } > } > return rv; >} > >inline nsresult >NS_NewLoadGroup(nsILoadGroup **result, > nsIRequestObserver *obs) >{ > nsresult rv; > nsCOMPtr<nsILoadGroup> group = > do_CreateInstance("@mozilla.org/network/load-group;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = group->SetGroupObserver(obs); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > *result = 0; > group.swap(*result); > } > } > return rv; >} > >inline nsresult >NS_NewDownloader(nsIStreamListener **result, > nsIDownloadObserver *observer, > nsIFile *downloadLocation = 0) >{ > nsresult rv; > nsCOMPtr<nsIDownloader> downloader = > do_CreateInstance("@mozilla.org/network/downloader;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = downloader->Init(observer, downloadLocation); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > (*result = downloader)->AddRef(); > } > return rv; >} > >inline nsresult >NS_NewStreamLoader(nsIStreamLoader **result, > nsIStreamLoaderObserver *observer) >{ > nsresult rv; > nsCOMPtr<nsIStreamLoader> loader = > do_CreateInstance("@mozilla.org/network/stream-loader;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = loader->Init(observer); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > *result = 0; > loader.swap(*result); > } > } > return rv; >} > >inline nsresult >NS_NewStreamLoader(nsIStreamLoader **result, > nsIURI *uri, > nsIStreamLoaderObserver *observer, > nsISupports *context = 0, > nsILoadGroup *loadGroup = 0, > nsIInterfaceRequestor *callbacks = 0, > PRUint32 loadFlags = nsIRequest::LOAD_NORMAL, > nsIURI *referrer = 0) >{ > nsresult rv; > nsCOMPtr<nsIChannel> channel; > rv = NS_NewChannel(getter_AddRefs(channel), > uri, > 0, > loadGroup, > callbacks, > loadFlags); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(channel)); > if (httpChannel) > httpChannel->SetReferrer(referrer); > rv = NS_NewStreamLoader(result, observer); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > rv = channel->AsyncOpen(*result, context); > } > return rv; >} > >inline nsresult >NS_NewUnicharStreamLoader(nsIUnicharStreamLoader **result, > nsIUnicharStreamLoaderObserver *observer, > PRUint32 segmentSize = nsIUnicharStreamLoader::DEFAULT_SEGMENT_SIZE) >{ > nsresult rv; > nsCOMPtr<nsIUnicharStreamLoader> loader = > do_CreateInstance("@mozilla.org/network/unichar-stream-loader;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = loader->Init(observer, segmentSize); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > *result = 0; > loader.swap(*result); > } > } > return rv; >} > >inline nsresult >NS_NewSyncStreamListener(nsIStreamListener **result, > nsIInputStream **stream) >{ > nsresult rv; > nsCOMPtr<nsISyncStreamListener> listener = > do_CreateInstance("@mozilla.org/network/sync-stream-listener;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = listener->GetInputStream(stream); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > (*result = listener)->AddRef(); > } > return rv; >} ># 588 "../../../dist/include/necko/nsNetUtil.h" >inline nsresult >NS_ImplementChannelOpen(nsIChannel *channel, > nsIInputStream **result) >{ > nsCOMPtr<nsIStreamListener> listener; > nsCOMPtr<nsIInputStream> stream; > nsresult rv = NS_NewSyncStreamListener(getter_AddRefs(listener), > getter_AddRefs(stream)); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = channel->AsyncOpen(listener, 0); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > PRUint32 n; > > rv = stream->Available(&n); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > *result = 0; > stream.swap(*result); > } > } > } > return rv; >} > >inline nsresult >NS_NewRequestObserverProxy(nsIRequestObserver **result, > nsIRequestObserver *observer, > nsIEventTarget *target = 0) >{ > nsresult rv; > nsCOMPtr<nsIRequestObserverProxy> proxy = > do_CreateInstance("@mozilla.org/network/request-observer-proxy;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = proxy->Init(observer, target); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > (*result = proxy)->AddRef(); > } > return rv; >} > >inline nsresult >NS_NewSimpleStreamListener(nsIStreamListener **result, > nsIOutputStream *sink, > nsIRequestObserver *observer = 0) >{ > nsresult rv; > nsCOMPtr<nsISimpleStreamListener> listener = > do_CreateInstance("@mozilla.org/network/simple-stream-listener;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = listener->Init(sink, observer); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > (*result = listener)->AddRef(); > } > return rv; >} > >inline nsresult >NS_CheckPortSafety(PRInt32 port, > const char *scheme, > nsIIOService *ioService = 0) >{ > nsresult rv; > nsCOMPtr<nsIIOService> grip; > rv = net_EnsureIOService(&ioService, grip); > if (ioService) { > PRBool allow; > rv = ioService->AllowPort(port, scheme, &allow); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1))) && !allow) { > do { } while (0); > rv = ((nsresult) (((PRUint32)(1)<<31) | ((PRUint32)(6 +0x45)<<16) | ((PRUint32)(19))) ); > } > } > return rv; >} > > >inline nsresult >NS_CheckPortSafety(nsIURI *uri) { > PRInt32 port; > nsresult rv = uri->GetPort(&port); > if (((__builtin_expect(!!((rv) & 0x80000000), 0))) || port == -1) > return 0; > nsCAutoString scheme; > uri->GetScheme(scheme); > return NS_CheckPortSafety(port, scheme.get()); >} > >inline nsresult >NS_NewProxyInfo(const nsACString_internal &type, > const nsACString_internal &host, > PRInt32 port, > PRUint32 flags, > nsIProxyInfo **result) >{ > nsresult rv; > nsCOMPtr<nsIProtocolProxyService> pps = > do_GetService("@mozilla.org/network/protocol-proxy-service;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > rv = pps->NewProxyInfo(type, host, port, flags, 4294967295U, 0, > result); > return rv; >} > >inline nsresult >NS_GetFileProtocolHandler(nsIFileProtocolHandler **result, > nsIIOService *ioService = 0) >{ > nsresult rv; > nsCOMPtr<nsIIOService> grip; > rv = net_EnsureIOService(&ioService, grip); > if (ioService) { > nsCOMPtr<nsIProtocolHandler> handler; > rv = ioService->GetProtocolHandler("file", getter_AddRefs(handler)); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > rv = CallQueryInterface(handler, result); > } > return rv; >} > >inline nsresult >NS_GetFileFromURLSpec(const nsACString_internal &inURL, > nsIFile **result, > nsIIOService *ioService = 0) >{ > nsresult rv; > nsCOMPtr<nsIFileProtocolHandler> fileHandler; > rv = NS_GetFileProtocolHandler(getter_AddRefs(fileHandler), ioService); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > rv = fileHandler->GetFileFromURLSpec(inURL, result); > return rv; >} > >inline nsresult >NS_GetURLSpecFromFile(nsIFile *file, > nsACString_internal &url, > nsIIOService *ioService = 0) >{ > nsresult rv; > nsCOMPtr<nsIFileProtocolHandler> fileHandler; > rv = NS_GetFileProtocolHandler(getter_AddRefs(fileHandler), ioService); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > rv = fileHandler->GetURLSpecFromFile(file, url); > return rv; >} ># 739 "../../../dist/include/necko/nsNetUtil.h" >inline nsresult >NS_GetReferrerFromChannel(nsIChannel *channel, > nsIURI **referrer) >{ > nsresult rv = ((nsresult) 0x80040111L); > *referrer = 0; > > nsCOMPtr<nsIPropertyBag2> props(do_QueryInterface(channel)); > if (props) { > > > > rv = props->GetPropertyAsInterface(static_cast<const nsAFlatString&>(nsDependentString(reinterpret_cast<const nsAString_internal::char_type*>(L"docshell.internalReferrer"), PRUint32((sizeof(L"docshell.internalReferrer")/sizeof(wchar_t))-1))), > (::nsIURI::COMTypeInfo<int>::kIID), > reinterpret_cast<void **>(referrer)); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > *referrer = 0; > } > > > > if (!(*referrer)) { > nsCOMPtr<nsIHttpChannel> chan(do_QueryInterface(channel)); > if (chan) { > rv = chan->GetReferrer(referrer); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > *referrer = 0; > } > } > return rv; >} > > >inline nsresult >NS_ExamineForProxy(const char *scheme, > const char *host, > PRInt32 port, > nsIProxyInfo **proxyInfo) >{ > nsresult rv; > nsCOMPtr<nsIProtocolProxyService> pps = > do_GetService("@mozilla.org/network/protocol-proxy-service;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > nsCAutoString spec(scheme); > spec.Append("://"); > spec.Append(host); > spec.Append(':'); > spec.AppendInt(port); > > > > > > > nsCOMPtr<nsIURI> uri = > do_CreateInstance("@mozilla.org/network/standard-url;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = uri->SetSpec(spec); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > rv = pps->Resolve(uri, 0, proxyInfo); > } > } > return rv; >} > > >inline nsresult >NS_ParseContentType(const nsACString_internal &rawContentType, > nsCString &contentType, > nsCString &contentCharset) >{ > > nsresult rv; > nsCOMPtr<nsINetUtil> util = do_GetIOService(&rv); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > nsCString charset; > PRBool hadCharset; > rv = util->ParseContentType(rawContentType, charset, &hadCharset, > contentType); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1))) && hadCharset) > contentCharset = charset; > return rv; >} > >inline nsresult >NS_ExtractCharsetFromContentType(const nsACString_internal &rawContentType, > nsCString &contentCharset, > PRBool *hadCharset, > PRInt32 *charsetStart, > PRInt32 *charsetEnd) >{ > > nsresult rv; > nsCOMPtr<nsINetUtil> util = do_GetIOService(&rv); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > return util->ExtractCharsetFromContentType(rawContentType, > contentCharset, > charsetStart, > charsetEnd, > hadCharset); >} > >inline nsresult >NS_NewLocalFileInputStream(nsIInputStream **result, > nsIFile *file, > PRInt32 ioFlags = -1, > PRInt32 perm = -1, > PRInt32 behaviorFlags = 0) >{ > nsresult rv; > nsCOMPtr<nsIFileInputStream> in = > do_CreateInstance("@mozilla.org/network/file-input-stream;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = in->Init(file, ioFlags, perm, behaviorFlags); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > (*result = in)->AddRef(); > } > return rv; >} > >inline nsresult >NS_NewLocalFileOutputStream(nsIOutputStream **result, > nsIFile *file, > PRInt32 ioFlags = -1, > PRInt32 perm = -1, > PRInt32 behaviorFlags = 0) >{ > nsresult rv; > nsCOMPtr<nsIFileOutputStream> out = > do_CreateInstance("@mozilla.org/network/file-output-stream;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = out->Init(file, ioFlags, perm, behaviorFlags); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > (*result = out)->AddRef(); > } > return rv; >} > > >inline nsresult >NS_NewSafeLocalFileOutputStream(nsIOutputStream **result, > nsIFile *file, > PRInt32 ioFlags = -1, > PRInt32 perm = -1, > PRInt32 behaviorFlags = 0) >{ > nsresult rv; > nsCOMPtr<nsIFileOutputStream> out = > do_CreateInstance("@mozilla.org/network/safe-file-output-stream;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = out->Init(file, ioFlags, perm, behaviorFlags); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > (*result = out)->AddRef(); > } > return rv; >} > > > > >inline nsresult >NS_BackgroundInputStream(nsIInputStream **result, > nsIInputStream *stream, > PRUint32 segmentSize = 0, > PRUint32 segmentCount = 0) >{ > nsresult rv; > nsCOMPtr<nsIStreamTransportService> sts = > do_GetService("@mozilla.org/network/stream-transport-service;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > nsCOMPtr<nsITransport> inTransport; > rv = sts->CreateInputTransport(stream, nsInt64(-1), nsInt64(-1), > 1, getter_AddRefs(inTransport)); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > rv = inTransport->OpenInputStream(nsITransport::OPEN_BLOCKING, > segmentSize, segmentCount, > result); > } > return rv; >} > > > > >inline nsresult >NS_BackgroundOutputStream(nsIOutputStream **result, > nsIOutputStream *stream, > PRUint32 segmentSize = 0, > PRUint32 segmentCount = 0) >{ > nsresult rv; > nsCOMPtr<nsIStreamTransportService> sts = > do_GetService("@mozilla.org/network/stream-transport-service;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > nsCOMPtr<nsITransport> inTransport; > rv = sts->CreateOutputTransport(stream, nsInt64(-1), nsInt64(-1), > 1, getter_AddRefs(inTransport)); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > rv = inTransport->OpenOutputStream(nsITransport::OPEN_BLOCKING, > segmentSize, segmentCount, > result); > } > return rv; >} > >inline nsresult >NS_NewBufferedInputStream(nsIInputStream **result, > nsIInputStream *str, > PRUint32 bufferSize) >{ > nsresult rv; > nsCOMPtr<nsIBufferedInputStream> in = > do_CreateInstance("@mozilla.org/network/buffered-input-stream;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = in->Init(str, bufferSize); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > (*result = in)->AddRef(); > } > return rv; >} > > > >inline nsresult >NS_NewBufferedOutputStream(nsIOutputStream **result, > nsIOutputStream *str, > PRUint32 bufferSize) >{ > nsresult rv; > nsCOMPtr<nsIBufferedOutputStream> out = > do_CreateInstance("@mozilla.org/network/buffered-output-stream;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = out->Init(str, bufferSize); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > (*result = out)->AddRef(); > } > return rv; >} ># 990 "../../../dist/include/necko/nsNetUtil.h" >inline already_AddRefed<nsIOutputStream> >NS_BufferOutputStream(nsIOutputStream *aOutputStream, > PRUint32 aBufferSize) >{ > do { } while (0); > > nsCOMPtr<nsIOutputStream> bos; > nsresult rv = NS_NewBufferedOutputStream(getter_AddRefs(bos), aOutputStream, > aBufferSize); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > return bos.forget(); > > (aOutputStream)->AddRef(); > return aOutputStream; >} > > >inline nsresult >NS_NewPostDataStream(nsIInputStream **result, > PRBool isFile, > const nsACString_internal &data, > PRUint32 encodeFlags, > nsIIOService *unused = 0) >{ > nsresult rv; > > if (isFile) { > nsCOMPtr<nsILocalFile> file; > nsCOMPtr<nsIInputStream> fileStream; > > rv = NS_NewNativeLocalFile_P(data, 0, getter_AddRefs(file)); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = NS_NewLocalFileInputStream(getter_AddRefs(fileStream), file); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > > rv = NS_NewBufferedInputStream(result, fileStream, 8192); > } > } > return rv; > } > > > nsCOMPtr<nsIStringInputStream> stream > (do_CreateInstance("@mozilla.org/io/string-input-stream;1", &rv)); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > return rv; > > rv = stream->SetData(data.BeginReading(), data.Length()); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > return rv; > > (*result = stream)->AddRef(); > return 0; >} > >inline nsresult >NS_LoadPersistentPropertiesFromURI(nsIPersistentProperties **result, > nsIURI *uri, > nsIIOService *ioService = 0) >{ > nsCOMPtr<nsIInputStream> in; > nsresult rv = NS_OpenURI(getter_AddRefs(in), uri, ioService); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > nsCOMPtr<nsIPersistentProperties> properties = > do_CreateInstance("@mozilla.org/persistent-properties;1", &rv); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = properties->Load(in); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > *result = 0; > properties.swap(*result); > } > } > } > return rv; >} > >inline nsresult >NS_LoadPersistentPropertiesFromURISpec(nsIPersistentProperties **result, > const nsACString_internal &spec, > const char *charset = 0, > nsIURI *baseURI = 0, > nsIIOService *ioService = 0) >{ > nsCOMPtr<nsIURI> uri; > nsresult rv = > NS_NewURI(getter_AddRefs(uri), spec, charset, baseURI, ioService); > > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) > rv = NS_LoadPersistentPropertiesFromURI(result, uri, ioService); > > return rv; >} ># 1090 "../../../dist/include/necko/nsNetUtil.h" >inline void >NS_QueryNotificationCallbacks(nsIChannel *channel, > const nsIID &iid, > void **result) >{ > do { } while (0); > *result = 0; > > nsCOMPtr<nsIInterfaceRequestor> cbs; > channel->GetNotificationCallbacks(getter_AddRefs(cbs)); > if (cbs) > cbs->GetInterface(iid, result); > if (!*result) { > > nsCOMPtr<nsILoadGroup> loadGroup; > channel->GetLoadGroup(getter_AddRefs(loadGroup)); > if (loadGroup) { > loadGroup->GetNotificationCallbacks(getter_AddRefs(cbs)); > if (cbs) > cbs->GetInterface(iid, result); > } > } >} > > >template <class T> inline void >NS_QueryNotificationCallbacks(nsIChannel *channel, > nsCOMPtr<T> &result) >{ > NS_QueryNotificationCallbacks(channel, (T::template COMTypeInfo<int>::kIID), > getter_AddRefs(result)); >} > > > > > >inline void >NS_QueryNotificationCallbacks(nsIInterfaceRequestor *callbacks, > nsILoadGroup *loadGroup, > const nsIID &iid, > void **result) >{ > *result = 0; > > if (callbacks) > callbacks->GetInterface(iid, result); > if (!*result) { > > if (loadGroup) { > nsCOMPtr<nsIInterfaceRequestor> cbs; > loadGroup->GetNotificationCallbacks(getter_AddRefs(cbs)); > if (cbs) > cbs->GetInterface(iid, result); > } > } >} > > > > > > > >inline void >NS_WrapAuthPrompt(nsIAuthPrompt *aAuthPrompt, nsIAuthPrompt2** aAuthPrompt2) >{ > nsCOMPtr<nsIAuthPromptAdapterFactory> factory = > do_GetService("@mozilla.org/network/authprompt-adapter-factory;1"); > if (!factory) > return; > > do { } while (0); > factory->CreateAdapter(aAuthPrompt, aAuthPrompt2); >} > > > > > >inline void >NS_QueryAuthPrompt2(nsIInterfaceRequestor *aCallbacks, > nsIAuthPrompt2 **aAuthPrompt) >{ > CallGetInterface(aCallbacks, aAuthPrompt); > if (*aAuthPrompt) > return; > > > nsCOMPtr<nsIAuthPrompt> prompt(do_GetInterface(aCallbacks)); > if (!prompt) > return; > > NS_WrapAuthPrompt(prompt, aAuthPrompt); >} > > > > > >inline void >NS_QueryAuthPrompt2(nsIChannel *aChannel, > nsIAuthPrompt2 **aAuthPrompt) >{ > *aAuthPrompt = 0; > > > > > > > nsCOMPtr<nsIInterfaceRequestor> callbacks; > aChannel->GetNotificationCallbacks(getter_AddRefs(callbacks)); > if (callbacks) { > NS_QueryAuthPrompt2(callbacks, aAuthPrompt); > if (*aAuthPrompt) > return; > } > > nsCOMPtr<nsILoadGroup> group; > aChannel->GetLoadGroup(getter_AddRefs(group)); > if (!group) > return; > > group->GetNotificationCallbacks(getter_AddRefs(callbacks)); > if (!callbacks) > return; > NS_QueryAuthPrompt2(callbacks, aAuthPrompt); >} > > >template <class T> inline void >NS_QueryNotificationCallbacks(nsIInterfaceRequestor *callbacks, > nsILoadGroup *loadGroup, > nsCOMPtr<T> &result) >{ > NS_QueryNotificationCallbacks(callbacks, loadGroup, > (T::template COMTypeInfo<int>::kIID), > getter_AddRefs(result)); >} > > >template <class T> inline void >NS_QueryNotificationCallbacks(const nsCOMPtr<nsIInterfaceRequestor> &aCallbacks, > const nsCOMPtr<nsILoadGroup> &aLoadGroup, > nsCOMPtr<T> &aResult) >{ > NS_QueryNotificationCallbacks(aCallbacks.get(), aLoadGroup.get(), aResult); >} > > >template <class T> inline void >NS_QueryNotificationCallbacks(const nsCOMPtr<nsIChannel> &aChannel, > nsCOMPtr<T> &aResult) >{ > NS_QueryNotificationCallbacks(aChannel.get(), aResult); >} > > > > > > >inline nsresult >NS_NewNotificationCallbacksAggregation(nsIInterfaceRequestor *callbacks, > nsILoadGroup *loadGroup, > nsIInterfaceRequestor **result) >{ > nsCOMPtr<nsIInterfaceRequestor> cbs; > if (loadGroup) > loadGroup->GetNotificationCallbacks(getter_AddRefs(cbs)); > return NS_NewInterfaceRequestorAggregation(callbacks, cbs, result); >} > > > > >inline PRBool >NS_IsOffline() >{ > PRBool offline = 1; > nsCOMPtr<nsIIOService> ios = do_GetIOService(); > if (ios) > ios->GetOffline(&offline); > return offline; >} > > > > > > > >inline nsresult >NS_DoImplGetInnermostURI(nsINestedURI* nestedURI, nsIURI** result) >{ > do { } while (0); > do { } while (0); > > nsCOMPtr<nsIURI> inner; > nsresult rv = nestedURI->GetInnerURI(getter_AddRefs(inner)); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > > > nsCOMPtr<nsINestedURI> nestedInner(do_QueryInterface(inner)); > while (nestedInner) { > rv = nestedInner->GetInnerURI(getter_AddRefs(inner)); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > nestedInner = do_QueryInterface(inner); > } > > > inner.swap(*result); > > return rv; >} > >inline nsresult >NS_ImplGetInnermostURI(nsINestedURI* nestedURI, nsIURI** result) >{ > > *result = 0; > > return NS_DoImplGetInnermostURI(nestedURI, result); >} > > > > > > >inline nsresult >NS_EnsureSafeToReturn(nsIURI* uri, nsIURI** result) >{ > do { } while (0); > > > PRBool isMutable = 1; > nsCOMPtr<nsIMutable> mutableObj(do_QueryInterface(uri)); > if (mutableObj) { > nsresult rv = mutableObj->GetMutable(&isMutable); > isMutable = ((__builtin_expect(!!((rv) & 0x80000000), 0))) || isMutable; > } > > if (!isMutable) { > (*result = uri)->AddRef(); > return 0; > } > > return uri->Clone(result); >} > > > > >inline void >NS_TryToSetImmutable(nsIURI* uri) >{ > nsCOMPtr<nsIMutable> mutableObj(do_QueryInterface(uri)); > if (mutableObj) { > mutableObj->SetMutable(0); > } >} > > > > > > >inline already_AddRefed<nsIURI> >NS_TryToMakeImmutable(nsIURI* uri, > nsresult* outRv = 0) >{ > nsresult rv; > nsCOMPtr<nsINetUtil> util = do_GetIOService(&rv); > nsIURI* result = 0; > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > do { } while (0); > rv = util->ToImmutableURI(uri, &result); > } > > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) { > ns_if_addref(result = uri); > } > > if (outRv) { > *outRv = rv; > } > > return result; >} > > > > > >inline nsresult >NS_URIChainHasFlags(nsIURI *uri, > PRUint32 flags, > PRBool *result) >{ > nsresult rv; > nsCOMPtr<nsINetUtil> util = do_GetIOService(&rv); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > return util->URIChainHasFlags(uri, flags, result); >} > > > > > >inline already_AddRefed<nsIURI> >NS_GetInnermostURI(nsIURI *uri) >{ > do { } while (0); > > nsCOMPtr<nsINestedURI> nestedURI(do_QueryInterface(uri)); > if (!nestedURI) { > (uri)->AddRef(); > return uri; > } > > nsresult rv = nestedURI->GetInnermostURI(&uri); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) { > return 0; > } > > return uri; >} ># 1429 "../../../dist/include/necko/nsNetUtil.h" >inline nsresult >NS_GetFinalChannelURI(nsIChannel* channel, nsIURI** uri) >{ > *uri = 0; > nsLoadFlags loadFlags = 0; > nsresult rv = channel->GetLoadFlags(&loadFlags); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > if (loadFlags & nsIChannel::LOAD_REPLACE) { > return channel->GetURI(uri); > } > > return channel->GetOriginalURI(uri); >} ># 71 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/caps/nsIScriptSecurityManager.h" 1 ># 14 "../../../dist/include/caps/nsIScriptSecurityManager.h" ># 1 "../../../dist/include/caps/nsIPrincipal.h" 1 ># 10 "../../../dist/include/caps/nsIPrincipal.h" ># 1 "../../../dist/include/xpcom/nsISerializable.h" 1 ># 17 "../../../dist/include/xpcom/nsISerializable.h" >class nsIObjectInputStream; > >class nsIObjectOutputStream; ># 29 "../../../dist/include/xpcom/nsISerializable.h" >class nsISerializable : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 41 "../../../dist/include/xpcom/nsISerializable.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Read(nsIObjectInputStream *aInputStream) = 0; ># 53 "../../../dist/include/xpcom/nsISerializable.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Write(nsIObjectOutputStream *aOutputStream) = 0; > >}; > > template <class Dummy> const nsIID nsISerializable::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x91cca981, 0xc26d, 0x44a8, { 0xbe, 0xbe, 0xd9, 0xed, 0x48, 0x91, 0x50, 0x3a }}; ># 11 "../../../dist/include/caps/nsIPrincipal.h" 2 > > > > > > >struct JSContext; >struct JSPrincipals; >class nsIURI; ># 38 "../../../dist/include/caps/nsIPrincipal.h" >class nsIPrincipal : public nsISerializable { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > enum { ENABLE_DENIED = 1 }; > > enum { ENABLE_UNKNOWN = 2 }; > > enum { ENABLE_WITH_USER_PERMISSION = 3 }; > > enum { ENABLE_GRANTED = 4 }; ># 67 "../../../dist/include/caps/nsIPrincipal.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPreferences(char **prefBranch, char **id, char **subjectName, char **grantedList, char **deniedList, PRBool *isTrusted) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Equals(nsIPrincipal *other, PRBool *_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHashValue(PRUint32 *aHashValue) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetJSPrincipals(JSContext * cx, JSPrincipals * *_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSecurityPolicy(void * *aSecurityPolicy) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetSecurityPolicy(void * aSecurityPolicy) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CanEnableCapability(const char *capability, PRInt16 *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetCanEnableCapability(const char *capability, PRInt16 canEnable) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsCapabilityEnabled(const char *capability, void * annotation, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EnableCapability(const char *capability, void * *annotation) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RevertCapability(const char *capability, void * *annotation) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DisableCapability(const char *capability, void * *annotation) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetURI(nsIURI * *aURI) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDomain(nsIURI * *aDomain) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDomain(nsIURI * aDomain) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetOrigin(char * *aOrigin) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHasCertificate(PRBool *aHasCertificate) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFingerprint(nsACString_internal & aFingerprint) = 0; ># 161 "../../../dist/include/caps/nsIPrincipal.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrettyName(nsACString_internal & aPrettyName) = 0; ># 190 "../../../dist/include/caps/nsIPrincipal.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Subsumes(nsIPrincipal *other, PRBool *_retval) = 0; ># 214 "../../../dist/include/caps/nsIPrincipal.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CheckMayLoad(nsIURI *uri, PRBool report) = 0; ># 226 "../../../dist/include/caps/nsIPrincipal.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSubjectName(nsACString_internal & aSubjectName) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCertificate(nsISupports * *aCertificate) = 0; > >}; > > template <class Dummy> const nsIID nsIPrincipal::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xb8268b9a, 0x2403, 0x44ed, { 0x81, 0xe3, 0x61, 0x40, 0x75, 0xc9, 0x20, 0x34 }}; ># 15 "../../../dist/include/caps/nsIScriptSecurityManager.h" 2 > > > ># 1 "../../../dist/include/xpconnect/nsIXPCSecurityManager.h" 1 ># 18 "../../../dist/include/xpconnect/nsIXPCSecurityManager.h" >class nsAXPCNativeCallContext; >class nsIClassInfo; ># 29 "../../../dist/include/xpconnect/nsIXPCSecurityManager.h" >class nsIXPCSecurityManager : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > enum { HOOK_CREATE_WRAPPER = 1U }; > > enum { HOOK_CREATE_INSTANCE = 2U }; > > enum { HOOK_GET_SERVICE = 4U }; > > enum { HOOK_CALL_METHOD = 8U }; > > enum { HOOK_GET_PROPERTY = 16U }; > > enum { HOOK_SET_PROPERTY = 32U }; > > enum { HOOK_ALL = 63U }; ># 59 "../../../dist/include/xpconnect/nsIXPCSecurityManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CanCreateWrapper(JSContext * aJSContext, const nsIID & aIID, nsISupports *aObj, nsIClassInfo *aClassInfo, void * *aPolicy) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CanCreateInstance(JSContext * aJSContext, const nsCID & aCID) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CanGetService(JSContext * aJSContext, const nsCID & aCID) = 0; > > enum { ACCESS_CALL_METHOD = 0U }; > > enum { ACCESS_GET_PROPERTY = 1U }; > > enum { ACCESS_SET_PROPERTY = 2U }; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CanAccess(PRUint32 aAction, nsAXPCNativeCallContext * aCallContext, JSContext * aJSContext, JSObject * aJSObject, nsISupports *aObj, nsIClassInfo *aClassInfo, jsval aName, void * *aPolicy) = 0; > >}; > > template <class Dummy> const nsIID nsIXPCSecurityManager::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x31431440, 0xf1ce, 0x11d2, { 0x98, 0x5a, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 19 "../../../dist/include/caps/nsIScriptSecurityManager.h" 2 > > > > > > >class nsIURI; > >class nsIChannel; ># 46 "../../../dist/include/caps/nsIScriptSecurityManager.h" >class nsIScriptSecurityManager : public nsIXPCSecurityManager { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CheckPropertyAccess(JSContext * aJSContext, JSObject * aJSObject, const char *aClassName, jsval aProperty, PRUint32 aAction) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CheckConnect(JSContext * aJSContext, nsIURI *aTargetURI, const char *aClassName, const char *aProperty) = 0; ># 73 "../../../dist/include/caps/nsIScriptSecurityManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CheckLoadURIFromScript(JSContext * cx, nsIURI *uri) = 0; > > > > > enum { STANDARD = 0U }; > > enum { LOAD_IS_AUTOMATIC_DOCUMENT_REPLACEMENT = 1U }; > > enum { ALLOW_CHROME = 2U }; > > enum { DISALLOW_INHERIT_PRINCIPAL = 4U }; > > enum { DISALLOW_SCRIPT_OR_DATA = 4U }; > > enum { DISALLOW_SCRIPT = 8U }; ># 101 "../../../dist/include/caps/nsIScriptSecurityManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CheckLoadURIWithPrincipal(nsIPrincipal *aPrincipal, nsIURI *uri, PRUint32 flags) = 0; ># 116 "../../../dist/include/caps/nsIScriptSecurityManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CheckLoadURI(nsIURI *from, nsIURI *uri, PRUint32 flags) = 0; ># 128 "../../../dist/include/caps/nsIScriptSecurityManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CheckLoadURIStrWithPrincipal(nsIPrincipal *aPrincipal, const nsACString_internal & uri, PRUint32 flags) = 0; ># 137 "../../../dist/include/caps/nsIScriptSecurityManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CheckLoadURIStr(const nsACString_internal & from, const nsACString_internal & uri, PRUint32 flags) = 0; ># 150 "../../../dist/include/caps/nsIScriptSecurityManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CheckFunctionAccess(JSContext * cx, void * funObj, void * targetObj) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CanExecuteScripts(JSContext * cx, nsIPrincipal *principal, PRBool *_retval) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSubjectPrincipal(nsIPrincipal **_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSystemPrincipal(nsIPrincipal **_retval) = 0; ># 182 "../../../dist/include/caps/nsIScriptSecurityManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCertificatePrincipal(const nsACString_internal & aCertFingerprint, const nsACString_internal & aSubjectName, const nsACString_internal & aPrettyName, nsISupports *aCert, nsIURI *aURI, nsIPrincipal **_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCodebasePrincipal(nsIURI *aURI, nsIPrincipal **_retval) = 0; ># 197 "../../../dist/include/caps/nsIScriptSecurityManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RequestCapability(nsIPrincipal *principal, const char *capability, PRInt16 *_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsCapabilityEnabled(const char *capability, PRBool *_retval) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EnableCapability(const char *capability) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RevertCapability(const char *capability) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DisableCapability(const char *capability) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetCanEnableCapability(const nsACString_internal & certificateFingerprint, const char *capability, PRInt16 canEnable) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetObjectPrincipal(JSContext * cx, JSObject * obj, nsIPrincipal **_retval) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SubjectPrincipalIsSystem(PRBool *_retval) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CheckSameOrigin(JSContext * aJSContext, nsIURI *aTargetURI) = 0; ># 261 "../../../dist/include/caps/nsIScriptSecurityManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CheckSameOriginURI(nsIURI *aSourceURI, nsIURI *aTargetURI, PRBool reportError) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrincipalFromContext(JSContext * cx, nsIPrincipal **_retval) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetChannelPrincipal(nsIChannel *aChannel, nsIPrincipal **_retval) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsSystemPrincipal(nsIPrincipal *aPrincipal, PRBool *_retval) = 0; ># 293 "../../../dist/include/caps/nsIScriptSecurityManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsIPrincipal * __attribute__ ((regparm (0), cdecl)) GetCxSubjectPrincipal(JSContext * cx) = 0; > >}; > > template <class Dummy> const nsIID nsIScriptSecurityManager::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x3fffd8e8, 0x3fea, 0x442e, { 0xa0, 0xed, 0x2b, 0xa8, 0x1a, 0xe1, 0x97, 0xd5 }}; ># 72 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsDOMError.h" 1 ># 41 "../../../dist/include/dom/nsDOMError.h" ># 1 "../../../dist/include/xpcom/nsError.h" 1 ># 42 "../../../dist/include/dom/nsDOMError.h" 2 ># 73 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsPIDOMWindow.h" 1 ># 44 "../../../dist/include/dom/nsPIDOMWindow.h" ># 1 "../../../dist/include/dom/nsIDOMLocation.h" 1 ># 25 "../../../dist/include/dom/nsIDOMLocation.h" >class nsIDOMLocation : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHash(nsAString_internal & aHash) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetHash(const nsAString_internal & aHash) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHost(nsAString_internal & aHost) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetHost(const nsAString_internal & aHost) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHostname(nsAString_internal & aHostname) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetHostname(const nsAString_internal & aHostname) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHref(nsAString_internal & aHref) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetHref(const nsAString_internal & aHref) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPathname(nsAString_internal & aPathname) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPathname(const nsAString_internal & aPathname) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPort(nsAString_internal & aPort) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPort(const nsAString_internal & aPort) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetProtocol(nsAString_internal & aProtocol) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetProtocol(const nsAString_internal & aProtocol) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSearch(nsAString_internal & aSearch) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetSearch(const nsAString_internal & aSearch) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Reload(PRBool forceget) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Replace(const nsAString_internal & url) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Assign(const nsAString_internal & url) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(nsAString_internal & _retval) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMLocation::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa6cf906d, 0x15b3, 0x11d2, { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}; ># 45 "../../../dist/include/dom/nsPIDOMWindow.h" 2 ># 1 "../../../dist/include/dom/nsIDOMXULCommandDispatcher.h" 1 ># 17 "../../../dist/include/dom/nsIDOMXULCommandDispatcher.h" >class nsIDOMElement; > >class nsIController; > >class nsIControllers; > >class nsIDOMWindow; ># 33 "../../../dist/include/dom/nsIDOMXULCommandDispatcher.h" >class nsIDOMXULCommandDispatcher : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFocusedElement(nsIDOMElement * *aFocusedElement) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFocusedElement(nsIDOMElement * aFocusedElement) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFocusedWindow(nsIDOMWindow * *aFocusedWindow) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFocusedWindow(nsIDOMWindow * aFocusedWindow) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddCommandUpdater(nsIDOMElement *updater, const nsAString_internal & events, const nsAString_internal & targets) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveCommandUpdater(nsIDOMElement *updater) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) UpdateCommands(const nsAString_internal & eventName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetControllerForCommand(const char *command, nsIController **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetControllers(nsIControllers **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AdvanceFocus(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RewindFocus(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AdvanceFocusIntoSubtree(nsIDOMElement *elt) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSuppressFocusScroll(PRBool *aSuppressFocusScroll) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetSuppressFocusScroll(PRBool aSuppressFocusScroll) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMXULCommandDispatcher::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xf3c50361, 0x14fe, 0x11d3, { 0xbf, 0x87, 0x00, 0x10, 0x5a, 0x1b, 0x06, 0x27 }}; ># 46 "../../../dist/include/dom/nsPIDOMWindow.h" 2 ># 1 "../../../dist/include/dom/nsIDOMElement.h" 1 ># 25 "../../../dist/include/dom/nsIDOMElement.h" >class nsIDOMElement : public nsIDOMNode { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 40 "../../../dist/include/dom/nsIDOMElement.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTagName(nsAString_internal & aTagName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAttribute(const nsAString_internal & name, nsAString_internal & _retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAttribute(const nsAString_internal & name, const nsAString_internal & value) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveAttribute(const nsAString_internal & name) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAttributeNode(const nsAString_internal & name, nsIDOMAttr **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetElementsByTagName(const nsAString_internal & name, nsIDOMNodeList **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAttributeNS(const nsAString_internal & namespaceURI, const nsAString_internal & localName, nsAString_internal & _retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAttributeNS(const nsAString_internal & namespaceURI, const nsAString_internal & qualifiedName, const nsAString_internal & value) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveAttributeNS(const nsAString_internal & namespaceURI, const nsAString_internal & localName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAttributeNodeNS(const nsAString_internal & namespaceURI, const nsAString_internal & localName, nsIDOMAttr **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetElementsByTagNameNS(const nsAString_internal & namespaceURI, const nsAString_internal & localName, nsIDOMNodeList **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HasAttribute(const nsAString_internal & name, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HasAttributeNS(const nsAString_internal & namespaceURI, const nsAString_internal & localName, PRBool *_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMElement::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa6cf9078, 0x15b3, 0x11d2, { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}; ># 47 "../../../dist/include/dom/nsPIDOMWindow.h" 2 ># 1 "../../../dist/include/dom/nsIDOMWindowInternal.h" 1 ># 10 "../../../dist/include/dom/nsIDOMWindowInternal.h" ># 1 "../../../dist/include/dom/nsIDOMWindow2.h" 1 ># 10 "../../../dist/include/dom/nsIDOMWindow2.h" ># 1 "../../../dist/include/dom/nsIDOMWindow.h" 1 ># 17 "../../../dist/include/dom/nsIDOMWindow.h" >class nsISelection; ># 27 "../../../dist/include/dom/nsIDOMWindow.h" >class nsIDOMWindow : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 47 "../../../dist/include/dom/nsIDOMWindow.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDocument(nsIDOMDocument * *aDocument) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetParent(nsIDOMWindow * *aParent) = 0; ># 65 "../../../dist/include/dom/nsIDOMWindow.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTop(nsIDOMWindow * *aTop) = 0; ># 74 "../../../dist/include/dom/nsIDOMWindow.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetScrollbars(nsIDOMBarProp * *aScrollbars) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFrames(nsIDOMWindowCollection * *aFrames) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetName(nsAString_internal & aName) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetName(const nsAString_internal & aName) = 0; ># 100 "../../../dist/include/dom/nsIDOMWindow.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTextZoom(float *aTextZoom) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetTextZoom(float aTextZoom) = 0; ># 110 "../../../dist/include/dom/nsIDOMWindow.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetScrollX(PRInt32 *aScrollX) = 0; ># 119 "../../../dist/include/dom/nsIDOMWindow.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetScrollY(PRInt32 *aScrollY) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ScrollTo(PRInt32 xScroll, PRInt32 yScroll) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSelection(nsISelection **_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ScrollByLines(PRInt32 numLines) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ScrollByPages(PRInt32 numPages) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SizeToContent(void) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMWindow::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa6cf906b, 0x15b3, 0x11d2, { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}; ># 11 "../../../dist/include/dom/nsIDOMWindow2.h" 2 > > > > > > >class nsIDOMOfflineResourceList; ># 27 "../../../dist/include/dom/nsIDOMWindow2.h" >class nsIDOMWindow2 : public nsIDOMWindow { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWindowRoot(nsIDOMEventTarget * *aWindowRoot) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetApplicationCache(nsIDOMOfflineResourceList * *aApplicationCache) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMWindow2::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x73c5fa35, 0x3add, 0x4c87, { 0xa3, 0x03, 0xa8, 0x50, 0xcc, 0xf4, 0xd6, 0x5a }}; ># 11 "../../../dist/include/dom/nsIDOMWindowInternal.h" 2 > > > > > > >class nsIPrompt; > >class nsIControllers; > >class nsIDOMLocation; > >class nsIVariant; ># 33 "../../../dist/include/dom/nsIDOMWindowInternal.h" >class nsIDOMWindowInternal : public nsIDOMWindow2 { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWindow(nsIDOMWindowInternal * *aWindow) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSelf(nsIDOMWindowInternal * *aSelf) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNavigator(nsIDOMNavigator * *aNavigator) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetScreen(nsIDOMScreen * *aScreen) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHistory(nsIDOMHistory * *aHistory) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetContent(nsIDOMWindow * *aContent) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrompter(nsIPrompt * *aPrompter) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMenubar(nsIDOMBarProp * *aMenubar) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetToolbar(nsIDOMBarProp * *aToolbar) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLocationbar(nsIDOMBarProp * *aLocationbar) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPersonalbar(nsIDOMBarProp * *aPersonalbar) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetStatusbar(nsIDOMBarProp * *aStatusbar) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDirectories(nsIDOMBarProp * *aDirectories) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetClosed(PRBool *aClosed) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCrypto(nsIDOMCrypto * *aCrypto) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPkcs11(nsIDOMPkcs11 * *aPkcs11) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetControllers(nsIControllers * *aControllers) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetOpener(nsIDOMWindowInternal * *aOpener) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetOpener(nsIDOMWindowInternal * aOpener) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetStatus(nsAString_internal & aStatus) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetStatus(const nsAString_internal & aStatus) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDefaultStatus(nsAString_internal & aDefaultStatus) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDefaultStatus(const nsAString_internal & aDefaultStatus) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLocation(nsIDOMLocation * *aLocation) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInnerWidth(PRInt32 *aInnerWidth) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetInnerWidth(PRInt32 aInnerWidth) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInnerHeight(PRInt32 *aInnerHeight) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetInnerHeight(PRInt32 aInnerHeight) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetOuterWidth(PRInt32 *aOuterWidth) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetOuterWidth(PRInt32 aOuterWidth) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetOuterHeight(PRInt32 *aOuterHeight) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetOuterHeight(PRInt32 aOuterHeight) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetScreenX(PRInt32 *aScreenX) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetScreenX(PRInt32 aScreenX) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetScreenY(PRInt32 *aScreenY) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetScreenY(PRInt32 aScreenY) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPageXOffset(PRInt32 *aPageXOffset) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPageYOffset(PRInt32 *aPageYOffset) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetScrollMaxX(PRInt32 *aScrollMaxX) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetScrollMaxY(PRInt32 *aScrollMaxY) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLength(PRUint32 *aLength) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFullScreen(PRBool *aFullScreen) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFullScreen(PRBool aFullScreen) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Alert(const nsAString_internal & text) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Confirm(const nsAString_internal & text, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Prompt(const nsAString_internal & aMessage, const nsAString_internal & aInitial, const nsAString_internal & aTitle, PRUint32 aSavePassword, nsAString_internal & _retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Focus(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Blur(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Back(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Forward(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Home(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Stop(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Print(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) MoveTo(PRInt32 xPos, PRInt32 yPos) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) MoveBy(PRInt32 xDif, PRInt32 yDif) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ResizeTo(PRInt32 width, PRInt32 height) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ResizeBy(PRInt32 widthDif, PRInt32 heightDif) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Scroll(PRInt32 xScroll, PRInt32 yScroll) = 0; ># 200 "../../../dist/include/dom/nsIDOMWindowInternal.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Open(const nsAString_internal & url, const nsAString_internal & name, const nsAString_internal & options, nsIDOMWindow **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OpenDialog(const nsAString_internal & url, const nsAString_internal & name, const nsAString_internal & options, nsISupports *aExtraArgument, nsIDOMWindow **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Close(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) UpdateCommands(const nsAString_internal & action) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Find(const nsAString_internal & str, PRBool caseSensitive, PRBool backwards, PRBool wrapAround, PRBool wholeWord, PRBool searchInFrames, PRBool showDialog, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Atob(const nsAString_internal & aAsciiString, nsAString_internal & _retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Btoa(const nsAString_internal & aBase64Data, nsAString_internal & _retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFrameElement(nsIDOMElement * *aFrameElement) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ShowModalDialog(const nsAString_internal & aURI, nsIVariant *aArgs, const nsAString_internal & aOptions, nsIVariant **_retval) = 0; ># 244 "../../../dist/include/dom/nsIDOMWindowInternal.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PostMessageMoz(const nsAString_internal & message, const nsAString_internal & targetOrigin) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMWindowInternal::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x3414ebc7, 0x731f, 0x4697, { 0x9f, 0x43, 0xac, 0xa6, 0xf5, 0x05, 0x08, 0x75 }}; ># 48 "../../../dist/include/dom/nsPIDOMWindow.h" 2 ># 1 "../../../dist/include/content/nsPIDOMEventTarget.h" 1 ># 49 "../../../dist/include/dom/nsPIDOMWindow.h" 2 ># 1 "../../../dist/include/dom/nsIDOMDocument.h" 1 ># 50 "../../../dist/include/dom/nsPIDOMWindow.h" 2 > > > > > >class nsIPrincipal; > > > > > > >enum PopupControlState { > openAllowed = 0, > openControlled, > openAbused, > openOverridden >}; > >class nsIDocShell; >class nsIFocusController; >class nsIDocument; >class nsIScriptTimeoutHandler; >class nsPresContext; >struct nsTimeout; >class nsScriptObjectHolder; >class nsXBLPrototypeHandler; > > > > > >class nsPIDOMWindow : public nsIDOMWindowInternal >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual nsPIDOMWindow* GetPrivateRoot() = 0; > > > > virtual nsresult Activate() = 0; > virtual nsresult Deactivate() = 0; > > nsPIDOMEventTarget* GetChromeEventHandler() const > { > return mChromeEventHandler; > } > > PRBool HasMutationListeners(PRUint32 aMutationEventType) const > { > const nsPIDOMWindow *win; > > if (IsOuterWindow()) { > win = GetCurrentInnerWindow(); > > if (!win) { > do { } while (0); > > return 0; > } > } else { > if (!mOuterWindow) { > do { } while (0); > > return 0; > } > > win = this; > } > > return (win->mMutationBits & aMutationEventType) != 0; > } > > void SetMutationListeners(PRUint32 aType) > { > nsPIDOMWindow *win; > > if (IsOuterWindow()) { > win = GetCurrentInnerWindow(); > > if (!win) { > do { } while (0); > > return; > } > } else { > if (!mOuterWindow) { > do { } while (0); > > return; > } > > win = this; > } > > win->mMutationBits |= aType; > } > > virtual nsIFocusController* GetRootFocusController() = 0; > > > nsIDOMDocument* GetExtantDocument() const > { > return mDocument; > } > > > > > nsIDOMElement* GetFrameElementInternal() const > { > if (mOuterWindow) { > return mOuterWindow->GetFrameElementInternal(); > } > > do { } while (0); > > > return mFrameElement; > } > > void SetFrameElementInternal(nsIDOMElement *aFrameElement) > { > if (IsOuterWindow()) { > mFrameElement = aFrameElement; > > return; > } > > if (!mOuterWindow) { > do { } while (0); > > return; > } > > mOuterWindow->SetFrameElementInternal(aFrameElement); > } > > PRBool IsLoadingOrRunningTimeout() const > { > const nsPIDOMWindow *win = GetCurrentInnerWindow(); > > if (!win) { > win = this; > } > > return !win->mIsDocumentLoaded || win->mRunningTimeout; > } > > > PRBool IsLoading() const > { > const nsPIDOMWindow *win; > > if (IsOuterWindow()) { > win = GetCurrentInnerWindow(); > > if (!win) { > do { } while (0); > > return 0; > } > } else { > if (!mOuterWindow) { > do { } while (0); > > return 0; > } > > win = this; > } > > return !win->mIsDocumentLoaded; > } > > PRBool IsHandlingResizeEvent() const > { > const nsPIDOMWindow *win; > > if (IsOuterWindow()) { > win = GetCurrentInnerWindow(); > > if (!win) { > do { } while (0); > > return 0; > } > } else { > if (!mOuterWindow) { > do { } while (0); > > return 0; > } > > win = this; > } > > return win->mIsHandlingResizeEvent; > } > > > > > > > virtual void SetOpenerScriptPrincipal(nsIPrincipal* aPrincipal) = 0; > > virtual nsIPrincipal* GetOpenerScriptPrincipal() = 0; > > virtual PopupControlState PushPopupControlState(PopupControlState aState, > PRBool aForce) const = 0; > virtual void PopPopupControlState(PopupControlState state) const = 0; > virtual PopupControlState GetPopupControlState() const = 0; > > > > virtual nsresult SaveWindowState(nsISupports **aState) = 0; > > > virtual nsresult RestoreWindowState(nsISupports *aState) = 0; > > > virtual nsresult ResumeTimeouts() = 0; > > > > virtual nsresult FireDelayedDOMEvents() = 0; > > virtual PRBool IsFrozen() const = 0; > > > virtual nsresult SetTimeoutOrInterval(nsIScriptTimeoutHandler *aHandler, > PRInt32 interval, > PRBool aIsInterval, PRInt32 *aReturn) = 0; > > > virtual nsresult ClearTimeoutOrInterval(PRInt32 aTimerID) = 0; > > nsPIDOMWindow *GetOuterWindow() > { > return mIsInnerWindow ? mOuterWindow : this; > } > > nsPIDOMWindow *GetCurrentInnerWindow() const > { > return mInnerWindow; > } > > nsPIDOMWindow *EnsureInnerWindow() > { > do { } while (0); > > nsCOMPtr<nsIDOMDocument> doc; > GetDocument(getter_AddRefs(doc)); > return GetCurrentInnerWindow(); > } > > PRBool IsInnerWindow() const > { > return mIsInnerWindow; > } > > PRBool IsOuterWindow() const > { > return !IsInnerWindow(); > } > > virtual PRBool WouldReuseInnerWindow(nsIDocument *aNewDocument) = 0; > > > > > nsIDocShell *GetDocShell() > { > if (mOuterWindow) { > return mOuterWindow->mDocShell; > } > > return mDocShell; > } > > > > > virtual void SetDocShell(nsIDocShell *aDocShell) = 0; ># 347 "../../../dist/include/dom/nsPIDOMWindow.h" > virtual nsresult SetNewDocument(nsIDocument *aDocument, > nsISupports *aState, > PRBool aClearScope) = 0; ># 358 "../../../dist/include/dom/nsPIDOMWindow.h" > virtual void SetOpenerWindow(nsIDOMWindowInternal *aOpener, > PRBool aOriginalOpener) = 0; > > virtual void EnsureSizeUpToDate() = 0; > > > > > > virtual void EnterModalState() = 0; > virtual void LeaveModalState() = 0; > > void SetModalContentWindow(PRBool aIsModalContentWindow) > { > mIsModalContentWindow = aIsModalContentWindow; > } > > PRBool IsModalContentWindow() const > { > return mIsModalContentWindow; > } > > > > > > virtual void InitJavaProperties() = 0; > > virtual void* GetCachedXBLPrototypeHandler(nsXBLPrototypeHandler* aKey) = 0; > virtual void CacheXBLPrototypeHandler(nsXBLPrototypeHandler* aKey, > nsScriptObjectHolder& aHandler) = 0; > >protected: > > > > > nsPIDOMWindow(nsPIDOMWindow *aOuterWindow) > : mFrameElement(0), mDocShell(0), mModalStateDepth(0), > mRunningTimeout(0), mMutationBits(0), mIsDocumentLoaded(0), > mIsHandlingResizeEvent(0), mIsInnerWindow(aOuterWindow != 0), > mIsModalContentWindow(0), mInnerWindow(0), > mOuterWindow(aOuterWindow) > { > } > > > > > nsCOMPtr<nsPIDOMEventTarget> mChromeEventHandler; > nsCOMPtr<nsIDOMDocument> mDocument; > > > nsIDOMElement *mFrameElement; > nsIDocShell *mDocShell; > > PRUint32 mModalStateDepth; > > > nsTimeout *mRunningTimeout; > > PRUint32 mMutationBits; > > PRPackedBool mIsDocumentLoaded; > PRPackedBool mIsHandlingResizeEvent; > PRPackedBool mIsInnerWindow; > > > > PRPackedBool mIsModalContentWindow; > > > nsPIDOMWindow *mInnerWindow; > nsPIDOMWindow *mOuterWindow; >}; > > >template <class Dummy> const nsIID nsPIDOMWindow::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x909852b5, 0xb9e6, 0x4d94, { 0x8d, 0xe3, 0x05, 0x16, 0x34, 0x80, 0x0b, 0x73 } }; > > >PopupControlState >PushPopupControlState(PopupControlState aState, PRBool aForce); > >void >PopPopupControlState(PopupControlState aState); ># 455 "../../../dist/include/dom/nsPIDOMWindow.h" >class nsAutoPopupStatePusherInternal >{ >public: > > nsAutoPopupStatePusherInternal(PopupControlState aState, PRBool aForce = 0) > : mOldState(::PushPopupControlState(aState, aForce)) > { > } > > ~nsAutoPopupStatePusherInternal() > { > PopPopupControlState(mOldState); > } ># 485 "../../../dist/include/dom/nsPIDOMWindow.h" >protected: > > > > PopupControlState mOldState; > >private: > > static void* operator new(size_t ) throw() { return 0; } > static void operator delete(void* ) {} >}; ># 74 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/xpconnect/nsIJSContextStack.h" 1 ># 25 "../../../dist/include/xpconnect/nsIJSContextStack.h" >class nsIJSContextStack : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCount(PRInt32 *aCount) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Peek(JSContext * *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Pop(JSContext * *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Push(JSContext * cx) = 0; > >}; > > template <class Dummy> const nsIID nsIJSContextStack::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xc67d8270, 0x3189, 0x11d3, { 0x98, 0x85, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 134 "../../../dist/include/xpconnect/nsIJSContextStack.h" >class nsIJSContextStackIterator : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Reset(nsIJSContextStack *stack) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Done(PRBool *_retval) = 0; ># 162 "../../../dist/include/xpconnect/nsIJSContextStack.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Prev(JSContext * *_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIJSContextStackIterator::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xc7e6b7aa, 0xfc12, 0x4ca7, { 0xb1, 0x40, 0x98, 0xc3, 0x8b, 0x69, 0x89, 0x61 }}; ># 247 "../../../dist/include/xpconnect/nsIJSContextStack.h" >class nsIThreadJSContextStack : public nsIJSContextStack { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSafeJSContext(JSContext * *aSafeJSContext) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetSafeJSContext(JSContext * aSafeJSContext) = 0; > >}; > > template <class Dummy> const nsIID nsIThreadJSContextStack::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa1339ae0, 0x05c1, 0x11d4, { 0x8f, 0x92, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}; ># 75 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/docshell/nsIDocShell.h" 1 ># 17 "../../../dist/include/docshell/nsIDocShell.h" >class nsPresContext; >class nsIPresShell; >class nsIURI; > >class nsIChannel; > >class nsIContentViewer; > >class nsIURIContentListener; > >class nsIDOMEventTarget; > >class nsIDocShellLoadInfo; > >class nsIDocumentCharsetInfo; > >class nsIWebNavigation; > >class nsISimpleEnumerator; > >class nsIInputStream; > >class nsIRequest; > >class nsISHEntry; > >class nsILayoutHistoryState; > >class nsISecureBrowserUI; > >class nsIDOMStorage; ># 57 "../../../dist/include/docshell/nsIDocShell.h" >class nsIDocShell : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 79 "../../../dist/include/docshell/nsIDocShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, PRBool firstParty) = 0; ># 101 "../../../dist/include/docshell/nsIDocShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString_internal & aContentType, const nsACString_internal & aContentCharset, nsIDocShellLoadInfo *aLoadInfo) = 0; > > enum { INTERNAL_LOAD_FLAGS_NONE = 0 }; > > enum { INTERNAL_LOAD_FLAGS_INHERIT_OWNER = 1 }; > > enum { INTERNAL_LOAD_FLAGS_DONT_SEND_REFERRER = 2 }; > > enum { INTERNAL_LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP = 4 }; > > enum { INTERNAL_LOAD_FLAGS_FIRST_LOAD = 8 }; > > enum { INTERNAL_LOAD_FLAGS_BYPASS_CLASSIFIER = 16 }; ># 137 "../../../dist/include/docshell/nsIDocShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar *aWindowTarget, const char *aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags, nsISHEntry *aSHEntry, PRBool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateLoadInfo(nsIDocShellLoadInfo **loadInfo) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PrepareForNewContentModel(void) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetCurrentURI(nsIURI *aURI) = 0; ># 170 "../../../dist/include/docshell/nsIDocShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FirePageHideNotification(PRBool isUnload) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPresContext(nsPresContext * *aPresContext) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPresShell(nsIPresShell * *aPresShell) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetEldestPresShell(nsIPresShell * *aEldestPresShell) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetContentViewer(nsIContentViewer * *aContentViewer) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetChromeEventHandler(nsIDOMEventTarget * *aChromeEventHandler) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetChromeEventHandler(nsIDOMEventTarget * aChromeEventHandler) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDocumentCharsetInfo(nsIDocumentCharsetInfo * *aDocumentCharsetInfo) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDocumentCharsetInfo(nsIDocumentCharsetInfo * aDocumentCharsetInfo) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAllowPlugins(PRBool *aAllowPlugins) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAllowPlugins(PRBool aAllowPlugins) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAllowJavascript(PRBool *aAllowJavascript) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAllowJavascript(PRBool aAllowJavascript) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAllowMetaRedirects(PRBool *aAllowMetaRedirects) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAllowMetaRedirects(PRBool aAllowMetaRedirects) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAllowSubframes(PRBool *aAllowSubframes) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAllowSubframes(PRBool aAllowSubframes) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAllowImages(PRBool *aAllowImages) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAllowImages(PRBool aAllowImages) = 0; ># 257 "../../../dist/include/docshell/nsIDocShell.h" > enum { ENUMERATE_FORWARDS = 0 }; > > enum { ENUMERATE_BACKWARDS = 1 }; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator **_retval) = 0; > > > > > enum { APP_TYPE_UNKNOWN = 0U }; > > enum { APP_TYPE_MAIL = 1U }; > > enum { APP_TYPE_EDITOR = 2U }; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAppType(PRUint32 *aAppType) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAppType(PRUint32 aAppType) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAllowAuth(PRBool *aAllowAuth) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAllowAuth(PRBool aAllowAuth) = 0; ># 295 "../../../dist/include/docshell/nsIDocShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetZoom(float *aZoom) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetZoom(float aZoom) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMarginWidth(PRInt32 *aMarginWidth) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetMarginWidth(PRInt32 aMarginWidth) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMarginHeight(PRInt32 *aMarginHeight) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetMarginHeight(PRInt32 aMarginHeight) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHasFocus(PRBool *aHasFocus) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetHasFocus(PRBool aHasFocus) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCanvasHasFocus(PRBool *aCanvasHasFocus) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetCanvasHasFocus(PRBool aCanvasHasFocus) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) TabToTreeOwner(PRBool forward, PRBool *tookFocus) = 0; > > > > > enum { BUSY_FLAGS_NONE = 0U }; > > enum { BUSY_FLAGS_BUSY = 1U }; > > enum { BUSY_FLAGS_BEFORE_PAGE_LOAD = 2U }; > > enum { BUSY_FLAGS_PAGE_LOADING = 4U }; > > > > > enum { LOAD_CMD_NORMAL = 1U }; > > enum { LOAD_CMD_RELOAD = 2U }; > > enum { LOAD_CMD_HISTORY = 4U }; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetBusyFlags(PRUint32 *aBusyFlags) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLoadType(PRUint32 *aLoadType) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetLoadType(PRUint32 aLoadType) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsBeingDestroyed(PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIsExecutingOnLoadHandler(PRBool *aIsExecutingOnLoadHandler) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLayoutHistoryState(nsILayoutHistoryState * *aLayoutHistoryState) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetLayoutHistoryState(nsILayoutHistoryState * aLayoutHistoryState) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetShouldSaveLayoutState(PRBool *aShouldSaveLayoutState) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSecurityUI(nsISecureBrowserUI * *aSecurityUI) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetSecurityUI(nsISecureBrowserUI * aSecurityUI) = 0; ># 372 "../../../dist/include/docshell/nsIDocShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SuspendRefreshURIs(void) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ResumeRefreshURIs(void) = 0; ># 392 "../../../dist/include/docshell/nsIDocShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) BeginRestore(nsIContentViewer *viewer, PRBool top) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FinishRestore(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRestoringDocument(PRBool *aRestoringDocument) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetUseErrorPages(PRBool *aUseErrorPages) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetUseErrorPages(PRBool aUseErrorPages) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPreviousTransIndex(PRInt32 *aPreviousTransIndex) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLoadedTransIndex(PRInt32 *aLoadedTransIndex) = 0; ># 427 "../../../dist/include/docshell/nsIDocShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HistoryPurged(PRInt32 numEntries) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSessionStorageForURI(nsIURI *uri, nsIDOMStorage **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddSessionStorage(const nsACString_internal & aDomain, nsIDOMStorage *storage) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCurrentDocumentChannel(nsIChannel * *aCurrentDocumentChannel) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetChildOffset(PRUint32 offset) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIsInUnload(PRBool *aIsInUnload) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetChannelIsUnsafe(PRBool *aChannelIsUnsafe) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) DetachEditorFromWindow(void) = 0; > >}; > > template <class Dummy> const nsIID nsIDocShell::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x7d1cf6b9, 0xdaa3, 0x476d, { 0x8f, 0x9f, 0x9e, 0xb2, 0xa9, 0x71, 0xa9, 0x5c }}; ># 76 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/docshell/nsIDocShellTreeItem.h" 1 ># 10 "../../../dist/include/docshell/nsIDocShellTreeItem.h" ># 1 "../../../dist/include/docshell/nsIDocShellTreeNode.h" 1 ># 17 "../../../dist/include/docshell/nsIDocShellTreeNode.h" >class nsIDocShellTreeItem; ># 32 "../../../dist/include/docshell/nsIDocShellTreeNode.h" >class nsIDocShellTreeNode : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetChildCount(PRInt32 *aChildCount) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddChild(nsIDocShellTreeItem *child) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveChild(nsIDocShellTreeItem *child) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetChildAt(PRInt32 index, nsIDocShellTreeItem **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FindChildWithName(const PRUnichar *aName, PRBool aRecurse, PRBool aSameType, nsIDocShellTreeItem *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIDocShellTreeNode::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x37f1ab73, 0xf224, 0x44b1, { 0x82, 0xf0, 0xd2, 0x83, 0x4a, 0xb1, 0xce, 0xc0 }}; ># 11 "../../../dist/include/docshell/nsIDocShellTreeItem.h" 2 > > > > > > >class nsIDocShellTreeOwner; ># 27 "../../../dist/include/docshell/nsIDocShellTreeItem.h" >class nsIDocShellTreeItem : public nsIDocShellTreeNode { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetName(PRUnichar * *aName) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetName(const PRUnichar * aName) = 0; ># 49 "../../../dist/include/docshell/nsIDocShellTreeItem.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NameEquals(const PRUnichar *name, PRBool *_retval) = 0; > > enum { typeChrome = 0 }; > > enum { typeContent = 1 }; > > enum { typeContentWrapper = 2 }; > > enum { typeChromeWrapper = 3 }; > > enum { typeAll = 2147483647 }; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetItemType(PRInt32 *aItemType) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetItemType(PRInt32 aItemType) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetParent(nsIDocShellTreeItem * *aParent) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSameTypeParent(nsIDocShellTreeItem * *aSameTypeParent) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRootTreeItem(nsIDocShellTreeItem * *aRootTreeItem) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSameTypeRootTreeItem(nsIDocShellTreeItem * *aSameTypeRootTreeItem) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FindItemWithName(const PRUnichar *name, nsISupports *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTreeOwner(nsIDocShellTreeOwner * *aTreeOwner) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetTreeOwner(nsIDocShellTreeOwner *treeOwner) = 0; > >}; > > template <class Dummy> const nsIID nsIDocShellTreeItem::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x09b54ec1, 0xd98a, 0x49a9, { 0xbc, 0x95, 0x32, 0x19, 0xe8, 0xb5, 0x50, 0x89 }}; ># 77 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/htmlparser/nsParserCIID.h" 1 ># 41 "../../../dist/include/htmlparser/nsParserCIID.h" ># 1 "../../../dist/include/xpcom/nsISupports.h" 1 ># 42 "../../../dist/include/htmlparser/nsParserCIID.h" 2 ># 1 "../../../dist/include/xpcom/nsIFactory.h" 1 ># 43 "../../../dist/include/htmlparser/nsParserCIID.h" 2 ># 1 "../../../dist/include/xpcom/nsIComponentManager.h" 1 ># 44 "../../../dist/include/htmlparser/nsParserCIID.h" 2 ># 78 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/htmlparser/nsIParser.h" 1 ># 51 "../../../dist/include/htmlparser/nsIParser.h" ># 1 "../../../dist/include/necko/nsIStreamListener.h" 1 ># 52 "../../../dist/include/htmlparser/nsIParser.h" 2 ># 1 "../../../dist/include/htmlparser/nsIDTD.h" 1 ># 57 "../../../dist/include/htmlparser/nsIDTD.h" ># 1 "../../../dist/include/xpcom/nsStringGlue.h" 1 ># 58 "../../../dist/include/htmlparser/nsIDTD.h" 2 ># 1 "../../../dist/include/nspr/prtypes.h" 1 ># 59 "../../../dist/include/htmlparser/nsIDTD.h" 2 ># 1 "../../../dist/include/htmlparser/nsITokenizer.h" 1 ># 51 "../../../dist/include/htmlparser/nsITokenizer.h" >class CToken; >class nsScanner; >class nsDeque; >class nsTokenAllocator; ># 63 "../../../dist/include/htmlparser/nsITokenizer.h" >class nsITokenObserver { >public: > virtual PRBool operator()(CToken* aToken)=0; >}; > > > > > > >class nsITokenizer : public nsISupports { >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WillTokenize(PRBool aIsFinalChunk,nsTokenAllocator* aTokenAllocator)=0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ConsumeToken(nsScanner& aScanner,PRBool& aFlushTokens)=0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DidTokenize(PRBool aIsFinalChunk)=0; > > virtual __attribute__ ((visibility ("hidden"))) CToken* __attribute__ ((regparm (0), cdecl)) PushTokenFront(CToken* aToken)=0; > virtual __attribute__ ((visibility ("hidden"))) CToken* __attribute__ ((regparm (0), cdecl)) PushToken(CToken* aToken)=0; > virtual __attribute__ ((visibility ("hidden"))) CToken* __attribute__ ((regparm (0), cdecl)) PopToken(void)=0; > virtual __attribute__ ((visibility ("hidden"))) CToken* __attribute__ ((regparm (0), cdecl)) PeekToken(void)=0; > virtual __attribute__ ((visibility ("hidden"))) CToken* __attribute__ ((regparm (0), cdecl)) GetTokenAt(PRInt32 anIndex)=0; > virtual __attribute__ ((visibility ("hidden"))) PRInt32 __attribute__ ((regparm (0), cdecl)) GetCount(void)=0; > virtual __attribute__ ((visibility ("hidden"))) nsTokenAllocator* __attribute__ ((regparm (0), cdecl)) GetTokenAllocator(void)=0; > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) PrependTokens(nsDeque& aDeque)=0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CopyState(nsITokenizer* aTokenizer)=0; > >}; > >template <class Dummy> const nsIID nsITokenizer::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xe4238ddc, 0x9eb6, 0x11d2, {0xba, 0xa5, 0x0, 0x10, 0x4b, 0x98, 0x3f, 0xd4 }}; ># 60 "../../../dist/include/htmlparser/nsIDTD.h" 2 > > > > > > >enum eAutoDetectResult { > eUnknownDetect, > eValidDetect, > ePrimaryDetect, > eInvalidDetect >}; > >enum nsDTDMode { > eDTDMode_unknown = 0, > eDTDMode_quirks, > eDTDMode_almost_standards, > eDTDMode_full_standards, > eDTDMode_autodetect, > eDTDMode_fragment >}; > > >class nsIParser; >class CToken; >class nsIURI; >class nsIContentSink; >class CParserContext; > >class nsIDTD : public nsISupports >{ >public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WillBuildModel(const CParserContext& aParserContext, > nsITokenizer* aTokenizer, > nsIContentSink* aSink) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DidBuildModel(nsresult anErrorCode, PRBool aNotifySink, > nsIParser* aParser, > nsIContentSink* aSink) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) BuildModel(nsIParser* aParser, nsITokenizer* aTokenizer, > nsITokenObserver* anObserver, > nsIContentSink* aSink) = 0; ># 129 "../../../dist/include/htmlparser/nsIDTD.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HandleToken(CToken* aToken,nsIParser* aParser) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WillResumeParse(nsIContentSink* aSink) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WillInterruptParse(nsIContentSink* aSink) = 0; ># 156 "../../../dist/include/htmlparser/nsIDTD.h" > virtual __attribute__ ((visibility ("hidden"))) PRBool __attribute__ ((regparm (0), cdecl)) CanContain(PRInt32 aParent,PRInt32 aChild) const = 0; ># 166 "../../../dist/include/htmlparser/nsIDTD.h" > virtual __attribute__ ((visibility ("hidden"))) PRBool __attribute__ ((regparm (0), cdecl)) IsContainer(PRInt32 aTag) const = 0; ># 178 "../../../dist/include/htmlparser/nsIDTD.h" > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) Terminate() = 0; > > virtual __attribute__ ((visibility ("hidden"))) PRInt32 __attribute__ ((regparm (0), cdecl)) GetType() = 0; >}; > >template <class Dummy> const nsIID nsIDTD::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0xcc374204, 0xcea2, 0x41a2, { 0xb2, 0x7f, 0x83, 0x75, 0xe2, 0xcf, 0x97, 0xcf } }; ># 53 "../../../dist/include/htmlparser/nsIParser.h" 2 > ># 1 "../../../dist/include/xpcom/nsTArray.h" 1 ># 55 "../../../dist/include/htmlparser/nsIParser.h" 2 ># 67 "../../../dist/include/htmlparser/nsIParser.h" >class nsIContentSink; >class nsIRequestObserver; >class nsIParserFilter; >class nsString; >class nsIURI; >class nsIChannel; > >enum eParserCommands { > eViewNormal, > eViewSource, > eViewFragment, > eViewErrors >}; > >enum eParserDocType { > ePlainText = 0, > eXML, > eHTML_Quirks, > eHTML3_Quirks, > eHTML_Strict >}; ># 110 "../../../dist/include/htmlparser/nsIParser.h" >enum eStreamState {eNone,eOnStart,eOnDataAvail,eOnStop}; ># 121 "../../../dist/include/htmlparser/nsIParser.h" >class nsIDebugDumpContent : public nsISupports { >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DumpContentModel()=0; >}; > >template <class Dummy> const nsIID nsIDebugDumpContent::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x41421c60, 0x310a, 0x11d4, { 0x81, 0x6f, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74 } }; > > > > > >class nsIParser : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) SetContentSink(nsIContentSink* aSink)=0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsIContentSink* __attribute__ ((regparm (0), cdecl)) GetContentSink(void)=0; ># 163 "../../../dist/include/htmlparser/nsIParser.h" > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) GetCommand(nsCString& aCommand)=0; > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) SetCommand(const char* aCommand)=0; > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) SetCommand(eParserCommands aParserCommand)=0; ># 176 "../../../dist/include/htmlparser/nsIParser.h" > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) SetDocumentCharset(const nsACString_internal& aCharset, PRInt32 aSource)=0; > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) GetDocumentCharset(nsACString_internal& oCharset, PRInt32& oSource)=0; > > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) SetParserFilter(nsIParserFilter* aFilter) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetChannel(nsIChannel** aChannel) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDTD(nsIDTD** aDTD) = 0; ># 204 "../../../dist/include/htmlparser/nsIParser.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ContinueParsing() = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ContinueInterruptedParsing() = 0; > > > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) BlockParser() = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) UnblockParser() = 0; > > virtual __attribute__ ((visibility ("hidden"))) PRBool __attribute__ ((regparm (0), cdecl)) IsParserEnabled() = 0; > virtual __attribute__ ((visibility ("hidden"))) PRBool __attribute__ ((regparm (0), cdecl)) IsComplete() = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Parse(nsIURI* aURL, > nsIRequestObserver* aListener = 0, > void* aKey = 0, > nsDTDMode aMode = eDTDMode_autodetect) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Parse(const nsAString_internal& aSourceBuffer, > void* aKey, > const nsACString_internal& aMimeType, > PRBool aLastCall, > nsDTDMode aMode = eDTDMode_autodetect) = 0; > > > > virtual __attribute__ ((visibility ("hidden"))) void * __attribute__ ((regparm (0), cdecl)) GetRootContextKey() = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Terminate(void) = 0; ># 255 "../../../dist/include/htmlparser/nsIParser.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ParseFragment(const nsAString_internal& aSourceBuffer, > void* aKey, > nsTArray<nsString>& aTagStack, > PRBool aXMLMode, > const nsACString_internal& aContentType, > nsDTDMode aMode = eDTDMode_autodetect) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) BuildModel(void) = 0; ># 277 "../../../dist/include/htmlparser/nsIParser.h" > virtual __attribute__ ((visibility ("hidden"))) nsDTDMode __attribute__ ((regparm (0), cdecl)) GetParseMode(void) = 0; ># 289 "../../../dist/include/htmlparser/nsIParser.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CancelParsingEvents() = 0; > > virtual void Reset() = 0; >}; > >template <class Dummy> const nsIID nsIParser::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x506527cc, 0xd832, 0x420b, { 0xba, 0x3a, 0x80, 0xc0, 0x5a, 0xa1, 0x05, 0xf4 } }; > > > > > > ># 1 "../../../dist/include/xpcom/nsError.h" 1 ># 302 "../../../dist/include/htmlparser/nsIParser.h" 2 ># 327 "../../../dist/include/htmlparser/nsIParser.h" >const PRUint32 kEOF = ((nsresult) (((PRUint32)(1)<<31) | ((PRUint32)(9 +0x45)<<16) | ((PRUint32)(1000))) ); >const PRUint32 kUnknownError = ((nsresult) (((PRUint32)(1)<<31) | ((PRUint32)(9 +0x45)<<16) | ((PRUint32)(1001))) ); >const PRUint32 kCantPropagate = ((nsresult) (((PRUint32)(1)<<31) | ((PRUint32)(9 +0x45)<<16) | ((PRUint32)(1002))) ); >const PRUint32 kContextMismatch = ((nsresult) (((PRUint32)(1)<<31) | ((PRUint32)(9 +0x45)<<16) | ((PRUint32)(1003))) ); >const PRUint32 kBadFilename = ((nsresult) (((PRUint32)(1)<<31) | ((PRUint32)(9 +0x45)<<16) | ((PRUint32)(1004))) ); >const PRUint32 kBadURL = ((nsresult) (((PRUint32)(1)<<31) | ((PRUint32)(9 +0x45)<<16) | ((PRUint32)(1005))) ); >const PRUint32 kInvalidParserContext = ((nsresult) (((PRUint32)(1)<<31) | ((PRUint32)(9 +0x45)<<16) | ((PRUint32)(1006))) ); >const PRUint32 kBlocked = ((nsresult) (((PRUint32)(1)<<31) | ((PRUint32)(9 +0x45)<<16) | ((PRUint32)(1008))) ); >const PRUint32 kBadStringLiteral = ((nsresult) (((PRUint32)(1)<<31) | ((PRUint32)(9 +0x45)<<16) | ((PRUint32)(1016))) ); >const PRUint32 kHierarchyTooDeep = ((nsresult) (((PRUint32)(1)<<31) | ((PRUint32)(9 +0x45)<<16) | ((PRUint32)(1017))) ); >const PRUint32 kFakeEndTag = ((nsresult) (((PRUint32)(1)<<31) | ((PRUint32)(9 +0x45)<<16) | ((PRUint32)(1018))) ); >const PRUint32 kNotAComment = ((nsresult) (((PRUint32)(1)<<31) | ((PRUint32)(9 +0x45)<<16) | ((PRUint32)(1019))) ); > >const PRUnichar kNewLine = '\n'; >const PRUnichar kCR = '\r'; >const PRUnichar kLF = '\n'; >const PRUnichar kTab = '\t'; >const PRUnichar kSpace = ' '; >const PRUnichar kQuote = '"'; >const PRUnichar kApostrophe = '\''; >const PRUnichar kLessThan = '<'; >const PRUnichar kGreaterThan = '>'; >const PRUnichar kAmpersand = '&'; >const PRUnichar kForwardSlash = '/'; >const PRUnichar kBackSlash = '\\'; >const PRUnichar kEqual = '='; >const PRUnichar kMinus = '-'; >const PRUnichar kPlus = '+'; >const PRUnichar kExclamation = '!'; >const PRUnichar kSemicolon = ';'; >const PRUnichar kHashsign = '#'; >const PRUnichar kAsterisk = '*'; >const PRUnichar kUnderbar = '_'; >const PRUnichar kComma = ','; >const PRUnichar kLeftParen = '('; >const PRUnichar kRightParen = ')'; >const PRUnichar kLeftBrace = '{'; >const PRUnichar kRightBrace = '}'; >const PRUnichar kQuestionMark = '?'; >const PRUnichar kLeftSquareBracket = '['; >const PRUnichar kRightSquareBracket = ']'; >const PRUnichar kNullCh = '\0'; ># 79 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/htmlparser/nsIFragmentContentSink.h" 1 ># 42 "../../../dist/include/htmlparser/nsIFragmentContentSink.h" >class nsIDOMDocumentFragment; >class nsIDocument; ># 55 "../../../dist/include/htmlparser/nsIFragmentContentSink.h" >class nsIFragmentContentSink : public nsISupports { >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 66 "../../../dist/include/htmlparser/nsIFragmentContentSink.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFragment(PRBool aWillOwnFragment, > nsIDOMDocumentFragment** aFragment) = 0; ># 77 "../../../dist/include/htmlparser/nsIFragmentContentSink.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetTargetDocument(nsIDocument* aDocument) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WillBuildContent() = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DidBuildContent() = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IgnoreFirstContainer() = 0; >}; > >template <class Dummy> const nsIID nsIFragmentContentSink::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x1ecdb30d, 0x1f10, 0x45d2, { 0xa4, 0xf4, 0xec, 0xbc, 0x03, 0x52, 0x9a, 0x7e } }; ># 122 "../../../dist/include/htmlparser/nsIFragmentContentSink.h" >nsresult >NS_NewXMLFragmentContentSink(nsIFragmentContentSink** aInstancePtrResult); >nsresult >NS_NewXMLFragmentContentSink2(nsIFragmentContentSink** aInstancePtrResult); > > > >nsresult >NS_NewXHTMLParanoidFragmentSink(nsIFragmentContentSink** aInstancePtrResult); >void >NS_XHTMLParanoidFragmentSinkShutdown(); ># 80 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/htmlparser/nsIContentSink.h" 1 ># 54 "../../../dist/include/htmlparser/nsIContentSink.h" ># 1 "../../../dist/include/content/mozFlushType.h" 1 ># 55 "../../../dist/include/htmlparser/nsIContentSink.h" 2 > >class nsIParser; > > > > > >class nsIContentSink : public nsISupports { >public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 76 "../../../dist/include/htmlparser/nsIContentSink.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WillTokenize(void)=0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WillBuildModel(void)=0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DidBuildModel()=0; ># 101 "../../../dist/include/htmlparser/nsIContentSink.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WillInterrupt(void)=0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WillResume(void)=0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetParser(nsIParser* aParser)=0; > > > > > > > > virtual void FlushPendingNotifications(mozFlushType aType)=0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDocumentCharset(nsACString_internal& aCharset)=0; > > > > > > > virtual nsISupports *GetTarget()=0; >}; > >template <class Dummy> const nsIID nsIContentSink::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x94ec4df1, 0x6885, 0x4b1f, { 0x85, 0x10, 0xe3, 0x5f, 0x4f, 0x36, 0xea, 0xaa } }; ># 81 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/htmlparser/nsIHTMLContentSink.h" 1 ># 81 "../../../dist/include/htmlparser/nsIHTMLContentSink.h" ># 1 "../../../dist/include/htmlparser/nsIParserNode.h" 1 ># 61 "../../../dist/include/htmlparser/nsIParserNode.h" ># 1 "../../../dist/include/xpcom/nsDebug.h" 1 ># 62 "../../../dist/include/htmlparser/nsIParserNode.h" 2 > > > > >class nsIAtom; >class CToken; ># 82 "../../../dist/include/htmlparser/nsIParserNode.h" >class nsIParserNode { > > public: > > > > > > > > virtual const nsAString_internal& GetTagName() const = 0; > > > > > > > virtual const nsAString_internal& GetText() const = 0; > > > > > > > virtual PRInt32 GetNodeType() const =0; > > > > > > > virtual PRInt32 GetTokenType() const =0; > > > > > > > virtual PRInt32 GetAttributeCount(PRBool askToken=0) const =0; > > > > > > > > virtual const nsAString_internal& GetKeyAt(PRUint32 anIndex) const = 0; > > > > > > > > virtual const nsAString_internal& GetValueAt(PRUint32 anIndex) const = 0; ># 145 "../../../dist/include/htmlparser/nsIParserNode.h" > virtual PRInt32 TranslateToUnicodeStr(nsString& aString) const = 0; > > > virtual void AddAttribute(CToken* aToken)=0; > > > > > > > > virtual PRInt32 GetSourceLineNumber(void) const =0; > > > > > > > virtual PRBool GetGenericState(void) const =0; > virtual void SetGenericState(PRBool aState) =0; > > > > > > virtual void GetSource(nsString& aString) const = 0; > > > > > > virtual nsresult ReleaseAll()=0; >}; ># 82 "../../../dist/include/htmlparser/nsIHTMLContentSink.h" 2 ># 1 "../../../dist/include/htmlparser/nsIContentSink.h" 1 ># 83 "../../../dist/include/htmlparser/nsIHTMLContentSink.h" 2 ># 1 "../../../dist/include/htmlparser/nsHTMLTags.h" 1 ># 42 "../../../dist/include/htmlparser/nsHTMLTags.h" ># 1 "../../../dist/include/nspr/plhash.h" 1 ># 43 "../../../dist/include/htmlparser/nsHTMLTags.h" 2 > >class nsIAtom; ># 55 "../../../dist/include/htmlparser/nsHTMLTags.h" >enum nsHTMLTag { > > eHTMLTag_unknown = 0, ># 1 "../../../dist/include/htmlparser/nsHTMLTagList.h" 1 ># 66 "../../../dist/include/htmlparser/nsHTMLTagList.h" >eHTMLTag_a, >eHTMLTag_abbr, >eHTMLTag_acronym, >eHTMLTag_address, >eHTMLTag_applet, >eHTMLTag_area, >eHTMLTag_b, >eHTMLTag_base, >eHTMLTag_basefont, >eHTMLTag_bdo, >eHTMLTag_bgsound, >eHTMLTag_big, >eHTMLTag_blink, >eHTMLTag_blockquote, >eHTMLTag_body, >eHTMLTag_br, >eHTMLTag_button, >eHTMLTag_canvas, >eHTMLTag_caption, >eHTMLTag_center, >eHTMLTag_cite, >eHTMLTag_code, >eHTMLTag_col, >eHTMLTag_colgroup, >eHTMLTag_dd, >eHTMLTag_del, >eHTMLTag_dfn, >eHTMLTag_dir, >eHTMLTag_div, >eHTMLTag_dl, >eHTMLTag_dt, >eHTMLTag_em, >eHTMLTag_embed, >eHTMLTag_fieldset, >eHTMLTag_font, >eHTMLTag_form, >eHTMLTag_frame, >eHTMLTag_frameset, >eHTMLTag_h1, >eHTMLTag_h2, >eHTMLTag_h3, >eHTMLTag_h4, >eHTMLTag_h5, >eHTMLTag_h6, >eHTMLTag_head, >eHTMLTag_hr, >eHTMLTag_html, >eHTMLTag_i, >eHTMLTag_iframe, >eHTMLTag_image, >eHTMLTag_img, >eHTMLTag_input, >eHTMLTag_ins, >eHTMLTag_isindex, >eHTMLTag_kbd, >eHTMLTag_keygen, >eHTMLTag_label, >eHTMLTag_legend, >eHTMLTag_li, >eHTMLTag_link, >eHTMLTag_listing, >eHTMLTag_map, >eHTMLTag_marquee, >eHTMLTag_menu, >eHTMLTag_meta, >eHTMLTag_multicol, >eHTMLTag_nobr, >eHTMLTag_noembed, >eHTMLTag_noframes, >eHTMLTag_noscript, >eHTMLTag_object, >eHTMLTag_ol, >eHTMLTag_optgroup, >eHTMLTag_option, >eHTMLTag_p, >eHTMLTag_param, >eHTMLTag_plaintext, >eHTMLTag_pre, >eHTMLTag_q, >eHTMLTag_s, >eHTMLTag_samp, >eHTMLTag_script, >eHTMLTag_select, >eHTMLTag_small, >eHTMLTag_spacer, >eHTMLTag_span, >eHTMLTag_strike, >eHTMLTag_strong, >eHTMLTag_style, >eHTMLTag_sub, >eHTMLTag_sup, >eHTMLTag_table, >eHTMLTag_tbody, >eHTMLTag_td, >eHTMLTag_textarea, >eHTMLTag_tfoot, >eHTMLTag_th, >eHTMLTag_thead, >eHTMLTag_title, >eHTMLTag_tr, >eHTMLTag_tt, >eHTMLTag_u, >eHTMLTag_ul, >eHTMLTag_var, >eHTMLTag_wbr, >eHTMLTag_xmp, > > > > > >eHTMLTag_text, >eHTMLTag_whitespace, >eHTMLTag_newline, >eHTMLTag_comment, >eHTMLTag_entity, >eHTMLTag_doctypeDecl, >eHTMLTag_markupDecl, >eHTMLTag_instruction, ># 59 "../../../dist/include/htmlparser/nsHTMLTags.h" 2 > > > > eHTMLTag_userdefined >}; > > > > > > >class nsHTMLTags { >public: > static nsresult AddRefTable(void); > static void ReleaseTable(void); > > > static nsHTMLTag LookupTag(const nsAString_internal& aTagName); > static nsHTMLTag CaseSensitiveLookupTag(const PRUnichar* aTagName) > { > do { } while (0); > do { } while (0); > > void* tag = PL_HashTableLookupConst(gTagTable, aTagName); > > return tag ? (nsHTMLTag)((PRInt32) (PRWord) (tag)) : eHTMLTag_userdefined; > } > static nsHTMLTag CaseSensitiveLookupTag(nsIAtom* aTagName) > { > do { } while (0); > do { } while (0); > > void* tag = PL_HashTableLookupConst(gTagAtomTable, aTagName); > > return tag ? (nsHTMLTag)((PRInt32) (PRWord) (tag)) : eHTMLTag_userdefined; > } > > > static const PRUnichar *GetStringValue(nsHTMLTag aEnum) > { > return aEnum <= eHTMLTag_unknown || aEnum > PRInt32(eHTMLTag_text - 1) ? > 0 : sTagUnicodeTable[aEnum - 1]; > } > static nsIAtom *GetAtom(nsHTMLTag aEnum) > { > return aEnum <= eHTMLTag_unknown || aEnum > PRInt32(eHTMLTag_text - 1) ? > 0 : sTagAtomTable[aEnum - 1]; > } > > > > > >private: > static nsIAtom* sTagAtomTable[eHTMLTag_userdefined - 1]; > static const PRUnichar* const sTagUnicodeTable[]; > > static PRInt32 gTableRefCount; > static PLHashTable* gTagTable; > static PLHashTable* gTagAtomTable; >}; ># 84 "../../../dist/include/htmlparser/nsIHTMLContentSink.h" 2 ># 98 "../../../dist/include/htmlparser/nsIHTMLContentSink.h" >class nsIHTMLContentSink : public nsIContentSink >{ >public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OpenHead() = 0; ># 118 "../../../dist/include/htmlparser/nsIHTMLContentSink.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) BeginContext(PRInt32 aPosition) = 0; ># 127 "../../../dist/include/htmlparser/nsIHTMLContentSink.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EndContext(PRInt32 aPosition) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsEnabled(PRInt32 aTag, PRBool* aReturn) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WillProcessTokens(void) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DidProcessTokens() = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WillProcessAToken(void) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DidProcessAToken(void) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OpenContainer(const nsIParserNode& aNode) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CloseContainer(const nsHTMLTag aTag) = 0; ># 186 "../../../dist/include/htmlparser/nsIHTMLContentSink.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CloseMalformedContainer(const nsHTMLTag aTag) > { > return CloseContainer(aTag); > } ># 199 "../../../dist/include/htmlparser/nsIHTMLContentSink.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddLeaf(const nsIParserNode& aNode) = 0; ># 209 "../../../dist/include/htmlparser/nsIHTMLContentSink.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddComment(const nsIParserNode& aNode) = 0; ># 219 "../../../dist/include/htmlparser/nsIHTMLContentSink.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddProcessingInstruction(const nsIParserNode& aNode) = 0; ># 229 "../../../dist/include/htmlparser/nsIHTMLContentSink.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddDocTypeDecl(const nsIParserNode& aNode) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NotifyTagObservers(nsIParserNode* aNode) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) PRBool __attribute__ ((regparm (0), cdecl)) IsFormOnStack() = 0; > >}; > >template <class Dummy> const nsIID nsIHTMLContentSink::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x73b5a072, 0x0f87, 0x4d07, { 0xa8, 0x16, 0xe6, 0xac, 0x73, 0xa7, 0x04, 0x3c } }; ># 82 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsIXMLContentSink.h" 1 ># 40 "../../../dist/include/content/nsIXMLContentSink.h" ># 1 "../../../dist/include/htmlparser/nsIContentSink.h" 1 ># 41 "../../../dist/include/content/nsIXMLContentSink.h" 2 ># 1 "../../../dist/include/htmlparser/nsIParserNode.h" 1 ># 42 "../../../dist/include/content/nsIXMLContentSink.h" 2 > > >class nsIDocument; >class nsIURI; >class nsIChannel; ># 75 "../../../dist/include/content/nsIXMLContentSink.h" >class nsIXMLContentSink : public nsIContentSink { >public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > >}; > >template <class Dummy> const nsIID nsIXMLContentSink::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x63fedea0, 0x9b0f, 0x4d64, { 0x9b, 0xa5, 0x37, 0xc6, 0x99, 0x73, 0x29, 0x35 } }; > >nsresult >NS_NewXMLContentSink(nsIXMLContentSink** aInstancePtrResult, nsIDocument* aDoc, > nsIURI* aURL, nsISupports* aContainer, > nsIChannel *aChannel); ># 83 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/layout/nsHTMLParts.h" 1 ># 43 "../../../dist/include/layout/nsHTMLParts.h" ># 1 "../../../dist/include/xpcom/nscore.h" 1 ># 44 "../../../dist/include/layout/nsHTMLParts.h" 2 > >class nsIAtom; >class nsNodeInfoManager; >class nsIContent; >class nsIContentIterator; >class nsIDocument; >class nsIFrame; >class nsIHTMLContentSink; >class nsIFragmentContentSink; >class nsPresContext; >class nsStyleContext; >class nsIURI; >class nsString; >class nsIPresShell; >class nsIChannel; >class nsTableColFrame; ># 89 "../../../dist/include/layout/nsHTMLParts.h" >nsIFrame* >NS_NewBlockFrame(nsIPresShell* aPresShell, nsStyleContext* aContext, PRUint32 aFlags = 0); > > >nsresult >NS_NewAttributeContent(nsNodeInfoManager *aNodeInfoManager, > PRInt32 aNameSpaceID, nsIAtom* aAttrName, > nsIContent** aResult); > > > > > >nsIFrame* >NS_NewSelectsAreaFrame(nsIPresShell* aPresShell, nsStyleContext* aContext, PRUint32 aFlags); > > >nsIFrame* >NS_NewAreaFrame(nsIPresShell* aPresShell, nsStyleContext* aContext, PRUint32 aFlags); > > >inline nsIFrame* >NS_NewTableCellInnerFrame(nsIPresShell* aPresShell, nsStyleContext* aContext) { > return NS_NewBlockFrame(aPresShell, aContext); >} > > > >inline nsIFrame* >NS_NewDocumentElementFrame(nsIPresShell* aPresShell, nsStyleContext* aContext) { > return NS_NewAreaFrame(aPresShell, aContext, 0x00800000|0x00400000); >} > > >inline nsIFrame* >NS_NewAbsoluteItemWrapperFrame(nsIPresShell* aPresShell, nsStyleContext* aContext) { > return NS_NewAreaFrame(aPresShell, aContext, 0x00800000|0x00400000); >} > > >inline nsIFrame* >NS_NewFloatingItemWrapperFrame(nsIPresShell* aPresShell, nsStyleContext* aContext) { > return NS_NewAreaFrame(aPresShell, aContext, > 0x00800000|0x00400000); >} > > > >inline nsIFrame* >NS_NewRelativeItemWrapperFrame(nsIPresShell* aPresShell, nsStyleContext* aContext, PRUint32 aFlags) { > return NS_NewAreaFrame(aPresShell, aContext, aFlags); >} > >nsIFrame* >NS_NewBRFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); > >nsIFrame* >NS_NewCommentFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); > > >nsIFrame* >NS_NewSubDocumentFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); > >nsIFrame* >NS_NewHTMLFramesetFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); > >nsIFrame* >NS_NewViewportFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewCanvasFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewImageFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewInlineFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewPositionedInlineFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewObjectFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewSpacerFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewTextFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewContinuingTextFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewEmptyFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >inline nsIFrame* >NS_NewWBRFrame(nsIPresShell* aPresShell, nsStyleContext* aContext) { > return NS_NewEmptyFrame(aPresShell, aContext); >} > >nsIFrame* >NS_NewColumnSetFrame(nsIPresShell* aPresShell, nsStyleContext* aContext, PRUint32 aStateFlags); > >nsIFrame* >NS_NewSimplePageSequenceFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewPageFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewPageContentFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewPageBreakFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewFirstLetterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewFirstLineFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); > > >nsIFrame* >NS_NewGfxButtonControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewNativeButtonControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewImageControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewHTMLButtonControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewGfxCheckboxControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewNativeCheckboxControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewFieldSetFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewFileControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewLegendFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewNativeTextControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewTextControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewGfxAutoTextControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewGfxRadioControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewNativeRadioControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewNativeSelectControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewListControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewComboboxControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext, PRUint32 aFlags); >nsIFrame* >NS_NewIsIndexFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); > > >nsIFrame* >NS_NewTableOuterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewTableFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewTableCaptionFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsTableColFrame* >NS_NewTableColFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewTableColGroupFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewTableRowFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewTableRowGroupFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); >nsIFrame* >NS_NewTableCellFrame(nsIPresShell* aPresShell, nsStyleContext* aContext, PRBool aIsBorderCollapse); > >nsresult >NS_NewHTMLContentSink(nsIHTMLContentSink** aInstancePtrResult, > nsIDocument* aDoc, nsIURI* aURL, > nsISupports* aContainer, > nsIChannel* aChannel); >nsresult >NS_NewHTMLFragmentContentSink(nsIFragmentContentSink** aInstancePtrResult); >nsresult >NS_NewHTMLFragmentContentSink2(nsIFragmentContentSink** aInstancePtrResult); > > > >nsresult >NS_NewHTMLParanoidFragmentSink(nsIFragmentContentSink** aInstancePtrResult); >void >NS_HTMLParanoidFragmentSinkShutdown(); ># 84 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/htmlparser/nsIParserService.h" 1 ># 44 "../../../dist/include/htmlparser/nsIParserService.h" ># 1 "../../../dist/include/htmlparser/nsIElementObserver.h" 1 ># 51 "../../../dist/include/htmlparser/nsIElementObserver.h" ># 1 "../../../dist/include/xpcom/nsVoidArray.h" 1 ># 52 "../../../dist/include/htmlparser/nsIElementObserver.h" 2 > > > > > > > >class nsIElementObserver : public nsISupports { >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > enum { IS_DOCUMENT_WRITE = 1U }; ># 72 "../../../dist/include/htmlparser/nsIElementObserver.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Notify(PRUint32 aDocumentID, nsHTMLTag aTag, > PRUint32 numOfAttributes, const PRUnichar* nameArray[], > const PRUnichar* valueArray[]) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Notify(PRUint32 aDocumentID, const PRUnichar* aTag, > PRUint32 numOfAttributes, const PRUnichar* nameArray[], > const PRUnichar* valueArray[]) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Notify(nsISupports* aWebShell, > nsISupports* aChannel, > const PRUnichar* aTag, > const nsStringArray* aKeys, > const nsStringArray* aValues, > const PRUint32 aFlags) = 0; > >}; > >template <class Dummy> const nsIID nsIElementObserver::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x4672aa04, 0xf6ae, 0x11d2, { 0xb3, 0xb7, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }; ># 45 "../../../dist/include/htmlparser/nsIParserService.h" 2 > >class nsIParser; >class nsIParserNode; ># 60 "../../../dist/include/htmlparser/nsIParserService.h" >class nsIObserverEntry : public nsISupports { > public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Notify(nsIParserNode* aNode, > nsIParser* aParser, > nsISupports* aWebShell, > const PRUint32 aFlags) = 0; > >}; > > >template <class Dummy> const nsIID nsIObserverEntry::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x78081e70, 0xad53, 0x11d5, { 0x84, 0x98, 0x00, 0x10, 0xa4, 0xe0, 0xc7, 0x06 } }; > >class nsIParserService : public nsISupports { > public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 88 "../../../dist/include/htmlparser/nsIParserService.h" > virtual PRInt32 HTMLAtomTagToId(nsIAtom* aAtom) const = 0; ># 99 "../../../dist/include/htmlparser/nsIParserService.h" > virtual PRInt32 HTMLCaseSensitiveAtomTagToId(nsIAtom* aAtom) const = 0; ># 111 "../../../dist/include/htmlparser/nsIParserService.h" > virtual PRInt32 HTMLStringTagToId(const nsAString_internal& aTag) const = 0; ># 124 "../../../dist/include/htmlparser/nsIParserService.h" > virtual const PRUnichar *HTMLIdToStringTag(PRInt32 aId) const = 0; ># 137 "../../../dist/include/htmlparser/nsIParserService.h" > virtual nsIAtom *HTMLIdToAtomTag(PRInt32 aId) const = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HTMLConvertEntityToUnicode(const nsAString_internal& aEntity, > PRInt32* aUnicode) const = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HTMLConvertUnicodeToEntity(PRInt32 aUnicode, > nsCString& aEntity) const = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsContainer(PRInt32 aId, PRBool& aIsContainer) const = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsBlock(PRInt32 aId, PRBool& aIsBlock) const = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RegisterObserver(nsIElementObserver* aObserver, > const nsAString_internal& aTopic, > const nsHTMLTag* aTags = 0) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) UnregisterObserver(nsIElementObserver* aObserver, > const nsAString_internal& aTopic) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTopicObservers(const nsAString_internal& aTopic, > nsIObserverEntry** aEntry) = 0; > > virtual nsresult CheckQName(const nsAString_internal& aQName, > PRBool aNamespaceAware, > const PRUnichar** aColon) = 0; > virtual PRBool IsXMLLetter(PRUnichar aChar) = 0; > virtual PRBool IsXMLNCNameChar(PRUnichar aChar) = 0; ># 179 "../../../dist/include/htmlparser/nsIParserService.h" > virtual PRUint32 DecodeEntity(const PRUnichar* aStart, const PRUnichar* aEnd, > const PRUnichar** aNext, > PRUnichar* aResult) = 0; >}; > >template <class Dummy> const nsIID nsIParserService::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x90a92e37, 0xabd6, 0x441b, { 0x9b, 0x39, 0x40, 0x64, 0xd9, 0x8e, 0x1e, 0xde } }; ># 85 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/xpcom/nsIServiceManager.h" 1 ># 86 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsIAttribute.h" 1 ># 45 "../../../dist/include/content/nsIAttribute.h" >class nsDOMAttributeMap; >class nsIContent; > > > > > >class nsIAttribute : public nsINode >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual void SetMap(nsDOMAttributeMap *aMap) = 0; > > nsDOMAttributeMap *GetMap() > { > return mAttrMap; > } > > nsINodeInfo *NodeInfo() > { > return mNodeInfo; > } > > virtual nsIContent* GetContent() const = 0; > > > > > > virtual nsresult SetOwnerDocument(nsIDocument* aDocument) = 0; > >protected: > > nsIAttribute(nsDOMAttributeMap *aAttrMap, nsINodeInfo *aNodeInfo) > : nsINode(aNodeInfo), mAttrMap(aAttrMap) > { > } > > > nsDOMAttributeMap *mAttrMap; >}; > >template <class Dummy> const nsIID nsIAttribute::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x68b13198, 0x6d81, 0x4ab6, { 0xb9, 0x98, 0xd0, 0xa4, 0x55, 0x82, 0x5f, 0xb1 } }; ># 87 "nsContentUtils.cpp" 2 ># 1 "nsContentList.h" 1 ># 88 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsIHTMLDocument.h" 1 ># 44 "../../../dist/include/content/nsIHTMLDocument.h" >class nsIImageMap; >class nsString; >class nsIDOMNodeList; >class nsIDOMHTMLCollection; >class nsIDOMHTMLFormElement; >class nsIDOMHTMLMapElement; >class nsHTMLStyleSheet; >class nsIStyleSheet; >class nsICSSLoader; >class nsIContent; >class nsIDOMHTMLBodyElement; >class nsIScriptElement; >class nsIEditor; ># 67 "../../../dist/include/content/nsIHTMLDocument.h" >class nsIHTMLDocument : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual nsresult AddImageMap(nsIDOMHTMLMapElement* aMap) = 0; > > virtual nsIDOMHTMLMapElement *GetImageMap(const nsAString_internal& aMapName) = 0; > > virtual void RemoveImageMap(nsIDOMHTMLMapElement* aMap) = 0; > > > > > virtual void SetCompatibilityMode(nsCompatibility aMode) = 0; > > virtual nsresult ResolveName(const nsAString_internal& aName, > nsIDOMHTMLFormElement *aForm, > nsISupports **aResult) = 0; > > > > > > virtual void ScriptLoading(nsIScriptElement *aScript) = 0; > > > > > > virtual void ScriptExecuted(nsIScriptElement *aScript) = 0; > > > > > > virtual void AddedForm() = 0; > > > > > virtual void RemovedForm() = 0; > > > > > > > virtual PRInt32 GetNumFormsSynchronous() = 0; > > virtual PRBool IsWriting() = 0; > > virtual PRBool GetIsFrameset() = 0; > virtual void SetIsFrameset(PRBool aFrameset) = 0; > > > > > virtual nsContentList* GetForms() = 0; > > > > > > virtual nsContentList* GetFormControls() = 0; ># 142 "../../../dist/include/content/nsIHTMLDocument.h" > virtual nsresult ChangeContentEditableCount(nsIContent *aElement, > PRInt32 aChange) = 0; > > enum EditingState { > eTearingDown = -2, > eSettingUp = -1, > eOff = 0, > eDesignMode, > eContentEditable > }; > > > > > PRBool IsEditingOn() > { > return GetEditingState() == eDesignMode || > GetEditingState() == eContentEditable; > } > > > > > > virtual EditingState GetEditingState() = 0; > > > > > > > virtual nsresult SetEditingState(EditingState aState) = 0; > > > > > > > virtual nsresult GetDocumentAllResult(const nsAString_internal& aID, > nsISupports** aResult) = 0; > > > > > > virtual nsIContent* GetBodyContentExternal() = 0; > > > > > virtual void TearingDownEditor(nsIEditor *aEditor) = 0; >}; > >template <class Dummy> const nsIID nsIHTMLDocument::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x19d63a6c, 0xcc94, 0x499c, { 0x89, 0x2a, 0x95, 0x5a, 0xdd, 0x77, 0x2e, 0x10 } }; ># 89 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIDOMHTMLDocument.h" 1 ># 34 "../../../dist/include/dom/nsIDOMHTMLDocument.h" >class nsIDOMHTMLDocument : public nsIDOMDocument { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTitle(nsAString_internal & aTitle) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetTitle(const nsAString_internal & aTitle) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetReferrer(nsAString_internal & aReferrer) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDomain(nsAString_internal & aDomain) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetURL(nsAString_internal & aURL) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetBody(nsIDOMHTMLElement * *aBody) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetBody(nsIDOMHTMLElement * aBody) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetImages(nsIDOMHTMLCollection * *aImages) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetApplets(nsIDOMHTMLCollection * *aApplets) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLinks(nsIDOMHTMLCollection * *aLinks) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetForms(nsIDOMHTMLCollection * *aForms) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAnchors(nsIDOMHTMLCollection * *aAnchors) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCookie(nsAString_internal & aCookie) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetCookie(const nsAString_internal & aCookie) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Open(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Close(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Write(const nsAString_internal & text) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Writeln(const nsAString_internal & text) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetElementsByName(const nsAString_internal & elementName, nsIDOMNodeList **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMHTMLDocument::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa6cf9084, 0x15b3, 0x11d2, { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}; ># 90 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIDOMHTMLCollection.h" 1 ># 91 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIDOMHTMLFormElement.h" 1 ># 10 "../../../dist/include/dom/nsIDOMHTMLFormElement.h" ># 1 "../../../dist/include/dom/nsIDOMHTMLElement.h" 1 ># 25 "../../../dist/include/dom/nsIDOMHTMLElement.h" >class nsIDOMHTMLElement : public nsIDOMElement { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 41 "../../../dist/include/dom/nsIDOMHTMLElement.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetId(nsAString_internal & aId) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetId(const nsAString_internal & aId) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTitle(nsAString_internal & aTitle) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetTitle(const nsAString_internal & aTitle) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLang(nsAString_internal & aLang) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetLang(const nsAString_internal & aLang) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDir(nsAString_internal & aDir) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDir(const nsAString_internal & aDir) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetClassName(nsAString_internal & aClassName) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetClassName(const nsAString_internal & aClassName) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMHTMLElement::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa6cf9085, 0x15b3, 0x11d2, { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}; ># 11 "../../../dist/include/dom/nsIDOMHTMLFormElement.h" 2 ># 25 "../../../dist/include/dom/nsIDOMHTMLFormElement.h" >class nsIDOMHTMLFormElement : public nsIDOMHTMLElement { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 40 "../../../dist/include/dom/nsIDOMHTMLFormElement.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetElements(nsIDOMHTMLCollection * *aElements) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLength(PRInt32 *aLength) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetName(nsAString_internal & aName) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetName(const nsAString_internal & aName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAcceptCharset(nsAString_internal & aAcceptCharset) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAcceptCharset(const nsAString_internal & aAcceptCharset) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAction(nsAString_internal & aAction) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAction(const nsAString_internal & aAction) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetEnctype(nsAString_internal & aEnctype) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetEnctype(const nsAString_internal & aEnctype) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMethod(nsAString_internal & aMethod) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetMethod(const nsAString_internal & aMethod) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTarget(nsAString_internal & aTarget) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetTarget(const nsAString_internal & aTarget) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Submit(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Reset(void) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMHTMLFormElement::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa6cf908f, 0x15b3, 0x11d2, { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}; ># 92 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsIForm.h" 1 ># 43 "../../../dist/include/content/nsIForm.h" >class nsIFormControl; >class nsISimpleEnumerator; >class nsIURI; >template<class T> class nsTArray; ># 65 "../../../dist/include/content/nsIForm.h" >class nsIForm : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 77 "../../../dist/include/content/nsIForm.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddElement(nsIFormControl* aElement, > PRBool aNotify) = 0; ># 88 "../../../dist/include/content/nsIForm.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddElementToTable(nsIFormControl* aElement, > const nsAString_internal& aName) = 0; ># 98 "../../../dist/include/content/nsIForm.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetElementAt(PRInt32 aIndex, nsIFormControl** aElement) const = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetElementCount(PRUint32* aCount) const = 0; ># 115 "../../../dist/include/content/nsIForm.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveElement(nsIFormControl* aElement, > PRBool aNotify) = 0; ># 129 "../../../dist/include/content/nsIForm.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveElementFromTable(nsIFormControl* aElement, > const nsAString_internal& aName) = 0; ># 141 "../../../dist/include/content/nsIForm.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ResolveName(const nsAString_internal& aName, > nsISupports **aResult) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IndexOfControl(nsIFormControl* aControl, PRInt32* aIndex) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnSubmitClickBegin() = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnSubmitClickEnd() = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FlushPendingSubmission() = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ForgetPendingSubmission() = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetActionURL(nsIURI** aActionURL) = 0; ># 190 "../../../dist/include/content/nsIForm.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSortedControls(nsTArray<nsIFormControl*>& aControls) const = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsIFormControl* __attribute__ ((regparm (0), cdecl)) GetDefaultSubmitElement() const = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) PRBool __attribute__ ((regparm (0), cdecl)) HasSingleTextControl() const = 0; >}; > >template <class Dummy> const nsIID nsIForm::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0xd4ffda0b, 0x2396, 0x4e64, {0x97, 0x5c, 0x73, 0xab, 0x56, 0x4b, 0x14, 0x77} }; ># 93 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsIFormControl.h" 1 ># 41 "../../../dist/include/content/nsIFormControl.h" >class nsIDOMHTMLFormElement; >class nsPresContext; >class nsPresState; >class nsIContent; >class nsString; >class nsIFormProcessor; >class nsIFormSubmission; ># 81 "../../../dist/include/content/nsIFormControl.h" >class nsIFormControl : public nsISupports >{ >public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetForm(nsIDOMHTMLFormElement** aForm) = 0; ># 105 "../../../dist/include/content/nsIFormControl.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetForm(nsIDOMHTMLFormElement* aForm, > PRBool aRemoveFromForm, > PRBool aNotify) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) PRInt32 __attribute__ ((regparm (0), cdecl)) GetType() const = 0 ; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Reset() = 0; ># 129 "../../../dist/include/content/nsIFormControl.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SubmitNamesValues(nsIFormSubmission* aFormSubmission, > nsIContent* aSubmitElement) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SaveState() = 0; ># 148 "../../../dist/include/content/nsIFormControl.h" > virtual PRBool RestoreState(nsPresState* aState) = 0; > > virtual PRBool AllowDrop() = 0; > > > > > > > virtual PRBool IsSubmitControl() const = 0; >}; > >template <class Dummy> const nsIID nsIFormControl::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x119c5ce8, 0xf4b0, 0x456c, {0x83, 0x4d, 0xb1, 0x90, 0x3d, 0x99, 0x9f, 0xb3} }; ># 94 "nsContentUtils.cpp" 2 ># 1 "nsGkAtoms.h" 1 ># 47 "nsGkAtoms.h" ># 1 "../../../dist/include/xpcom/nsIAtom.h" 1 ># 48 "nsGkAtoms.h" 2 > >class nsGkAtoms { >public: > > static void AddRefAtoms(); ># 62 "nsGkAtoms.h" ># 1 "nsGkAtomList.h" 1 ># 64 "nsGkAtomList.h" >static nsIAtom* _empty; >static nsIAtom* mozdirty; >static nsIAtom* _moz_target; >static nsIAtom* menuactive; >static nsIAtom* _poundDefault; >static nsIAtom* _asterix; >static nsIAtom* a; >static nsIAtom* abbr; >static nsIAtom* abort; >static nsIAtom* above; >static nsIAtom* absoluteList; >static nsIAtom* acceltext; >static nsIAtom* accept; >static nsIAtom* acceptcharset; >static nsIAtom* accesskey; >static nsIAtom* acronym; >static nsIAtom* action; >static nsIAtom* active; >static nsIAtom* activetitlebarcolor; >static nsIAtom* actuate; >static nsIAtom* address; >static nsIAtom* after; >static nsIAtom* after_end; >static nsIAtom* after_start; >static nsIAtom* align; >static nsIAtom* alink; >static nsIAtom* all; >static nsIAtom* allowevents; >static nsIAtom* allownegativeassertions; >static nsIAtom* allowuntrusted; >static nsIAtom* alt; >static nsIAtom* alternate; >static nsIAtom* always; >static nsIAtom* ancestor; >static nsIAtom* ancestorOrSelf; >static nsIAtom* _and; >static nsIAtom* any; >static nsIAtom* applet; >static nsIAtom* applyImports; >static nsIAtom* applyTemplates; >static nsIAtom* archive; >static nsIAtom* area; >static nsIAtom* ascending; >static nsIAtom* assign; >static nsIAtom* attribute; >static nsIAtom* attributeSet; >static nsIAtom* aural; >static nsIAtom* _auto; >static nsIAtom* autocheck; >static nsIAtom* autocomplete; >static nsIAtom* autorepeatbutton; >static nsIAtom* axis; >static nsIAtom* b; >static nsIAtom* background; >static nsIAtom* base; >static nsIAtom* basefont; >static nsIAtom* baseLevel; >static nsIAtom* baseline; >static nsIAtom* bdo; >static nsIAtom* before; >static nsIAtom* before_end; >static nsIAtom* before_start; >static nsIAtom* below; >static nsIAtom* bgcolor; >static nsIAtom* big; >static nsIAtom* binding; >static nsIAtom* bindings; >static nsIAtom* blankrow; >static nsIAtom* block; >static nsIAtom* blockquote; >static nsIAtom* blur; >static nsIAtom* body; >static nsIAtom* boolean; >static nsIAtom* border; >static nsIAtom* bordercolor; >static nsIAtom* both; >static nsIAtom* bottom; >static nsIAtom* bottommargin; >static nsIAtom* bottompadding; >static nsIAtom* box; >static nsIAtom* br; >static nsIAtom* braille; >static nsIAtom* broadcast; >static nsIAtom* broadcaster; >static nsIAtom* broadcasterset; >static nsIAtom* browser; >static nsIAtom* bulletList; >static nsIAtom* bulletinboard; >static nsIAtom* button; >static nsIAtom* callTemplate; >static nsIAtom* cancel; >static nsIAtom* canvas; >static nsIAtom* caption; >static nsIAtom* captionList; >static nsIAtom* capture; >static nsIAtom* caseOrder; >static nsIAtom* cdataSectionElements; >static nsIAtom* ceiling; >static nsIAtom* cell; >static nsIAtom* cellpadding; >static nsIAtom* cellspacing; >static nsIAtom* center; >static nsIAtom* ch; >static nsIAtom* change; >static nsIAtom* _char; >static nsIAtom* charcode; >static nsIAtom* charoff; >static nsIAtom* charset; >static nsIAtom* charType; >static nsIAtom* checkbox; >static nsIAtom* checked; >static nsIAtom* child; >static nsIAtom* children; >static nsIAtom* choose; >static nsIAtom* circ; >static nsIAtom* circle; >static nsIAtom* cite; >static nsIAtom* _class; >static nsIAtom* classid; >static nsIAtom* clear; >static nsIAtom* click; >static nsIAtom* clickcount; >static nsIAtom* clip; >static nsIAtom* close; >static nsIAtom* closed; >static nsIAtom* closemenu; >static nsIAtom* coalesceduplicatearcs; >static nsIAtom* code; >static nsIAtom* codebase; >static nsIAtom* codetype; >static nsIAtom* col; >static nsIAtom* colgroup; >static nsIAtom* colGroupList; >static nsIAtom* collapse; >static nsIAtom* collapsed; >static nsIAtom* color; >static nsIAtom* cols; >static nsIAtom* colspan; >static nsIAtom* column; >static nsIAtom* columns; >static nsIAtom* combobox; >static nsIAtom* command; >static nsIAtom* commands; >static nsIAtom* commandset; >static nsIAtom* commandupdate; >static nsIAtom* commandupdater; >static nsIAtom* comment; >static nsIAtom* compact; >static nsIAtom* concat; >static nsIAtom* contenteditable; >static nsIAtom* conditions; >static nsIAtom* constructor; >static nsIAtom* container; >static nsIAtom* containment; >static nsIAtom* contains; >static nsIAtom* content; >static nsIAtom* headerContentDisposition; >static nsIAtom* headerContentLanguage; >static nsIAtom* contentLocation; >static nsIAtom* headerContentScriptType; >static nsIAtom* headerContentStyleType; >static nsIAtom* headerContentType; >static nsIAtom* context; >static nsIAtom* contextmenu; >static nsIAtom* contextmenulistener; >static nsIAtom* control; >static nsIAtom* coords; >static nsIAtom* copy; >static nsIAtom* copyOf; >static nsIAtom* count; >static nsIAtom* crop; >static nsIAtom* curpos; >static nsIAtom* current; >static nsIAtom* cycler; >static nsIAtom* data; >static nsIAtom* dataType; >static nsIAtom* datasources; >static nsIAtom* datetime; >static nsIAtom* dblclick; >static nsIAtom* dd; >static nsIAtom* debug; >static nsIAtom* decimalFormat; >static nsIAtom* decimalSeparator; >static nsIAtom* deck; >static nsIAtom* declare; >static nsIAtom* decrement; >static nsIAtom* _default; >static nsIAtom* headerDefaultStyle; >static nsIAtom* defaultAction; >static nsIAtom* defaultchecked; >static nsIAtom* defaultLabel; >static nsIAtom* defaultselected; >static nsIAtom* defaultvalue; >static nsIAtom* defer; >static nsIAtom* del; >static nsIAtom* descendant; >static nsIAtom* descendantOrSelf; >static nsIAtom* descending; >static nsIAtom* description; >static nsIAtom* destructor; >static nsIAtom* dfn; >static nsIAtom* dialog; >static nsIAtom* difference; >static nsIAtom* digit; >static nsIAtom* dir; >static nsIAtom* disableOutputEscaping; >static nsIAtom* disabled; >static nsIAtom* display; >static nsIAtom* distinct; >static nsIAtom* div; >static nsIAtom* dl; >static nsIAtom* doctypePublic; >static nsIAtom* doctypeSystem; >static nsIAtom* document; >static nsIAtom* DOMAttrModified; >static nsIAtom* DOMCharacterDataModified; >static nsIAtom* DOMNodeInserted; >static nsIAtom* DOMNodeInsertedIntoDocument; >static nsIAtom* DOMNodeRemoved; >static nsIAtom* DOMNodeRemovedFromDocument; >static nsIAtom* DOMSubtreeModified; >static nsIAtom* double_; >static nsIAtom* drag; >static nsIAtom* dragdrop; >static nsIAtom* dragend; >static nsIAtom* dragenter; >static nsIAtom* dragevent; >static nsIAtom* dragexit; >static nsIAtom* draggesture; >static nsIAtom* dragging; >static nsIAtom* dragover; >static nsIAtom* dragSession; >static nsIAtom* dropAfter; >static nsIAtom* dropBefore; >static nsIAtom* dropOn; >static nsIAtom* dt; >static nsIAtom* editable; >static nsIAtom* editing; >static nsIAtom* editor; >static nsIAtom* editorDisplayList; >static nsIAtom* element; >static nsIAtom* elementAvailable; >static nsIAtom* elements; >static nsIAtom* em; >static nsIAtom* embed; >static nsIAtom* embeddingLevel; >static nsIAtom* embossed; >static nsIAtom* empty; >static nsIAtom* encoding; >static nsIAtom* enctype; >static nsIAtom* end; >static nsIAtom* end_after; >static nsIAtom* end_before; >static nsIAtom* endsInDiacritic; >static nsIAtom* equalsize; >static nsIAtom* error; >static nsIAtom* even; >static nsIAtom* event; >static nsIAtom* events; >static nsIAtom* excessOverflowContainersList; >static nsIAtom* excludeResultPrefixes; >static nsIAtom* excludes; >static nsIAtom* expr; >static nsIAtom* extends; >static nsIAtom* extensionElementPrefixes; >static nsIAtom* face; >static nsIAtom* fallback; >static nsIAtom* _false; >static nsIAtom* farthest; >static nsIAtom* field; >static nsIAtom* fieldset; >static nsIAtom* fixed; >static nsIAtom* fixedList; >static nsIAtom* flags; >static nsIAtom* flex; >static nsIAtom* flexgroup; >static nsIAtom* floatList; >static nsIAtom* floor; >static nsIAtom* focus; >static nsIAtom* following; >static nsIAtom* followingSibling; >static nsIAtom* font; >static nsIAtom* fontWeight; >static nsIAtom* fontpicker; >static nsIAtom* _for; >static nsIAtom* forEach; >static nsIAtom* form; >static nsIAtom* format; >static nsIAtom* formatNumber; >static nsIAtom* frame; >static nsIAtom* frameborder; >static nsIAtom* frameset; >static nsIAtom* from; >static nsIAtom* functionAvailable; >static nsIAtom* generateId; >static nsIAtom* getter; >static nsIAtom* grid; >static nsIAtom* gripper; >static nsIAtom* grippy; >static nsIAtom* group; >static nsIAtom* groupingSeparator; >static nsIAtom* groupingSize; >static nsIAtom* grow; >static nsIAtom* gutter; >static nsIAtom* h1; >static nsIAtom* h2; >static nsIAtom* h3; >static nsIAtom* h4; >static nsIAtom* h5; >static nsIAtom* h6; >static nsIAtom* handheld; >static nsIAtom* handler; >static nsIAtom* handlers; >static nsIAtom* HARD; >static nsIAtom* hasSameNode; >static nsIAtom* hbox; >static nsIAtom* head; >static nsIAtom* headers; >static nsIAtom* height; >static nsIAtom* hidden; >static nsIAtom* hidechrome; >static nsIAtom* highest; >static nsIAtom* horizontal; >static nsIAtom* hover; >static nsIAtom* hr; >static nsIAtom* href; >static nsIAtom* hreflang; >static nsIAtom* hspace; >static nsIAtom* html; >static nsIAtom* htmlBaseHref; >static nsIAtom* htmlBaseTarget; >static nsIAtom* httpEquiv; >static nsIAtom* i; >static nsIAtom* id; >static nsIAtom* _if; >static nsIAtom* iframe; >static nsIAtom* ignorecase; >static nsIAtom* ignorekeys; >static nsIAtom* ilayer; >static nsIAtom* image; >static nsIAtom* imageClickedPoint; >static nsIAtom* img; >static nsIAtom* implementation; >static nsIAtom* implements; >static nsIAtom* import; >static nsIAtom* inactivetitlebarcolor; >static nsIAtom* include; >static nsIAtom* includes; >static nsIAtom* increment; >static nsIAtom* indent; >static nsIAtom* index; >static nsIAtom* infer; >static nsIAtom* infinity; >static nsIAtom* inherit; >static nsIAtom* inherits; >static nsIAtom* inheritstyle; >static nsIAtom* input; >static nsIAtom* ins; >static nsIAtom* insertafter; >static nsIAtom* insertbefore; >static nsIAtom* instanceOf; >static nsIAtom* int32; >static nsIAtom* int64; >static nsIAtom* integer; >static nsIAtom* intersection; >static nsIAtom* iscontainer; >static nsIAtom* isempty; >static nsIAtom* isindex; >static nsIAtom* ismap; >static nsIAtom* kbd; >static nsIAtom* noautofocus; >static nsIAtom* key; >static nsIAtom* keycode; >static nsIAtom* keydown; >static nsIAtom* keypress; >static nsIAtom* keyset; >static nsIAtom* keytext; >static nsIAtom* keyup; >static nsIAtom* label; >static nsIAtom* lang; >static nsIAtom* last; >static nsIAtom* layer; >static nsIAtom* layout; >static nsIAtom* leading; >static nsIAtom* leaf; >static nsIAtom* left; >static nsIAtom* leftmargin; >static nsIAtom* leftpadding; >static nsIAtom* legend; >static nsIAtom* length; >static nsIAtom* letterValue; >static nsIAtom* level; >static nsIAtom* li; >static nsIAtom* line; >static nsIAtom* link; >static nsIAtom* listbox; >static nsIAtom* listboxbody; >static nsIAtom* listcell; >static nsIAtom* listcol; >static nsIAtom* listcols; >static nsIAtom* listener; >static nsIAtom* listhead; >static nsIAtom* listheader; >static nsIAtom* listing; >static nsIAtom* listitem; >static nsIAtom* listrows; >static nsIAtom* load; >static nsIAtom* localName; >static nsIAtom* longdesc; >static nsIAtom* lowerFirst; >static nsIAtom* lowest; >static nsIAtom* lowsrc; >static nsIAtom* ltr; >static nsIAtom* map; >static nsIAtom* manifest; >static nsIAtom* marginheight; >static nsIAtom* marginwidth; >static nsIAtom* marquee; >static nsIAtom* match; >static nsIAtom* max; >static nsIAtom* maxheight; >static nsIAtom* maxlength; >static nsIAtom* maxpos; >static nsIAtom* maxwidth; >static nsIAtom* mayscript; >static nsIAtom* media; >static nsIAtom* mediaType; >static nsIAtom* member; >static nsIAtom* menu; >static nsIAtom* menubar; >static nsIAtom* menubutton; >static nsIAtom* menugenerated; >static nsIAtom* menuitem; >static nsIAtom* menulist; >static nsIAtom* menupopup; >static nsIAtom* message; >static nsIAtom* meta; >static nsIAtom* method; >static nsIAtom* middle; >static nsIAtom* min; >static nsIAtom* minheight; >static nsIAtom* minpos; >static nsIAtom* minusSign; >static nsIAtom* minwidth; >static nsIAtom* mod; >static nsIAtom* mode; >static nsIAtom* modifiers; >static nsIAtom* mousedown; >static nsIAtom* mousemove; >static nsIAtom* mouseout; >static nsIAtom* mouseover; >static nsIAtom* mousethrough; >static nsIAtom* mouseup; >static nsIAtom* msthemecompatible; >static nsIAtom* multicol; >static nsIAtom* multiple; >static nsIAtom* name; >static nsIAtom* _namespace; >static nsIAtom* namespaceAlias; >static nsIAtom* namespaceUri; >static nsIAtom* NaN; >static nsIAtom* negate; >static nsIAtom* never; >static nsIAtom* _new; >static nsIAtom* nextBidi; >static nsIAtom* no; >static nsIAtom* noautohide; >static nsIAtom* nobr; >static nsIAtom* node; >static nsIAtom* nodeSet; >static nsIAtom* noembed; >static nsIAtom* noframes; >static nsIAtom* nohref; >static nsIAtom* none; >static nsIAtom* noresize; >static nsIAtom* normal; >static nsIAtom* normalizeSpace; >static nsIAtom* noscript; >static nsIAtom* noshade; >static nsIAtom* _not; >static nsIAtom* nowrap; >static nsIAtom* number; >static nsIAtom* null; >static nsIAtom* object; >static nsIAtom* objectType; >static nsIAtom* observer; >static nsIAtom* observes; >static nsIAtom* odd; >static nsIAtom* OFF; >static nsIAtom* ol; >static nsIAtom* omitXmlDeclaration; >static nsIAtom* onabort; >static nsIAtom* onbeforecopy; >static nsIAtom* onbeforecut; >static nsIAtom* onbeforepaste; >static nsIAtom* onbeforeunload; >static nsIAtom* onblur; >static nsIAtom* onbroadcast; >static nsIAtom* onchange; >static nsIAtom* onclick; >static nsIAtom* onclose; >static nsIAtom* oncommand; >static nsIAtom* oncommandupdate; >static nsIAtom* oncompositionend; >static nsIAtom* oncompositionstart; >static nsIAtom* oncontextmenu; >static nsIAtom* oncopy; >static nsIAtom* oncut; >static nsIAtom* ondblclick; >static nsIAtom* onDOMActivate; >static nsIAtom* onDOMAttrModified; >static nsIAtom* onDOMCharacterDataModified; >static nsIAtom* onDOMFocusIn; >static nsIAtom* onDOMFocusOut; >static nsIAtom* onDOMMouseScroll; >static nsIAtom* onDOMNodeInserted; >static nsIAtom* onDOMNodeInsertedIntoDocument; >static nsIAtom* onDOMNodeRemoved; >static nsIAtom* onDOMNodeRemovedFromDocument; >static nsIAtom* onDOMSubtreeModified; >static nsIAtom* ondrag; >static nsIAtom* ondragdrop; >static nsIAtom* ondragend; >static nsIAtom* ondragenter; >static nsIAtom* ondragexit; >static nsIAtom* ondraggesture; >static nsIAtom* ondragleave; >static nsIAtom* ondragover; >static nsIAtom* ondragstart; >static nsIAtom* ondrop; >static nsIAtom* onerror; >static nsIAtom* onfocus; >static nsIAtom* onget; >static nsIAtom* oninput; >static nsIAtom* onkeydown; >static nsIAtom* onkeypress; >static nsIAtom* onkeyup; >static nsIAtom* onLoad; >static nsIAtom* onload; >static nsIAtom* onmousedown; >static nsIAtom* onmousemove; >static nsIAtom* onmouseout; >static nsIAtom* onmouseover; >static nsIAtom* onmouseup; >static nsIAtom* ononline; >static nsIAtom* onoffline; >static nsIAtom* onoverflow; >static nsIAtom* onoverflowchanged; >static nsIAtom* onpagehide; >static nsIAtom* onpageshow; >static nsIAtom* onpaint; >static nsIAtom* onpaste; >static nsIAtom* onpopuphidden; >static nsIAtom* onpopuphiding; >static nsIAtom* onpopupshowing; >static nsIAtom* onpopupshown; >static nsIAtom* onRequest; >static nsIAtom* onreset; >static nsIAtom* onresize; >static nsIAtom* onscroll; >static nsIAtom* onselect; >static nsIAtom* onset; >static nsIAtom* onsubmit; >static nsIAtom* ontext; >static nsIAtom* onunderflow; >static nsIAtom* onunload; >static nsIAtom* open; >static nsIAtom* optgroup; >static nsIAtom* option; >static nsIAtom* _or; >static nsIAtom* order; >static nsIAtom* ordinal; >static nsIAtom* orient; >static nsIAtom* otherwise; >static nsIAtom* output; >static nsIAtom* overflow; >static nsIAtom* overflowList; >static nsIAtom* overflowchanged; >static nsIAtom* overflowContainersList; >static nsIAtom* overflowOutOfFlowList; >static nsIAtom* overlay; >static nsIAtom* overlap; >static nsIAtom* p; >static nsIAtom* pack; >static nsIAtom* page; >static nsIAtom* pageincrement; >static nsIAtom* pagex; >static nsIAtom* pagey; >static nsIAtom* palettename; >static nsIAtom* panel; >static nsIAtom* param; >static nsIAtom* parameter; >static nsIAtom* parent; >static nsIAtom* parsetype; >static nsIAtom* patternSeparator; >static nsIAtom* perMille; >static nsIAtom* percent; >static nsIAtom* persist; >static nsIAtom* phase; >static nsIAtom* ping; >static nsIAtom* plaintext; >static nsIAtom* pointSize; >static nsIAtom* poly; >static nsIAtom* polygon; >static nsIAtom* popup; >static nsIAtom* popupList; >static nsIAtom* popupalign; >static nsIAtom* popupanchor; >static nsIAtom* popupgroup; >static nsIAtom* popuphidden; >static nsIAtom* popuphiding; >static nsIAtom* popuplistener; >static nsIAtom* popupset; >static nsIAtom* popupshowing; >static nsIAtom* popupshown; >static nsIAtom* position; >static nsIAtom* pre; >static nsIAtom* preceding; >static nsIAtom* precedingSibling; >static nsIAtom* predicate; >static nsIAtom* prefix; >static nsIAtom* preserve; >static nsIAtom* preserveSpace; >static nsIAtom* preventdefault; >static nsIAtom* primary; >static nsIAtom* print; >static nsIAtom* priority; >static nsIAtom* processingInstruction; >static nsIAtom* profile; >static nsIAtom* progressmeter; >static nsIAtom* progressNormal; >static nsIAtom* progressUndetermined; >static nsIAtom* projection; >static nsIAtom* prompt; >static nsIAtom* propagate; >static nsIAtom* properties; >static nsIAtom* property; >static nsIAtom* q; >static nsIAtom* query; >static nsIAtom* queryset; >static nsIAtom* querytype; >static nsIAtom* radio; >static nsIAtom* radiogroup; >static nsIAtom* readonly; >static nsIAtom* rect; >static nsIAtom* rectangle; >static nsIAtom* ref; >static nsIAtom* refresh; >static nsIAtom* rel; >static nsIAtom* removeelement; >static nsIAtom* repeat; >static nsIAtom* replace; >static nsIAtom* reset; >static nsIAtom* resizeafter; >static nsIAtom* resizebefore; >static nsIAtom* resizer; >static nsIAtom* resource; >static nsIAtom* resources; >static nsIAtom* result; >static nsIAtom* resultPrefix; >static nsIAtom* rev; >static nsIAtom* reverse; >static nsIAtom* right; >static nsIAtom* rightmargin; >static nsIAtom* rightpadding; >static nsIAtom* role; >static nsIAtom* round; >static nsIAtom* row; >static nsIAtom* rows; >static nsIAtom* rowspan; >static nsIAtom* rtl; >static nsIAtom* rule; >static nsIAtom* rules; >static nsIAtom* s; >static nsIAtom* samp; >static nsIAtom* scheme; >static nsIAtom* scope; >static nsIAtom* screen; >static nsIAtom* screenX; >static nsIAtom* screenY; >static nsIAtom* script; >static nsIAtom* scriptEnabledBeforePrintPreview; >static nsIAtom* scrollbar; >static nsIAtom* scrollbarbutton; >static nsIAtom* scrollbox; >static nsIAtom* scrollcorner; >static nsIAtom* scrolling; >static nsIAtom* select; >static nsIAtom* selectPopupList; >static nsIAtom* selectable; >static nsIAtom* selected; >static nsIAtom* selectedIndex; >static nsIAtom* selectedindex; >static nsIAtom* self; >static nsIAtom* seltype; >static nsIAtom* setcookie; >static nsIAtom* setter; >static nsIAtom* shape; >static nsIAtom* show; >static nsIAtom* showcaret; >static nsIAtom* simple; >static nsIAtom* single; >static nsIAtom* size; >static nsIAtom* sizemode; >static nsIAtom* sizetopopup; >static nsIAtom* slider; >static nsIAtom* small; >static nsIAtom* smooth; >static nsIAtom* snap; >static nsIAtom* sort; >static nsIAtom* sortActive; >static nsIAtom* sortDirection; >static nsIAtom* sorted; >static nsIAtom* sortLocked; >static nsIAtom* sortResource; >static nsIAtom* sortResource2; >static nsIAtom* sortSeparators; >static nsIAtom* sortStaticsLast; >static nsIAtom* space; >static nsIAtom* spacer; >static nsIAtom* span; >static nsIAtom* spellcheck; >static nsIAtom* spinner; >static nsIAtom* split; >static nsIAtom* splitter; >static nsIAtom* spring; >static nsIAtom* src; >static nsIAtom* stack; >static nsIAtom* standalone; >static nsIAtom* standby; >static nsIAtom* start; >static nsIAtom* start_after; >static nsIAtom* start_before; >static nsIAtom* startsWith; >static nsIAtom* state; >static nsIAtom* statedatasource; >static nsIAtom* staticHint; >static nsIAtom* statustext; >static nsIAtom* stop; >static nsIAtom* stretch; >static nsIAtom* strike; >static nsIAtom* string; >static nsIAtom* stringLength; >static nsIAtom* stripSpace; >static nsIAtom* strong; >static nsIAtom* style; >static nsIAtom* stylesheet; >static nsIAtom* stylesheetPrefix; >static nsIAtom* subject; >static nsIAtom* submit; >static nsIAtom* substate; >static nsIAtom* substring; >static nsIAtom* substringAfter; >static nsIAtom* substringBefore; >static nsIAtom* sub; >static nsIAtom* sum; >static nsIAtom* sup; >static nsIAtom* summary; >static nsIAtom* systemProperty; >static nsIAtom* tab; >static nsIAtom* tabbox; >static nsIAtom* tabindex; >static nsIAtom* table; >static nsIAtom* tabpanel; >static nsIAtom* tabpanels; >static nsIAtom* tag; >static nsIAtom* target; >static nsIAtom* targets; >static nsIAtom* tbody; >static nsIAtom* td; >static nsIAtom* _template; >static nsIAtom* terminate; >static nsIAtom* test; >static nsIAtom* text; >static nsIAtom* textarea; >static nsIAtom* textbox; >static nsIAtom* textnode; >static nsIAtom* tfoot; >static nsIAtom* th; >static nsIAtom* thead; >static nsIAtom* thumb; >static nsIAtom* title; >static nsIAtom* titlebar; >static nsIAtom* titletip; >static nsIAtom* toggled; >static nsIAtom* token; >static nsIAtom* tokenize; >static nsIAtom* toolbar; >static nsIAtom* toolbarbutton; >static nsIAtom* toolbaritem; >static nsIAtom* toolbox; >static nsIAtom* tooltip; >static nsIAtom* tooltiptext; >static nsIAtom* top; >static nsIAtom* topmargin; >static nsIAtom* toppadding; >static nsIAtom* tr; >static nsIAtom* trailing; >static nsIAtom* transform; >static nsIAtom* transformiix; >static nsIAtom* translate; >static nsIAtom* transparent; >static nsIAtom* tree; >static nsIAtom* treecell; >static nsIAtom* treechildren; >static nsIAtom* treecol; >static nsIAtom* treecols; >static nsIAtom* treeitem; >static nsIAtom* treerow; >static nsIAtom* treeseparator; >static nsIAtom* triple; >static nsIAtom* _true; >static nsIAtom* tt; >static nsIAtom* tty; >static nsIAtom* tv; >static nsIAtom* type; >static nsIAtom* u; >static nsIAtom* ul; >static nsIAtom* underflow; >static nsIAtom* undetermined; >static nsIAtom* unload; >static nsIAtom* unparsedEntityUri; >static nsIAtom* upperFirst; >static nsIAtom* uri; >static nsIAtom* use; >static nsIAtom* useAttributeSets; >static nsIAtom* usemap; >static nsIAtom* userInput; >static nsIAtom* validate; >static nsIAtom* valign; >static nsIAtom* value; >static nsIAtom* values; >static nsIAtom* valueOf; >static nsIAtom* valuetype; >static nsIAtom* var; >static nsIAtom* variable; >static nsIAtom* vbox; >static nsIAtom* vcard_name; >static nsIAtom* vendor; >static nsIAtom* vendorUrl; >static nsIAtom* version; >static nsIAtom* vert; >static nsIAtom* vertical; >static nsIAtom* visibility; >static nsIAtom* vlink; >static nsIAtom* vspace; >static nsIAtom* wbr; >static nsIAtom* when; >static nsIAtom* where; >static nsIAtom* widget; >static nsIAtom* width; >static nsIAtom* window; >static nsIAtom* headerWindowTarget; >static nsIAtom* withParam; >static nsIAtom* wizard; >static nsIAtom* wrap; >static nsIAtom* xml; >static nsIAtom* xmlns; >static nsIAtom* xmp; >static nsIAtom* xulcontentsgenerated; >static nsIAtom* yes; >static nsIAtom* z_index; >static nsIAtom* zeroDigit; > > > >static nsIAtom* percentage; >static nsIAtom* A; >static nsIAtom* alignment_baseline; >static nsIAtom* altGlyph; >static nsIAtom* altGlyphDef; >static nsIAtom* altGlyphItem; >static nsIAtom* amplitude; >static nsIAtom* animate; >static nsIAtom* animateColor; >static nsIAtom* animateMotion; >static nsIAtom* animateTransform; >static nsIAtom* arithmetic; >static nsIAtom* atop; >static nsIAtom* azimuth; >static nsIAtom* B; >static nsIAtom* baseFrequency; >static nsIAtom* baseline_shift; >static nsIAtom* bias; >static nsIAtom* clip_path; >static nsIAtom* clip_rule; >static nsIAtom* clipPath; >static nsIAtom* clipPathUnits; >static nsIAtom* cm; >static nsIAtom* colorInterpolation; >static nsIAtom* colorInterpolationFilters; >static nsIAtom* colorProfile; >static nsIAtom* cursor; >static nsIAtom* cx; >static nsIAtom* cy; >static nsIAtom* d; >static nsIAtom* darken; >static nsIAtom* defs; >static nsIAtom* definition_src; >static nsIAtom* deg; >static nsIAtom* desc; >static nsIAtom* diffuseConstant; >static nsIAtom* dilate; >static nsIAtom* direction; >static nsIAtom* disable; >static nsIAtom* discrete; >static nsIAtom* divisor; >static nsIAtom* dominant_baseline; >static nsIAtom* duplicate; >static nsIAtom* dx; >static nsIAtom* dy; >static nsIAtom* edgeMode; >static nsIAtom* ellipse; >static nsIAtom* elevation; >static nsIAtom* erode; >static nsIAtom* ex; >static nsIAtom* exact; >static nsIAtom* exponent; >static nsIAtom* feBlend; >static nsIAtom* feColorMatrix; >static nsIAtom* feComponentTransfer; >static nsIAtom* feComposite; >static nsIAtom* feConvolveMatrix; >static nsIAtom* feDiffuseLighting; >static nsIAtom* feDisplacementMap; >static nsIAtom* feDistantLight; >static nsIAtom* feFlood; >static nsIAtom* feFuncA; >static nsIAtom* feFuncB; >static nsIAtom* feFuncG; >static nsIAtom* feFuncR; >static nsIAtom* feGaussianBlur; >static nsIAtom* feImage; >static nsIAtom* feMerge; >static nsIAtom* feMergeNode; >static nsIAtom* feMorphology; >static nsIAtom* feOffset; >static nsIAtom* fePointLight; >static nsIAtom* feSpecularLighting; >static nsIAtom* feSpotLight; >static nsIAtom* feTile; >static nsIAtom* feTurbulence; >static nsIAtom* fill; >static nsIAtom* fill_opacity; >static nsIAtom* fill_rule; >static nsIAtom* filter; >static nsIAtom* filterRes; >static nsIAtom* filterUnits; >static nsIAtom* flood_color; >static nsIAtom* flood_opacity; >static nsIAtom* font_face; >static nsIAtom* font_face_format; >static nsIAtom* font_face_name; >static nsIAtom* font_face_src; >static nsIAtom* font_face_uri; >static nsIAtom* font_family; >static nsIAtom* font_size; >static nsIAtom* font_size_adjust; >static nsIAtom* font_stretch; >static nsIAtom* font_style; >static nsIAtom* font_variant; > >static nsIAtom* foreignObject; > >static nsIAtom* fractalNoise; >static nsIAtom* fx; >static nsIAtom* fy; >static nsIAtom* G; >static nsIAtom* g; >static nsIAtom* gamma; >static nsIAtom* generic; >static nsIAtom* glyph; >static nsIAtom* glyphRef; >static nsIAtom* glyph_orientation_horizontal; >static nsIAtom* glyph_orientation_vertical; >static nsIAtom* grad; >static nsIAtom* gradientTransform; >static nsIAtom* gradientUnits; >static nsIAtom* hkern; >static nsIAtom* hueRotate; >static nsIAtom* identity; >static nsIAtom* image_rendering; >static nsIAtom* in; >static nsIAtom* in2; >static nsIAtom* intercept; >static nsIAtom* k1; >static nsIAtom* k2; >static nsIAtom* k3; >static nsIAtom* k4; >static nsIAtom* kerning; >static nsIAtom* kernelMatrix; >static nsIAtom* kernelUnitLength; >static nsIAtom* letter_spacing; >static nsIAtom* lighten; >static nsIAtom* lighting_color; >static nsIAtom* limitingConeAngle; >static nsIAtom* linear; >static nsIAtom* linearGradient; >static nsIAtom* linearRGB; >static nsIAtom* luminanceToAlpha; >static nsIAtom* magnify; >static nsIAtom* marker; >static nsIAtom* marker_end; >static nsIAtom* marker_mid; >static nsIAtom* marker_start; >static nsIAtom* markerHeight; >static nsIAtom* markerUnits; >static nsIAtom* markerWidth; >static nsIAtom* mask; >static nsIAtom* maskContentUnits; >static nsIAtom* maskUnits; >static nsIAtom* matrix; >static nsIAtom* metadata; >static nsIAtom* missingGlyph; >static nsIAtom* mm; >static nsIAtom* mpath; >static nsIAtom* noStitch; >static nsIAtom* numOctaves; >static nsIAtom* multiply; >static nsIAtom* objectBoundingBox; >static nsIAtom* offset; >static nsIAtom* onSVGAbort; >static nsIAtom* onSVGError; >static nsIAtom* onSVGLoad; >static nsIAtom* onSVGResize; >static nsIAtom* onSVGScroll; >static nsIAtom* onSVGUnload; >static nsIAtom* onSVGZoom; >static nsIAtom* onzoom; >static nsIAtom* opacity; >static nsIAtom* _operator; >static nsIAtom* out; >static nsIAtom* over; >static nsIAtom* pad; >static nsIAtom* path; >static nsIAtom* pathLength; >static nsIAtom* pattern; >static nsIAtom* patternContentUnits; >static nsIAtom* patternTransform; >static nsIAtom* patternUnits; >static nsIAtom* pc; >static nsIAtom* pointer_events; >static nsIAtom* points; >static nsIAtom* pointsAtX; >static nsIAtom* pointsAtY; >static nsIAtom* pointsAtZ; >static nsIAtom* polyline; >static nsIAtom* preserveAlpha; >static nsIAtom* preserveAspectRatio; >static nsIAtom* primitiveUnits; >static nsIAtom* pt; >static nsIAtom* px; >static nsIAtom* R; >static nsIAtom* r; >static nsIAtom* rad; >static nsIAtom* radialGradient; >static nsIAtom* radius; >static nsIAtom* reflect; >static nsIAtom* refX; >static nsIAtom* refY; >static nsIAtom* requiredExtensions; >static nsIAtom* requiredFeatures; >static nsIAtom* rotate; >static nsIAtom* rx; >static nsIAtom* ry; >static nsIAtom* saturate; >static nsIAtom* scale; >static nsIAtom* set; >static nsIAtom* seed; >static nsIAtom* shape_rendering; >static nsIAtom* skewX; >static nsIAtom* skewY; >static nsIAtom* slope; >static nsIAtom* spacing; >static nsIAtom* specularConstant; >static nsIAtom* specularExponent; >static nsIAtom* spreadMethod; >static nsIAtom* sRGB; >static nsIAtom* startOffset; >static nsIAtom* stdDeviation; >static nsIAtom* stitch; >static nsIAtom* stitchTiles; >static nsIAtom* stop_color; >static nsIAtom* stop_opacity; >static nsIAtom* stroke; >static nsIAtom* stroke_dasharray; >static nsIAtom* stroke_dashoffset; >static nsIAtom* stroke_linecap; >static nsIAtom* stroke_linejoin; >static nsIAtom* stroke_miterlimit; >static nsIAtom* stroke_opacity; >static nsIAtom* stroke_width; >static nsIAtom* strokeWidth; >static nsIAtom* surfaceScale; >static nsIAtom* svg; >static nsIAtom* svgSwitch; >static nsIAtom* symbol; >static nsIAtom* systemLanguage; >static nsIAtom* tableValues; >static nsIAtom* targetX; >static nsIAtom* targetY; >static nsIAtom* text_anchor; >static nsIAtom* text_decoration; >static nsIAtom* text_rendering; >static nsIAtom* textPath; >static nsIAtom* tref; >static nsIAtom* tspan; >static nsIAtom* turbulence; >static nsIAtom* unicode_bidi; >static nsIAtom* userSpaceOnUse; >static nsIAtom* view; >static nsIAtom* viewBox; >static nsIAtom* vkern; >static nsIAtom* word_spacing; >static nsIAtom* x; >static nsIAtom* x1; >static nsIAtom* x2; >static nsIAtom* xChannelSelector; >static nsIAtom* y; >static nsIAtom* y1; >static nsIAtom* y2; >static nsIAtom* yChannelSelector; >static nsIAtom* z; >static nsIAtom* zoomAndPan; > > > >static nsIAtom* MOZcolumnalign; >static nsIAtom* MOZcolumnline; >static nsIAtom* MOZfontsize; >static nsIAtom* MOZfontstyle; >static nsIAtom* MOZrowalign; >static nsIAtom* MOZrowline; >static nsIAtom* abs_; >static nsIAtom* accent_; >static nsIAtom* accentunder_; >static nsIAtom* actiontype_; >static nsIAtom* alignmentscope_; >static nsIAtom* annotation_; >static nsIAtom* apply_; >static nsIAtom* arccos_; >static nsIAtom* arcsin_; >static nsIAtom* arctan_; >static nsIAtom* bevelled_; >static nsIAtom* bvar_; >static nsIAtom* ci_; >static nsIAtom* cn_; >static nsIAtom* columnalign_; >static nsIAtom* columnlines_; >static nsIAtom* columnspacing_; >static nsIAtom* columnspan_; >static nsIAtom* columnwidth_; >static nsIAtom* compose_; >static nsIAtom* condition_; >static nsIAtom* conjugate_; >static nsIAtom* cos_; >static nsIAtom* cosh_; >static nsIAtom* cot_; >static nsIAtom* coth_; >static nsIAtom* csc_; >static nsIAtom* csch_; >static nsIAtom* degree_; >static nsIAtom* denomalign_; >static nsIAtom* depth_; >static nsIAtom* determinant_; >static nsIAtom* diff_; >static nsIAtom* displaystyle_; >static nsIAtom* divide_; >static nsIAtom* edge_; >static nsIAtom* eq_; >static nsIAtom* equalcolumns_; >static nsIAtom* equalrows_; >static nsIAtom* exists_; >static nsIAtom* exp_; >static nsIAtom* factorial_; >static nsIAtom* fence_; >static nsIAtom* fn_; >static nsIAtom* fontfamily_; >static nsIAtom* fontsize_; >static nsIAtom* fontstyle_; >static nsIAtom* fontweight_; >static nsIAtom* forall_; >static nsIAtom* framespacing_; >static nsIAtom* geq_; >static nsIAtom* groupalign_; >static nsIAtom* gt_; >static nsIAtom* ident_; >static nsIAtom* implies_; >static nsIAtom* int_; >static nsIAtom* intersect_; >static nsIAtom* interval_; >static nsIAtom* inverse_; >static nsIAtom* lambda_; >static nsIAtom* largeop_; >static nsIAtom* leq_; >static nsIAtom* limit_; >static nsIAtom* linebreak_; >static nsIAtom* linethickness_; >static nsIAtom* list_; >static nsIAtom* ln_; >static nsIAtom* log_; >static nsIAtom* logbase_; >static nsIAtom* lowlimit_; >static nsIAtom* lquote_; >static nsIAtom* lspace_; >static nsIAtom* lt_; >static nsIAtom* maction_; >static nsIAtom* maligngroup_; >static nsIAtom* malignmark_; >static nsIAtom* mathbackground_; >static nsIAtom* mathcolor_; >static nsIAtom* mathsize_; >static nsIAtom* mathvariant_; >static nsIAtom* matrixrow_; >static nsIAtom* maxsize_; >static nsIAtom* mean_; >static nsIAtom* median_; >static nsIAtom* mediummathspace_; >static nsIAtom* menclose_; >static nsIAtom* merror_; >static nsIAtom* mfenced_; >static nsIAtom* mfrac_; >static nsIAtom* mi_; >static nsIAtom* minlabelspacing_; >static nsIAtom* minsize_; >static nsIAtom* minus_; >static nsIAtom* mlabeledtr_; >static nsIAtom* mmultiscripts_; >static nsIAtom* mn_; >static nsIAtom* mo_; >static nsIAtom* moment_; >static nsIAtom* movablelimits_; >static nsIAtom* mover_; >static nsIAtom* mpadded_; >static nsIAtom* mphantom_; >static nsIAtom* mprescripts_; >static nsIAtom* mroot_; >static nsIAtom* mrow_; >static nsIAtom* ms_; >static nsIAtom* mspace_; >static nsIAtom* msqrt_; >static nsIAtom* mstyle_; >static nsIAtom* msub_; >static nsIAtom* msubsup_; >static nsIAtom* msup_; >static nsIAtom* mtable_; >static nsIAtom* mtd_; >static nsIAtom* mtext_; >static nsIAtom* mtr_; >static nsIAtom* munder_; >static nsIAtom* munderover_; >static nsIAtom* neq_; >static nsIAtom* notation_; >static nsIAtom* notin_; >static nsIAtom* notprsubset_; >static nsIAtom* notsubset_; >static nsIAtom* numalign_; >static nsIAtom* other_; >static nsIAtom* partialdiff_; >static nsIAtom* plus_; >static nsIAtom* power_; >static nsIAtom* product_; >static nsIAtom* prsubset_; >static nsIAtom* quotient_; >static nsIAtom* reln_; >static nsIAtom* rem_; >static nsIAtom* root_; >static nsIAtom* rowalign_; >static nsIAtom* rowlines_; >static nsIAtom* rowspacing_; >static nsIAtom* rquote_; >static nsIAtom* rspace_; >static nsIAtom* scriptlevel_; >static nsIAtom* scriptminsize_; >static nsIAtom* scriptsizemultiplier_; >static nsIAtom* sdev_; >static nsIAtom* sec_; >static nsIAtom* sech_; >static nsIAtom* selection_; >static nsIAtom* semantics_; >static nsIAtom* sep_; >static nsIAtom* separator_; >static nsIAtom* separators_; >static nsIAtom* set_; >static nsIAtom* setdiff_; >static nsIAtom* side_; >static nsIAtom* sin_; >static nsIAtom* sinh_; >static nsIAtom* stretchy_; >static nsIAtom* subscriptshift_; >static nsIAtom* subset_; >static nsIAtom* superscriptshift_; >static nsIAtom* symmetric_; >static nsIAtom* tan_; >static nsIAtom* tanh_; >static nsIAtom* tendsto_; >static nsIAtom* thickmathspace_; >static nsIAtom* thinmathspace_; >static nsIAtom* times_; >static nsIAtom* transpose_; >static nsIAtom* union_; >static nsIAtom* uplimit_; >static nsIAtom* var_; >static nsIAtom* vector_; >static nsIAtom* verythickmathspace_; >static nsIAtom* verythinmathspace_; >static nsIAtom* veryverythickmathspace_; >static nsIAtom* veryverythinmathspace_; >static nsIAtom* math; > > > >static nsIAtom* xor_; > > > >static nsIAtom* avg; >static nsIAtom* booleanFromString; >static nsIAtom* countNonEmpty; >static nsIAtom* daysFromDate; >static nsIAtom* init; >static nsIAtom* instance; >static nsIAtom* months; >static nsIAtom* now; >static nsIAtom* seconds; >static nsIAtom* secondsFromDateTime; > > > > > > > >static nsIAtom* cdataTagName; >static nsIAtom* commentTagName; >static nsIAtom* documentNodeName; >static nsIAtom* documentFragmentNodeName; >static nsIAtom* documentTypeNodeName; >static nsIAtom* processingInstructionTagName; >static nsIAtom* textTagName; > > >static nsIAtom* areaFrame; >static nsIAtom* bcTableCellFrame; >static nsIAtom* blockFrame; >static nsIAtom* boxFrame; >static nsIAtom* brFrame; >static nsIAtom* bulletFrame; >static nsIAtom* columnSetFrame; >static nsIAtom* comboboxControlFrame; >static nsIAtom* comboboxDisplayFrame; >static nsIAtom* deckFrame; >static nsIAtom* directionalFrame; >static nsIAtom* fieldSetFrame; >static nsIAtom* frameSetFrame; >static nsIAtom* gfxButtonControlFrame; >static nsIAtom* HTMLButtonControlFrame; >static nsIAtom* HTMLCanvasFrame; >static nsIAtom* subDocumentFrame; >static nsIAtom* imageBoxFrame; >static nsIAtom* imageFrame; >static nsIAtom* imageControlFrame; >static nsIAtom* inlineFrame; >static nsIAtom* leafBoxFrame; >static nsIAtom* legendFrame; >static nsIAtom* letterFrame; >static nsIAtom* lineFrame; >static nsIAtom* listControlFrame; >static nsIAtom* menuBarFrame; >static nsIAtom* menuFrame; >static nsIAtom* menuPopupFrame; >static nsIAtom* objectFrame; >static nsIAtom* pageFrame; >static nsIAtom* pageBreakFrame; >static nsIAtom* pageContentFrame; >static nsIAtom* placeholderFrame; >static nsIAtom* popupSetFrame; >static nsIAtom* positionedInlineFrame; >static nsIAtom* canvasFrame; >static nsIAtom* rootFrame; >static nsIAtom* scrollFrame; >static nsIAtom* scrollbarFrame; >static nsIAtom* sequenceFrame; >static nsIAtom* sliderFrame; >static nsIAtom* tableCaptionFrame; >static nsIAtom* tableCellFrame; >static nsIAtom* tableColFrame; >static nsIAtom* tableColGroupFrame; >static nsIAtom* tableFrame; >static nsIAtom* tableOuterFrame; >static nsIAtom* tableRowGroupFrame; >static nsIAtom* tableRowFrame; >static nsIAtom* textInputFrame; >static nsIAtom* textFrame; >static nsIAtom* viewportFrame; > >static nsIAtom* svgAFrame; >static nsIAtom* svgClipPathFrame; >static nsIAtom* svgDefsFrame; >static nsIAtom* svgFilterFrame; > >static nsIAtom* svgForeignObjectFrame; > >static nsIAtom* svgGenericContainerFrame; >static nsIAtom* svgGFrame; >static nsIAtom* svgGlyphFrame; >static nsIAtom* svgGradientFrame; >static nsIAtom* svgImageFrame; >static nsIAtom* svgInnerSVGFrame; >static nsIAtom* svgLinearGradientFrame; >static nsIAtom* svgMarkerFrame; >static nsIAtom* svgMaskFrame; >static nsIAtom* svgOuterSVGFrame; >static nsIAtom* svgPathGeometryFrame; >static nsIAtom* svgPatternFrame; >static nsIAtom* svgRadialGradientFrame; >static nsIAtom* svgStopFrame; >static nsIAtom* svgTextFrame; >static nsIAtom* svgTextPathFrame; >static nsIAtom* svgTSpanFrame; >static nsIAtom* svgUseFrame; > > > >static nsIAtom* boxMetricsProperty; >static nsIAtom* changeListProperty; >static nsIAtom* collapseOffsetProperty; >static nsIAtom* computedOffsetProperty; >static nsIAtom* generatedContent; > >static nsIAtom* HTMLReflowMetricsProperty; > >static nsIAtom* IBSplitSpecialPrevSibling; >static nsIAtom* IBSplitSpecialSibling; >static nsIAtom* lineCursorProperty; >static nsIAtom* rowCursorProperty; >static nsIAtom* maxElementWidthProperty; >static nsIAtom* outOfFlowDirtyRectProperty; >static nsIAtom* overflowAreaProperty; >static nsIAtom* overflowProperty; >static nsIAtom* overflowContainersProperty; >static nsIAtom* excessOverflowContainersProperty; >static nsIAtom* overflowLinesProperty; >static nsIAtom* overflowOutOfFlowsProperty; >static nsIAtom* overflowPlaceholdersProperty; >static nsIAtom* rowUnpaginatedHeightProperty; >static nsIAtom* spaceManagerProperty; >static nsIAtom* tabWidthProperty; >static nsIAtom* tableBCProperty; >static nsIAtom* usedMarginProperty; >static nsIAtom* usedPaddingProperty; >static nsIAtom* viewProperty; > > >static nsIAtom* Japanese; >static nsIAtom* Chinese; >static nsIAtom* Taiwanese; >static nsIAtom* HongKongChinese; >static nsIAtom* Unicode; > > >static nsIAtom* TypingTxnName; >static nsIAtom* IMETxnName; >static nsIAtom* DeleteTxnName; ># 63 "nsGkAtoms.h" 2 > >}; ># 95 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/xpcom/nsISupportsPrimitives.h" 1 ># 33 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsPrimitive : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > enum { TYPE_ID = 1U }; > > enum { TYPE_CSTRING = 2U }; > > enum { TYPE_STRING = 3U }; > > enum { TYPE_PRBOOL = 4U }; > > enum { TYPE_PRUINT8 = 5U }; > > enum { TYPE_PRUINT16 = 6U }; > > enum { TYPE_PRUINT32 = 7U }; > > enum { TYPE_PRUINT64 = 8U }; > > enum { TYPE_PRTIME = 9U }; > > enum { TYPE_CHAR = 10U }; > > enum { TYPE_PRINT16 = 11U }; > > enum { TYPE_PRINT32 = 12U }; > > enum { TYPE_PRINT64 = 13U }; > > enum { TYPE_FLOAT = 14U }; > > enum { TYPE_DOUBLE = 15U }; > > enum { TYPE_VOID = 16U }; > > enum { TYPE_INTERFACE_POINTER = 17U }; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetType(PRUint16 *aType) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsPrimitive::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xd0d4b136, 0x1dd1, 0x11b2, { 0x93, 0x71, 0xf0, 0x72, 0x7e, 0xf8, 0x27, 0xc0 }}; ># 145 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsID : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(nsID * *aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(const nsID * aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsID::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xd18290a0, 0x4a1c, 0x11d3, { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 243 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsCString : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(nsACString_internal & aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(const nsACString_internal & aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsCString::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xd65ff270, 0x4a1c, 0x11d3, { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 341 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsString : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(nsAString_internal & aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(const nsAString_internal & aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(PRUnichar **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsString::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xd79dc970, 0x4a1c, 0x11d3, { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 442 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsPRBool : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(PRBool *aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(PRBool aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsPRBool::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xddc3b490, 0x4a1c, 0x11d3, { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 540 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsPRUint8 : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(PRUint8 *aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(PRUint8 aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsPRUint8::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xdec2e4e0, 0x4a1c, 0x11d3, { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 638 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsPRUint16 : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(PRUint16 *aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(PRUint16 aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsPRUint16::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xdfacb090, 0x4a1c, 0x11d3, { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 736 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsPRUint32 : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(PRUint32 *aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(PRUint32 aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsPRUint32::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xe01dc470, 0x4a1c, 0x11d3, { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 834 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsPRUint64 : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(PRUint64 *aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(PRUint64 aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsPRUint64::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xe13567c0, 0x4a1c, 0x11d3, { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 932 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsPRTime : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(PRTime *aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(PRTime aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsPRTime::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xe2563630, 0x4a1c, 0x11d3, { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 1031 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsChar : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(char *aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(char aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsChar::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xe2b05e40, 0x4a1c, 0x11d3, { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 1129 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsPRInt16 : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(PRInt16 *aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(PRInt16 aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsPRInt16::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xe30d94b0, 0x4a1c, 0x11d3, { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 1227 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsPRInt32 : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(PRInt32 *aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(PRInt32 aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsPRInt32::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xe36c5250, 0x4a1c, 0x11d3, { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 1325 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsPRInt64 : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(PRInt64 *aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(PRInt64 aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsPRInt64::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xe3cb0ff0, 0x4a1c, 0x11d3, { 0x98, 0x90, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}; ># 1423 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsFloat : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(float *aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(float aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsFloat::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xabeaa390, 0x4ac0, 0x11d3, { 0xba, 0xea, 0x00, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 }}; ># 1521 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsDouble : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(double *aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(double aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsDouble::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xb32523a0, 0x4ac0, 0x11d3, { 0xba, 0xea, 0x00, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 }}; ># 1619 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsVoid : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(void * *aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(void * aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsVoid::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x464484f0, 0x568d, 0x11d3, { 0xba, 0xf8, 0x00, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 }}; ># 1717 "../../../dist/include/xpcom/nsISupportsPrimitives.h" >class nsISupportsInterfacePointer : public nsISupportsPrimitive { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetData(nsISupports * *aData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetData(nsISupports * aData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDataIID(nsID * *aDataIID) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDataIID(const nsID * aDataIID) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(char **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsISupportsInterfacePointer::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x995ea724, 0x1dd1, 0x11b2, { 0x92, 0x11, 0xc2, 0x1b, 0xdd, 0x3e, 0x7e, 0xd0 }}; ># 96 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/imglib2/imgIDecoderObserver.h" 1 ># 10 "../../../dist/include/imglib2/imgIDecoderObserver.h" ># 1 "../../../dist/include/imglib2/imgIContainerObserver.h" 1 ># 14 "../../../dist/include/imglib2/imgIContainerObserver.h" ># 1 "../../../dist/include/gfx/gfxtypes.h" 1 ># 23 "../../../dist/include/gfx/gfxtypes.h" >typedef PRUint32 gfx_color; > > > > > >typedef PRUint16 gfx_depth; > > > > > > >typedef PRInt32 gfx_format; ># 15 "../../../dist/include/imglib2/imgIContainerObserver.h" 2 > > > > > > ># 1 "../../../dist/include/gfx/nsRect.h" 1 ># 43 "../../../dist/include/gfx/nsRect.h" ># 1 "../../../dist/include/gfx/nsCoord.h" 1 ># 41 "../../../dist/include/gfx/nsCoord.h" ># 1 "../../../dist/include/xpcom/nscore.h" 1 ># 42 "../../../dist/include/gfx/nsCoord.h" 2 ># 1 "../../../dist/include/xpcom/nsMathUtils.h" 1 ># 42 "../../../dist/include/xpcom/nsMathUtils.h" ># 1 "/usr/include/math.h" 1 3 4 ># 30 "/usr/include/math.h" 3 4 >extern "C" { > > > ># 1 "/usr/include/bits/huge_val.h" 1 3 4 ># 35 "/usr/include/math.h" 2 3 4 > ># 1 "/usr/include/bits/huge_valf.h" 1 3 4 ># 37 "/usr/include/math.h" 2 3 4 ># 1 "/usr/include/bits/huge_vall.h" 1 3 4 ># 38 "/usr/include/math.h" 2 3 4 > > ># 1 "/usr/include/bits/inf.h" 1 3 4 ># 41 "/usr/include/math.h" 2 3 4 > > ># 1 "/usr/include/bits/nan.h" 1 3 4 ># 44 "/usr/include/math.h" 2 3 4 > > > ># 1 "/usr/include/bits/mathdef.h" 1 3 4 ># 36 "/usr/include/bits/mathdef.h" 3 4 >typedef long double float_t; > >typedef long double double_t; ># 48 "/usr/include/math.h" 2 3 4 ># 71 "/usr/include/math.h" 3 4 ># 1 "/usr/include/bits/mathcalls.h" 1 3 4 ># 53 "/usr/include/bits/mathcalls.h" 3 4 > > >extern double acos (double __x) throw (); extern double __acos (double __x) throw (); > >extern double asin (double __x) throw (); extern double __asin (double __x) throw (); > >extern double atan (double __x) throw (); extern double __atan (double __x) throw (); > >extern double atan2 (double __y, double __x) throw (); extern double __atan2 (double __y, double __x) throw (); > > >extern double cos (double __x) throw (); extern double __cos (double __x) throw (); > >extern double sin (double __x) throw (); extern double __sin (double __x) throw (); > >extern double tan (double __x) throw (); extern double __tan (double __x) throw (); > > > > >extern double cosh (double __x) throw (); extern double __cosh (double __x) throw (); > >extern double sinh (double __x) throw (); extern double __sinh (double __x) throw (); > >extern double tanh (double __x) throw (); extern double __tanh (double __x) throw (); > > > > >extern void sincos (double __x, double *__sinx, double *__cosx) throw (); extern void __sincos (double __x, double *__sinx, double *__cosx) throw (); > > > > > > >extern double acosh (double __x) throw (); extern double __acosh (double __x) throw (); > >extern double asinh (double __x) throw (); extern double __asinh (double __x) throw (); > >extern double atanh (double __x) throw (); extern double __atanh (double __x) throw (); > > > > > > > >extern double exp (double __x) throw (); extern double __exp (double __x) throw (); > > >extern double frexp (double __x, int *__exponent) throw (); extern double __frexp (double __x, int *__exponent) throw (); > > >extern double ldexp (double __x, int __exponent) throw (); extern double __ldexp (double __x, int __exponent) throw (); > > >extern double log (double __x) throw (); extern double __log (double __x) throw (); > > >extern double log10 (double __x) throw (); extern double __log10 (double __x) throw (); > > >extern double modf (double __x, double *__iptr) throw (); extern double __modf (double __x, double *__iptr) throw (); > > > > >extern double exp10 (double __x) throw (); extern double __exp10 (double __x) throw (); > >extern double pow10 (double __x) throw (); extern double __pow10 (double __x) throw (); > > > > > >extern double expm1 (double __x) throw (); extern double __expm1 (double __x) throw (); > > >extern double log1p (double __x) throw (); extern double __log1p (double __x) throw (); > > >extern double logb (double __x) throw (); extern double __logb (double __x) throw (); > > > > > > >extern double exp2 (double __x) throw (); extern double __exp2 (double __x) throw (); > > >extern double log2 (double __x) throw (); extern double __log2 (double __x) throw (); > > > > > > > > >extern double pow (double __x, double __y) throw (); extern double __pow (double __x, double __y) throw (); > > >extern double sqrt (double __x) throw (); extern double __sqrt (double __x) throw (); > > > > > >extern double hypot (double __x, double __y) throw (); extern double __hypot (double __x, double __y) throw (); > > > > > > >extern double cbrt (double __x) throw (); extern double __cbrt (double __x) throw (); > > > > > > > > >extern double ceil (double __x) throw () __attribute__ ((__const__)); extern double __ceil (double __x) throw () __attribute__ ((__const__)); > > >extern double fabs (double __x) throw () __attribute__ ((__const__)); extern double __fabs (double __x) throw () __attribute__ ((__const__)); > > >extern double floor (double __x) throw () __attribute__ ((__const__)); extern double __floor (double __x) throw () __attribute__ ((__const__)); > > >extern double fmod (double __x, double __y) throw (); extern double __fmod (double __x, double __y) throw (); > > > > >extern int __isinf (double __value) throw () __attribute__ ((__const__)); > > >extern int __finite (double __value) throw () __attribute__ ((__const__)); > > > > > >extern int isinf (double __value) throw () __attribute__ ((__const__)); > > >extern int finite (double __value) throw () __attribute__ ((__const__)); > > >extern double drem (double __x, double __y) throw (); extern double __drem (double __x, double __y) throw (); > > > >extern double significand (double __x) throw (); extern double __significand (double __x) throw (); > > > > > >extern double copysign (double __x, double __y) throw () __attribute__ ((__const__)); extern double __copysign (double __x, double __y) throw () __attribute__ ((__const__)); > > > > > > >extern double nan (__const char *__tagb) throw () __attribute__ ((__const__)); extern double __nan (__const char *__tagb) throw () __attribute__ ((__const__)); > > > > > >extern int __isnan (double __value) throw () __attribute__ ((__const__)); > > > >extern int isnan (double __value) throw () __attribute__ ((__const__)); > > >extern double j0 (double) throw (); extern double __j0 (double) throw (); >extern double j1 (double) throw (); extern double __j1 (double) throw (); >extern double jn (int, double) throw (); extern double __jn (int, double) throw (); >extern double y0 (double) throw (); extern double __y0 (double) throw (); >extern double y1 (double) throw (); extern double __y1 (double) throw (); >extern double yn (int, double) throw (); extern double __yn (int, double) throw (); > > > > > > >extern double erf (double) throw (); extern double __erf (double) throw (); >extern double erfc (double) throw (); extern double __erfc (double) throw (); >extern double lgamma (double) throw (); extern double __lgamma (double) throw (); > > > > > > >extern double tgamma (double) throw (); extern double __tgamma (double) throw (); > > > > > >extern double gamma (double) throw (); extern double __gamma (double) throw (); > > > > > > >extern double lgamma_r (double, int *__signgamp) throw (); extern double __lgamma_r (double, int *__signgamp) throw (); > > > > > > > >extern double rint (double __x) throw (); extern double __rint (double __x) throw (); > > >extern double nextafter (double __x, double __y) throw () __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) throw () __attribute__ ((__const__)); > >extern double nexttoward (double __x, long double __y) throw () __attribute__ ((__const__)); extern double __nexttoward (double __x, long double __y) throw () __attribute__ ((__const__)); > > > >extern double remainder (double __x, double __y) throw (); extern double __remainder (double __x, double __y) throw (); > > > >extern double scalbn (double __x, int __n) throw (); extern double __scalbn (double __x, int __n) throw (); > > > >extern int ilogb (double __x) throw (); extern int __ilogb (double __x) throw (); > > > > >extern double scalbln (double __x, long int __n) throw (); extern double __scalbln (double __x, long int __n) throw (); > > > >extern double nearbyint (double __x) throw (); extern double __nearbyint (double __x) throw (); > > > >extern double round (double __x) throw () __attribute__ ((__const__)); extern double __round (double __x) throw () __attribute__ ((__const__)); > > > >extern double trunc (double __x) throw () __attribute__ ((__const__)); extern double __trunc (double __x) throw () __attribute__ ((__const__)); > > > > >extern double remquo (double __x, double __y, int *__quo) throw (); extern double __remquo (double __x, double __y, int *__quo) throw (); > > > > > > >extern long int lrint (double __x) throw (); extern long int __lrint (double __x) throw (); >extern long long int llrint (double __x) throw (); extern long long int __llrint (double __x) throw (); > > > >extern long int lround (double __x) throw (); extern long int __lround (double __x) throw (); >extern long long int llround (double __x) throw (); extern long long int __llround (double __x) throw (); > > > >extern double fdim (double __x, double __y) throw (); extern double __fdim (double __x, double __y) throw (); > > >extern double fmax (double __x, double __y) throw (); extern double __fmax (double __x, double __y) throw (); > > >extern double fmin (double __x, double __y) throw (); extern double __fmin (double __x, double __y) throw (); > > > >extern int __fpclassify (double __value) throw () > __attribute__ ((__const__)); > > >extern int __signbit (double __value) throw () > __attribute__ ((__const__)); > > > >extern double fma (double __x, double __y, double __z) throw (); extern double __fma (double __x, double __y, double __z) throw (); > > > > > > > > >extern double scalb (double __x, double __n) throw (); extern double __scalb (double __x, double __n) throw (); ># 72 "/usr/include/math.h" 2 3 4 ># 94 "/usr/include/math.h" 3 4 ># 1 "/usr/include/bits/mathcalls.h" 1 3 4 ># 53 "/usr/include/bits/mathcalls.h" 3 4 > > >extern float acosf (float __x) throw (); extern float __acosf (float __x) throw (); > >extern float asinf (float __x) throw (); extern float __asinf (float __x) throw (); > >extern float atanf (float __x) throw (); extern float __atanf (float __x) throw (); > >extern float atan2f (float __y, float __x) throw (); extern float __atan2f (float __y, float __x) throw (); > > >extern float cosf (float __x) throw (); extern float __cosf (float __x) throw (); > >extern float sinf (float __x) throw (); extern float __sinf (float __x) throw (); > >extern float tanf (float __x) throw (); extern float __tanf (float __x) throw (); > > > > >extern float coshf (float __x) throw (); extern float __coshf (float __x) throw (); > >extern float sinhf (float __x) throw (); extern float __sinhf (float __x) throw (); > >extern float tanhf (float __x) throw (); extern float __tanhf (float __x) throw (); > > > > >extern void sincosf (float __x, float *__sinx, float *__cosx) throw (); extern void __sincosf (float __x, float *__sinx, float *__cosx) throw (); > > > > > > >extern float acoshf (float __x) throw (); extern float __acoshf (float __x) throw (); > >extern float asinhf (float __x) throw (); extern float __asinhf (float __x) throw (); > >extern float atanhf (float __x) throw (); extern float __atanhf (float __x) throw (); > > > > > > > >extern float expf (float __x) throw (); extern float __expf (float __x) throw (); > > >extern float frexpf (float __x, int *__exponent) throw (); extern float __frexpf (float __x, int *__exponent) throw (); > > >extern float ldexpf (float __x, int __exponent) throw (); extern float __ldexpf (float __x, int __exponent) throw (); > > >extern float logf (float __x) throw (); extern float __logf (float __x) throw (); > > >extern float log10f (float __x) throw (); extern float __log10f (float __x) throw (); > > >extern float modff (float __x, float *__iptr) throw (); extern float __modff (float __x, float *__iptr) throw (); > > > > >extern float exp10f (float __x) throw (); extern float __exp10f (float __x) throw (); > >extern float pow10f (float __x) throw (); extern float __pow10f (float __x) throw (); > > > > > >extern float expm1f (float __x) throw (); extern float __expm1f (float __x) throw (); > > >extern float log1pf (float __x) throw (); extern float __log1pf (float __x) throw (); > > >extern float logbf (float __x) throw (); extern float __logbf (float __x) throw (); > > > > > > >extern float exp2f (float __x) throw (); extern float __exp2f (float __x) throw (); > > >extern float log2f (float __x) throw (); extern float __log2f (float __x) throw (); > > > > > > > > >extern float powf (float __x, float __y) throw (); extern float __powf (float __x, float __y) throw (); > > >extern float sqrtf (float __x) throw (); extern float __sqrtf (float __x) throw (); > > > > > >extern float hypotf (float __x, float __y) throw (); extern float __hypotf (float __x, float __y) throw (); > > > > > > >extern float cbrtf (float __x) throw (); extern float __cbrtf (float __x) throw (); > > > > > > > > >extern float ceilf (float __x) throw () __attribute__ ((__const__)); extern float __ceilf (float __x) throw () __attribute__ ((__const__)); > > >extern float fabsf (float __x) throw () __attribute__ ((__const__)); extern float __fabsf (float __x) throw () __attribute__ ((__const__)); > > >extern float floorf (float __x) throw () __attribute__ ((__const__)); extern float __floorf (float __x) throw () __attribute__ ((__const__)); > > >extern float fmodf (float __x, float __y) throw (); extern float __fmodf (float __x, float __y) throw (); > > > > >extern int __isinff (float __value) throw () __attribute__ ((__const__)); > > >extern int __finitef (float __value) throw () __attribute__ ((__const__)); > > > > > >extern int isinff (float __value) throw () __attribute__ ((__const__)); > > >extern int finitef (float __value) throw () __attribute__ ((__const__)); > > >extern float dremf (float __x, float __y) throw (); extern float __dremf (float __x, float __y) throw (); > > > >extern float significandf (float __x) throw (); extern float __significandf (float __x) throw (); > > > > > >extern float copysignf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) throw () __attribute__ ((__const__)); > > > > > > >extern float nanf (__const char *__tagb) throw () __attribute__ ((__const__)); extern float __nanf (__const char *__tagb) throw () __attribute__ ((__const__)); > > > > > >extern int __isnanf (float __value) throw () __attribute__ ((__const__)); > > > >extern int isnanf (float __value) throw () __attribute__ ((__const__)); > > >extern float j0f (float) throw (); extern float __j0f (float) throw (); >extern float j1f (float) throw (); extern float __j1f (float) throw (); >extern float jnf (int, float) throw (); extern float __jnf (int, float) throw (); >extern float y0f (float) throw (); extern float __y0f (float) throw (); >extern float y1f (float) throw (); extern float __y1f (float) throw (); >extern float ynf (int, float) throw (); extern float __ynf (int, float) throw (); > > > > > > >extern float erff (float) throw (); extern float __erff (float) throw (); >extern float erfcf (float) throw (); extern float __erfcf (float) throw (); >extern float lgammaf (float) throw (); extern float __lgammaf (float) throw (); > > > > > > >extern float tgammaf (float) throw (); extern float __tgammaf (float) throw (); > > > > > >extern float gammaf (float) throw (); extern float __gammaf (float) throw (); > > > > > > >extern float lgammaf_r (float, int *__signgamp) throw (); extern float __lgammaf_r (float, int *__signgamp) throw (); > > > > > > > >extern float rintf (float __x) throw (); extern float __rintf (float __x) throw (); > > >extern float nextafterf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) throw () __attribute__ ((__const__)); > >extern float nexttowardf (float __x, long double __y) throw () __attribute__ ((__const__)); extern float __nexttowardf (float __x, long double __y) throw () __attribute__ ((__const__)); > > > >extern float remainderf (float __x, float __y) throw (); extern float __remainderf (float __x, float __y) throw (); > > > >extern float scalbnf (float __x, int __n) throw (); extern float __scalbnf (float __x, int __n) throw (); > > > >extern int ilogbf (float __x) throw (); extern int __ilogbf (float __x) throw (); > > > > >extern float scalblnf (float __x, long int __n) throw (); extern float __scalblnf (float __x, long int __n) throw (); > > > >extern float nearbyintf (float __x) throw (); extern float __nearbyintf (float __x) throw (); > > > >extern float roundf (float __x) throw () __attribute__ ((__const__)); extern float __roundf (float __x) throw () __attribute__ ((__const__)); > > > >extern float truncf (float __x) throw () __attribute__ ((__const__)); extern float __truncf (float __x) throw () __attribute__ ((__const__)); > > > > >extern float remquof (float __x, float __y, int *__quo) throw (); extern float __remquof (float __x, float __y, int *__quo) throw (); > > > > > > >extern long int lrintf (float __x) throw (); extern long int __lrintf (float __x) throw (); >extern long long int llrintf (float __x) throw (); extern long long int __llrintf (float __x) throw (); > > > >extern long int lroundf (float __x) throw (); extern long int __lroundf (float __x) throw (); >extern long long int llroundf (float __x) throw (); extern long long int __llroundf (float __x) throw (); > > > >extern float fdimf (float __x, float __y) throw (); extern float __fdimf (float __x, float __y) throw (); > > >extern float fmaxf (float __x, float __y) throw (); extern float __fmaxf (float __x, float __y) throw (); > > >extern float fminf (float __x, float __y) throw (); extern float __fminf (float __x, float __y) throw (); > > > >extern int __fpclassifyf (float __value) throw () > __attribute__ ((__const__)); > > >extern int __signbitf (float __value) throw () > __attribute__ ((__const__)); > > > >extern float fmaf (float __x, float __y, float __z) throw (); extern float __fmaf (float __x, float __y, float __z) throw (); > > > > > > > > >extern float scalbf (float __x, float __n) throw (); extern float __scalbf (float __x, float __n) throw (); ># 95 "/usr/include/math.h" 2 3 4 ># 141 "/usr/include/math.h" 3 4 ># 1 "/usr/include/bits/mathcalls.h" 1 3 4 ># 53 "/usr/include/bits/mathcalls.h" 3 4 > > >extern long double acosl (long double __x) throw (); extern long double __acosl (long double __x) throw (); > >extern long double asinl (long double __x) throw (); extern long double __asinl (long double __x) throw (); > >extern long double atanl (long double __x) throw (); extern long double __atanl (long double __x) throw (); > >extern long double atan2l (long double __y, long double __x) throw (); extern long double __atan2l (long double __y, long double __x) throw (); > > >extern long double cosl (long double __x) throw (); extern long double __cosl (long double __x) throw (); > >extern long double sinl (long double __x) throw (); extern long double __sinl (long double __x) throw (); > >extern long double tanl (long double __x) throw (); extern long double __tanl (long double __x) throw (); > > > > >extern long double coshl (long double __x) throw (); extern long double __coshl (long double __x) throw (); > >extern long double sinhl (long double __x) throw (); extern long double __sinhl (long double __x) throw (); > >extern long double tanhl (long double __x) throw (); extern long double __tanhl (long double __x) throw (); > > > > >extern void sincosl (long double __x, long double *__sinx, long double *__cosx) throw (); extern void __sincosl (long double __x, long double *__sinx, long double *__cosx) throw (); > > > > > > >extern long double acoshl (long double __x) throw (); extern long double __acoshl (long double __x) throw (); > >extern long double asinhl (long double __x) throw (); extern long double __asinhl (long double __x) throw (); > >extern long double atanhl (long double __x) throw (); extern long double __atanhl (long double __x) throw (); > > > > > > > >extern long double expl (long double __x) throw (); extern long double __expl (long double __x) throw (); > > >extern long double frexpl (long double __x, int *__exponent) throw (); extern long double __frexpl (long double __x, int *__exponent) throw (); > > >extern long double ldexpl (long double __x, int __exponent) throw (); extern long double __ldexpl (long double __x, int __exponent) throw (); > > >extern long double logl (long double __x) throw (); extern long double __logl (long double __x) throw (); > > >extern long double log10l (long double __x) throw (); extern long double __log10l (long double __x) throw (); > > >extern long double modfl (long double __x, long double *__iptr) throw (); extern long double __modfl (long double __x, long double *__iptr) throw (); > > > > >extern long double exp10l (long double __x) throw (); extern long double __exp10l (long double __x) throw (); > >extern long double pow10l (long double __x) throw (); extern long double __pow10l (long double __x) throw (); > > > > > >extern long double expm1l (long double __x) throw (); extern long double __expm1l (long double __x) throw (); > > >extern long double log1pl (long double __x) throw (); extern long double __log1pl (long double __x) throw (); > > >extern long double logbl (long double __x) throw (); extern long double __logbl (long double __x) throw (); > > > > > > >extern long double exp2l (long double __x) throw (); extern long double __exp2l (long double __x) throw (); > > >extern long double log2l (long double __x) throw (); extern long double __log2l (long double __x) throw (); > > > > > > > > >extern long double powl (long double __x, long double __y) throw (); extern long double __powl (long double __x, long double __y) throw (); > > >extern long double sqrtl (long double __x) throw (); extern long double __sqrtl (long double __x) throw (); > > > > > >extern long double hypotl (long double __x, long double __y) throw (); extern long double __hypotl (long double __x, long double __y) throw (); > > > > > > >extern long double cbrtl (long double __x) throw (); extern long double __cbrtl (long double __x) throw (); > > > > > > > > >extern long double ceill (long double __x) throw () __attribute__ ((__const__)); extern long double __ceill (long double __x) throw () __attribute__ ((__const__)); > > >extern long double fabsl (long double __x) throw () __attribute__ ((__const__)); extern long double __fabsl (long double __x) throw () __attribute__ ((__const__)); > > >extern long double floorl (long double __x) throw () __attribute__ ((__const__)); extern long double __floorl (long double __x) throw () __attribute__ ((__const__)); > > >extern long double fmodl (long double __x, long double __y) throw (); extern long double __fmodl (long double __x, long double __y) throw (); > > > > >extern int __isinfl (long double __value) throw () __attribute__ ((__const__)); > > >extern int __finitel (long double __value) throw () __attribute__ ((__const__)); > > > > > >extern int isinfl (long double __value) throw () __attribute__ ((__const__)); > > >extern int finitel (long double __value) throw () __attribute__ ((__const__)); > > >extern long double dreml (long double __x, long double __y) throw (); extern long double __dreml (long double __x, long double __y) throw (); > > > >extern long double significandl (long double __x) throw (); extern long double __significandl (long double __x) throw (); > > > > > >extern long double copysignl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) throw () __attribute__ ((__const__)); > > > > > > >extern long double nanl (__const char *__tagb) throw () __attribute__ ((__const__)); extern long double __nanl (__const char *__tagb) throw () __attribute__ ((__const__)); > > > > > >extern int __isnanl (long double __value) throw () __attribute__ ((__const__)); > > > >extern int isnanl (long double __value) throw () __attribute__ ((__const__)); > > >extern long double j0l (long double) throw (); extern long double __j0l (long double) throw (); >extern long double j1l (long double) throw (); extern long double __j1l (long double) throw (); >extern long double jnl (int, long double) throw (); extern long double __jnl (int, long double) throw (); >extern long double y0l (long double) throw (); extern long double __y0l (long double) throw (); >extern long double y1l (long double) throw (); extern long double __y1l (long double) throw (); >extern long double ynl (int, long double) throw (); extern long double __ynl (int, long double) throw (); > > > > > > >extern long double erfl (long double) throw (); extern long double __erfl (long double) throw (); >extern long double erfcl (long double) throw (); extern long double __erfcl (long double) throw (); >extern long double lgammal (long double) throw (); extern long double __lgammal (long double) throw (); > > > > > > >extern long double tgammal (long double) throw (); extern long double __tgammal (long double) throw (); > > > > > >extern long double gammal (long double) throw (); extern long double __gammal (long double) throw (); > > > > > > >extern long double lgammal_r (long double, int *__signgamp) throw (); extern long double __lgammal_r (long double, int *__signgamp) throw (); > > > > > > > >extern long double rintl (long double __x) throw (); extern long double __rintl (long double __x) throw (); > > >extern long double nextafterl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __nextafterl (long double __x, long double __y) throw () __attribute__ ((__const__)); > >extern long double nexttowardl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __nexttowardl (long double __x, long double __y) throw () __attribute__ ((__const__)); > > > >extern long double remainderl (long double __x, long double __y) throw (); extern long double __remainderl (long double __x, long double __y) throw (); > > > >extern long double scalbnl (long double __x, int __n) throw (); extern long double __scalbnl (long double __x, int __n) throw (); > > > >extern int ilogbl (long double __x) throw (); extern int __ilogbl (long double __x) throw (); > > > > >extern long double scalblnl (long double __x, long int __n) throw (); extern long double __scalblnl (long double __x, long int __n) throw (); > > > >extern long double nearbyintl (long double __x) throw (); extern long double __nearbyintl (long double __x) throw (); > > > >extern long double roundl (long double __x) throw () __attribute__ ((__const__)); extern long double __roundl (long double __x) throw () __attribute__ ((__const__)); > > > >extern long double truncl (long double __x) throw () __attribute__ ((__const__)); extern long double __truncl (long double __x) throw () __attribute__ ((__const__)); > > > > >extern long double remquol (long double __x, long double __y, int *__quo) throw (); extern long double __remquol (long double __x, long double __y, int *__quo) throw (); > > > > > > >extern long int lrintl (long double __x) throw (); extern long int __lrintl (long double __x) throw (); >extern long long int llrintl (long double __x) throw (); extern long long int __llrintl (long double __x) throw (); > > > >extern long int lroundl (long double __x) throw (); extern long int __lroundl (long double __x) throw (); >extern long long int llroundl (long double __x) throw (); extern long long int __llroundl (long double __x) throw (); > > > >extern long double fdiml (long double __x, long double __y) throw (); extern long double __fdiml (long double __x, long double __y) throw (); > > >extern long double fmaxl (long double __x, long double __y) throw (); extern long double __fmaxl (long double __x, long double __y) throw (); > > >extern long double fminl (long double __x, long double __y) throw (); extern long double __fminl (long double __x, long double __y) throw (); > > > >extern int __fpclassifyl (long double __value) throw () > __attribute__ ((__const__)); > > >extern int __signbitl (long double __value) throw () > __attribute__ ((__const__)); > > > >extern long double fmal (long double __x, long double __y, long double __z) throw (); extern long double __fmal (long double __x, long double __y, long double __z) throw (); > > > > > > > > >extern long double scalbl (long double __x, long double __n) throw (); extern long double __scalbl (long double __x, long double __n) throw (); ># 142 "/usr/include/math.h" 2 3 4 ># 157 "/usr/include/math.h" 3 4 >extern int signgam; ># 198 "/usr/include/math.h" 3 4 >enum > { > FP_NAN, > > FP_INFINITE, > > FP_ZERO, > > FP_SUBNORMAL, > > FP_NORMAL > > }; ># 284 "/usr/include/math.h" 3 4 >typedef enum >{ > _IEEE_ = -1, > _SVID_, > _XOPEN_, > _POSIX_, > _ISOC_ >} _LIB_VERSION_TYPE; > > > > >extern _LIB_VERSION_TYPE _LIB_VERSION; ># 307 "/usr/include/math.h" 3 4 >struct __exception > > > > { > int type; > char *name; > double arg1; > double arg2; > double retval; > }; > > >extern int matherr (struct __exception *__exc) throw (); ># 465 "/usr/include/math.h" 3 4 >} ># 43 "../../../dist/include/xpcom/nsMathUtils.h" 2 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/float.h" 1 3 4 ># 44 "../../../dist/include/xpcom/nsMathUtils.h" 2 > > > > >inline __attribute__ ((visibility ("hidden"))) double NS_round(double x) >{ > return x >= 0.0 ? floor(x + 0.5) : ceil(x - 0.5); >} >inline __attribute__ ((visibility ("hidden"))) float NS_roundf(float x) >{ > return x >= 0.0f ? floorf(x + 0.5f) : ceilf(x - 0.5f); >} >inline __attribute__ ((visibility ("hidden"))) PRInt32 NS_lround(double x) >{ > return x >= 0.0 ? PRInt32(x + 0.5) : PRInt32(x - 0.5); >} ># 97 "../../../dist/include/xpcom/nsMathUtils.h" >inline __attribute__ ((visibility ("hidden"))) PRInt32 NS_lroundf(float x) >{ > return x >= 0.0f ? PRInt32(x + 0.5f) : PRInt32(x - 0.5f); >} > > > > >inline __attribute__ ((visibility ("hidden"))) double NS_ceil(double x) >{ > return ceil(x); >} >inline __attribute__ ((visibility ("hidden"))) float NS_ceilf(float x) >{ > return ceilf(x); >} > > > > >inline __attribute__ ((visibility ("hidden"))) double NS_floor(double x) >{ > return floor(x); >} >inline __attribute__ ((visibility ("hidden"))) float NS_floorf(float x) >{ > return floorf(x); >} ># 43 "../../../dist/include/gfx/nsCoord.h" 2 > > > ># 1 "../../../dist/include/xpcom/nsDebug.h" 1 ># 47 "../../../dist/include/gfx/nsCoord.h" 2 ># 62 "../../../dist/include/gfx/nsCoord.h" >inline float NS_IEEEPositiveInfinity() { > union { PRUint32 mPRUint32; float mFloat; } pun; > pun.mPRUint32 = 0x7F800000; > return pun.mFloat; >} >inline PRBool NS_IEEEIsNan(float aF) { > union { PRUint32 mBits; float mFloat; } pun; > pun.mFloat = aF; > return (pun.mBits & 0x7F800000) == 0x7F800000 && > (pun.mBits & 0x007FFFFF) != 0; >} > > > > > >typedef PRInt32 nscoord; > > > > > >inline void VERIFY_COORD(nscoord aCoord) { > > > > >} > >inline nscoord NSCoordMultiply(nscoord aCoord, float aVal) { > VERIFY_COORD(aCoord); > > > > return (PRInt32)(aCoord*aVal); > >} > >inline nscoord NSCoordMultiply(nscoord aCoord, PRInt32 aVal) { > VERIFY_COORD(aCoord); > return aCoord*aVal; >} > >inline nscoord NSCoordDivide(nscoord aCoord, float aVal) { > VERIFY_COORD(aCoord); > > > > return (PRInt32)(aCoord/aVal); > >} > >inline nscoord NSCoordDivide(nscoord aCoord, PRInt32 aVal) { > VERIFY_COORD(aCoord); > > > > return aCoord/aVal; > >} ># 132 "../../../dist/include/gfx/nsCoord.h" >inline nscoord >NSCoordSaturatingAdd(nscoord a, nscoord b) >{ > VERIFY_COORD(a); > VERIFY_COORD(b); > do { } while (0); > > > > > > > if (a == nscoord(1 << 30) || b == nscoord(1 << 30)) { > > return nscoord(1 << 30); > } else { > > do { } while (0); > > do { } while (0); > > > > do { } while (0); > > > > return ((nscoord(1 << 30))<(a + b)?(nscoord(1 << 30)):(a + b)); > } > >} ># 180 "../../../dist/include/gfx/nsCoord.h" >inline nscoord >NSCoordSaturatingSubtract(nscoord a, nscoord b, > nscoord infMinusInfResult) >{ > VERIFY_COORD(a); > VERIFY_COORD(b); > do { } while (0); > > > if (b == nscoord(1 << 30)) { > if (a == nscoord(1 << 30)) { > > return infMinusInfResult; > } else { > > do { } while (0); > return 0; > } > } else { > > > > > if (a == nscoord(1 << 30)) { > > return nscoord(1 << 30); > } else { > > do { } while (0); > > do { } while (0); > > > > do { } while (0); > > > > return ((nscoord(1 << 30))<(a - b)?(nscoord(1 << 30)):(a - b)); > } > } > >} > > > > >inline PRBool >NSCoordLessThan(nscoord a,nscoord b) >{ > do { } while (0); > > return ((a < b) || (b == nscoord(1 << 30))); >} > > > > > >inline PRBool >NSCoordGreaterThan(nscoord a,nscoord b) >{ > do { } while (0); > > return ((a > b) && (b != nscoord(1 << 30))); >} > > > > > > >inline PRInt32 NSCoordToInt(nscoord aCoord) { > VERIFY_COORD(aCoord); ># 268 "../../../dist/include/gfx/nsCoord.h" > return aCoord; > >} > >inline float NSCoordToFloat(nscoord aCoord) { > VERIFY_COORD(aCoord); > > > > return (float)aCoord; >} > > > > >inline nscoord NSToCoordFloor(float aValue) >{ > return nscoord(NS_floorf(aValue)); >} > >inline nscoord NSToCoordCeil(float aValue) >{ > return nscoord(NS_ceilf(aValue)); >} > >inline nscoord NSToCoordRound(float aValue) >{ > > > > return nscoord(NS_floorf(aValue + 0.5f)); > >} > > > > >inline PRInt32 NSToIntFloor(float aValue) >{ > return PRInt32(NS_floorf(aValue)); >} > >inline PRInt32 NSToIntCeil(float aValue) >{ > return PRInt32(NS_ceilf(aValue)); >} > >inline PRInt32 NSToIntRound(float aValue) >{ > return NS_lroundf(aValue); >} > > > > >inline nscoord NSFloatPixelsToAppUnits(float aPixels, PRInt32 aAppUnitsPerPixel) >{ > float product = aPixels * aAppUnitsPerPixel; > nscoord result; > > > > > > > if (product >= nscoord(1 << 30)) { > do { } while (0); > result = nscoord(1 << 30); > } else if (product <= (-nscoord(1 << 30))) { > do { } while (0); > result = (-nscoord(1 << 30)); > } else { > result = NSToCoordRound(product); > } > > > VERIFY_COORD(result); > return result; >} > >inline nscoord NSIntPixelsToAppUnits(PRInt32 aPixels, PRInt32 aAppUnitsPerPixel) >{ > > > nscoord r = aPixels * (nscoord)aAppUnitsPerPixel; > VERIFY_COORD(r); > return r; >} > >inline float NSAppUnitsToFloatPixels(nscoord aAppUnits, PRInt32 aAppUnitsPerPixel) >{ > return (float(aAppUnits) / aAppUnitsPerPixel); >} > >inline PRInt32 NSAppUnitsToIntPixels(nscoord aAppUnits, PRInt32 aAppUnitsPerPixel) >{ > return NSToIntRound(float(aAppUnits) / aAppUnitsPerPixel); >} ># 376 "../../../dist/include/gfx/nsCoord.h" >inline nscoord NSUnitsToTwips(float aValue, float aPointsPerUnit) >{ > return NSToCoordRound(aValue * aPointsPerUnit * 20.0f); >} > >inline float NSTwipsToUnits(nscoord aTwips, float aUnitsPerPoint) >{ > return (aTwips * (aUnitsPerPoint / 20.0f)); >} ># 44 "../../../dist/include/gfx/nsRect.h" 2 ># 1 "../../../dist/include/gfx/nsPoint.h" 1 ># 43 "../../../dist/include/gfx/nsPoint.h" >struct nsPoint { > nscoord x, y; > > > nsPoint() {} > nsPoint(const nsPoint& aPoint) { x = aPoint.x; y = aPoint.y;} > nsPoint(nscoord aX, nscoord aY) { VERIFY_COORD(aX); VERIFY_COORD(aY); x = aX; y = aY;} > > void MoveTo(nscoord aX, nscoord aY) {x = aX; y = aY;} > void MoveBy(nscoord aDx, nscoord aDy) {x += aDx; y += aDy;} > > > > PRBool operator==(const nsPoint& aPoint) const { > return (PRBool) ((x == aPoint.x) && (y == aPoint.y)); > } > PRBool operator!=(const nsPoint& aPoint) const { > return (PRBool) ((x != aPoint.x) || (y != aPoint.y)); > } > nsPoint operator+(const nsPoint& aPoint) const { > return nsPoint(x + aPoint.x, y + aPoint.y); > } > nsPoint operator-(const nsPoint& aPoint) const { > return nsPoint(x - aPoint.x, y - aPoint.y); > } > nsPoint& operator+=(const nsPoint& aPoint) { > x += aPoint.x; > y += aPoint.y; > return *this; > } > nsPoint& operator-=(const nsPoint& aPoint) { > x -= aPoint.x; > y -= aPoint.y; > return *this; > } > > nsPoint operator-() const { > return nsPoint(-x, -y); > } >}; ># 98 "../../../dist/include/gfx/nsPoint.h" >typedef nsPoint nsIntPoint; > >struct nsFloatPoint { > float x, y; > > > nsFloatPoint() {} > nsFloatPoint(const nsFloatPoint& aPoint) {x = aPoint.x; y = aPoint.y;} > nsFloatPoint(float aX, float aY) {x = aX; y = aY;} > > void MoveTo(float aX, float aY) {x = aX; y = aY;} > void MoveTo(nscoord aX, nscoord aY) {x = (float)aX; y = (float)aY;} > void MoveBy(float aDx, float aDy) {x += aDx; y += aDy;} > > > > PRBool operator==(const nsFloatPoint& aPoint) const { > return (PRBool) ((x == aPoint.x) && (y == aPoint.y)); > } > PRBool operator!=(const nsFloatPoint& aPoint) const { > return (PRBool) ((x != aPoint.x) || (y != aPoint.y)); > } > nsFloatPoint operator+(const nsFloatPoint& aPoint) const { > return nsFloatPoint(x + aPoint.x, y + aPoint.y); > } > nsFloatPoint operator-(const nsFloatPoint& aPoint) const { > return nsFloatPoint(x - aPoint.x, y - aPoint.y); > } > nsFloatPoint& operator+=(const nsFloatPoint& aPoint) { > x += aPoint.x; > y += aPoint.y; > return *this; > } > nsFloatPoint& operator-=(const nsFloatPoint& aPoint) { > x -= aPoint.x; > y -= aPoint.y; > return *this; > } >}; ># 45 "../../../dist/include/gfx/nsRect.h" 2 ># 1 "../../../dist/include/gfx/nsSize.h" 1 ># 46 "../../../dist/include/gfx/nsSize.h" >struct nsSize { > nscoord width, height; > > > nsSize() {} > nsSize(const nsSize& aSize) {width = aSize.width; height = aSize.height;} > nsSize(nscoord aWidth, nscoord aHeight) {width = aWidth; height = aHeight;} > > void SizeTo(nscoord aWidth, nscoord aHeight) {width = aWidth; height = aHeight;} > void SizeBy(nscoord aDeltaWidth, nscoord aDeltaHeight) {width += aDeltaWidth; > height += aDeltaHeight;} > > > > PRBool operator==(const nsSize& aSize) const { > return (PRBool) ((width == aSize.width) && (height == aSize.height)); > } > PRBool operator!=(const nsSize& aSize) const { > return (PRBool) ((width != aSize.width) || (height != aSize.height)); > } > nsSize operator+(const nsSize& aSize) const { > return nsSize(width + aSize.width, height + aSize.height); > } > nsSize& operator+=(const nsSize& aSize) {width += aSize.width; > height += aSize.height; > return *this;} >}; ># 85 "../../../dist/include/gfx/nsSize.h" >typedef nsSize nsIntSize; ># 46 "../../../dist/include/gfx/nsRect.h" 2 ># 1 "../../../dist/include/gfx/nsMargin.h" 1 ># 42 "../../../dist/include/gfx/nsMargin.h" ># 1 "../../../dist/include/gfx/gfxCore.h" 1 ># 43 "../../../dist/include/gfx/nsMargin.h" 2 > >struct nsMargin { > nscoord top, right, bottom, left; > > > nsMargin() {} > nsMargin(const nsMargin& aMargin) {*this = aMargin;} > nsMargin(nscoord aLeft, nscoord aTop, > nscoord aRight, nscoord aBottom) {left = aLeft; top = aTop; > right = aRight; bottom = aBottom;} > > void SizeTo(nscoord aLeft, nscoord aTop, > nscoord aRight, nscoord aBottom) {left = aLeft; top = aTop; > right = aRight; bottom = aBottom;} > void SizeBy(nscoord aLeft, nscoord aTop, > nscoord aRight, nscoord aBottom) {left += aLeft; top += aTop; > right += aRight; bottom += aBottom;} > > nscoord LeftRight() const { return left + right; } > nscoord TopBottom() const { return top + bottom; } > > > nscoord& side(PRUint8 aSide) { > do { } while (0); > return *(&top + aSide); > } > > nscoord side(PRUint8 aSide) const { > do { } while (0); > return *(&top + aSide); > } > > > > > > > PRBool operator==(const nsMargin& aMargin) const { > return (PRBool) ((left == aMargin.left) && (top == aMargin.top) && > (right == aMargin.right) && (bottom == aMargin.bottom)); > } > PRBool operator!=(const nsMargin& aMargin) const { > return (PRBool) ((left != aMargin.left) || (top != aMargin.top) || > (right != aMargin.right) || (bottom != aMargin.bottom)); > } > nsMargin operator+(const nsMargin& aMargin) const { > return nsMargin(left + aMargin.left, top + aMargin.top, > right + aMargin.right, bottom + aMargin.bottom); > } > nsMargin operator-(const nsMargin& aMargin) const { > return nsMargin(left - aMargin.left, top - aMargin.top, > right - aMargin.right, bottom - aMargin.bottom); > } > nsMargin& operator+=(const nsMargin& aMargin) {left += aMargin.left; > top += aMargin.top; > right += aMargin.right; > bottom += aMargin.bottom; > return *this;} > nsMargin& operator-=(const nsMargin& aMargin) {left -= aMargin.left; > top -= aMargin.top; > right -= aMargin.right; > bottom -= aMargin.bottom; > return *this;} >}; ># 120 "../../../dist/include/gfx/nsMargin.h" >typedef nsMargin nsIntMargin; ># 47 "../../../dist/include/gfx/nsRect.h" 2 > ># 1 "../../../dist/include/xpcom/nsTraceRefcnt.h" 1 ># 49 "../../../dist/include/gfx/nsRect.h" 2 > >struct nsRect { > nscoord x, y; > nscoord width, height; > > > nsRect() : x(0), y(0), width(0), height(0) { > ; > } > nsRect(const nsRect& aRect) { > ; > *this = aRect; > } > nsRect(const nsPoint& aOrigin, const nsSize &aSize) { > ; > x = aOrigin.x; y = aOrigin.y; > width = aSize.width; height = aSize.height; > } > nsRect(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight) { > ; > x = aX; y = aY; width = aWidth; height = aHeight; > VERIFY_COORD(x); VERIFY_COORD(y); VERIFY_COORD(width); VERIFY_COORD(height); > } ># 81 "../../../dist/include/gfx/nsRect.h" > PRBool IsEmpty() const { > return (PRBool) ((height <= 0) || (width <= 0)); > } > void Empty() {width = height = 0;} > > > PRBool Contains(const nsRect& aRect) const; > PRBool Contains(nscoord aX, nscoord aY) const; > PRBool Contains(const nsPoint& aPoint) const {return Contains(aPoint.x, aPoint.y);} > > > > PRBool Intersects(const nsRect& aRect) const; > > > > > > > PRBool IntersectRect(const nsRect& aRect1, const nsRect& aRect2); > > > > > > > > PRBool UnionRect(const nsRect& aRect1, const nsRect& aRect2); > > > > > > > > void UnionRectIncludeEmpty(const nsRect& aRect1, const nsRect& aRect2); > > > void SetRect(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight) { > x = aX; y = aY; width = aWidth; height = aHeight; > } > void SetRect(const nsPoint& aPt, const nsSize& aSize) { > SetRect(aPt.x, aPt.y, aSize.width, aSize.height); > } > void MoveTo(nscoord aX, nscoord aY) {x = aX; y = aY;} > void MoveTo(const nsPoint& aPoint) {x = aPoint.x; y = aPoint.y;} > void MoveBy(nscoord aDx, nscoord aDy) {x += aDx; y += aDy;} > void MoveBy(const nsPoint& aPoint) {x += aPoint.x; y += aPoint.y;} > void SizeTo(nscoord aWidth, nscoord aHeight) {width = aWidth; height = aHeight;} > void SizeTo(const nsSize& aSize) {SizeTo(aSize.width, aSize.height);} > void SizeBy(nscoord aDeltaWidth, nscoord aDeltaHeight) {width += aDeltaWidth; > height += aDeltaHeight;} > > > void Inflate(nscoord aDx, nscoord aDy); > void Inflate(const nsSize& aSize) {Inflate(aSize.width, aSize.height);} > void Inflate(const nsMargin& aMargin); > > > void Deflate(nscoord aDx, nscoord aDy); > void Deflate(const nsSize& aSize) {Deflate(aSize.width, aSize.height);} > void Deflate(const nsMargin& aMargin); > > > > PRBool operator==(const nsRect& aRect) const { > return (PRBool) ((IsEmpty() && aRect.IsEmpty()) || > ((x == aRect.x) && (y == aRect.y) && > (width == aRect.width) && (height == aRect.height))); > } > PRBool operator!=(const nsRect& aRect) const { > return (PRBool) !operator==(aRect); > } > > > > PRBool IsExactEqual(const nsRect& aRect) const { > return x == aRect.x && y == aRect.y && > width == aRect.width && height == aRect.height; > } > > nsRect operator+(const nsPoint& aPoint) const { > return nsRect(x + aPoint.x, y + aPoint.y, width, height); > } > nsRect operator-(const nsPoint& aPoint) const { > return nsRect(x - aPoint.x, y - aPoint.y, width, height); > } > nsRect& operator+=(const nsPoint& aPoint) {x += aPoint.x; y += aPoint.y; return *this;} > nsRect& operator-=(const nsPoint& aPoint) {x -= aPoint.x; y -= aPoint.y; return *this;} > > nsRect& operator*=(const float aScale) {x = NSToCoordRound(x * aScale); > y = NSToCoordRound(y * aScale); > width = NSToCoordRound(width * aScale); > height = NSToCoordRound(height * aScale); > return *this;} > > > > nsRect& ScaleRoundOut(float aScale); > > > > nsRect& ScaleRoundOutInverse(float aScale); > > > nsRect& ScaleRoundIn(float aScale); > > > nsRect& ScaleRoundPreservingCentersInverse(float aScale); > > > nsPoint TopLeft() const { return nsPoint(x, y); } > nsPoint TopRight() const { return nsPoint(XMost(), y); } > nsPoint BottomLeft() const { return nsPoint(x, YMost()); } > nsPoint BottomRight() const { return nsPoint(XMost(), YMost()); } > > nsSize Size() const { return nsSize(width, height); } > > > nscoord XMost() const {return x + width;} > nscoord YMost() const {return y + height;} >}; ># 245 "../../../dist/include/gfx/nsRect.h" >typedef nsRect nsIntRect; ># 22 "../../../dist/include/imglib2/imgIContainerObserver.h" 2 >class imgIContainer; > >class gfxIImageFrame; ># 40 "../../../dist/include/imglib2/imgIContainerObserver.h" >class imgIContainerObserver : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FrameChanged(imgIContainer *aContainer, gfxIImageFrame *aFrame, nsIntRect * aDirtyRect) = 0; > >}; > > template <class Dummy> const nsIID imgIContainerObserver::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x53102f15, 0x0f53, 0x4939, { 0x95, 0x7e, 0xae, 0xa3, 0x53, 0xad, 0x27, 0x00 }}; ># 11 "../../../dist/include/imglib2/imgIDecoderObserver.h" 2 > > > > > > >class imgIRequest; > >class imgIContainer; > >class gfxIImageFrame; ># 44 "../../../dist/include/imglib2/imgIDecoderObserver.h" >class imgIDecoderObserver : public imgIContainerObserver { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 58 "../../../dist/include/imglib2/imgIDecoderObserver.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnStartRequest(imgIRequest *aRequest) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnStartDecode(imgIRequest *aRequest) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnStartContainer(imgIRequest *aRequest, imgIContainer *aContainer) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnStartFrame(imgIRequest *aRequest, gfxIImageFrame *aFrame) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnDataAvailable(imgIRequest *aRequest, gfxIImageFrame *aFrame, const nsIntRect * aRect) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnStopFrame(imgIRequest *aRequest, gfxIImageFrame *aFrame) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnStopContainer(imgIRequest *aRequest, imgIContainer *aContainer) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnStopDecode(imgIRequest *aRequest, nsresult status, const PRUnichar *statusArg) = 0; ># 111 "../../../dist/include/imglib2/imgIDecoderObserver.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnStopRequest(imgIRequest *aRequest, PRBool aIsLastPart) = 0; > >}; > > template <class Dummy> const nsIID imgIDecoderObserver::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x876f14ee, 0xf27c, 0x41cd, { 0xb6, 0xfb, 0x9e, 0xfd, 0xa3, 0xeb, 0xc7, 0xb5 }}; ># 97 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/imglib2/imgIRequest.h" 1 ># 21 "../../../dist/include/imglib2/imgIRequest.h" >class imgIContainer; > >class imgIDecoderObserver; > >class nsIURI; > >class nsIPrincipal; ># 44 "../../../dist/include/imglib2/imgIRequest.h" >class imgIRequest : public nsIRequest { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetImage(imgIContainer * *aImage) = 0; > > > > > > enum { STATUS_NONE = 0 }; > > enum { STATUS_SIZE_AVAILABLE = 1 }; > > enum { STATUS_LOAD_PARTIAL = 2 }; > > enum { STATUS_LOAD_COMPLETE = 4 }; > > enum { STATUS_ERROR = 8 }; > > enum { STATUS_FRAME_COMPLETE = 16 }; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetImageStatus(PRUint32 *aImageStatus) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetURI(nsIURI * *aURI) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDecoderObserver(imgIDecoderObserver * *aDecoderObserver) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMimeType(char * *aMimeType) = 0; ># 101 "../../../dist/include/imglib2/imgIRequest.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Clone(imgIDecoderObserver *aObserver, imgIRequest **_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetImagePrincipal(nsIPrincipal * *aImagePrincipal) = 0; > >}; > > template <class Dummy> const nsIID imgIRequest::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa297d3fa, 0x5e0c, 0x4e59, { 0x9f, 0x30, 0xa0, 0x1c, 0x9d, 0x4f, 0x3f, 0x8b }}; ># 98 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/imglib2/imgIContainer.h" 1 ># 18 "../../../dist/include/imglib2/imgIContainer.h" ># 1 "../../../dist/include/gfx/gfxIFormats.h" 1 ># 33 "../../../dist/include/gfx/gfxIFormats.h" >class gfxIFormats { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > enum { RGB = 0 }; > > > > > enum { BGR = 1 }; > > > > > enum { RGB_A1 = 2 }; > > > > > enum { BGR_A1 = 3 }; > > > > > enum { RGB_A8 = 4 }; > > > > > enum { BGR_A8 = 5 }; > > > > > enum { RGBA = 6 }; > > > > > enum { BGRA = 7 }; > > > > > > > enum { PAL = 8 }; > > > > > > > enum { PAL_A1 = 9 }; > >}; > > template <class Dummy> const nsIID gfxIFormats::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x96d086e6, 0x1dd1, 0x11b2, { 0xb6, 0xb2, 0xb7, 0x7b, 0x59, 0x39, 0x02, 0x47 }}; ># 19 "../../../dist/include/imglib2/imgIContainer.h" 2 > > > > > > >class gfxIImageFrame; > >class imgIContainerObserver; ># 44 "../../../dist/include/imglib2/imgIContainer.h" >class imgIContainer : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > > enum { kDisposeClearAll = -1 }; > > enum { kDisposeNotSpecified = 0 }; > > enum { kDisposeKeep = 1 }; > > enum { kDisposeClear = 2 }; > > enum { kDisposeRestorePrevious = 3 }; > > enum { kBlendSource = 0 }; > > enum { kBlendOver = 1 }; ># 79 "../../../dist/include/imglib2/imgIContainer.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(PRInt32 aWidth, PRInt32 aHeight, imgIContainerObserver *aObserver) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPreferredAlphaChannelFormat(gfx_format *aPreferredAlphaChannelFormat) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWidth(PRInt32 *aWidth) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHeight(PRInt32 *aHeight) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCurrentFrame(gfxIImageFrame * *aCurrentFrame) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNumFrames(PRUint32 *aNumFrames) = 0; > > > > > > > > enum { kNormalAnimMode = 0 }; > > enum { kDontAnimMode = 1 }; > > enum { kLoopOnceAnimMode = 2 }; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAnimationMode(PRUint16 *aAnimationMode) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAnimationMode(PRUint16 aAnimationMode) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFrameAt(PRUint32 index, gfxIImageFrame **_retval) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AppendFrame(gfxIImageFrame *item) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveFrame(gfxIImageFrame *item) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EndFrameDecode(PRUint32 framenumber, PRUint32 timeout) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DecodingComplete(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Clear(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) StartAnimation(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) StopAnimation(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ResetAnimation(void) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLoopCount(PRInt32 *aLoopCount) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetLoopCount(PRInt32 aLoopCount) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDiscardable(const char *aMimeType) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddRestoreData(const char *data, PRUint32 aCount) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RestoreDataDone(void) = 0; > >}; > > template <class Dummy> const nsIID imgIContainer::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x1a6290e6, 0x8285, 0x4e10, { 0x96, 0x3d, 0xd0, 0x01, 0xf8, 0xd3, 0x27, 0xb8 }}; ># 99 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/imglib2/imgILoader.h" 1 ># 21 "../../../dist/include/imglib2/imgILoader.h" >class imgIDecoderObserver; > >class imgIRequest; > >class nsIChannel; > >class nsILoadGroup; > >class nsIStreamListener; > >class nsIURI; > >class nsISimpleEnumerator; ># 50 "../../../dist/include/imglib2/imgILoader.h" >class imgILoader : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 76 "../../../dist/include/imglib2/imgILoader.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LoadImage(nsIURI *aURI, nsIURI *aInitialDocumentURL, nsIURI *aReferrerURI, nsILoadGroup *aLoadGroup, imgIDecoderObserver *aObserver, nsISupports *aCX, nsLoadFlags aLoadFlags, nsISupports *cacheKey, imgIRequest *aRequest, imgIRequest **_retval) = 0; ># 95 "../../../dist/include/imglib2/imgILoader.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LoadImageWithChannel(nsIChannel *aChannel, imgIDecoderObserver *aObserver, nsISupports *cx, nsIStreamListener **aListener, imgIRequest **_retval) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SupportImageWithMimeType(const char *mimeType, PRBool *_retval) = 0; > >}; > > template <class Dummy> const nsIID imgILoader::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xd2f50c69, 0x1064, 0x4ce3, { 0xa9, 0x2d, 0x01, 0xdc, 0x5f, 0x5b, 0x48, 0x42 }}; ># 100 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/gfx/nsIImage.h" 1 ># 41 "../../../dist/include/gfx/nsIImage.h" ># 1 "../../../dist/include/xpcom/nsISupports.h" 1 ># 42 "../../../dist/include/gfx/nsIImage.h" 2 ># 1 "../../../dist/include/gfx/nsIRenderingContext.h" 1 ># 46 "../../../dist/include/gfx/nsIRenderingContext.h" ># 1 "../../../dist/include/gfx/nsColor.h" 1 ># 44 "../../../dist/include/gfx/nsColor.h" >class nsAString_internal; >class nsString; >class nsCString; > > > >typedef PRUint32 nscolor; ># 89 "../../../dist/include/gfx/nsColor.h" >PRBool NS_HexToRGB(const nsString& aBuf, nscolor* aResult); > > > > >nscolor NS_ComposeColors(nscolor aBG, nscolor aFG); > > > > >PRBool NS_LooseHexToRGB(const nsString& aBuf, nscolor* aResult); > > > >void NS_RGBToHex(nscolor aColor, nsAString_internal& aResult); > > > >PRBool NS_ColorNameToRGB(const nsAString_internal& aBuf, nscolor* aResult); > > > >nscolor NS_HSL2RGB(float h, float s, float l); ># 47 "../../../dist/include/gfx/nsIRenderingContext.h" 2 > ># 1 "../../../dist/include/gfx/nsRect.h" 1 ># 49 "../../../dist/include/gfx/nsIRenderingContext.h" 2 > > > > >class nsIWidget; >class nsIFontMetrics; >class nsTransform2D; >class nsString; >class nsIDeviceContext; >class nsIRegion; >class nsIAtom; > >struct nsFont; >struct nsTextDimensions; > >struct nsBoundingMetrics; > > >class gfxASurface; >class gfxContext; > > >class imgIContainer; > > > >typedef enum >{ > nsClipCombine_kIntersect = 0, > nsClipCombine_kUnion = 1, > nsClipCombine_kSubtract = 2, > nsClipCombine_kReplace = 3 >} nsClipCombine; > > >typedef enum >{ > nsLineStyle_kNone = 0, > nsLineStyle_kSolid = 1, > nsLineStyle_kDashed = 2, > nsLineStyle_kDotted = 3 >} nsLineStyle; > >typedef enum >{ > nsPenMode_kNone = 0, > nsPenMode_kInvert = 1 >} nsPenMode; ># 107 "../../../dist/include/gfx/nsIRenderingContext.h" >class nsIRenderingContext : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 121 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsIDeviceContext* aContext, nsIWidget *aWidget) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsIDeviceContext* aContext, gfxASurface* aThebesSurface) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsIDeviceContext* aContext, gfxContext* aThebesContext) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDeviceContext(nsIDeviceContext *& aDeviceContext) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHints(PRUint32& aResult) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PushState(void) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PopState(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PushFilter(const nsRect& aRect, PRBool aAreaIsOpaque, float aOpacity) > { return ((nsresult) 0x80004001L); } > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PopFilter() > { return ((nsresult) 0x80004001L); } ># 176 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetClipRect(const nsRect& aRect, nsClipCombine aCombine) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetLineStyle(nsLineStyle aLineStyle) = 0; ># 192 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetClipRegion(const nsIRegion& aRegion, nsClipCombine aCombine) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetColor(nscolor aColor) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetColor(nscolor &aColor) const = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFont(const nsFont& aFont, nsIAtom* aLangGroup) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFont(nsIFontMetrics *aFontMetrics) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFontMetrics(nsIFontMetrics *&aFontMetrics) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Translate(nscoord aX, nscoord aY) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetTranslation(nscoord aX, nscoord aY) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Scale(float aSx, float aSy) = 0; > > struct PushedTranslation { > float mSavedX, mSavedY; > }; > > class AutoPushTranslation { > nsIRenderingContext* mCtx; > PushedTranslation mPushed; > public: > AutoPushTranslation(nsIRenderingContext* aCtx, nscoord aX, nscoord aY) > : mCtx(aCtx) { > mCtx->PushTranslation(&mPushed); > mCtx->Translate(aX, aY); > } > ~AutoPushTranslation() { > mCtx->PopTranslation(&mPushed); > } > }; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PushTranslation(PushedTranslation* aState) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PopTranslation(PushedTranslation* aState) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCurrentTransform(nsTransform2D *&aTransform) = 0; ># 281 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DrawLine(nscoord aX0, nscoord aY0, nscoord aX1, nscoord aY1) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DrawRect(const nsRect& aRect) = 0; ># 296 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DrawRect(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FillRect(const nsRect& aRect) = 0; ># 311 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FillRect(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InvertRect(const nsRect& aRect) = 0; ># 326 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InvertRect(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FillPolygon(const nsPoint aPoints[], PRInt32 aNumPoints) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DrawEllipse(const nsRect& aRect) = 0; ># 348 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DrawEllipse(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FillEllipse(const nsRect& aRect) = 0; ># 363 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FillEllipse(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight) = 0; ># 372 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWidth(char aC, nscoord &aWidth) = 0; ># 384 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWidth(PRUnichar aC, nscoord &aWidth, > PRInt32 *aFontID = 0) = 0; ># 397 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWidth(const nsString& aString, nscoord &aWidth, > PRInt32 *aFontID = 0) = 0; ># 407 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWidth(const char* aString, nscoord& aWidth) = 0; ># 417 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWidth(const char* aString, PRUint32 aLength, > nscoord& aWidth) = 0; ># 431 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWidth(const PRUnichar *aString, PRUint32 aLength, > nscoord &aWidth, PRInt32 *aFontID = 0) = 0; ># 445 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTextDimensions(const char* aString, PRUint32 aLength, > nsTextDimensions& aDimensions) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTextDimensions(const PRUnichar* aString, PRUint32 aLength, > nsTextDimensions& aDimensions, PRInt32* aFontID = 0) = 0; ># 476 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTextDimensions(const char* aString, > PRInt32 aLength, > PRInt32 aAvailWidth, > PRInt32* aBreaks, > PRInt32 aNumBreaks, > nsTextDimensions& aDimensions, > PRInt32& aNumCharsFit, > nsTextDimensions& aLastWordDimensions, > PRInt32* aFontID = 0) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTextDimensions(const PRUnichar* aString, > PRInt32 aLength, > PRInt32 aAvailWidth, > PRInt32* aBreaks, > PRInt32 aNumBreaks, > nsTextDimensions& aDimensions, > PRInt32& aNumCharsFit, > nsTextDimensions& aLastWordDimensions, > PRInt32* aFontID = 0) = 0; ># 505 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DrawString(const char *aString, PRUint32 aLength, > nscoord aX, nscoord aY, > const nscoord* aSpacing = 0) = 0; ># 520 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DrawString(const PRUnichar *aString, PRUint32 aLength, > nscoord aX, nscoord aY, > PRInt32 aFontID = -1, > const nscoord* aSpacing = 0) = 0; ># 535 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DrawString(const nsString& aString, nscoord aX, nscoord aY, > PRInt32 aFontID = -1, > const nscoord* aSpacing = 0) = 0; > > enum GraphicDataType { > NATIVE_CAIRO_CONTEXT = 1, > NATIVE_GDK_DRAWABLE = 2, > NATIVE_WINDOWS_DC = 3, > NATIVE_MAC_THING = 4, > NATIVE_THEBES_CONTEXT = 5, > NATIVE_OS2_PS = 6 > }; > > > > > virtual void* GetNativeGraphicData(GraphicDataType aType) = 0; ># 561 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) > GetBoundingMetrics(const char* aString, > PRUint32 aLength, > nsBoundingMetrics& aBoundingMetrics) = 0; ># 575 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) > GetBoundingMetrics(const PRUnichar* aString, > PRUint32 aLength, > nsBoundingMetrics& aBoundingMetrics, > PRInt32* aFontID = 0) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetRightToLeftText(PRBool aIsRTL) = 0; > > > > > > virtual void SetTextRunRTL(PRBool aIsRTL) = 0; ># 605 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DrawTile(imgIContainer *aImage, > nscoord aXImageStart, nscoord aYImageStart, > const nsRect * aTargetRect, > const nsIntRect * aSubimageRect) = 0; ># 628 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetClusterInfo(const PRUnichar *aText, > PRUint32 aLength, > PRUint8 *aClusterStarts) = 0; ># 647 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual PRInt32 GetPosition(const PRUnichar *aText, > PRUint32 aLength, > nsPoint aPt) = 0; ># 668 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRangeWidth(const PRUnichar *aText, > PRUint32 aLength, > PRUint32 aStart, > PRUint32 aEnd, > PRUint32 &aWidth) = 0; ># 681 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRangeWidth(const char *aText, > PRUint32 aLength, > PRUint32 aStart, > PRUint32 aEnd, > PRUint32 &aWidth) = 0; ># 702 "../../../dist/include/gfx/nsIRenderingContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RenderEPS(const nsRect& aRect, FILE *aDataFile) = 0; > > > > > virtual gfxContext *ThebesContext() = 0; >}; > >template <class Dummy> const nsIID nsIRenderingContext::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0xa67de6b9, 0xfffa, 0x465c,{0xab, 0xea, 0xd7, 0xb3, 0x94, 0x58, 0x8a, 0x07}}; ># 798 "../../../dist/include/gfx/nsIRenderingContext.h" >struct nsTextDimensions { > > nscoord ascent; > > > nscoord descent; > > > nscoord width; > > > nsTextDimensions() > { > Clear(); > } > > > void > Clear() { > ascent = descent = width = 0; > } > > > void > Combine(const nsTextDimensions& aOther) { > if (ascent < aOther.ascent) ascent = aOther.ascent; > if (descent < aOther.descent) descent = aOther.descent; > width += aOther.width; > } >}; > > > > > >struct nsBoundingMetrics { ># 853 "../../../dist/include/gfx/nsIRenderingContext.h" > nscoord leftBearing; > > > > nscoord rightBearing; > > > > > > nscoord ascent; > > > > nscoord descent; ># 876 "../../../dist/include/gfx/nsIRenderingContext.h" > nscoord width; > > > > > > nsBoundingMetrics() { > Clear(); > } > > > > > > void > Clear() { > leftBearing = rightBearing = 0; > ascent = descent = width = 0; > } > > > void > operator += (const nsBoundingMetrics& bm) { > if (ascent + descent == 0 && rightBearing - leftBearing == 0) { > ascent = bm.ascent; > descent = bm.descent; > leftBearing = width + bm.leftBearing; > rightBearing = width + bm.rightBearing; > } > else { > if (ascent < bm.ascent) ascent = bm.ascent; > if (descent < bm.descent) descent = bm.descent; > leftBearing = ((leftBearing)<(width + bm.leftBearing)?(leftBearing):(width + bm.leftBearing)); > rightBearing = ((rightBearing)>(width + bm.rightBearing)?(rightBearing):(width + bm.rightBearing)); > } > width += bm.width; > } >}; ># 43 "../../../dist/include/gfx/nsIImage.h" 2 > ># 1 "../../../dist/include/thebes/gfxRect.h" 1 ># 41 "../../../dist/include/thebes/gfxRect.h" ># 1 "../../../dist/include/thebes/gfxTypes.h" 1 ># 41 "../../../dist/include/thebes/gfxTypes.h" ># 1 "../../../dist/include/nspr/prtypes.h" 1 ># 42 "../../../dist/include/thebes/gfxTypes.h" 2 > > > > > >typedef double gfxFloat; ># 61 "../../../dist/include/thebes/gfxTypes.h" ># 1 "../../../dist/include/xpcom/nsISupportsImpl.h" 1 ># 62 "../../../dist/include/thebes/gfxTypes.h" 2 ># 1 "../../../dist/include/xpcom/nsAutoPtr.h" 1 ># 55 "../../../dist/include/xpcom/nsAutoPtr.h" >template <class T> >class nsAutoPtr > { > private: > void** > begin_assignment() > { > assign(0); > return reinterpret_cast<void**>(&mRawPtr); > } > > void > assign( T* newPtr ) > { > T* oldPtr = mRawPtr; > mRawPtr = newPtr; > delete oldPtr; > } > > > > > > > class Ptr > { > public: > Ptr( T* aPtr ) > : mPtr(aPtr) > { > } > > operator T*() const > { > return mPtr; > } > > private: > T* mPtr; > }; > > private: > T* mRawPtr; > > public: > typedef T element_type; > > ~nsAutoPtr() > { > delete mRawPtr; > } > > > > nsAutoPtr() > : mRawPtr(0) > > { > } > > nsAutoPtr( Ptr aRawPtr ) > : mRawPtr(aRawPtr) > > { > } > > nsAutoPtr( nsAutoPtr<T>& aSmartPtr ) > : mRawPtr( aSmartPtr.forget() ) > > { > } > > > > > nsAutoPtr<T>& > operator=( T* rhs ) > > { > assign(rhs); > return *this; > } > > nsAutoPtr<T>& operator=( nsAutoPtr<T>& rhs ) > > { > assign(rhs.forget()); > return *this; > } > > > > T* > get() const > > > > > > { > return mRawPtr; > } > > operator T*() const ># 168 "../../../dist/include/xpcom/nsAutoPtr.h" > { > return get(); > } > > T* > forget() > { > T* temp = mRawPtr; > mRawPtr = 0; > return temp; > } > > T* > operator->() const > { > do { } while (0); > return get(); > } ># 200 "../../../dist/include/xpcom/nsAutoPtr.h" > nsAutoPtr<T>* > get_address() > > > { > return this; > } > > const nsAutoPtr<T>* > get_address() const > > > { > return this; > } > > > > public: > T& > operator*() const > { > do { } while (0); > return *get(); > } > > T** > StartAssignment() > { > > return reinterpret_cast<T**>(begin_assignment()); > > > > > } > }; ># 252 "../../../dist/include/xpcom/nsAutoPtr.h" >template <class T> >inline >nsAutoPtr<T>* >address_of( nsAutoPtr<T>& aPtr ) > { > return aPtr.get_address(); > } > >template <class T> >inline >const nsAutoPtr<T>* >address_of( const nsAutoPtr<T>& aPtr ) > { > return aPtr.get_address(); > } > > > >template <class T> >class nsAutoPtrGetterTransfers ># 289 "../../../dist/include/xpcom/nsAutoPtr.h" > { > public: > explicit > nsAutoPtrGetterTransfers( nsAutoPtr<T>& aSmartPtr ) > : mTargetSmartPtr(aSmartPtr) > { > > } > > operator void**() > { > return reinterpret_cast<void**>(mTargetSmartPtr.StartAssignment()); > } > > operator T**() > { > return mTargetSmartPtr.StartAssignment(); > } > > T*& > operator*() > { > return *(mTargetSmartPtr.StartAssignment()); > } > > private: > nsAutoPtr<T>& mTargetSmartPtr; > }; > >template <class T> >inline >nsAutoPtrGetterTransfers<T> >getter_Transfers( nsAutoPtr<T>& aSmartPtr ) > > > > > { > return nsAutoPtrGetterTransfers<T>(aSmartPtr); > } > > > > > >template <class T, class U> >inline >NSCAP_BOOL >operator==( const nsAutoPtr<T>& lhs, const nsAutoPtr<U>& rhs ) > { > return static_cast<const T*>(lhs.get()) == static_cast<const U*>(rhs.get()); > } > > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( const nsAutoPtr<T>& lhs, const nsAutoPtr<U>& rhs ) > { > return static_cast<const T*>(lhs.get()) != static_cast<const U*>(rhs.get()); > } > > > > >template <class T, class U> >inline >NSCAP_BOOL >operator==( const nsAutoPtr<T>& lhs, const U* rhs ) > { > return static_cast<const T*>(lhs.get()) == static_cast<const U*>(rhs); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator==( const U* lhs, const nsAutoPtr<T>& rhs ) > { > return static_cast<const U*>(lhs) == static_cast<const T*>(rhs.get()); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( const nsAutoPtr<T>& lhs, const U* rhs ) > { > return static_cast<const T*>(lhs.get()) != static_cast<const U*>(rhs); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( const U* lhs, const nsAutoPtr<T>& rhs ) > { > return static_cast<const U*>(lhs) != static_cast<const T*>(rhs.get()); > } ># 394 "../../../dist/include/xpcom/nsAutoPtr.h" >template <class T, class U> >inline >NSCAP_BOOL >operator==( const nsAutoPtr<T>& lhs, U* rhs ) > { > return static_cast<const T*>(lhs.get()) == const_cast<const U*>(rhs); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator==( U* lhs, const nsAutoPtr<T>& rhs ) > { > return const_cast<const U*>(lhs) == static_cast<const T*>(rhs.get()); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( const nsAutoPtr<T>& lhs, U* rhs ) > { > return static_cast<const T*>(lhs.get()) != const_cast<const U*>(rhs); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( U* lhs, const nsAutoPtr<T>& rhs ) > { > return const_cast<const U*>(lhs) != static_cast<const T*>(rhs.get()); > } > > > > > > >template <class T> >inline >NSCAP_BOOL >operator==( const nsAutoPtr<T>& lhs, NSCAP_Zero* rhs ) > > { > return static_cast<const void*>(lhs.get()) == reinterpret_cast<const void*>(rhs); > } > >template <class T> >inline >NSCAP_BOOL >operator==( NSCAP_Zero* lhs, const nsAutoPtr<T>& rhs ) > > { > return reinterpret_cast<const void*>(lhs) == static_cast<const void*>(rhs.get()); > } > >template <class T> >inline >NSCAP_BOOL >operator!=( const nsAutoPtr<T>& lhs, NSCAP_Zero* rhs ) > > { > return static_cast<const void*>(lhs.get()) != reinterpret_cast<const void*>(rhs); > } > >template <class T> >inline >NSCAP_BOOL >operator!=( NSCAP_Zero* lhs, const nsAutoPtr<T>& rhs ) > > { > return reinterpret_cast<const void*>(lhs) != static_cast<const void*>(rhs.get()); > } ># 497 "../../../dist/include/xpcom/nsAutoPtr.h" >template <class T> >class nsAutoArrayPtr > { > private: > void** > begin_assignment() > { > assign(0); > return reinterpret_cast<void**>(&mRawPtr); > } > > void > assign( T* newPtr ) > { > T* oldPtr = mRawPtr; > mRawPtr = newPtr; > delete [] oldPtr; > } > > private: > T* mRawPtr; > > public: > typedef T element_type; > > ~nsAutoArrayPtr() > { > delete [] mRawPtr; > } > > > > nsAutoArrayPtr() > : mRawPtr(0) > > { > } > > nsAutoArrayPtr( T* aRawPtr ) > : mRawPtr(aRawPtr) > > { > } > > nsAutoArrayPtr( nsAutoArrayPtr<T>& aSmartPtr ) > : mRawPtr( aSmartPtr.forget() ) > > { > } > > > > > nsAutoArrayPtr<T>& > operator=( T* rhs ) > > { > assign(rhs); > return *this; > } > > nsAutoArrayPtr<T>& operator=( nsAutoArrayPtr<T>& rhs ) > > { > assign(rhs.forget()); > return *this; > } > > > > T* > get() const > > > > > > { > return mRawPtr; > } > > operator T*() const ># 588 "../../../dist/include/xpcom/nsAutoPtr.h" > { > return get(); > } > > T* > forget() > { > T* temp = mRawPtr; > mRawPtr = 0; > return temp; > } > > T* > operator->() const > { > do { } while (0); > return get(); > } ># 620 "../../../dist/include/xpcom/nsAutoPtr.h" > nsAutoArrayPtr<T>* > get_address() > > > { > return this; > } > > const nsAutoArrayPtr<T>* > get_address() const > > > { > return this; > } > > > > public: > T& > operator*() const > { > do { } while (0); > return *get(); > } > > T** > StartAssignment() > { > > return reinterpret_cast<T**>(begin_assignment()); > > > > > } > }; ># 672 "../../../dist/include/xpcom/nsAutoPtr.h" >template <class T> >inline >nsAutoArrayPtr<T>* >address_of( nsAutoArrayPtr<T>& aPtr ) > { > return aPtr.get_address(); > } > >template <class T> >inline >const nsAutoArrayPtr<T>* >address_of( const nsAutoArrayPtr<T>& aPtr ) > { > return aPtr.get_address(); > } > > > >template <class T> >class nsAutoArrayPtrGetterTransfers ># 709 "../../../dist/include/xpcom/nsAutoPtr.h" > { > public: > explicit > nsAutoArrayPtrGetterTransfers( nsAutoArrayPtr<T>& aSmartPtr ) > : mTargetSmartPtr(aSmartPtr) > { > > } > > operator void**() > { > return reinterpret_cast<void**>(mTargetSmartPtr.StartAssignment()); > } > > operator T**() > { > return mTargetSmartPtr.StartAssignment(); > } > > T*& > operator*() > { > return *(mTargetSmartPtr.StartAssignment()); > } > > private: > nsAutoArrayPtr<T>& mTargetSmartPtr; > }; > >template <class T> >inline >nsAutoArrayPtrGetterTransfers<T> >getter_Transfers( nsAutoArrayPtr<T>& aSmartPtr ) > > > > > { > return nsAutoArrayPtrGetterTransfers<T>(aSmartPtr); > } > > > > > >template <class T, class U> >inline >NSCAP_BOOL >operator==( const nsAutoArrayPtr<T>& lhs, const nsAutoArrayPtr<U>& rhs ) > { > return static_cast<const T*>(lhs.get()) == static_cast<const U*>(rhs.get()); > } > > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( const nsAutoArrayPtr<T>& lhs, const nsAutoArrayPtr<U>& rhs ) > { > return static_cast<const T*>(lhs.get()) != static_cast<const U*>(rhs.get()); > } > > > > >template <class T, class U> >inline >NSCAP_BOOL >operator==( const nsAutoArrayPtr<T>& lhs, const U* rhs ) > { > return static_cast<const T*>(lhs.get()) == static_cast<const U*>(rhs); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator==( const U* lhs, const nsAutoArrayPtr<T>& rhs ) > { > return static_cast<const U*>(lhs) == static_cast<const T*>(rhs.get()); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( const nsAutoArrayPtr<T>& lhs, const U* rhs ) > { > return static_cast<const T*>(lhs.get()) != static_cast<const U*>(rhs); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( const U* lhs, const nsAutoArrayPtr<T>& rhs ) > { > return static_cast<const U*>(lhs) != static_cast<const T*>(rhs.get()); > } ># 814 "../../../dist/include/xpcom/nsAutoPtr.h" >template <class T, class U> >inline >NSCAP_BOOL >operator==( const nsAutoArrayPtr<T>& lhs, U* rhs ) > { > return static_cast<const T*>(lhs.get()) == const_cast<const U*>(rhs); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator==( U* lhs, const nsAutoArrayPtr<T>& rhs ) > { > return const_cast<const U*>(lhs) == static_cast<const T*>(rhs.get()); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( const nsAutoArrayPtr<T>& lhs, U* rhs ) > { > return static_cast<const T*>(lhs.get()) != const_cast<const U*>(rhs); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( U* lhs, const nsAutoArrayPtr<T>& rhs ) > { > return const_cast<const U*>(lhs) != static_cast<const T*>(rhs.get()); > } > > > > > > >template <class T> >inline >NSCAP_BOOL >operator==( const nsAutoArrayPtr<T>& lhs, NSCAP_Zero* rhs ) > > { > return static_cast<const void*>(lhs.get()) == reinterpret_cast<const void*>(rhs); > } > >template <class T> >inline >NSCAP_BOOL >operator==( NSCAP_Zero* lhs, const nsAutoArrayPtr<T>& rhs ) > > { > return reinterpret_cast<const void*>(lhs) == static_cast<const void*>(rhs.get()); > } > >template <class T> >inline >NSCAP_BOOL >operator!=( const nsAutoArrayPtr<T>& lhs, NSCAP_Zero* rhs ) > > { > return static_cast<const void*>(lhs.get()) != reinterpret_cast<const void*>(rhs); > } > >template <class T> >inline >NSCAP_BOOL >operator!=( NSCAP_Zero* lhs, const nsAutoArrayPtr<T>& rhs ) > > { > return reinterpret_cast<const void*>(lhs) != static_cast<const void*>(rhs.get()); > } ># 918 "../../../dist/include/xpcom/nsAutoPtr.h" >template <class T> >class nsRefPtr > { > private: > > void > assign_with_AddRef( T* rawPtr ) > { > if ( rawPtr ) > rawPtr->AddRef(); > assign_assuming_AddRef(rawPtr); > } > > void** > begin_assignment() > { > assign_assuming_AddRef(0); > return reinterpret_cast<void**>(&mRawPtr); > } > > void > assign_assuming_AddRef( T* newPtr ) > { > T* oldPtr = mRawPtr; > mRawPtr = newPtr; > if ( oldPtr ) > oldPtr->Release(); > } > > private: > T* mRawPtr; > > public: > typedef T element_type; > > ~nsRefPtr() > { > if ( mRawPtr ) > mRawPtr->Release(); > } > > > > nsRefPtr() > : mRawPtr(0) > > { > } > > nsRefPtr( const nsRefPtr<T>& aSmartPtr ) > : mRawPtr(aSmartPtr.mRawPtr) > > { > if ( mRawPtr ) > mRawPtr->AddRef(); > } > > nsRefPtr( T* aRawPtr ) > : mRawPtr(aRawPtr) > > { > if ( mRawPtr ) > mRawPtr->AddRef(); > } > > nsRefPtr( const already_AddRefed<T>& aSmartPtr ) > : mRawPtr(aSmartPtr.mRawPtr) > > { > } > > > > nsRefPtr<T>& > operator=( const nsRefPtr<T>& rhs ) > > { > assign_with_AddRef(rhs.mRawPtr); > return *this; > } > > nsRefPtr<T>& > operator=( T* rhs ) > > { > assign_with_AddRef(rhs); > return *this; > } > > nsRefPtr<T>& > operator=( const already_AddRefed<T>& rhs ) > > { > assign_assuming_AddRef(rhs.mRawPtr); > return *this; > } > > > > void > swap( nsRefPtr<T>& rhs ) > > { > T* temp = rhs.mRawPtr; > rhs.mRawPtr = mRawPtr; > mRawPtr = temp; > } > > void > swap( T*& rhs ) > > { > T* temp = rhs; > rhs = mRawPtr; > mRawPtr = temp; > } > > already_AddRefed<T> > forget() > > > { > T* temp = 0; > swap(temp); > return temp; > } > > void > forget( T** rhs ) > > > > { > do { } while (0); > *rhs = 0; > swap(*rhs); > } > > T* > get() const > > > > > > > { > return const_cast<T*>(mRawPtr); > } > > operator nsDerivedSafe<T>*() const > > > > > > > > { > return get_DerivedSafe(); > } > > nsDerivedSafe<T>* > operator->() const > { > do { } while (0); > return get_DerivedSafe(); > } ># 1100 "../../../dist/include/xpcom/nsAutoPtr.h" > nsRefPtr<T>* > get_address() > > > { > return this; > } > > const nsRefPtr<T>* > get_address() const > > > { > return this; > } > > > > public: > nsDerivedSafe<T>& > operator*() const > { > do { } while (0); > return *get_DerivedSafe(); > } > > T** > StartAssignment() > { > > return reinterpret_cast<T**>(begin_assignment()); > > > > > } > > private: > nsDerivedSafe<T>* > get_DerivedSafe() const > { > return const_cast<nsDerivedSafe<T>*> > (reinterpret_cast<const nsDerivedSafe<T>*>(mRawPtr)); > } > > }; ># 1161 "../../../dist/include/xpcom/nsAutoPtr.h" >template <class T> >inline >nsRefPtr<T>* >address_of( nsRefPtr<T>& aPtr ) > { > return aPtr.get_address(); > } > >template <class T> >inline >const nsRefPtr<T>* >address_of( const nsRefPtr<T>& aPtr ) > { > return aPtr.get_address(); > } > > > >template <class T> >class nsRefPtrGetterAddRefs ># 1198 "../../../dist/include/xpcom/nsAutoPtr.h" > { > public: > explicit > nsRefPtrGetterAddRefs( nsRefPtr<T>& aSmartPtr ) > : mTargetSmartPtr(aSmartPtr) > { > > } > > operator void**() > { > return reinterpret_cast<void**>(mTargetSmartPtr.StartAssignment()); > } > > operator T**() > { > return mTargetSmartPtr.StartAssignment(); > } > > T*& > operator*() > { > return *(mTargetSmartPtr.StartAssignment()); > } > > private: > nsRefPtr<T>& mTargetSmartPtr; > }; > >template <class T> >inline >nsRefPtrGetterAddRefs<T> >getter_AddRefs( nsRefPtr<T>& aSmartPtr ) > > > > > { > return nsRefPtrGetterAddRefs<T>(aSmartPtr); > } > > > > > >template <class T, class U> >inline >NSCAP_BOOL >operator==( const nsRefPtr<T>& lhs, const nsRefPtr<U>& rhs ) > { > return static_cast<const T*>(lhs.get()) == static_cast<const U*>(rhs.get()); > } > > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( const nsRefPtr<T>& lhs, const nsRefPtr<U>& rhs ) > { > return static_cast<const T*>(lhs.get()) != static_cast<const U*>(rhs.get()); > } > > > > >template <class T, class U> >inline >NSCAP_BOOL >operator==( const nsRefPtr<T>& lhs, const U* rhs ) > { > return static_cast<const T*>(lhs.get()) == static_cast<const U*>(rhs); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator==( const U* lhs, const nsRefPtr<T>& rhs ) > { > return static_cast<const U*>(lhs) == static_cast<const T*>(rhs.get()); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( const nsRefPtr<T>& lhs, const U* rhs ) > { > return static_cast<const T*>(lhs.get()) != static_cast<const U*>(rhs); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( const U* lhs, const nsRefPtr<T>& rhs ) > { > return static_cast<const U*>(lhs) != static_cast<const T*>(rhs.get()); > } ># 1303 "../../../dist/include/xpcom/nsAutoPtr.h" >template <class T, class U> >inline >NSCAP_BOOL >operator==( const nsRefPtr<T>& lhs, U* rhs ) > { > return static_cast<const T*>(lhs.get()) == const_cast<const U*>(rhs); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator==( U* lhs, const nsRefPtr<T>& rhs ) > { > return const_cast<const U*>(lhs) == static_cast<const T*>(rhs.get()); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( const nsRefPtr<T>& lhs, U* rhs ) > { > return static_cast<const T*>(lhs.get()) != const_cast<const U*>(rhs); > } > >template <class T, class U> >inline >NSCAP_BOOL >operator!=( U* lhs, const nsRefPtr<T>& rhs ) > { > return const_cast<const U*>(lhs) != static_cast<const T*>(rhs.get()); > } > > > > > > >template <class T> >inline >NSCAP_BOOL >operator==( const nsRefPtr<T>& lhs, NSCAP_Zero* rhs ) > > { > return static_cast<const void*>(lhs.get()) == reinterpret_cast<const void*>(rhs); > } > >template <class T> >inline >NSCAP_BOOL >operator==( NSCAP_Zero* lhs, const nsRefPtr<T>& rhs ) > > { > return reinterpret_cast<const void*>(lhs) == static_cast<const void*>(rhs.get()); > } > >template <class T> >inline >NSCAP_BOOL >operator!=( const nsRefPtr<T>& lhs, NSCAP_Zero* rhs ) > > { > return static_cast<const void*>(lhs.get()) != reinterpret_cast<const void*>(rhs); > } > >template <class T> >inline >NSCAP_BOOL >operator!=( NSCAP_Zero* lhs, const nsRefPtr<T>& rhs ) > > { > return reinterpret_cast<const void*>(lhs) != static_cast<const void*>(rhs.get()); > } ># 63 "../../../dist/include/thebes/gfxTypes.h" 2 ># 42 "../../../dist/include/thebes/gfxRect.h" 2 ># 1 "../../../dist/include/thebes/gfxPoint.h" 1 ># 41 "../../../dist/include/thebes/gfxPoint.h" ># 1 "../../../dist/include/xpcom/nsMathUtils.h" 1 ># 42 "../../../dist/include/thebes/gfxPoint.h" 2 > > > > > > > >struct __attribute__ ((visibility ("default"))) gfxIntSize { > PRInt32 width, height; > > gfxIntSize() {} > gfxIntSize(PRInt32 _width, PRInt32 _height) : width(_width), height(_height) {} > > void SizeTo(PRInt32 _width, PRInt32 _height) {width = _width; height = _height;} > > int operator==(const gfxIntSize& s) const { > return ((width == s.width) && (height == s.height)); > } > int operator!=(const gfxIntSize& s) const { > return ((width != s.width) || (height != s.height)); > } > gfxIntSize operator+(const gfxIntSize& s) const { > return gfxIntSize(width + s.width, height + s.height); > } > gfxIntSize operator-() const { > return gfxIntSize(- width, - height); > } > gfxIntSize operator*(const PRInt32 v) const { > return gfxIntSize(width * v, height * v); > } > gfxIntSize operator/(const PRInt32 v) const { > return gfxIntSize(width / v, height / v); > } >}; > >struct __attribute__ ((visibility ("default"))) gfxSize { > gfxFloat width, height; > > gfxSize() {} > gfxSize(gfxFloat _width, gfxFloat _height) : width(_width), height(_height) {} > gfxSize(const gfxIntSize& size) : width(size.width), height(size.height) {} > > void SizeTo(gfxFloat _width, gfxFloat _height) {width = _width; height = _height;} > > int operator==(const gfxSize& s) const { > return ((width == s.width) && (height == s.height)); > } > int operator!=(const gfxSize& s) const { > return ((width != s.width) || (height != s.height)); > } > gfxSize operator+(const gfxSize& s) const { > return gfxSize(width + s.width, height + s.height); > } > gfxSize operator-() const { > return gfxSize(- width, - height); > } > gfxSize operator*(const gfxFloat v) const { > return gfxSize(width * v, height * v); > } > gfxSize operator/(const gfxFloat v) const { > return gfxSize(width / v, height / v); > } >}; > > > >struct __attribute__ ((visibility ("default"))) gfxPoint { > gfxFloat x, y; > > gfxPoint() { } > gfxPoint(const gfxPoint& p) : x(p.x), y(p.y) {} > gfxPoint(gfxFloat _x, gfxFloat _y) : x(_x), y(_y) {} > > void MoveTo(gfxFloat aX, gfxFloat aY) { x = aX; y = aY; } > > int operator==(const gfxPoint& p) const { > return ((x == p.x) && (y == p.y)); > } > int operator!=(const gfxPoint& p) const { > return ((x != p.x) || (y != p.y)); > } > const gfxPoint& operator+=(const gfxPoint& p) { > x += p.x; > y += p.y; > return *this; > } > gfxPoint operator+(const gfxPoint& p) const { > return gfxPoint(x + p.x, y + p.y); > } > gfxPoint operator+(const gfxSize& s) const { > return gfxPoint(x + s.width, y + s.height); > } > gfxPoint operator-(const gfxPoint& p) const { > return gfxPoint(x - p.x, y - p.y); > } > gfxPoint operator-(const gfxSize& s) const { > return gfxPoint(x - s.width, y - s.height); > } > gfxPoint operator-() const { > return gfxPoint(- x, - y); > } > gfxPoint operator*(const gfxFloat v) const { > return gfxPoint(x * v, y * v); > } > gfxPoint operator/(const gfxFloat v) const { > return gfxPoint(x / v, y / v); > } > > > > > > gfxPoint& Round() { > x = NS_floor(x + 0.5); > y = NS_floor(y + 0.5); > return *this; > } >}; ># 43 "../../../dist/include/thebes/gfxRect.h" 2 > >struct __attribute__ ((visibility ("default"))) gfxRect { > > gfxPoint pos; > gfxSize size; > > gfxRect() {} > gfxRect(const gfxRect& s) : pos(s.pos), size(s.size) {} > gfxRect(const gfxPoint& _pos, const gfxSize& _size) : pos(_pos), size(_size) {} > gfxRect(gfxFloat _x, gfxFloat _y, gfxFloat _width, gfxFloat _height) : > pos(_x, _y), size(_width, _height) {} > > int operator==(const gfxRect& s) const { > return (pos == s.pos) && (size == s.size); > } > int operator!=(const gfxRect& s) const { > return (pos != s.pos) || (size != s.size); > } > > const gfxRect& MoveBy(const gfxPoint& aPt) { > pos = pos + aPt; > return *this; > } > gfxRect operator+(const gfxPoint& aPt) const { > return gfxRect(pos + aPt, size); > } > > gfxFloat Width() const { return size.width; } > gfxFloat Height() const { return size.height; } > gfxFloat X() const { return pos.x; } > gfxFloat Y() const { return pos.y; } > gfxFloat XMost() const { return pos.x + size.width; } > gfxFloat YMost() const { return pos.y + size.height; } > > PRBool IsEmpty() const { return size.width <= 0 || size.height <= 0; } > gfxRect Intersect(const gfxRect& aRect) const; > gfxRect Union(const gfxRect& aRect) const; > > > void Inset(gfxFloat k) { > pos.x += k; > pos.y += k; > size.width = ((0.0)>(size.width - k * 2.0)?(0.0):(size.width - k * 2.0)); > size.height = ((0.0)>(size.height - k * 2.0)?(0.0):(size.height - k * 2.0)); > } > > void Inset(gfxFloat top, gfxFloat right, gfxFloat bottom, gfxFloat left) { > pos.x += left; > pos.y += top; > size.width = ((0.0)>(size.width - (right+left))?(0.0):(size.width - (right+left))); > size.height = ((0.0)>(size.height - (bottom+top))?(0.0):(size.height - (bottom+top))); > } > > void Inset(const gfxFloat *sides) { > Inset(sides[0], sides[1], sides[2], sides[3]); > } > > void Outset(gfxFloat k) { > pos.x -= k; > pos.y -= k; > size.width = ((0.0)>(size.width + k * 2.0)?(0.0):(size.width + k * 2.0)); > size.height = ((0.0)>(size.height + k * 2.0)?(0.0):(size.height + k * 2.0)); > } > > void Outset(gfxFloat top, gfxFloat right, gfxFloat bottom, gfxFloat left) { > pos.x -= left; > pos.y -= top; > size.width = ((0.0)>(size.width + (right+left))?(0.0):(size.width + (right+left))); > size.height = ((0.0)>(size.height + (bottom+top))?(0.0):(size.height + (bottom+top))); > } > > void Outset(const gfxFloat *sides) { > Outset(sides[0], sides[1], sides[2], sides[3]); > } ># 129 "../../../dist/include/thebes/gfxRect.h" > void Round(); > > > > void RoundOut(); > > > gfxPoint TopLeft() const { return gfxPoint(pos); } > gfxPoint TopRight() const { return pos + gfxSize(size.width, 0.0); } > gfxPoint BottomLeft() const { return pos + gfxSize(0.0, size.height); } > gfxPoint BottomRight() const { return pos + size; } > > > > > > void Condition(); > > void Scale(gfxFloat k) { > do { } while (0); > pos.x *= k; > pos.y *= k; > size.width *= k; > size.height *= k; > } > > void ScaleInverse(gfxFloat k) { > do { } while (0); > pos.x /= k; > pos.y /= k; > size.width /= k; > size.height /= k; > } >}; ># 45 "../../../dist/include/gfx/nsIImage.h" 2 > >class gfxASurface; >class gfxPattern; > >class nsIDeviceContext; > >struct nsColorMap >{ > > > > PRInt32 NumColors; > > > > PRUint8 *Index; > >}; > >typedef enum { > nsMaskRequirements_kNoMask, > nsMaskRequirements_kNeeds1Bit, > nsMaskRequirements_kNeeds8Bit >} nsMaskRequirements; ># 81 "../../../dist/include/gfx/nsIImage.h" >class nsIImage : public nsISupports >{ > >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 94 "../../../dist/include/gfx/nsIImage.h" > virtual nsresult Init(PRInt32 aWidth, PRInt32 aHeight, PRInt32 aDepth, nsMaskRequirements aMaskRequirements) = 0; > > > > > > > virtual PRInt32 GetBytesPix() = 0; > > > > > > > virtual PRBool GetIsRowOrderTopToBottom() = 0; > > > > > > > virtual PRInt32 GetWidth() = 0; > > > > > > > virtual PRInt32 GetHeight() = 0; > > > > > > > virtual PRUint8 * GetBits() = 0; > > > > > > > virtual PRInt32 GetLineStride() = 0; > > > > > > > > virtual PRBool GetHasAlphaMask() = 0; > > > > > > > virtual PRUint8 * GetAlphaBits() = 0; > > > > > > > virtual PRInt32 GetAlphaLineStride() = 0; > > > > > > > > virtual void ImageUpdated(nsIDeviceContext *aContext, PRUint8 aFlags, nsIntRect *aUpdateRect) = 0; > > > > > > > virtual PRBool GetIsImageComplete() = 0; > > > > > > > > virtual nsresult Optimize(nsIDeviceContext* aContext) = 0; > > > > > > > virtual nsColorMap * GetColorMap() = 0; ># 198 "../../../dist/include/gfx/nsIImage.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Draw(nsIRenderingContext &aContext, > const gfxRect &aSourceRect, > const gfxRect &aSubimageRect, > const gfxRect &aDestRect) = 0; > > > > > > > virtual PRInt8 GetAlphaDepth() = 0; > > > > > > > virtual void* GetBitInfo() = 0; ># 234 "../../../dist/include/gfx/nsIImage.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LockImagePixels(PRBool aMaskPixels) = 0; ># 247 "../../../dist/include/gfx/nsIImage.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) UnlockImagePixels(PRBool aMaskPixels) = 0; ># 257 "../../../dist/include/gfx/nsIImage.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSurface(gfxASurface **aSurface) = 0; ># 267 "../../../dist/include/gfx/nsIImage.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPattern(gfxPattern **aPattern) = 0; > > > > > > > > virtual void SetHasNoAlpha() = 0; >}; > >template <class Dummy> const nsIID nsIImage::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x96d9d7ce, 0xe575, 0x4265, { 0x85, 0x07, 0x35, 0x55, 0x51, 0x12, 0xa4, 0x30 } }; ># 101 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/gfx/gfxIImageFrame.h" 1 ># 43 "../../../dist/include/gfx/gfxIImageFrame.h" >class gfxIImageFrame : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 60 "../../../dist/include/gfx/gfxIImageFrame.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, gfx_format aFormat, gfx_depth aDepth) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMutable(PRBool *aMutable) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetMutable(PRBool aMutable) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetX(PRInt32 *aX) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetY(PRInt32 *aY) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWidth(PRInt32 *aWidth) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHeight(PRInt32 *aHeight) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRect(nsIntRect & rect) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFormat(gfx_format *aFormat) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNeedsBackground(PRBool *aNeedsBackground) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetImageBytesPerRow(PRUint32 *aImageBytesPerRow) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetImageDataLength(PRUint32 *aImageDataLength) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetImageData(PRUint8 **bits, PRUint32 *length) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPaletteData(gfx_color **palette, PRUint32 *length) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LockImageData(void) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) UnlockImageData(void) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTimeout(PRInt32 *aTimeout) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetTimeout(PRInt32 aTimeout) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFrameDisposalMethod(PRInt32 *aFrameDisposalMethod) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFrameDisposalMethod(PRInt32 aFrameDisposalMethod) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetBlendMethod(PRInt32 *aBlendMethod) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetBlendMethod(PRInt32 aBlendMethod) = 0; > >}; > > template <class Dummy> const nsIID gfxIImageFrame::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x9c37930b, 0xcadd, 0x453c, { 0x89, 0xe1, 0x9e, 0xd4, 0x56, 0x71, 0x5b, 0x9c }}; ># 102 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsIImageLoadingContent.h" 1 ># 17 "../../../dist/include/content/nsIImageLoadingContent.h" >class imgIRequest; > >class nsIChannel; > >class nsIStreamListener; > >class nsIURI; ># 54 "../../../dist/include/content/nsIImageLoadingContent.h" >class nsIImageLoadingContent : public imgIDecoderObserver { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 67 "../../../dist/include/content/nsIImageLoadingContent.h" > enum { UNKNOWN_REQUEST = -1 }; > > enum { CURRENT_REQUEST = 0 }; > > enum { PENDING_REQUEST = 1 }; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLoadingEnabled(PRBool *aLoadingEnabled) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetLoadingEnabled(PRBool aLoadingEnabled) = 0; ># 89 "../../../dist/include/content/nsIImageLoadingContent.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetImageBlockingStatus(PRInt16 *aImageBlockingStatus) = 0; ># 103 "../../../dist/include/content/nsIImageLoadingContent.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddObserver(imgIDecoderObserver *aObserver) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveObserver(imgIDecoderObserver *aObserver) = 0; ># 125 "../../../dist/include/content/nsIImageLoadingContent.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRequest(PRInt32 aRequestType, imgIRequest **_retval) = 0; ># 139 "../../../dist/include/content/nsIImageLoadingContent.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRequestType(imgIRequest *aRequest, PRInt32 *_retval) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCurrentURI(nsIURI * *aCurrentURI) = 0; ># 162 "../../../dist/include/content/nsIImageLoadingContent.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LoadImageWithChannel(nsIChannel *aChannel, nsIStreamListener **_retval) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ForceReload(void) = 0; > >}; > > template <class Dummy> const nsIID nsIImageLoadingContent::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x7744c6d3, 0x5c60, 0x4b7b, { 0xa5, 0x26, 0x4f, 0xe9, 0xd5, 0xac, 0x7e, 0x97 }}; ># 103 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/xpcom/nsIInterfaceRequestor.h" 1 ># 104 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/xpcom/nsIInterfaceRequestorUtils.h" 1 ># 105 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/necko/nsILoadGroup.h" 1 ># 106 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsContentPolicyUtils.h" 1 ># 51 "../../../dist/include/content/nsContentPolicyUtils.h" ># 1 "../../../dist/include/nspr/prlog.h" 1 ># 43 "../../../dist/include/nspr/prlog.h" >extern "C" { ># 138 "../../../dist/include/nspr/prlog.h" >typedef enum PRLogModuleLevel { > PR_LOG_NONE = 0, > PR_LOG_ALWAYS = 1, > PR_LOG_ERROR = 2, > PR_LOG_WARNING = 3, > PR_LOG_DEBUG = 4, > > PR_LOG_NOTICE = PR_LOG_DEBUG, > PR_LOG_WARN = PR_LOG_WARNING, > PR_LOG_MIN = PR_LOG_DEBUG, > PR_LOG_MAX = PR_LOG_DEBUG >} PRLogModuleLevel; > > > > > > >typedef struct PRLogModuleInfo { > const char *name; > PRLogModuleLevel level; > struct PRLogModuleInfo *next; >} PRLogModuleInfo; > > > > >extern __attribute__((visibility("default"))) PRLogModuleInfo* PR_NewLogModule(const char *name); > > > > > >extern __attribute__((visibility("default"))) PRBool PR_SetLogFile(const char *name); > > > > > >extern __attribute__((visibility("default"))) void PR_SetLogBuffering(PRIntn buffer_size); > > > > > > > >extern __attribute__((visibility("default"))) void PR_LogPrint(const char *fmt, ...); > > > > >extern __attribute__((visibility("default"))) void PR_LogFlush(void); ># 262 "../../../dist/include/nspr/prlog.h" >} ># 52 "../../../dist/include/content/nsContentPolicyUtils.h" 2 > ># 1 "../../../dist/include/content/nsIContentPolicy.h" 1 ># 17 "../../../dist/include/content/nsIContentPolicy.h" >class nsIURI; > >class nsIDOMNode; ># 37 "../../../dist/include/content/nsIContentPolicy.h" >class nsIContentPolicy : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > enum { TYPE_OTHER = 1U }; > > > > > enum { TYPE_SCRIPT = 2U }; > > > > > enum { TYPE_IMAGE = 3U }; > > > > > enum { TYPE_STYLESHEET = 4U }; > > > > > > enum { TYPE_OBJECT = 5U }; > > > > > enum { TYPE_DOCUMENT = 6U }; > > > > > > enum { TYPE_SUBDOCUMENT = 7U }; ># 86 "../../../dist/include/content/nsIContentPolicy.h" > enum { TYPE_REFRESH = 8U }; > > > > > > enum { TYPE_XBL = 9U }; > > > > > enum { TYPE_PING = 10U }; > > > > > enum { TYPE_XMLHTTPREQUEST = 11U }; > > > > > enum { TYPE_OBJECT_SUBREQUEST = 12U }; > > > > > enum { TYPE_DTD = 13U }; > > > > > > enum { REJECT_REQUEST = -1 }; ># 127 "../../../dist/include/content/nsIContentPolicy.h" > enum { REJECT_TYPE = -2 }; ># 139 "../../../dist/include/content/nsIContentPolicy.h" > enum { REJECT_SERVER = -3 }; ># 148 "../../../dist/include/content/nsIContentPolicy.h" > enum { REJECT_OTHER = -4 }; > > > > > > enum { ACCEPT = 1 }; ># 204 "../../../dist/include/content/nsIContentPolicy.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ShouldLoad(PRUint32 aContentType, nsIURI *aContentLocation, nsIURI *aRequestOrigin, nsISupports *aContext, const nsACString_internal & aMimeTypeGuess, nsISupports *aExtra, PRInt16 *_retval) = 0; ># 242 "../../../dist/include/content/nsIContentPolicy.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ShouldProcess(PRUint32 aContentType, nsIURI *aContentLocation, nsIURI *aRequestOrigin, nsISupports *aContext, const nsACString_internal & aMimeType, nsISupports *aExtra, PRInt16 *_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIContentPolicy::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x58cf9dca, 0x40b3, 0x6211, { 0xa5, 0x08, 0x73, 0x51, 0xf4, 0x37, 0xa5, 0x3e }}; ># 54 "../../../dist/include/content/nsContentPolicyUtils.h" 2 ># 1 "../../../dist/include/xpcom/nsIServiceManager.h" 1 ># 55 "../../../dist/include/content/nsContentPolicyUtils.h" 2 ># 1 "../../../dist/include/content/nsIContent.h" 1 ># 56 "../../../dist/include/content/nsContentPolicyUtils.h" 2 ># 1 "../../../dist/include/caps/nsIScriptSecurityManager.h" 1 ># 57 "../../../dist/include/content/nsContentPolicyUtils.h" 2 ># 1 "../../../dist/include/caps/nsIPrincipal.h" 1 ># 58 "../../../dist/include/content/nsContentPolicyUtils.h" 2 > > ># 1 "../../../dist/include/content/nsIDocument.h" 1 ># 61 "../../../dist/include/content/nsContentPolicyUtils.h" 2 ># 1 "../../../dist/include/dom/nsPIDOMWindow.h" 1 ># 62 "../../../dist/include/content/nsContentPolicyUtils.h" 2 > >class nsACString_internal; ># 209 "../../../dist/include/content/nsContentPolicyUtils.h" >inline nsresult >NS_CheckContentLoadPolicy(PRUint32 contentType, > nsIURI *contentLocation, > nsIPrincipal *originPrincipal, > nsISupports *context, > const nsACString_internal &mimeType, > nsISupports *extra, > PRInt16 *decision, > nsIContentPolicy *policyService = 0, > nsIScriptSecurityManager* aSecMan = 0) >{ > nsCOMPtr<nsIURI> requestOrigin; do { if (originPrincipal) { nsCOMPtr<nsIScriptSecurityManager> secMan = aSecMan; if (!secMan) { secMan = do_GetService("@mozilla.org/scriptsecuritymanager;1"); } if (secMan) { PRBool isSystem; nsresult rv = secMan->IsSystemPrincipal(originPrincipal, &isSystem); do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); if (isSystem) { *decision = nsIContentPolicy::ACCEPT; return 0; } } nsresult rv = originPrincipal->GetURI(getter_AddRefs(requestOrigin)); do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); } } while (0); > if (policyService) { > do { return policyService-> ShouldLoad (contentType, contentLocation, requestOrigin, context, mimeType, extra, decision); } while (0); > } > do { nsCOMPtr<nsIContentPolicy> policy = do_GetService("@mozilla.org/layout/content-policy;1"); if (!policy) return ((nsresult) 0x80004005L); return policy-> ShouldLoad (contentType, contentLocation, requestOrigin, context, mimeType, extra, decision); } while (0); >} ># 236 "../../../dist/include/content/nsContentPolicyUtils.h" >inline nsresult >NS_CheckContentProcessPolicy(PRUint32 contentType, > nsIURI *contentLocation, > nsIPrincipal *originPrincipal, > nsISupports *context, > const nsACString_internal &mimeType, > nsISupports *extra, > PRInt16 *decision, > nsIContentPolicy *policyService = 0, > nsIScriptSecurityManager* aSecMan = 0) >{ > nsCOMPtr<nsIURI> requestOrigin; do { if (originPrincipal) { nsCOMPtr<nsIScriptSecurityManager> secMan = aSecMan; if (!secMan) { secMan = do_GetService("@mozilla.org/scriptsecuritymanager;1"); } if (secMan) { PRBool isSystem; nsresult rv = secMan->IsSystemPrincipal(originPrincipal, &isSystem); do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); if (isSystem) { *decision = nsIContentPolicy::ACCEPT; return 0; } } nsresult rv = originPrincipal->GetURI(getter_AddRefs(requestOrigin)); do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); } } while (0); > if (policyService) { > do { return policyService-> ShouldProcess (contentType, contentLocation, requestOrigin, context, mimeType, extra, decision); } while (0); > } > do { nsCOMPtr<nsIContentPolicy> policy = do_GetService("@mozilla.org/layout/content-policy;1"); if (!policy) return ((nsresult) 0x80004005L); return policy-> ShouldProcess (contentType, contentLocation, requestOrigin, context, mimeType, extra, decision); } while (0); >} ># 268 "../../../dist/include/content/nsContentPolicyUtils.h" >inline nsIDocShell* >NS_CP_GetDocShellFromContext(nsISupports *aContext) >{ > if (!aContext) { > return 0; > } > > nsCOMPtr<nsPIDOMWindow> window = do_QueryInterface(aContext); > > if (!window) { > > > nsCOMPtr<nsIDocument> doc = do_QueryInterface(aContext); > if (!doc) { > > > nsCOMPtr<nsIContent> content = do_QueryInterface(aContext); > if (content) { > doc = content->GetOwnerDoc(); > } > } > > if (doc) { > window = doc->GetWindow(); > } > } > > if (!window) { > return 0; > } > > return window->GetDocShell(); >} ># 107 "nsContentUtils.cpp" 2 ># 1 "nsNodeInfoManager.h" 1 ># 108 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsIXBLService.h" 1 ># 50 "../../../dist/include/content/nsIXBLService.h" >class nsIContent; >class nsIDocument; >class nsPIDOMEventTarget; >class nsIDOMNodeList; >class nsXBLBinding; >class nsIXBLDocumentInfo; >class nsIURI; >class nsIAtom; >class nsIPrincipal; > > > > > >class nsIXBLService : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LoadBindings(nsIContent* aContent, nsIURI* aURL, > nsIPrincipal* aOriginPrincipal, PRBool aAugmentFlag, > nsXBLBinding** aBinding, PRBool* aResolveStyle) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) BindingReady(nsIContent* aBoundElement, nsIURI* aURI, PRBool* aIsReady) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ResolveTag(nsIContent* aContent, PRInt32* aNameSpaceID, nsIAtom** aResult) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LoadBindingDocumentInfo(nsIContent* aBoundElement, > nsIDocument* aBoundDocument, > nsIURI* aBindingURI, > nsIPrincipal* aOriginPrincipal, > PRBool aForceSyncLoad, > nsIXBLDocumentInfo** aResult) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AttachGlobalKeyHandler(nsPIDOMEventTarget* aTarget)=0; > >}; > >template <class Dummy> const nsIID nsIXBLService::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x98b28f4e, 0x698f, 0x4f77, { 0xa8, 0x9e, 0x65, 0xf5, 0xd0, 0xde, 0x6a, 0xbf } }; ># 109 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/xpcom/nsCRT.h" 1 ># 110 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIDOMEvent.h" 1 ># 111 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIDOMEventTarget.h" 1 ># 25 "../../../dist/include/dom/nsIDOMEventTarget.h" >class nsIDOMEventTarget : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 65 "../../../dist/include/dom/nsIDOMEventTarget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddEventListener(const nsAString_internal & type, nsIDOMEventListener *listener, PRBool useCapture) = 0; ># 88 "../../../dist/include/dom/nsIDOMEventTarget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveEventListener(const nsAString_internal & type, nsIDOMEventListener *listener, PRBool useCapture) = 0; ># 109 "../../../dist/include/dom/nsIDOMEventTarget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DispatchEvent(nsIDOMEvent *evt, PRBool *_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMEventTarget::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x1c773b30, 0xd1cf, 0x11d2, { 0xbd, 0x95, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4 }}; ># 112 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsIPrivateDOMEvent.h" 1 ># 43 "../../../dist/include/content/nsIPrivateDOMEvent.h" >class nsPresContext; ># 53 "../../../dist/include/content/nsIPrivateDOMEvent.h" >class nsIDOMEventTarget; >class nsIDOMEvent; >class nsEvent; >class nsCommandEvent; > >class nsIPrivateDOMEvent : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DuplicatePrivateData() = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetTarget(nsIDOMEventTarget* aTarget) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetCurrentTarget(nsIDOMEventTarget* aTarget) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetOriginalTarget(nsIDOMEventTarget* aTarget) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsDispatchStopped(PRBool* aIsDispatchPrevented) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetInternalNSEvent(nsEvent** aNSEvent) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HasOriginalTarget(PRBool* aResult)=0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetTrusted(PRBool aTrusted)=0; >}; > >template <class Dummy> const nsIID nsIPrivateDOMEvent::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x25e6626c, 0x8e54, 0x409b, {0x87, 0xb5, 0x2b, 0xec, 0xea, 0xac, 0x39, 0x9e} }; > >nsresult >NS_NewDOMEvent(nsIDOMEvent** aInstancePtrResult, nsPresContext* aPresContext, nsEvent *aEvent); >nsresult >NS_NewDOMDataContainerEvent(nsIDOMEvent** aInstancePtrResult, nsPresContext* aPresContext, nsEvent *aEvent); >nsresult >NS_NewDOMUIEvent(nsIDOMEvent** aInstancePtrResult, nsPresContext* aPresContext, class nsGUIEvent *aEvent); >nsresult >NS_NewDOMMouseEvent(nsIDOMEvent** aInstancePtrResult, nsPresContext* aPresContext, class nsInputEvent *aEvent); >nsresult >NS_NewDOMKeyboardEvent(nsIDOMEvent** aInstancePtrResult, nsPresContext* aPresContext, class nsKeyEvent *aEvent); >nsresult >NS_NewDOMMutationEvent(nsIDOMEvent** aResult, nsPresContext* aPresContext, class nsMutationEvent* aEvent); >nsresult >NS_NewDOMPopupBlockedEvent(nsIDOMEvent** aResult, nsPresContext* aPresContext, class nsPopupBlockedEvent* aEvent); >nsresult >NS_NewDOMTextEvent(nsIDOMEvent** aResult, nsPresContext* aPresContext, class nsTextEvent* aEvent); >nsresult >NS_NewDOMBeforeUnloadEvent(nsIDOMEvent** aResult, nsPresContext* aPresContext, class nsBeforePageUnloadEvent* aEvent); >nsresult >NS_NewDOMPageTransitionEvent(nsIDOMEvent** aResult, nsPresContext* aPresContext, class nsPageTransitionEvent* aEvent); > >nsresult >NS_NewDOMSVGEvent(nsIDOMEvent** aResult, nsPresContext* aPresContext, class nsEvent* aEvent); >nsresult >NS_NewDOMSVGZoomEvent(nsIDOMEvent** aResult, nsPresContext* aPresContext, class nsGUIEvent* aEvent); > >nsresult >NS_NewDOMXULCommandEvent(nsIDOMEvent** aResult, nsPresContext* aPresContext, class nsXULCommandEvent* aEvent); >nsresult >NS_NewDOMCommandEvent(nsIDOMEvent** aInstancePtrResult, nsPresContext* aPresContext, nsCommandEvent* aEvent); >nsresult >NS_NewDOMMessageEvent(nsIDOMEvent** aInstancePtrResult, nsPresContext* aPresContext, class nsEvent* aEvent); ># 113 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIDOMDocumentEvent.h" 1 ># 34 "../../../dist/include/dom/nsIDOMDocumentEvent.h" >class nsIDOMDocumentEvent : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateEvent(const nsAString_internal & eventType, nsIDOMEvent **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMDocumentEvent::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x46b91d66, 0x28e2, 0x11d4, { 0xab, 0x1e, 0x00, 0x10, 0x83, 0x01, 0x23, 0xb4 }}; ># 114 "nsContentUtils.cpp" 2 > ># 1 "../../../dist/include/content/nsIXTFService.h" 1 ># 44 "../../../dist/include/content/nsIXTFService.h" >class nsIContent; >class nsINodeInfo; > > > > > >class nsIXTFService : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual nsresult CreateElement(nsIContent** aResult, > nsINodeInfo* aNodeInfo)=0; >}; > >template <class Dummy> const nsIID nsIXTFService::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x02ad2add, 0xc5ec, 0x4362, { 0xbb, 0x5f, 0xe2, 0xc6, 0x9b, 0xa7, 0x61, 0x51 } }; ># 72 "../../../dist/include/content/nsIXTFService.h" >nsresult NS_NewXTFService(nsIXTFService** aResult); ># 116 "nsContentUtils.cpp" 2 >static const nsCID kXTFServiceCID = { 0x4ec832da, 0x6ae7, 0x4185, { 0x80, 0x7b, 0xda, 0xdd, 0xcb, 0x5d, 0xa3, 0x7a } }; > ># 1 "../../../dist/include/mimetype/nsIMIMEService.h" 1 ># 14 "../../../dist/include/mimetype/nsIMIMEService.h" ># 1 "../../../dist/include/mimetype/nsIMIMEInfo.h" 1 ># 17 "../../../dist/include/mimetype/nsIMIMEInfo.h" >class nsIURI; > >class nsIFile; > >class nsIUTF8StringEnumerator; > >class nsIHandlerApp; > >class nsIArray; > >class nsIMutableArray; > >class nsIInterfaceRequestor; > >typedef PRInt32 nsHandlerInfoAction; ># 45 "../../../dist/include/mimetype/nsIMIMEInfo.h" >class nsIHandlerInfo : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 57 "../../../dist/include/mimetype/nsIMIMEInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetType(nsACString_internal & aType) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDescription(nsAString_internal & aDescription) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDescription(const nsAString_internal & aDescription) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPreferredApplicationHandler(nsIHandlerApp * *aPreferredApplicationHandler) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPreferredApplicationHandler(nsIHandlerApp * aPreferredApplicationHandler) = 0; ># 84 "../../../dist/include/mimetype/nsIMIMEInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleApplicationHandlers) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHasDefaultHandler(PRBool *aHasDefaultHandler) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDefaultDescription(nsAString_internal & aDefaultDescription) = 0; ># 124 "../../../dist/include/mimetype/nsIMIMEInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) = 0; ># 133 "../../../dist/include/mimetype/nsIMIMEInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPreferredAction(nsHandlerInfoAction *aPreferredAction) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPreferredAction(nsHandlerInfoAction aPreferredAction) = 0; > > enum { saveToDisk = 0 }; > > > > > > enum { alwaysAsk = 1 }; > > enum { useHelperApp = 2 }; > > enum { handleInternally = 3 }; > > enum { useSystemDefault = 4 }; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAlwaysAskBeforeHandling(PRBool *aAlwaysAskBeforeHandling) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetAlwaysAskBeforeHandling(PRBool aAlwaysAskBeforeHandling) = 0; > >}; > > template <class Dummy> const nsIID nsIHandlerInfo::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x325e56a7, 0x3762, 0x4312, { 0xae, 0xc7, 0xf1, 0xfc, 0xf8, 0x4b, 0x41, 0x45 }}; ># 332 "../../../dist/include/mimetype/nsIMIMEInfo.h" >class nsIMIMEInfo : public nsIHandlerInfo { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 344 "../../../dist/include/mimetype/nsIMIMEInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFileExtensions(nsIUTF8StringEnumerator **_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFileExtensions(const nsACString_internal & aExtensions) = 0; ># 359 "../../../dist/include/mimetype/nsIMIMEInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ExtensionExists(const nsACString_internal & aExtension, PRBool *_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AppendExtension(const nsACString_internal & aExtension) = 0; ># 374 "../../../dist/include/mimetype/nsIMIMEInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrimaryExtension(nsACString_internal & aPrimaryExtension) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrimaryExtension(const nsACString_internal & aPrimaryExtension) = 0; ># 385 "../../../dist/include/mimetype/nsIMIMEInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMIMEType(nsACString_internal & aMIMEType) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMacType(PRUint32 *aMacType) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetMacType(PRUint32 aMacType) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMacCreator(PRUint32 *aMacCreator) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetMacCreator(PRUint32 aMacCreator) = 0; ># 405 "../../../dist/include/mimetype/nsIMIMEInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Equals(nsIMIMEInfo *aMIMEInfo, PRBool *_retval) = 0; ># 417 "../../../dist/include/mimetype/nsIMIMEInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPossibleLocalHandlers(nsIArray * *aPossibleLocalHandlers) = 0; ># 430 "../../../dist/include/mimetype/nsIMIMEInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LaunchWithFile(nsIFile *aFile) = 0; > >}; > > template <class Dummy> const nsIID nsIMIMEInfo::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xcd7083f8, 0x5fe9, 0x4248, { 0xbb, 0x09, 0x0b, 0x0e, 0x29, 0x82, 0xfd, 0xe8 }}; ># 608 "../../../dist/include/mimetype/nsIMIMEInfo.h" >class nsIHandlerApp : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 625 "../../../dist/include/mimetype/nsIMIMEInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetName(nsAString_internal & aName) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetName(const nsAString_internal & aName) = 0; ># 640 "../../../dist/include/mimetype/nsIMIMEInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Equals(nsIHandlerApp *aHandlerApp, PRBool *_retval) = 0; ># 661 "../../../dist/include/mimetype/nsIMIMEInfo.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) = 0; > >}; > > template <class Dummy> const nsIID nsIHandlerApp::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x8d298761, 0x0963, 0x4c90, { 0x99, 0xe2, 0x6e, 0xa4, 0x98, 0x82, 0x5e, 0x82 }}; ># 756 "../../../dist/include/mimetype/nsIMIMEInfo.h" >class nsILocalHandlerApp : public nsIHandlerApp { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetExecutable(nsIFile * *aExecutable) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetExecutable(nsIFile * aExecutable) = 0; > >}; > > template <class Dummy> const nsIID nsILocalHandlerApp::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x9812be73, 0x273c, 0x478c, { 0x81, 0x70, 0xc3, 0xe0, 0xdb, 0x08, 0xae, 0x7c }}; ># 846 "../../../dist/include/mimetype/nsIMIMEInfo.h" >class nsIWebHandlerApp : public nsIHandlerApp { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetUriTemplate(nsACString_internal & aUriTemplate) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetUriTemplate(const nsACString_internal & aUriTemplate) = 0; > >}; > > template <class Dummy> const nsIID nsIWebHandlerApp::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x7521a093, 0xc498, 0x45ce, { 0xb4, 0x62, 0xdf, 0x7b, 0xa0, 0xd8, 0x82, 0xf6 }}; ># 15 "../../../dist/include/mimetype/nsIMIMEService.h" 2 ># 55 "../../../dist/include/mimetype/nsIMIMEService.h" >class nsIMIMEService : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 68 "../../../dist/include/mimetype/nsIMIMEService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFromTypeAndExtension(const nsACString_internal & aMIMEType, const nsACString_internal & aFileExt, nsIMIMEInfo **_retval) = 0; ># 78 "../../../dist/include/mimetype/nsIMIMEService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTypeFromExtension(const nsACString_internal & aFileExt, nsACString_internal & _retval) = 0; ># 90 "../../../dist/include/mimetype/nsIMIMEService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTypeFromURI(nsIURI *aURI, nsACString_internal & _retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTypeFromFile(nsIFile *aFile, nsACString_internal & _retval) = 0; ># 103 "../../../dist/include/mimetype/nsIMIMEService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrimaryExtension(const nsACString_internal & aMIMEType, const nsACString_internal & aFileExt, nsACString_internal & _retval) = 0; > >}; > > template <class Dummy> const nsIID nsIMIMEService::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x5b3675a1, 0x02db, 0x4f8f, { 0xa5, 0x60, 0xb3, 0x47, 0x36, 0x63, 0x5f, 0x47 }}; ># 119 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/lwbrk/nsLWBrkCIID.h" 1 ># 120 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/lwbrk/nsILineBreaker.h" 1 ># 40 "../../../dist/include/lwbrk/nsILineBreaker.h" ># 1 "../../../dist/include/xpcom/nsISupports.h" 1 ># 41 "../../../dist/include/lwbrk/nsILineBreaker.h" 2 > ># 1 "../../../dist/include/xpcom/nscore.h" 1 ># 43 "../../../dist/include/lwbrk/nsILineBreaker.h" 2 ># 51 "../../../dist/include/lwbrk/nsILineBreaker.h" >class nsILineBreaker : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > virtual PRInt32 Next( const PRUnichar* aText, PRUint32 aLen, > PRUint32 aPos) = 0; > > virtual PRInt32 Prev( const PRUnichar* aText, PRUint32 aLen, > PRUint32 aPos) = 0; > > > > > > > > virtual void GetJISx4051Breaks(const PRUnichar* aText, PRUint32 aLength, > PRPackedBool* aBreakBefore) = 0; > virtual void GetJISx4051Breaks(const PRUint8* aText, PRUint32 aLength, > PRPackedBool* aBreakBefore) = 0; >}; > >template <class Dummy> const nsIID nsILineBreaker::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x5ae68851, 0xd9a3, 0x49fd, { 0x93, 0x88, 0x58, 0x58, 0x6d, 0xad, 0x80, 0x44 } }; > >static inline PRBool >NS_IsSpace(PRUnichar u) >{ > return u == 0x0020 || > u == 0x0009 || > u == 0x000D || > (0x2000 <= u && u <= 0x2006) || > > > (0x2008 <= u && u <= 0x200B) || > > u == 0x3000; >} > >static inline PRBool >NS_NeedsPlatformNativeHandling(PRUnichar aChar) >{ > return (0x0e01 <= aChar && aChar <= 0x0fff); >} ># 121 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/lwbrk/nsIWordBreaker.h" 1 ># 51 "../../../dist/include/lwbrk/nsIWordBreaker.h" >typedef struct { > PRUint32 mBegin; > PRUint32 mEnd; >} nsWordRange; > >class nsIWordBreaker : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual PRBool BreakInBetween(const PRUnichar* aText1 , PRUint32 aTextLen1, > const PRUnichar* aText2 , > PRUint32 aTextLen2) = 0; > virtual nsWordRange FindWord(const PRUnichar* aText1 , PRUint32 aTextLen1, > PRUint32 aOffset) = 0; > virtual PRInt32 NextWord(const PRUnichar* aText, PRUint32 aLen, > PRUint32 aPos) = 0; > > virtual PRInt32 PrevWord(const PRUnichar* aText, PRUint32 aLen, > PRUint32 aPos) = 0; > >}; > >template <class Dummy> const nsIID nsIWordBreaker::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0xe86b3379, 0xbf89, 0x11d2, { 0xb3, 0xaf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }; ># 122 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/js/jsdbgapi.h" 1 ># 46 "../../../dist/include/js/jsdbgapi.h" ># 1 "../../../dist/include/js/jsapi.h" 1 ># 47 "../../../dist/include/js/jsdbgapi.h" 2 ># 1 "../../../dist/include/js/jsopcode.h" 1 ># 45 "../../../dist/include/js/jsopcode.h" ># 1 "/usr/lib/gcc/i386-redhat-linux/4.1.0/include/stddef.h" 1 3 4 ># 46 "../../../dist/include/js/jsopcode.h" 2 ># 1 "../../../dist/include/js/jsprvtd.h" 1 ># 86 "../../../dist/include/js/jsprvtd.h" >typedef uint8 jsbytecode; >typedef uint8 jssrcnote; >typedef uint32 jsatomid; > > >typedef struct JSArgumentFormatMap JSArgumentFormatMap; >typedef struct JSCodeGenerator JSCodeGenerator; >typedef struct JSGCThing JSGCThing; >typedef struct JSGenerator JSGenerator; >typedef struct JSParseContext JSParseContext; >typedef struct JSParsedObjectBox JSParsedObjectBox; >typedef struct JSParseNode JSParseNode; >typedef struct JSPropCacheEntry JSPropCacheEntry; >typedef struct JSSharpObjectMap JSSharpObjectMap; >typedef struct JSTempValueRooter JSTempValueRooter; >typedef struct JSThread JSThread; >typedef struct JSToken JSToken; >typedef struct JSTokenPos JSTokenPos; >typedef struct JSTokenPtr JSTokenPtr; >typedef struct JSTokenStream JSTokenStream; >typedef struct JSTreeContext JSTreeContext; >typedef struct JSTryNote JSTryNote; >typedef struct JSWeakRoots JSWeakRoots; > > >typedef struct JSAtom JSAtom; >typedef struct JSAtomList JSAtomList; >typedef struct JSAtomListElement JSAtomListElement; >typedef struct JSAtomMap JSAtomMap; >typedef struct JSAtomState JSAtomState; >typedef struct JSCodeSpec JSCodeSpec; >typedef struct JSPrinter JSPrinter; >typedef struct JSRegExp JSRegExp; >typedef struct JSRegExpStatics JSRegExpStatics; >typedef struct JSScope JSScope; >typedef struct JSScopeOps JSScopeOps; >typedef struct JSScopeProperty JSScopeProperty; >typedef struct JSStackHeader JSStackHeader; >typedef struct JSStringBuffer JSStringBuffer; >typedef struct JSSubString JSSubString; >typedef struct JSXML JSXML; >typedef struct JSXMLNamespace JSXMLNamespace; >typedef struct JSXMLQName JSXMLQName; >typedef struct JSXMLArray JSXMLArray; >typedef struct JSXMLArrayCursor JSXMLArrayCursor; > > >typedef enum JSTrapStatus { > JSTRAP_ERROR, > JSTRAP_CONTINUE, > JSTRAP_RETURN, > JSTRAP_THROW, > JSTRAP_LIMIT >} JSTrapStatus; > >typedef JSTrapStatus >(* JSTrapHandler)(JSContext *cx, JSScript *script, > jsbytecode *pc, jsval *rval, void *closure); > >typedef JSBool >(* JSWatchPointHandler)(JSContext *cx, JSObject *obj, jsval id, > jsval old, jsval *newp, void *closure); > > >typedef void >(* JSNewScriptHook)(JSContext *cx, > const char *filename, > uintN lineno, > JSScript *script, > JSFunction *fun, > void *callerdata); > > >typedef void >(* JSDestroyScriptHook)(JSContext *cx, > JSScript *script, > void *callerdata); > >typedef void >(* JSSourceHandler)(const char *filename, uintN lineno, > jschar *str, size_t length, > void **listenerTSData, void *closure); ># 194 "../../../dist/include/js/jsprvtd.h" >typedef void * >(* JSInterpreterHook)(JSContext *cx, JSStackFrame *fp, JSBool before, > JSBool *ok, void *closure); > >typedef void >(* JSObjectHook)(JSContext *cx, JSObject *obj, JSBool isNew, > void *closure); > >typedef JSBool >(* JSDebugErrorHook)(JSContext *cx, const char *message, > JSErrorReport *report, void *closure); > >typedef struct JSDebugHooks { > JSTrapHandler interruptHandler; > void *interruptHandlerData; > JSNewScriptHook newScriptHook; > void *newScriptHookData; > JSDestroyScriptHook destroyScriptHook; > void *destroyScriptHookData; > JSTrapHandler debuggerHandler; > void *debuggerHandlerData; > JSSourceHandler sourceHandler; > void *sourceHandlerData; > JSInterpreterHook executeHook; > void *executeHookData; > JSInterpreterHook callHook; > void *callHookData; > JSObjectHook objectHook; > void *objectHookData; > JSTrapHandler throwHook; > void *throwHookData; > JSDebugErrorHook debugErrorHook; > void *debugErrorHookData; >} JSDebugHooks; > > > > > >typedef void >(* JSTempValueTrace)(JSTracer *trc, JSTempValueRooter *tvr); > >typedef union JSTempValueUnion { > jsval value; > JSObject *object; > JSString *string; > JSXML *xml; > JSXMLQName *qname; > JSXMLNamespace *nspace; > JSTempValueTrace trace; > JSScopeProperty *sprop; > JSWeakRoots *weakRoots; > JSParseContext *parseContext; > JSScript *script; > jsval *array; >} JSTempValueUnion; > >struct JSTempValueRooter { > JSTempValueRooter *down; > ptrdiff_t count; > JSTempValueUnion u; >}; ># 264 "../../../dist/include/js/jsprvtd.h" >extern JSBool js_CStringsAreUTF8; ># 47 "../../../dist/include/js/jsopcode.h" 2 > > > >extern "C" { > > > > >typedef enum JSOp { > > ># 1 "../../../dist/include/js/jsopcode.tbl" 1 ># 100 "../../../dist/include/js/jsopcode.tbl" >JSOP_NOP = 0, >JSOP_PUSH = 1, >JSOP_POPV = 2, >JSOP_ENTERWITH = 3, >JSOP_LEAVEWITH = 4, >JSOP_RETURN = 5, >JSOP_GOTO = 6, >JSOP_IFEQ = 7, >JSOP_IFNE = 8, > > >JSOP_ARGUMENTS = 9, > > >JSOP_FORARG = 10, >JSOP_FORVAR = 11, > > >JSOP_DUP = 12, >JSOP_DUP2 = 13, >JSOP_SETCONST = 14, >JSOP_BITOR = 15, >JSOP_BITXOR = 16, >JSOP_BITAND = 17, >JSOP_EQ = 18, >JSOP_NE = 19, >JSOP_LT = 20, >JSOP_LE = 21, >JSOP_GT = 22, >JSOP_GE = 23, >JSOP_LSH = 24, >JSOP_RSH = 25, >JSOP_URSH = 26, >JSOP_ADD = 27, >JSOP_SUB = 28, >JSOP_MUL = 29, >JSOP_DIV = 30, >JSOP_MOD = 31, >JSOP_NOT = 32, >JSOP_BITNOT = 33, >JSOP_NEG = 34, >JSOP_NEW = 35, >JSOP_DELNAME = 36, >JSOP_DELPROP = 37, >JSOP_DELELEM = 38, >JSOP_TYPEOF = 39, >JSOP_VOID = 40, > >JSOP_INCNAME = 41, >JSOP_INCPROP = 42, >JSOP_INCELEM = 43, >JSOP_DECNAME = 44, >JSOP_DECPROP = 45, >JSOP_DECELEM = 46, >JSOP_NAMEINC = 47, >JSOP_PROPINC = 48, >JSOP_ELEMINC = 49, >JSOP_NAMEDEC = 50, >JSOP_PROPDEC = 51, >JSOP_ELEMDEC = 52, > >JSOP_GETPROP = 53, >JSOP_SETPROP = 54, >JSOP_GETELEM = 55, >JSOP_SETELEM = 56, >JSOP_CALLNAME = 57, >JSOP_CALL = 58, >JSOP_NAME = 59, >JSOP_DOUBLE = 60, >JSOP_STRING = 61, >JSOP_ZERO = 62, >JSOP_ONE = 63, >JSOP_NULL = 64, >JSOP_THIS = 65, >JSOP_FALSE = 66, >JSOP_TRUE = 67, >JSOP_OR = 68, >JSOP_AND = 69, > > >JSOP_TABLESWITCH = 70, >JSOP_LOOKUPSWITCH = 71, > > >JSOP_STRICTEQ = 72, >JSOP_STRICTNE = 73, > > >JSOP_CLOSURE = 74, > > >JSOP_EXPORTALL = 75, >JSOP_EXPORTNAME = 76, >JSOP_IMPORTALL = 77, >JSOP_IMPORTPROP = 78, >JSOP_IMPORTELEM = 79, > > >JSOP_OBJECT = 80, > > >JSOP_POP = 81, > > >JSOP_POS = 82, > > >JSOP_TRAP = 83, > > >JSOP_GETARG = 84, >JSOP_SETARG = 85, >JSOP_GETVAR = 86, >JSOP_SETVAR = 87, > > >JSOP_UINT16 = 88, > > >JSOP_NEWINIT = 89, >JSOP_ENDINIT = 90, >JSOP_INITPROP = 91, >JSOP_INITELEM = 92, >JSOP_DEFSHARP = 93, >JSOP_USESHARP = 94, > > >JSOP_INCARG = 95, >JSOP_INCVAR = 96, >JSOP_DECARG = 97, >JSOP_DECVAR = 98, >JSOP_ARGINC = 99, >JSOP_VARINC = 100, >JSOP_ARGDEC = 101, >JSOP_VARDEC = 102, > > > > >JSOP_FORIN = 103, > > >JSOP_FORNAME = 104, >JSOP_FORPROP = 105, >JSOP_FORELEM = 106, >JSOP_POPN = 107, > > >JSOP_BINDNAME = 108, >JSOP_SETNAME = 109, > > >JSOP_THROW = 110, > > >JSOP_IN = 111, >JSOP_INSTANCEOF = 112, > > >JSOP_DEBUGGER = 113, > > >JSOP_GOSUB = 114, >JSOP_RETSUB = 115, > > >JSOP_EXCEPTION = 116, > > >JSOP_LINENO = 117, > > > > > > >JSOP_CONDSWITCH = 118, >JSOP_CASE = 119, >JSOP_DEFAULT = 120, > > > > >JSOP_EVAL = 121, > > > > >JSOP_ENUMELEM = 122, > > > > > > >JSOP_GETTER = 123, >JSOP_SETTER = 124, > > > > >JSOP_DEFFUN = 125, >JSOP_DEFCONST = 126, >JSOP_DEFVAR = 127, > > >JSOP_ANONFUNOBJ = 128, > > >JSOP_NAMEDFUNOBJ = 129, > > > > > >JSOP_SETLOCALPOP = 130, > > >JSOP_GROUP = 131, > > > > > >JSOP_SETCALL = 132, > > > > > >JSOP_TRY = 133, >JSOP_FINALLY = 134, > > > > >JSOP_SWAP = 135, > > > > > > >JSOP_ARGSUB = 136, >JSOP_ARGCNT = 137, > > > > > > >JSOP_DEFLOCALFUN = 138, > > >JSOP_GOTOX = 139, >JSOP_IFEQX = 140, >JSOP_IFNEX = 141, >JSOP_ORX = 142, >JSOP_ANDX = 143, >JSOP_GOSUBX = 144, >JSOP_CASEX = 145, >JSOP_DEFAULTX = 146, >JSOP_TABLESWITCHX = 147, >JSOP_LOOKUPSWITCHX = 148, > > >JSOP_BACKPATCH = 149, >JSOP_BACKPATCH_POP = 150, > > >JSOP_THROWING = 151, > > >JSOP_SETRVAL = 152, >JSOP_RETRVAL = 153, > > >JSOP_GETGVAR = 154, >JSOP_SETGVAR = 155, >JSOP_INCGVAR = 156, >JSOP_DECGVAR = 157, >JSOP_GVARINC = 158, >JSOP_GVARDEC = 159, > > >JSOP_REGEXP = 160, > > >JSOP_DEFXMLNS = 161, >JSOP_ANYNAME = 162, >JSOP_QNAMEPART = 163, >JSOP_QNAMECONST = 164, >JSOP_QNAME = 165, >JSOP_TOATTRNAME = 166, >JSOP_TOATTRVAL = 167, >JSOP_ADDATTRNAME = 168, >JSOP_ADDATTRVAL = 169, >JSOP_BINDXMLNAME = 170, >JSOP_SETXMLNAME = 171, >JSOP_XMLNAME = 172, >JSOP_DESCENDANTS = 173, >JSOP_FILTER = 174, >JSOP_ENDFILTER = 175, >JSOP_TOXML = 176, >JSOP_TOXMLLIST = 177, >JSOP_XMLTAGEXPR = 178, >JSOP_XMLELTEXPR = 179, >JSOP_XMLOBJECT = 180, >JSOP_XMLCDATA = 181, >JSOP_XMLCOMMENT = 182, >JSOP_XMLPI = 183, >JSOP_CALLPROP = 184, >JSOP_GETFUNNS = 185, >JSOP_FOREACH = 186, >JSOP_DELDESC = 187, > > > > >JSOP_UINT24 = 188, > > > > > > > >JSOP_INDEXBASE = 189, >JSOP_RESETBASE = 190, >JSOP_RESETBASE0 = 191, > > > > >JSOP_STARTXML = 192, >JSOP_STARTXMLEXPR = 193, > >JSOP_CALLELEM = 194, > > > > > >JSOP_STOP = 195, > > > > > >JSOP_GETXPROP = 196, > >JSOP_CALLXMLNAME = 197, > > > > >JSOP_TYPEOFEXPR = 198, > > > > >JSOP_ENTERBLOCK = 199, >JSOP_LEAVEBLOCK = 200, >JSOP_GETLOCAL = 201, >JSOP_SETLOCAL = 202, >JSOP_INCLOCAL = 203, >JSOP_DECLOCAL = 204, >JSOP_LOCALINC = 205, >JSOP_LOCALDEC = 206, >JSOP_FORLOCAL = 207, > > > > >JSOP_FORCONST = 208, >JSOP_ENDITER = 209, >JSOP_GENERATOR = 210, >JSOP_YIELD = 211, >JSOP_ARRAYPUSH = 212, > >JSOP_FOREACHKEYVAL = 213, > > > > >JSOP_ENUMCONSTELEM = 214, > > > > > >JSOP_LEAVEBLOCKEXPR = 215, > > > > >JSOP_GETTHISPROP = 216, >JSOP_GETARGPROP = 217, >JSOP_GETVARPROP = 218, >JSOP_GETLOCALPROP = 219, > > > > > >JSOP_INDEXBASE1 = 220, >JSOP_INDEXBASE2 = 221, >JSOP_INDEXBASE3 = 222, > >JSOP_CALLGVAR = 223, >JSOP_CALLVAR = 224, >JSOP_CALLARG = 225, >JSOP_CALLLOCAL = 226, > > > > >JSOP_INT8 = 227, >JSOP_INT32 = 228, > > > > >JSOP_LENGTH = 229, ># 59 "../../../dist/include/js/jsopcode.h" 2 > > JSOP_LIMIT >} JSOp; > >typedef enum JSOpLength { > > ># 1 "../../../dist/include/js/jsopcode.tbl" 1 ># 100 "../../../dist/include/js/jsopcode.tbl" >JSOP_NOP_LENGTH = 1, >JSOP_PUSH_LENGTH = 1, >JSOP_POPV_LENGTH = 1, >JSOP_ENTERWITH_LENGTH = 1, >JSOP_LEAVEWITH_LENGTH = 1, >JSOP_RETURN_LENGTH = 1, >JSOP_GOTO_LENGTH = 3, >JSOP_IFEQ_LENGTH = 3, >JSOP_IFNE_LENGTH = 3, > > >JSOP_ARGUMENTS_LENGTH = 1, > > >JSOP_FORARG_LENGTH = 3, >JSOP_FORVAR_LENGTH = 3, > > >JSOP_DUP_LENGTH = 1, >JSOP_DUP2_LENGTH = 1, >JSOP_SETCONST_LENGTH = 3, >JSOP_BITOR_LENGTH = 1, >JSOP_BITXOR_LENGTH = 1, >JSOP_BITAND_LENGTH = 1, >JSOP_EQ_LENGTH = 1, >JSOP_NE_LENGTH = 1, >JSOP_LT_LENGTH = 1, >JSOP_LE_LENGTH = 1, >JSOP_GT_LENGTH = 1, >JSOP_GE_LENGTH = 1, >JSOP_LSH_LENGTH = 1, >JSOP_RSH_LENGTH = 1, >JSOP_URSH_LENGTH = 1, >JSOP_ADD_LENGTH = 1, >JSOP_SUB_LENGTH = 1, >JSOP_MUL_LENGTH = 1, >JSOP_DIV_LENGTH = 1, >JSOP_MOD_LENGTH = 1, >JSOP_NOT_LENGTH = 1, >JSOP_BITNOT_LENGTH = 1, >JSOP_NEG_LENGTH = 1, >JSOP_NEW_LENGTH = 3, >JSOP_DELNAME_LENGTH = 3, >JSOP_DELPROP_LENGTH = 3, >JSOP_DELELEM_LENGTH = 1, >JSOP_TYPEOF_LENGTH = 1, >JSOP_VOID_LENGTH = 1, > >JSOP_INCNAME_LENGTH = 3, >JSOP_INCPROP_LENGTH = 3, >JSOP_INCELEM_LENGTH = 1, >JSOP_DECNAME_LENGTH = 3, >JSOP_DECPROP_LENGTH = 3, >JSOP_DECELEM_LENGTH = 1, >JSOP_NAMEINC_LENGTH = 3, >JSOP_PROPINC_LENGTH = 3, >JSOP_ELEMINC_LENGTH = 1, >JSOP_NAMEDEC_LENGTH = 3, >JSOP_PROPDEC_LENGTH = 3, >JSOP_ELEMDEC_LENGTH = 1, > >JSOP_GETPROP_LENGTH = 3, >JSOP_SETPROP_LENGTH = 3, >JSOP_GETELEM_LENGTH = 1, >JSOP_SETELEM_LENGTH = 1, >JSOP_CALLNAME_LENGTH = 3, >JSOP_CALL_LENGTH = 3, >JSOP_NAME_LENGTH = 3, >JSOP_DOUBLE_LENGTH = 3, >JSOP_STRING_LENGTH = 3, >JSOP_ZERO_LENGTH = 1, >JSOP_ONE_LENGTH = 1, >JSOP_NULL_LENGTH = 1, >JSOP_THIS_LENGTH = 1, >JSOP_FALSE_LENGTH = 1, >JSOP_TRUE_LENGTH = 1, >JSOP_OR_LENGTH = 3, >JSOP_AND_LENGTH = 3, > > >JSOP_TABLESWITCH_LENGTH = -1, >JSOP_LOOKUPSWITCH_LENGTH = -1, > > >JSOP_STRICTEQ_LENGTH = 1, >JSOP_STRICTNE_LENGTH = 1, > > >JSOP_CLOSURE_LENGTH = 3, > > >JSOP_EXPORTALL_LENGTH = 1, >JSOP_EXPORTNAME_LENGTH = 3, >JSOP_IMPORTALL_LENGTH = 1, >JSOP_IMPORTPROP_LENGTH = 3, >JSOP_IMPORTELEM_LENGTH = 1, > > >JSOP_OBJECT_LENGTH = 3, > > >JSOP_POP_LENGTH = 1, > > >JSOP_POS_LENGTH = 1, > > >JSOP_TRAP_LENGTH = 1, > > >JSOP_GETARG_LENGTH = 3, >JSOP_SETARG_LENGTH = 3, >JSOP_GETVAR_LENGTH = 3, >JSOP_SETVAR_LENGTH = 3, > > >JSOP_UINT16_LENGTH = 3, > > >JSOP_NEWINIT_LENGTH = 2, >JSOP_ENDINIT_LENGTH = 1, >JSOP_INITPROP_LENGTH = 3, >JSOP_INITELEM_LENGTH = 1, >JSOP_DEFSHARP_LENGTH = 3, >JSOP_USESHARP_LENGTH = 3, > > >JSOP_INCARG_LENGTH = 3, >JSOP_INCVAR_LENGTH = 3, >JSOP_DECARG_LENGTH = 3, >JSOP_DECVAR_LENGTH = 3, >JSOP_ARGINC_LENGTH = 3, >JSOP_VARINC_LENGTH = 3, >JSOP_ARGDEC_LENGTH = 3, >JSOP_VARDEC_LENGTH = 3, > > > > >JSOP_FORIN_LENGTH = 1, > > >JSOP_FORNAME_LENGTH = 3, >JSOP_FORPROP_LENGTH = 3, >JSOP_FORELEM_LENGTH = 1, >JSOP_POPN_LENGTH = 3, > > >JSOP_BINDNAME_LENGTH = 3, >JSOP_SETNAME_LENGTH = 3, > > >JSOP_THROW_LENGTH = 1, > > >JSOP_IN_LENGTH = 1, >JSOP_INSTANCEOF_LENGTH = 1, > > >JSOP_DEBUGGER_LENGTH = 1, > > >JSOP_GOSUB_LENGTH = 3, >JSOP_RETSUB_LENGTH = 1, > > >JSOP_EXCEPTION_LENGTH = 1, > > >JSOP_LINENO_LENGTH = 3, > > > > > > >JSOP_CONDSWITCH_LENGTH = 1, >JSOP_CASE_LENGTH = 3, >JSOP_DEFAULT_LENGTH = 3, > > > > >JSOP_EVAL_LENGTH = 3, > > > > >JSOP_ENUMELEM_LENGTH = 1, > > > > > > >JSOP_GETTER_LENGTH = 1, >JSOP_SETTER_LENGTH = 1, > > > > >JSOP_DEFFUN_LENGTH = 3, >JSOP_DEFCONST_LENGTH = 3, >JSOP_DEFVAR_LENGTH = 3, > > >JSOP_ANONFUNOBJ_LENGTH = 3, > > >JSOP_NAMEDFUNOBJ_LENGTH = 3, > > > > > >JSOP_SETLOCALPOP_LENGTH = 3, > > >JSOP_GROUP_LENGTH = 1, > > > > > >JSOP_SETCALL_LENGTH = 3, > > > > > >JSOP_TRY_LENGTH = 1, >JSOP_FINALLY_LENGTH = 1, > > > > >JSOP_SWAP_LENGTH = 1, > > > > > > >JSOP_ARGSUB_LENGTH = 3, >JSOP_ARGCNT_LENGTH = 1, > > > > > > >JSOP_DEFLOCALFUN_LENGTH = 5, > > >JSOP_GOTOX_LENGTH = 5, >JSOP_IFEQX_LENGTH = 5, >JSOP_IFNEX_LENGTH = 5, >JSOP_ORX_LENGTH = 5, >JSOP_ANDX_LENGTH = 5, >JSOP_GOSUBX_LENGTH = 5, >JSOP_CASEX_LENGTH = 5, >JSOP_DEFAULTX_LENGTH = 5, >JSOP_TABLESWITCHX_LENGTH = -1, >JSOP_LOOKUPSWITCHX_LENGTH = -1, > > >JSOP_BACKPATCH_LENGTH = 3, >JSOP_BACKPATCH_POP_LENGTH = 3, > > >JSOP_THROWING_LENGTH = 1, > > >JSOP_SETRVAL_LENGTH = 1, >JSOP_RETRVAL_LENGTH = 1, > > >JSOP_GETGVAR_LENGTH = 3, >JSOP_SETGVAR_LENGTH = 3, >JSOP_INCGVAR_LENGTH = 3, >JSOP_DECGVAR_LENGTH = 3, >JSOP_GVARINC_LENGTH = 3, >JSOP_GVARDEC_LENGTH = 3, > > >JSOP_REGEXP_LENGTH = 3, > > >JSOP_DEFXMLNS_LENGTH = 1, >JSOP_ANYNAME_LENGTH = 1, >JSOP_QNAMEPART_LENGTH = 3, >JSOP_QNAMECONST_LENGTH = 3, >JSOP_QNAME_LENGTH = 1, >JSOP_TOATTRNAME_LENGTH = 1, >JSOP_TOATTRVAL_LENGTH = 1, >JSOP_ADDATTRNAME_LENGTH = 1, >JSOP_ADDATTRVAL_LENGTH = 1, >JSOP_BINDXMLNAME_LENGTH = 1, >JSOP_SETXMLNAME_LENGTH = 1, >JSOP_XMLNAME_LENGTH = 1, >JSOP_DESCENDANTS_LENGTH = 1, >JSOP_FILTER_LENGTH = 3, >JSOP_ENDFILTER_LENGTH = 3, >JSOP_TOXML_LENGTH = 1, >JSOP_TOXMLLIST_LENGTH = 1, >JSOP_XMLTAGEXPR_LENGTH = 1, >JSOP_XMLELTEXPR_LENGTH = 1, >JSOP_XMLOBJECT_LENGTH = 3, >JSOP_XMLCDATA_LENGTH = 3, >JSOP_XMLCOMMENT_LENGTH = 3, >JSOP_XMLPI_LENGTH = 3, >JSOP_CALLPROP_LENGTH = 3, >JSOP_GETFUNNS_LENGTH = 1, >JSOP_FOREACH_LENGTH = 1, >JSOP_DELDESC_LENGTH = 1, > > > > >JSOP_UINT24_LENGTH = 4, > > > > > > > >JSOP_INDEXBASE_LENGTH = 2, >JSOP_RESETBASE_LENGTH = 1, >JSOP_RESETBASE0_LENGTH = 1, > > > > >JSOP_STARTXML_LENGTH = 1, >JSOP_STARTXMLEXPR_LENGTH = 1, > >JSOP_CALLELEM_LENGTH = 1, > > > > > >JSOP_STOP_LENGTH = 1, > > > > > >JSOP_GETXPROP_LENGTH = 3, > >JSOP_CALLXMLNAME_LENGTH = 1, > > > > >JSOP_TYPEOFEXPR_LENGTH = 1, > > > > >JSOP_ENTERBLOCK_LENGTH = 3, >JSOP_LEAVEBLOCK_LENGTH = 3, >JSOP_GETLOCAL_LENGTH = 3, >JSOP_SETLOCAL_LENGTH = 3, >JSOP_INCLOCAL_LENGTH = 3, >JSOP_DECLOCAL_LENGTH = 3, >JSOP_LOCALINC_LENGTH = 3, >JSOP_LOCALDEC_LENGTH = 3, >JSOP_FORLOCAL_LENGTH = 3, > > > > >JSOP_FORCONST_LENGTH = 3, >JSOP_ENDITER_LENGTH = 1, >JSOP_GENERATOR_LENGTH = 1, >JSOP_YIELD_LENGTH = 1, >JSOP_ARRAYPUSH_LENGTH = 3, > >JSOP_FOREACHKEYVAL_LENGTH = 1, > > > > >JSOP_ENUMCONSTELEM_LENGTH = 1, > > > > > >JSOP_LEAVEBLOCKEXPR_LENGTH = 3, > > > > >JSOP_GETTHISPROP_LENGTH = 3, >JSOP_GETARGPROP_LENGTH = 5, >JSOP_GETVARPROP_LENGTH = 5, >JSOP_GETLOCALPROP_LENGTH = 5, > > > > > >JSOP_INDEXBASE1_LENGTH = 1, >JSOP_INDEXBASE2_LENGTH = 1, >JSOP_INDEXBASE3_LENGTH = 1, > >JSOP_CALLGVAR_LENGTH = 3, >JSOP_CALLVAR_LENGTH = 3, >JSOP_CALLARG_LENGTH = 3, >JSOP_CALLLOCAL_LENGTH = 3, > > > > >JSOP_INT8_LENGTH = 2, >JSOP_INT32_LENGTH = 5, > > > > >JSOP_LENGTH_LENGTH = 1, ># 67 "../../../dist/include/js/jsopcode.h" 2 > > JSOP_LIMIT_LENGTH >} JSOpLength; ># 238 "../../../dist/include/js/jsopcode.h" >extern void js_static_assert(int arg[(sizeof(uint32) * 8L >= 23 + 1) ? 1 : -1]); ># 257 "../../../dist/include/js/jsopcode.h" >struct JSCodeSpec { > int8 length; > int8 nuses; > int8 ndefs; > uint8 prec; > uint32 format; >}; > >extern const JSCodeSpec js_CodeSpec[]; >extern uintN js_NumCodeSpecs; >extern const char *js_CodeName[]; >extern const char js_EscapeMap[]; > > > > > > >extern JSString * >js_QuoteString(JSContext *cx, JSString *str, jschar quote); ># 292 "../../../dist/include/js/jsopcode.h" >extern JSPrinter * >js_NewPrinter(JSContext *cx, JSFunction *fun, uintN indent, JSBool pretty); > > >extern void >js_DestroyPrinter(JSPrinter *jp); > >extern JSString * >js_GetPrinterOutput(JSPrinter *jp); > >extern int >js_printf(JSPrinter *jp, const char *format, ...); > >extern JSBool >js_puts(JSPrinter *jp, const char *s); ># 315 "../../../dist/include/js/jsopcode.h" >uintN >js_GetIndexFromBytecode(JSContext *cx, JSScript *script, jsbytecode *pc, > ptrdiff_t pcoff); ># 364 "../../../dist/include/js/jsopcode.h" >extern JSBool >js_DecompileScript(JSPrinter *jp, JSScript *script); > >extern JSBool >js_DecompileFunctionBody(JSPrinter *jp); > >extern JSBool >js_DecompileFunction(JSPrinter *jp); ># 385 "../../../dist/include/js/jsopcode.h" >extern char * >js_DecompileValueGenerator(JSContext *cx, intN spindex, jsval v, > JSString *fallback); > > > > >} ># 48 "../../../dist/include/js/jsdbgapi.h" 2 > > >extern "C" { > > > > > > >extern jsbytecode * >js_UntrapScriptCode(JSContext *cx, JSScript *script); > >extern __attribute__((visibility ("default"))) JSBool >JS_SetTrap(JSContext *cx, JSScript *script, jsbytecode *pc, > JSTrapHandler handler, void *closure); > >extern __attribute__((visibility ("default"))) JSOp >JS_GetTrapOpcode(JSContext *cx, JSScript *script, jsbytecode *pc); > >extern __attribute__((visibility ("default"))) void >JS_ClearTrap(JSContext *cx, JSScript *script, jsbytecode *pc, > JSTrapHandler *handlerp, void **closurep); > >extern __attribute__((visibility ("default"))) void >JS_ClearScriptTraps(JSContext *cx, JSScript *script); > >extern __attribute__((visibility ("default"))) void >JS_ClearAllTraps(JSContext *cx); > >extern __attribute__((visibility ("default"))) JSTrapStatus >JS_HandleTrap(JSContext *cx, JSScript *script, jsbytecode *pc, jsval *rval); > >extern __attribute__((visibility ("default"))) JSBool >JS_SetInterrupt(JSRuntime *rt, JSTrapHandler handler, void *closure); > >extern __attribute__((visibility ("default"))) JSBool >JS_ClearInterrupt(JSRuntime *rt, JSTrapHandler *handlerp, void **closurep); > > > >extern __attribute__((visibility ("default"))) JSBool >JS_SetWatchPoint(JSContext *cx, JSObject *obj, jsval id, > JSWatchPointHandler handler, void *closure); > >extern __attribute__((visibility ("default"))) JSBool >JS_ClearWatchPoint(JSContext *cx, JSObject *obj, jsval id, > JSWatchPointHandler *handlerp, void **closurep); > >extern __attribute__((visibility ("default"))) JSBool >JS_ClearWatchPointsForObject(JSContext *cx, JSObject *obj); > >extern __attribute__((visibility ("default"))) JSBool >JS_ClearAllWatchPoints(JSContext *cx); > > > > > > >extern void >js_TraceWatchPoints(JSTracer *trc, JSObject *obj); > >extern void >js_SweepWatchPoints(JSContext *cx); > >extern JSScopeProperty * >js_FindWatchPoint(JSRuntime *rt, JSScope *scope, jsid id); > > > > >extern JSPropertyOp >js_GetWatchedSetter(JSRuntime *rt, JSScope *scope, > const JSScopeProperty *sprop); > >extern JSBool >js_watch_set(JSContext *cx, JSObject *obj, jsval id, jsval *vp); > >extern JSBool >js_watch_set_wrapper(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, > jsval *rval); > >extern JSPropertyOp >js_WrapWatchedSetter(JSContext *cx, jsid id, uintN attrs, JSPropertyOp setter); > > > > > >extern __attribute__((visibility ("default"))) uintN >JS_PCToLineNumber(JSContext *cx, JSScript *script, jsbytecode *pc); > >extern __attribute__((visibility ("default"))) jsbytecode * >JS_LineNumberToPC(JSContext *cx, JSScript *script, uintN lineno); > >extern __attribute__((visibility ("default"))) JSScript * >JS_GetFunctionScript(JSContext *cx, JSFunction *fun); > >extern __attribute__((visibility ("default"))) JSNative >JS_GetFunctionNative(JSContext *cx, JSFunction *fun); > >extern __attribute__((visibility ("default"))) JSFastNative >JS_GetFunctionFastNative(JSContext *cx, JSFunction *fun); > >extern __attribute__((visibility ("default"))) JSPrincipals * >JS_GetScriptPrincipals(JSContext *cx, JSScript *script); ># 162 "../../../dist/include/js/jsdbgapi.h" >extern __attribute__((visibility ("default"))) JSStackFrame * >JS_FrameIterator(JSContext *cx, JSStackFrame **iteratorp); > >extern __attribute__((visibility ("default"))) JSScript * >JS_GetFrameScript(JSContext *cx, JSStackFrame *fp); > >extern __attribute__((visibility ("default"))) jsbytecode * >JS_GetFramePC(JSContext *cx, JSStackFrame *fp); > > > > >extern __attribute__((visibility ("default"))) JSStackFrame * >JS_GetScriptedCaller(JSContext *cx, JSStackFrame *fp); > > > > > >extern __attribute__((visibility ("default"))) JSPrincipals * >JS_StackFramePrincipals(JSContext *cx, JSStackFrame *fp); ># 195 "../../../dist/include/js/jsdbgapi.h" >extern __attribute__((visibility ("default"))) JSPrincipals * >JS_EvalFramePrincipals(JSContext *cx, JSStackFrame *fp, JSStackFrame *caller); > >extern __attribute__((visibility ("default"))) void * >JS_GetFrameAnnotation(JSContext *cx, JSStackFrame *fp); > >extern __attribute__((visibility ("default"))) void >JS_SetFrameAnnotation(JSContext *cx, JSStackFrame *fp, void *annotation); > >extern __attribute__((visibility ("default"))) void * >JS_GetFramePrincipalArray(JSContext *cx, JSStackFrame *fp); > >extern __attribute__((visibility ("default"))) JSBool >JS_IsNativeFrame(JSContext *cx, JSStackFrame *fp); > > >extern __attribute__((visibility ("default"))) JSObject * >JS_GetFrameObject(JSContext *cx, JSStackFrame *fp); > >extern __attribute__((visibility ("default"))) JSObject * >JS_GetFrameScopeChain(JSContext *cx, JSStackFrame *fp); > >extern __attribute__((visibility ("default"))) JSObject * >JS_GetFrameCallObject(JSContext *cx, JSStackFrame *fp); > >extern __attribute__((visibility ("default"))) JSObject * >JS_GetFrameThis(JSContext *cx, JSStackFrame *fp); > >extern __attribute__((visibility ("default"))) JSFunction * >JS_GetFrameFunction(JSContext *cx, JSStackFrame *fp); > >extern __attribute__((visibility ("default"))) JSObject * >JS_GetFrameFunctionObject(JSContext *cx, JSStackFrame *fp); > > > >extern __attribute__((visibility ("default"))) JSBool >JS_IsConstructorFrame(JSContext *cx, JSStackFrame *fp); > >extern __attribute__((visibility ("default"))) JSBool >JS_IsDebuggerFrame(JSContext *cx, JSStackFrame *fp); > >extern __attribute__((visibility ("default"))) jsval >JS_GetFrameReturnValue(JSContext *cx, JSStackFrame *fp); > >extern __attribute__((visibility ("default"))) void >JS_SetFrameReturnValue(JSContext *cx, JSStackFrame *fp, jsval rval); > > > > >extern __attribute__((visibility ("default"))) JSObject * >JS_GetFrameCalleeObject(JSContext *cx, JSStackFrame *fp); > > > >extern __attribute__((visibility ("default"))) const char * >JS_GetScriptFilename(JSContext *cx, JSScript *script); > >extern __attribute__((visibility ("default"))) uintN >JS_GetScriptBaseLineNumber(JSContext *cx, JSScript *script); > >extern __attribute__((visibility ("default"))) uintN >JS_GetScriptLineExtent(JSContext *cx, JSScript *script); > >extern __attribute__((visibility ("default"))) JSVersion >JS_GetScriptVersion(JSContext *cx, JSScript *script); ># 273 "../../../dist/include/js/jsdbgapi.h" >extern __attribute__((visibility ("default"))) void >JS_SetNewScriptHookProc(JSRuntime *rt, JSNewScriptHook hook, void *callerdata); > >extern __attribute__((visibility ("default"))) void >JS_SetDestroyScriptHookProc(JSRuntime *rt, JSDestroyScriptHook hook, > void *callerdata); > > > >extern __attribute__((visibility ("default"))) JSBool >JS_EvaluateUCInStackFrame(JSContext *cx, JSStackFrame *fp, > const jschar *chars, uintN length, > const char *filename, uintN lineno, > jsval *rval); > >extern __attribute__((visibility ("default"))) JSBool >JS_EvaluateInStackFrame(JSContext *cx, JSStackFrame *fp, > const char *bytes, uintN length, > const char *filename, uintN lineno, > jsval *rval); > > > >typedef struct JSPropertyDesc { > jsval id; > jsval value; > uint8 flags; > uint8 spare; > uint16 slot; > jsval alias; >} JSPropertyDesc; ># 316 "../../../dist/include/js/jsdbgapi.h" >typedef struct JSPropertyDescArray { > uint32 length; > JSPropertyDesc *array; >} JSPropertyDescArray; > >extern __attribute__((visibility ("default"))) JSScopeProperty * >JS_PropertyIterator(JSObject *obj, JSScopeProperty **iteratorp); > >extern __attribute__((visibility ("default"))) JSBool >JS_GetPropertyDesc(JSContext *cx, JSObject *obj, JSScopeProperty *sprop, > JSPropertyDesc *pd); > >extern __attribute__((visibility ("default"))) JSBool >JS_GetPropertyDescArray(JSContext *cx, JSObject *obj, JSPropertyDescArray *pda); > >extern __attribute__((visibility ("default"))) void >JS_PutPropertyDescArray(JSContext *cx, JSPropertyDescArray *pda); > > > >extern __attribute__((visibility ("default"))) JSBool >JS_SetDebuggerHandler(JSRuntime *rt, JSTrapHandler handler, void *closure); > >extern __attribute__((visibility ("default"))) JSBool >JS_SetSourceHandler(JSRuntime *rt, JSSourceHandler handler, void *closure); > >extern __attribute__((visibility ("default"))) JSBool >JS_SetExecuteHook(JSRuntime *rt, JSInterpreterHook hook, void *closure); > >extern __attribute__((visibility ("default"))) JSBool >JS_SetCallHook(JSRuntime *rt, JSInterpreterHook hook, void *closure); > >extern __attribute__((visibility ("default"))) JSBool >JS_SetObjectHook(JSRuntime *rt, JSObjectHook hook, void *closure); > >extern __attribute__((visibility ("default"))) JSBool >JS_SetThrowHook(JSRuntime *rt, JSTrapHandler hook, void *closure); > >extern __attribute__((visibility ("default"))) JSBool >JS_SetDebugErrorHook(JSRuntime *rt, JSDebugErrorHook hook, void *closure); > > > >extern __attribute__((visibility ("default"))) size_t >JS_GetObjectTotalSize(JSContext *cx, JSObject *obj); > >extern __attribute__((visibility ("default"))) size_t >JS_GetFunctionTotalSize(JSContext *cx, JSFunction *fun); > >extern __attribute__((visibility ("default"))) size_t >JS_GetScriptTotalSize(JSContext *cx, JSScript *script); > > > > > > >extern __attribute__((visibility ("default"))) uint32 >JS_GetTopScriptFilenameFlags(JSContext *cx, JSStackFrame *fp); > > > > > >extern __attribute__((visibility ("default"))) uint32 >JS_GetScriptFilenameFlags(JSScript *script); ># 395 "../../../dist/include/js/jsdbgapi.h" >extern __attribute__((visibility ("default"))) JSBool >JS_FlagScriptFilenamePrefix(JSRuntime *rt, const char *prefix, uint32 flags); ># 410 "../../../dist/include/js/jsdbgapi.h" >extern __attribute__((visibility ("default"))) JSBool >JS_IsSystemObject(JSContext *cx, JSObject *obj); > > > > > > >extern __attribute__((visibility ("default"))) JSObject * >JS_NewSystemObject(JSContext *cx, JSClass *clasp, JSObject *proto, > JSObject *parent, JSBool system); > > > >extern __attribute__((visibility ("default"))) JSDebugHooks * >JS_GetGlobalDebugHooks(JSRuntime *rt); > >extern __attribute__((visibility ("default"))) JSDebugHooks * >JS_SetContextDebugHooks(JSContext *cx, JSDebugHooks *hooks); ># 462 "../../../dist/include/js/jsdbgapi.h" >} ># 123 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/xpconnect/nsIJSRuntimeService.h" 1 ># 17 "../../../dist/include/xpconnect/nsIJSRuntimeService.h" >class nsIXPCScriptable; ># 27 "../../../dist/include/xpconnect/nsIJSRuntimeService.h" >class nsIJSRuntimeService : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRuntime(JSRuntime * *aRuntime) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetBackstagePass(nsIXPCScriptable * *aBackstagePass) = 0; > >}; > > template <class Dummy> const nsIID nsIJSRuntimeService::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xe7d09265, 0x4c23, 0x4028, { 0xb1, 0xb0, 0xc9, 0x9e, 0x02, 0xaa, 0x78, 0xf8 }}; ># 124 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIDOMDocumentXBL.h" 1 ># 25 "../../../dist/include/dom/nsIDOMDocumentXBL.h" >class nsIDOMDocumentXBL : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAnonymousNodes(nsIDOMElement *elt, nsIDOMNodeList **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAnonymousElementByAttribute(nsIDOMElement *elt, const nsAString_internal & attrName, const nsAString_internal & attrValue, nsIDOMElement **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddBinding(nsIDOMElement *elt, const nsAString_internal & bindingURL) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveBinding(nsIDOMElement *elt, const nsAString_internal & bindingURL) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetBindingParent(nsIDOMNode *node, nsIDOMElement **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LoadBindingDocument(const nsAString_internal & documentURL) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMDocumentXBL::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x1a38762b, 0x4da5, 0x4f61, { 0x80, 0xfb, 0x93, 0x17, 0xe1, 0x98, 0xcb, 0x92 }}; ># 125 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsBindingManager.h" 1 ># 44 "../../../dist/include/content/nsBindingManager.h" ># 1 "../../../dist/include/xpcom/pldhash.h" 1 ># 45 "../../../dist/include/content/nsBindingManager.h" 2 ># 1 "../../../dist/include/xpcom/nsInterfaceHashtable.h" 1 ># 53 "../../../dist/include/xpcom/nsInterfaceHashtable.h" >template<class KeyClass,class Interface> >class nsInterfaceHashtable : > public nsBaseHashtable< KeyClass, nsCOMPtr<Interface> , Interface* > >{ >public: > typedef typename KeyClass::KeyType KeyType; > typedef Interface* UserDataType; > > > > > > > PRBool Get(KeyType aKey, UserDataType* pData) const; > > > > > > > > Interface* GetWeak(KeyType aKey, PRBool* aFound = 0) const; >}; > > > > > > > >template<class KeyClass,class Interface> >class nsInterfaceHashtableMT : > public nsBaseHashtableMT< KeyClass, nsCOMPtr<Interface> , Interface* > >{ >public: > typedef typename KeyClass::KeyType KeyType; > typedef Interface* UserDataType; > > > > > > > PRBool Get(KeyType aKey, UserDataType* pData) const; > > > > >}; > > > > > > >template<class KeyClass,class Interface> >PRBool >nsInterfaceHashtable<KeyClass,Interface>::Get > (KeyType aKey, UserDataType* pInterface) const >{ > typename nsBaseHashtable<KeyClass, nsCOMPtr<Interface>, Interface*>::EntryType* ent = > GetEntry(aKey); > > if (ent) > { > if (pInterface) > { > *pInterface = ent->mData; > > ns_if_addref(*pInterface); > } > > return 1; > } > > > > if (pInterface) > *pInterface = 0; > > return 0; >} > >template<class KeyClass,class Interface> >Interface* >nsInterfaceHashtable<KeyClass,Interface>::GetWeak > (KeyType aKey, PRBool* aFound) const >{ > typename nsBaseHashtable<KeyClass, nsCOMPtr<Interface>, Interface*>::EntryType* ent = > GetEntry(aKey); > > if (ent) > { > if (aFound) > *aFound = 1; > > return ent->mData; > } > > > if (aFound) > *aFound = 0; > return 0; >} > > > > > >template<class KeyClass,class Interface> >PRBool >nsInterfaceHashtableMT<KeyClass,Interface>::Get > (KeyType aKey, UserDataType* pInterface) const >{ > PR_Lock(this->mLock); > > typename nsBaseHashtableMT<KeyClass, nsCOMPtr<Interface>, Interface*>::EntryType* ent = > GetEntry(aKey); > > if (ent) > { > if (pInterface) > { > *pInterface = ent->mData; > > ns_if_addref(*pInterface); > } > > PR_Unlock(this->mLock); > > return 1; > } > > > > if (pInterface) > *pInterface = 0; > > PR_Unlock(this->mLock); > > return 0; >} ># 46 "../../../dist/include/content/nsBindingManager.h" 2 ># 1 "../../../dist/include/xpcom/nsRefPtrHashtable.h" 1 ># 44 "../../../dist/include/xpcom/nsRefPtrHashtable.h" ># 1 "../../../dist/include/xpcom/nsAutoPtr.h" 1 ># 45 "../../../dist/include/xpcom/nsRefPtrHashtable.h" 2 ># 54 "../../../dist/include/xpcom/nsRefPtrHashtable.h" >template<class KeyClass, class RefPtr> >class nsRefPtrHashtable : > public nsBaseHashtable< KeyClass, nsRefPtr<RefPtr> , RefPtr* > >{ >public: > typedef typename KeyClass::KeyType KeyType; > typedef RefPtr* UserDataType; > > > > > > > PRBool Get(KeyType aKey, UserDataType* pData) const; > > > > > > > > RefPtr* GetWeak(KeyType aKey, PRBool* aFound = 0) const; >}; > > > > > > > >template<class KeyClass, class RefPtr> >class nsRefPtrHashtableMT : > public nsBaseHashtableMT< KeyClass, nsRefPtr<RefPtr> , RefPtr* > >{ >public: > typedef typename KeyClass::KeyType KeyType; > typedef RefPtr* UserDataType; > > > > > > > PRBool Get(KeyType aKey, UserDataType* pData) const; > > > > >}; > > > > > > >template<class KeyClass, class RefPtr> >PRBool >nsRefPtrHashtable<KeyClass,RefPtr>::Get > (KeyType aKey, UserDataType* pRefPtr) const >{ > typename nsBaseHashtable<KeyClass, nsRefPtr<RefPtr>, RefPtr*>::EntryType* ent = > GetEntry(aKey); > > if (ent) > { > if (pRefPtr) > { > *pRefPtr = ent->mData; > > ns_if_addref(*pRefPtr); > } > > return 1; > } > > > > if (pRefPtr) > *pRefPtr = 0; > > return 0; >} > >template<class KeyClass, class RefPtr> >RefPtr* >nsRefPtrHashtable<KeyClass,RefPtr>::GetWeak > (KeyType aKey, PRBool* aFound) const >{ > typename nsBaseHashtable<KeyClass, nsRefPtr<RefPtr>, RefPtr*>::EntryType* ent = > GetEntry(aKey); > > if (ent) > { > if (aFound) > *aFound = 1; > > return ent->mData; > } > > > if (aFound) > *aFound = 0; > return 0; >} > > > > > >template<class KeyClass, class RefPtr> >PRBool >nsRefPtrHashtableMT<KeyClass,RefPtr>::Get > (KeyType aKey, UserDataType* pRefPtr) const >{ > PR_Lock(this->mLock); > > typename nsBaseHashtableMT<KeyClass, nsRefPtr<RefPtr>, RefPtr*>::EntryType* ent = > GetEntry(aKey); > > if (ent) > { > if (pRefPtr) > { > *pRefPtr = ent->mData; > > ns_if_addref(*pRefPtr); > } > > PR_Unlock(this->mLock); > > return 1; > } > > > > if (pRefPtr) > *pRefPtr = 0; > > PR_Unlock(this->mLock); > > return 0; >} ># 47 "../../../dist/include/content/nsBindingManager.h" 2 ># 1 "../../../dist/include/necko/nsURIHashKey.h" 1 ># 41 "../../../dist/include/necko/nsURIHashKey.h" ># 1 "../../../dist/include/xpcom/pldhash.h" 1 ># 42 "../../../dist/include/necko/nsURIHashKey.h" 2 > ># 1 "../../../dist/include/xpcom/nsCRT.h" 1 ># 44 "../../../dist/include/necko/nsURIHashKey.h" 2 > > > > > >class nsURIHashKey : public PLDHashEntryHdr >{ >public: > typedef nsIURI* KeyType; > typedef const nsIURI* KeyTypePointer; > > nsURIHashKey(const nsIURI* aKey) : > mKey(const_cast<nsIURI*>(aKey)) { ; } > nsURIHashKey(const nsURIHashKey& toCopy) : > mKey(toCopy.mKey) { ; } > ~nsURIHashKey() { ; } > > nsIURI* GetKey() const { return mKey; } > > PRBool KeyEquals(const nsIURI* aKey) const { > PRBool eq; > if (((__builtin_expect(!!(!((mKey->Equals(const_cast<nsIURI*>(aKey), &eq)) & 0x80000000)), 1)))) { > return eq; > } > return 0; > } > > static const nsIURI* KeyToPointer(nsIURI* aKey) { return aKey; } > static PLDHashNumber HashKey(const nsIURI* aKey) { > nsCAutoString spec; > const_cast<nsIURI*>(aKey)->GetSpec(spec); > return nsCRT::HashCode(spec.get()); > } > > enum { ALLOW_MEMMOVE = 1 }; > >protected: > nsCOMPtr<nsIURI> mKey; >}; ># 48 "../../../dist/include/content/nsBindingManager.h" 2 > ># 1 "../../../dist/include/content/nsXBLBinding.h" 1 ># 43 "../../../dist/include/content/nsXBLBinding.h" ># 1 "../../../dist/include/xpcom/nsAutoPtr.h" 1 ># 44 "../../../dist/include/content/nsXBLBinding.h" 2 > ># 1 "../../../dist/include/layout/nsIStyleRuleProcessor.h" 1 ># 50 "../../../dist/include/layout/nsIStyleRuleProcessor.h" ># 1 "../../../dist/include/layout/nsPresContext.h" 1 ># 44 "../../../dist/include/layout/nsPresContext.h" ># 1 "../../../dist/include/gfx/nsColor.h" 1 ># 45 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "../../../dist/include/gfx/nsCoord.h" 1 ># 46 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "../../../dist/include/string/nsAString.h" 1 ># 47 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "../../../dist/include/xpcom/nsCOMPtr.h" 1 ># 48 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "../../../dist/include/layout/nsIPresShell.h" 1 ># 59 "../../../dist/include/layout/nsIPresShell.h" ># 1 "../../../dist/include/gfx/nsRect.h" 1 ># 60 "../../../dist/include/layout/nsIPresShell.h" 2 > ># 1 "../../../dist/include/widget/nsEvent.h" 1 ># 62 "../../../dist/include/layout/nsIPresShell.h" 2 ># 1 "../../../dist/include/layout/nsCompatibility.h" 1 ># 63 "../../../dist/include/layout/nsIPresShell.h" 2 ># 1 "../../../dist/include/layout/nsFrameManagerBase.h" 1 ># 56 "../../../dist/include/layout/nsFrameManagerBase.h" ># 1 "../../../dist/include/xpcom/pldhash.h" 1 ># 57 "../../../dist/include/layout/nsFrameManagerBase.h" 2 > >class nsIPresShell; >class nsStyleSet; >class nsIContent; >class nsPlaceholderFrame; >class nsIFrame; >class nsStyleContext; >class nsIAtom; >class nsStyleChangeList; >class nsILayoutHistoryState; > >class nsFrameManagerBase >{ >protected: > class UndisplayedMap; > > > nsIPresShell* mPresShell; > > nsStyleSet* mStyleSet; > nsIFrame* mRootFrame; > PLDHashTable mPrimaryFrameMap; > PLDHashTable mPlaceholderMap; > UndisplayedMap* mUndisplayedMap; > PRBool mIsDestroyingFrames; >}; ># 64 "../../../dist/include/layout/nsIPresShell.h" 2 ># 1 "../../../dist/include/content/mozFlushType.h" 1 ># 65 "../../../dist/include/layout/nsIPresShell.h" 2 ># 1 "../../../dist/include/xpcom/nsWeakReference.h" 1 ># 48 "../../../dist/include/xpcom/nsWeakReference.h" >class nsWeakReference; > > > > > > >class nsSupportsWeakReference : public nsISupportsWeakReference > { > public: > nsSupportsWeakReference() > : mProxy(0) > { > > } > > virtual nsresult __attribute__ ((regparm (0), cdecl)) GetWeakReference(nsIWeakReference **_retval); > > protected: > inline ~nsSupportsWeakReference(); > > private: > friend class nsWeakReference; > > void > NoticeProxyDestruction() > > { > mProxy = 0; > } > > nsWeakReference* mProxy; > > protected: > > void ClearWeakReferences(); > PRBool HasWeakReferences() const {return mProxy != 0;} > }; > > > > >inline >nsSupportsWeakReference::~nsSupportsWeakReference() > { > ClearWeakReferences(); > } ># 66 "../../../dist/include/layout/nsIPresShell.h" 2 > > >class nsIAtom; >class nsIContent; >class nsIContentIterator; >class nsIDocument; >class nsIDocumentObserver; >class nsIFrame; >class nsPresContext; >class nsStyleSet; >class nsIViewManager; >class nsIDeviceContext; >class nsIRenderingContext; >class nsIPageSequenceFrame; >class nsString; >class nsAString_internal; >class nsStringArray; >class nsICaret; >class nsStyleContext; >class nsFrameSelection; >class nsFrameManager; >class nsILayoutHistoryState; >class nsIReflowCallback; >class nsISupportsArray; >class nsIDOMNode; >class nsIRegion; >class nsIStyleFrameConstruction; >class nsIStyleSheet; >class nsCSSFrameConstructor; >class nsISelection; >template<class E> class nsCOMArray; >class nsWeakFrame; >class nsIScrollableFrame; >class gfxASurface; >class gfxContext; > >typedef short SelectionType; >typedef PRUint32 nsFrameState; ># 142 "../../../dist/include/layout/nsIPresShell.h" >class nsIPresShell_base : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} >}; > >template <class Dummy> const nsIID nsIPresShell_base::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x228a7d67, 0x811b, 0x4d75, { 0x85, 0xc0, 0x1e, 0xe2, 0x2c, 0x0d, 0x2a, 0xf0 } }; > >class nsIPresShell : public nsIPresShell_base >{ >public: > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsIDocument* aDocument, > nsPresContext* aPresContext, > nsIViewManager* aViewManager, > nsStyleSet* aStyleSet, > nsCompatibility aCompatMode) = 0; ># 166 "../../../dist/include/layout/nsIPresShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Destroy() = 0; > > > > > virtual void* AllocateFrame(size_t aSize) = 0; > virtual void FreeFrame(size_t aSize, void* aFreeChunk) = 0; ># 189 "../../../dist/include/layout/nsIPresShell.h" > virtual void PushStackMemory() = 0; > virtual void PopStackMemory() = 0; > virtual void* AllocateStackMemory(size_t aSize) = 0; > > nsIDocument* GetDocument() { return mDocument; } > > nsPresContext* GetPresContext() { return mPresContext; } > > nsIViewManager* GetViewManager() { return mViewManager; } > > > nsStyleSet* StyleSet() { return mStyleSet; } > > nsCSSFrameConstructor* FrameConstructor() > { > return mFrameConstructor; > } > > nsFrameManager* FrameManager() const { > return reinterpret_cast<nsFrameManager*> > (&const_cast<nsIPresShell*>(this)->mFrameManager); > } ># 219 "../../../dist/include/layout/nsIPresShell.h" > __attribute__ ((visibility ("hidden"))) void SetAuthorStyleDisabled(PRBool aDisabled); > __attribute__ ((visibility ("hidden"))) PRBool GetAuthorStyleDisabled(); ># 232 "../../../dist/include/layout/nsIPresShell.h" > virtual __attribute__ ((visibility ("hidden"))) void ReconstructStyleDataExternal(); > __attribute__ ((visibility ("hidden"))) void ReconstructStyleDataInternal(); > > void ReconstructStyleData() { ReconstructStyleDataInternal(); } ># 248 "../../../dist/include/layout/nsIPresShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPreferenceStyleRules(PRBool aForceReflow) = 0; > > > > > > > already_AddRefed<nsFrameSelection> FrameSelection(); > > > > > > const nsFrameSelection* ConstFrameSelection() { return mSelection; } > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) BeginObservingDocument() = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EndObservingDocument() = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDidInitialReflow(PRBool *aDidInitialReflow) = 0; ># 288 "../../../dist/include/layout/nsIPresShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InitialReflow(nscoord aWidth, nscoord aHeight) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ResizeReflow(nscoord aWidth, nscoord aHeight) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) StyleChangeReflow() = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsIFrame* GetRootFrame() const; > > > > > nsIFrame* GetRootScrollFrame() const; > > > > > nsIScrollableFrame* GetRootScrollFrameAsScrollable() const; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPageSequenceFrame(nsIPageSequenceFrame** aResult) const = 0; ># 337 "../../../dist/include/layout/nsIPresShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsIFrame* GetPrimaryFrameFor(nsIContent* aContent) const = 0; ># 346 "../../../dist/include/layout/nsIPresShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsIFrame* GetRealPrimaryFrameFor(nsIContent* aContent) const = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLayoutObjectFor(nsIContent* aContent, > nsISupports** aResult) const = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPlaceholderFrameFor(nsIFrame* aFrame, > nsIFrame** aPlaceholderFrame) const = 0; ># 371 "../../../dist/include/layout/nsIPresShell.h" > enum IntrinsicDirty { > > eResize, > eTreeChange, > eStyleChange > }; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FrameNeedsReflow(nsIFrame *aFrame, > IntrinsicDirty aIntrinsicDirty, > nsFrameState aBitToAdd) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CancelAllPendingReflows() = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RecreateFramesFor(nsIContent* aContent) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsSafeToFlush(PRBool& aIsSafeToFlush) = 0; ># 404 "../../../dist/include/layout/nsIPresShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FlushPendingNotifications(mozFlushType aType) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PostReflowCallback(nsIReflowCallback* aCallback) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CancelReflowCallback(nsIReflowCallback* aCallback) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ClearFrameRefs(nsIFrame* aFrame) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateRenderingContext(nsIFrame *aFrame, > nsIRenderingContext** aContext) = 0; ># 430 "../../../dist/include/layout/nsIPresShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GoToAnchor(const nsAString_internal& aAnchorName, PRBool aScroll) = 0; ># 440 "../../../dist/include/layout/nsIPresShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ScrollToAnchor() = 0; ># 471 "../../../dist/include/layout/nsIPresShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ScrollContentIntoView(nsIContent* aContent, > PRIntn aVPercent, > PRIntn aHPercent) const = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetIgnoreFrameDestruction(PRBool aIgnore) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NotifyDestroyingFrame(nsIFrame* aFrame) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DoCopy() = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSelectionForCopy(nsISelection** outSelection) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLinkLocation(nsIDOMNode* aNode, nsAString_internal& aLocation) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DoGetContents(const nsACString_internal& aMimeType, PRUint32 aFlags, PRBool aSelectionOnly, nsAString_internal& outValue) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCaret(nsICaret **aOutCaret) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) MaybeInvalidateCaretPosition() = 0; > > > > > virtual void SetCaret(nsICaret *aNewCaret) = 0; > > > > > > virtual void RestoreCaret() = 0; ># 541 "../../../dist/include/layout/nsIPresShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetSelectionFlags(PRInt16 aInEnable) = 0; ># 550 "../../../dist/include/layout/nsIPresShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSelectionFlags(PRInt16 *aOutEnabled) = 0; > > virtual nsISelection* GetCurrentSelection(SelectionType aType) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HandleEventWithTarget(nsEvent* aEvent, > nsIFrame* aFrame, > nsIContent* aContent, > nsEventStatus* aStatus) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HandleDOMEventWithTarget(nsIContent* aTargetContent, > nsEvent* aEvent, > nsEventStatus* aStatus) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetEventTargetFrame(nsIFrame** aFrame) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetEventTargetContent(nsEvent* aEvent, nsIContent** aContent) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CaptureHistoryState(nsILayoutHistoryState** aLayoutHistoryState, PRBool aLeavingPage = 0) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsReflowLocked(PRBool* aIsLocked) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsPaintingSuppressed(PRBool* aResult)=0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) UnsuppressPainting() = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DisableThemeSupport() = 0; > > > > > virtual PRBool IsThemeSupportEnabled() = 0; > > > > > virtual nsresult GetAgentStyleSheets(nsCOMArray<nsIStyleSheet>& aSheets) = 0; > > > > > virtual nsresult SetAgentStyleSheets(const nsCOMArray<nsIStyleSheet>& aSheets) = 0; > > > > > virtual nsresult AddOverrideStyleSheet(nsIStyleSheet *aSheet) = 0; > > > > > virtual nsresult RemoveOverrideStyleSheet(nsIStyleSheet *aSheet) = 0; > > > > > virtual nsresult ReconstructFrames() = 0; > > > > > > > > virtual nsIFrame* GetFrameForPoint(nsIFrame* aFrame, nsPoint aPt) = 0; > > > > > > > > static PRBool GetVerifyReflowEnable(); > > > > > static void SetVerifyReflowEnable(PRBool aEnabled); > > > > > static PRInt32 GetVerifyReflowFlags(); > > virtual nsIFrame* GetAbsoluteContainingBlock(nsIFrame* aFrame); ># 688 "../../../dist/include/layout/nsIPresShell.h" > static PRBool gIsAccessibilityActive; > static PRBool IsAccessibilityActive() { return gIsAccessibilityActive; } > > > > > > > virtual void Freeze() = 0; > > > > > > virtual void Thaw() = 0; > > > > > > > > void SetForwardingContainer(nsWeakPtr aContainer) > { > mForwardingContainer = aContainer; > } ># 735 "../../../dist/include/layout/nsIPresShell.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RenderDocument(const nsRect& aRect, PRBool aUntrusted, > PRBool aIgnoreViewportScrolling, > nscolor aBackgroundColor, > gfxContext* aRenderedContext) = 0; > > > > > > > > virtual already_AddRefed<gfxASurface> RenderNode(nsIDOMNode* aNode, > nsIRegion* aRegion, > nsPoint& aPoint, > nsRect* aScreenRect) = 0; ># 766 "../../../dist/include/layout/nsIPresShell.h" > virtual already_AddRefed<gfxASurface> RenderSelection(nsISelection* aSelection, > nsPoint& aPoint, > nsRect* aScreenRect) = 0; > > void AddWeakFrame(nsWeakFrame* aWeakFrame); > void RemoveWeakFrame(nsWeakFrame* aWeakFrame); > > > > > >protected: > > > > > > > nsIDocument* mDocument; > nsPresContext* mPresContext; > nsStyleSet* mStyleSet; > nsCSSFrameConstructor* mFrameConstructor; > nsIViewManager* mViewManager; > nsFrameSelection* mSelection; > nsFrameManagerBase mFrameManager; > nsWeakPtr mForwardingContainer; > > > > > > PRPackedBool mStylesHaveChanged; > PRPackedBool mDidInitialReflow; > PRPackedBool mIsDestroying; > > > > > > > void InvalidateAccessibleSubtree(nsIContent *aContent); > > > > > PRPackedBool mIsAccessibilityActive; > > > nsWeakFrame* mWeakFrames; >}; > > > > > >nsresult >NS_NewPresShell(nsIPresShell** aInstancePtrResult); ># 49 "../../../dist/include/layout/nsPresContext.h" 2 > ># 1 "../../../dist/include/gfx/nsIDeviceContext.h" 1 ># 45 "../../../dist/include/gfx/nsIDeviceContext.h" ># 1 "../../../dist/include/widget/nsIWidget.h" 1 ># 41 "../../../dist/include/widget/nsIWidget.h" ># 1 "../../../dist/include/xpcom/nsISupports.h" 1 ># 42 "../../../dist/include/widget/nsIWidget.h" 2 ># 1 "../../../dist/include/gfx/nsColor.h" 1 ># 43 "../../../dist/include/widget/nsIWidget.h" 2 ># 1 "../../../dist/include/gfx/nsCoord.h" 1 ># 44 "../../../dist/include/widget/nsIWidget.h" 2 > ># 1 "../../../dist/include/nspr/prthread.h" 1 ># 46 "../../../dist/include/widget/nsIWidget.h" 2 ># 1 "../../../dist/include/widget/nsEvent.h" 1 ># 47 "../../../dist/include/widget/nsIWidget.h" 2 ># 1 "../../../dist/include/xpcom/nsCOMPtr.h" 1 ># 48 "../../../dist/include/widget/nsIWidget.h" 2 > > >class nsIAppShell; >class nsIToolkit; >class nsIFontMetrics; >class nsIRenderingContext; >class nsIDeviceContext; >class nsIRegion; >struct nsRect; >struct nsFont; >class nsIMenuBar; >class nsIEventListener; >class nsIRollupListener; >class nsGUIEvent; >struct nsColorMap; >class imgIContainer; >class gfxASurface; >class nsIMouseListener; >class nsIContent; ># 76 "../../../dist/include/widget/nsIWidget.h" >typedef nsEventStatus (* EVENT_CALLBACK)(nsGUIEvent *event); ># 106 "../../../dist/include/widget/nsIWidget.h" >typedef void* nsNativeWidget; > > > > > >enum nsWindowType { > > eWindowType_toplevel, > > eWindowType_dialog, > > eWindowType_popup, > > eWindowType_child, > > eWindowType_invisible, > > eWindowType_plugin, > > eWindowType_java, > > eWindowType_sheet >}; > >enum nsPopupType { > ePopupTypePanel, > ePopupTypeMenu, > ePopupTypeTooltip, > ePopupTypeAny = 0xF000 >}; > >enum nsBorderStyle >{ > > eBorderStyle_none = 0, > > > eBorderStyle_all = 1 << 0, > > > eBorderStyle_border = 1 << 1, > > > eBorderStyle_resizeh = 1 << 2, > > > eBorderStyle_title = 1 << 3, > > > eBorderStyle_menu = 1 << 4, > > > > eBorderStyle_minimize = 1 << 5, > > > eBorderStyle_maximize = 1 << 6, > > > eBorderStyle_close = 1 << 7, > > > eBorderStyle_default = -1 >}; > > > > > >enum nsCursor { > eCursor_standard, > > eCursor_wait, > > eCursor_select, > > eCursor_hyperlink, > > eCursor_n_resize, > eCursor_s_resize, > eCursor_w_resize, > eCursor_e_resize, > > eCursor_nw_resize, > eCursor_se_resize, > eCursor_ne_resize, > eCursor_sw_resize, > eCursor_crosshair, > eCursor_move, > eCursor_help, > eCursor_copy, > eCursor_alias, > eCursor_context_menu, > eCursor_cell, > eCursor_grab, > eCursor_grabbing, > eCursor_spinning, > eCursor_zoom_in, > eCursor_zoom_out, > eCursor_not_allowed, > eCursor_col_resize, > eCursor_row_resize, > eCursor_no_drop, > eCursor_vertical_text, > eCursor_all_scroll, > eCursor_nesw_resize, > eCursor_nwse_resize, > eCursor_ns_resize, > eCursor_ew_resize, > eCursor_none, > > eCursorCount > }; > >enum nsContentType { > eContentTypeInherit = -1, > eContentTypeUI = 0, > eContentTypeContent = 1, > eContentTypeContentFrame = 2 >}; > >enum nsTopLevelWidgetZPlacement { > eZPlacementBottom = 0, > eZPlacementBelow, > eZPlacementTop >}; > > > > > > >struct nsWidgetInitData { > nsWidgetInitData() > : clipChildren(0), > clipSiblings(0), > mDropShadow(0), > mListenForResizes(0), > mWindowType(eWindowType_child), > mBorderStyle(eBorderStyle_default), > mContentType(eContentTypeInherit), > mUnicode(1), > mPopupHint(ePopupTypePanel) > { > } > > > PRPackedBool clipChildren, clipSiblings, mDropShadow; > PRPackedBool mListenForResizes; > nsWindowType mWindowType; > nsBorderStyle mBorderStyle; > nsContentType mContentType; > PRPackedBool mUnicode; > nsPopupType mPopupHint; >}; > > > > > >class nsIWidget : public nsISupports { > > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > nsIWidget() > : mLastChild(0) > , mPrevSibling(0) > {} ># 310 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Create(nsIWidget *aParent, > const nsRect &aRect, > EVENT_CALLBACK aHandleEventFunction, > nsIDeviceContext *aContext, > nsIAppShell *aAppShell = 0, > nsIToolkit *aToolkit = 0, > nsWidgetInitData *aInitData = 0) = 0; ># 337 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Create(nsNativeWidget aParent, > const nsRect &aRect, > EVENT_CALLBACK aHandleEventFunction, > nsIDeviceContext *aContext, > nsIAppShell *aAppShell = 0, > nsIToolkit *aToolkit = 0, > nsWidgetInitData *aInitData = 0) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetClientData(void*& aClientData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetClientData(void* aClientData) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Destroy(void) = 0; ># 370 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetParent(nsIWidget* aNewParent) = 0; ># 380 "../../../dist/include/widget/nsIWidget.h" > virtual nsIWidget* GetParent(void) = 0; ># 390 "../../../dist/include/widget/nsIWidget.h" > virtual nsIWidget* GetSheetWindowParent(void) = 0; > > > > > > nsIWidget* GetFirstChild() const { > return mFirstChild; > } > > > > > > nsIWidget* GetLastChild() const { > return mLastChild; > } > > > > > nsIWidget* GetNextSibling() const { > return mNextSibling; > } > > > > > void SetNextSibling(nsIWidget* aSibling) { > mNextSibling = aSibling; > } > > > > > nsIWidget* GetPrevSibling() const { > return mPrevSibling; > } > > > > > void SetPrevSibling(nsIWidget* aSibling) { > mPrevSibling = aSibling; > } > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Show(PRBool aState) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetModal(PRBool aModal) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsVisible(PRBool & aState) = 0; ># 471 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ConstrainPosition(PRBool aAllowSlop, > PRInt32 *aX, > PRInt32 *aY) = 0; ># 482 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Move(PRInt32 aX, PRInt32 aY) = 0; ># 492 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Resize(PRInt32 aWidth, > PRInt32 aHeight, > PRBool aRepaint) = 0; ># 506 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Resize(PRInt32 aX, > PRInt32 aY, > PRInt32 aWidth, > PRInt32 aHeight, > PRBool aRepaint) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetZIndex(PRInt32 aZIndex) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetZIndex(PRInt32* aZIndex) = 0; ># 533 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PlaceBehind(nsTopLevelWidgetZPlacement aPlacement, > nsIWidget *aWidget, PRBool aActivate) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetSizeMode(PRInt32 aMode) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSizeMode(PRInt32* aMode) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Enable(PRBool aState) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsEnabled(PRBool *aState) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFocus(PRBool aRaise = 0) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetBounds(nsRect &aRect) = 0; ># 586 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetScreenBounds(nsRect &aRect) = 0; ># 596 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetClientBounds(nsRect &aRect) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetBorderSize(PRInt32 &aWidth, PRInt32 &aHeight) = 0; > > > > > > > > virtual nscolor GetForegroundColor(void) = 0; ># 621 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetForegroundColor(const nscolor &aColor) = 0; ># 630 "../../../dist/include/widget/nsIWidget.h" > virtual nscolor GetBackgroundColor(void) = 0; ># 639 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetBackgroundColor(const nscolor &aColor) = 0; > > > > > > > > virtual nsCursor GetCursor(void) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetCursor(nsCursor aCursor) = 0; ># 666 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetCursor(imgIContainer* aCursor, > PRUint32 aHotspotX, PRUint32 aHotspotY) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWindowType(nsWindowType& aWindowType) = 0; ># 695 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetHasTransparentBackground(PRBool aTransparent) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHasTransparentBackground(PRBool& aTransparent) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HideWindowChrome(PRBool aShouldHide) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) MakeFullScreen(PRBool aFullScreen) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Validate() = 0; ># 730 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Invalidate(PRBool aIsSynchronous) = 0; ># 739 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Invalidate(const nsRect & aRect, PRBool aIsSynchronous) = 0; ># 748 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InvalidateRegion(const nsIRegion* aRegion, PRBool aIsSynchronous) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Update() = 0; ># 765 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddMouseListener(nsIMouseListener * aListener) = 0; ># 774 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddEventListener(nsIEventListener * aListener) = 0; ># 784 "../../../dist/include/widget/nsIWidget.h" > virtual nsIToolkit* GetToolkit() = 0; ># 793 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetColorMap(nsColorMap *aColorMap) = 0; ># 805 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Scroll(PRInt32 aDx, PRInt32 aDy, nsRect *aClipRect) = 0; ># 817 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ScrollWidgets(PRInt32 aDx, PRInt32 aDy) = 0; ># 829 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ScrollRect(nsRect &aSrcRect, PRInt32 aDx, PRInt32 aDy) = 0; > > > > > > > virtual void AddChild(nsIWidget* aChild) = 0; > virtual void RemoveChild(nsIWidget* aChild) = 0; > virtual void* GetNativeData(PRUint32 aDataType) = 0; > virtual void FreeNativeData(void * data, PRUint32 aDataType) = 0; > virtual nsIRenderingContext* GetRenderingContext() = 0; > > > virtual nsIDeviceContext* GetDeviceContext() = 0; ># 853 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetBorderStyle(nsBorderStyle aBorderStyle) = 0; ># 862 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetTitle(const nsAString_internal& aTitle) = 0; ># 873 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetIcon(const nsAString_internal& anIconSpec) = 0; ># 882 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetMenuBar(nsIMenuBar * aMenuBar) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ShowMenuBar(PRBool aShow) = 0; ># 899 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WidgetToScreen(const nsRect& aOldRect, nsRect& aNewRect) = 0; ># 908 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ScreenToWidget(const nsRect& aOldRect, nsRect& aNewRect) = 0; ># 918 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) BeginResizingChildren(void) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EndResizingChildren(void) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPreferredSize(PRInt32& aWidth, PRInt32& aHeight) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPreferredSize(PRInt32 aWidth, PRInt32 aHeight) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DispatchEvent(nsGUIEvent* event, nsEventStatus & aStatus) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EnableDragDrop(PRBool aEnable) = 0; > > virtual void ConvertToDeviceCoordinates(nscoord &aX,nscoord &aY) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CaptureMouse(PRBool aCapture) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetWindowClass(const nsAString_internal& xulWinType) = 0; ># 974 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CaptureRollupEvents(nsIRollupListener * aListener, PRBool aDoCapture, PRBool aConsumeRollupEvent) = 0; ># 987 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ModalEventFilter(PRBool aRealEvent, void *aEvent, PRBool *aForWindow) = 0; ># 1000 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAttention(PRInt32 aCycleCount) = 0; ># 1012 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLastInputEventTime(PRUint32& aTime) = 0; ># 1021 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) BeginSecureKeyboardInput() = 0; ># 1030 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EndSecureKeyboardInput() = 0; ># 1048 "../../../dist/include/widget/nsIWidget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetWindowTitlebarColor(nscolor aColor, PRBool aActive) = 0; > > > > > virtual gfxASurface *GetThebesSurface() = 0; > > > > > virtual nsIContent* GetLastRollup() = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) BeginResizeDrag(nsGUIEvent* aEvent, PRInt32 aHorizontal, PRInt32 aVertical) = 0; > > enum Modifiers { > CAPS_LOCK = 0x01, > NUM_LOCK = 0x02, > SHIFT_L = 0x0100, > SHIFT_R = 0x0200, > CTRL_L = 0x0400, > CTRL_R = 0x0800, > ALT_L = 0x1000, > ALT_R = 0x2000, > COMMAND = 0x4000, > HELP = 0x8000, > FUNCTION = 0x10000, > NUMERIC_KEY_PAD = 0x01000000 > }; ># 1102 "../../../dist/include/widget/nsIWidget.h" > virtual nsresult SynthesizeNativeKeyEvent(PRInt32 aNativeKeyboardLayout, > PRInt32 aNativeKeyCode, > PRUint32 aModifierFlags, > const nsAString_internal& aCharacters, > const nsAString_internal& aUnmodifiedCharacters) = 0; > >protected: > > > > > > > nsCOMPtr<nsIWidget> mFirstChild; > nsIWidget* mLastChild; > nsCOMPtr<nsIWidget> mNextSibling; > nsIWidget* mPrevSibling; >}; > >template <class Dummy> const nsIID nsIWidget::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x517a0eef, 0xcd1c, 0x48b3, { 0x96, 0xf0, 0xe3, 0x41, 0xa5, 0x0f, 0x12, 0x0d } }; ># 46 "../../../dist/include/gfx/nsIDeviceContext.h" 2 > > ># 1 "../../../dist/include/thebes/gfxPoint.h" 1 ># 49 "../../../dist/include/gfx/nsIDeviceContext.h" 2 > >class nsIView; >class nsIFontMetrics; >class nsIWidget; >class nsIDeviceContextSpec; >class nsIAtom; > >struct nsFont; > > >typedef void * nsNativeDeviceContext; ># 164 "../../../dist/include/gfx/nsIDeviceContext.h" >const PRUint8 kUseAltDCFor_NONE = 0x00; >const PRUint8 kUseAltDCFor_FONTMETRICS = 0x01; >const PRUint8 kUseAltDCFor_CREATERC_REFLOW = 0x02; >const PRUint8 kUseAltDCFor_CREATERC_PAINT = 0x04; >const PRUint8 kUseAltDCFor_SURFACE_DIM = 0x08; ># 177 "../../../dist/include/gfx/nsIDeviceContext.h" >typedef void * nsPalette; > > > struct nsPaletteInfo { > PRPackedBool isPaletteDevice; > PRUint16 sizePalette; > PRUint16 numReserved; > nsPalette palette; > }; > > typedef enum { > eSystemFont_Caption, > eSystemFont_Icon, > eSystemFont_Menu, > eSystemFont_MessageBox, > eSystemFont_SmallCaption, > eSystemFont_StatusBar, > > eSystemFont_Window, > eSystemFont_Document, > eSystemFont_Workspace, > eSystemFont_Desktop, > eSystemFont_Info, > eSystemFont_Dialog, > eSystemFont_Button, > eSystemFont_PullDownMenu, > eSystemFont_List, > eSystemFont_Field, > > eSystemFont_Tooltips, > eSystemFont_Widget > } nsSystemFontID; > >class nsIDeviceContext : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsNativeWidget aWidget) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InitForPrinting(nsIDeviceContextSpec* aDevSpec) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateRenderingContext(nsIView *aView, nsIRenderingContext *&aContext) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateRenderingContext(nsIWidget *aWidget, nsIRenderingContext *&aContext) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateRenderingContext(nsIRenderingContext *&aContext) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateRenderingContextInstance(nsIRenderingContext *&aContext) = 0; ># 267 "../../../dist/include/gfx/nsIDeviceContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SupportsNativeWidgets(PRBool &aSupportsWidgets) = 0; ># 277 "../../../dist/include/gfx/nsIDeviceContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PrepareNativeWidget(nsIWidget* aWidget, void** aOut) = 0; > > > > > > static PRInt32 AppUnitsPerCSSPixel() { return 60; } > > > > > static gfxFloat AppUnitsToGfxCSSPixels(nscoord aAppUnits) > { return gfxFloat(aAppUnits) / AppUnitsPerCSSPixel(); } > > > > > > PRInt32 AppUnitsPerDevPixel() const { return mAppUnitsPerDevPixel; } > > > > > > nscoord GfxUnitsToAppUnits(gfxFloat aGfxUnits) const > { return nscoord(NS_round(aGfxUnits * AppUnitsPerDevPixel())); } > > > > > gfxFloat AppUnitsToGfxUnits(nscoord aAppUnits) const > { return gfxFloat(aAppUnits) / AppUnitsPerDevPixel(); } > > > > > > PRInt32 AppUnitsPerInch() const { return mAppUnitsPerInch; } ># 325 "../../../dist/include/gfx/nsIDeviceContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSystemFont(nsSystemFontID aID, nsFont *aFont) const = 0; ># 335 "../../../dist/include/gfx/nsIDeviceContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMetricsFor(const nsFont& aFont, nsIAtom* aLangGroup, > nsIFontMetrics*& aMetrics) = 0; ># 345 "../../../dist/include/gfx/nsIDeviceContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMetricsFor(const nsFont& aFont, nsIFontMetrics*& aMetrics) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CheckFontExistence(const nsString& aFaceName) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FirstExistingFont(const nsFont& aFont, nsString& aFaceName) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLocalFontName(const nsString& aFaceName, nsString& aLocalName, > PRBool& aAliased) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FontMetricsDeleted(const nsIFontMetrics* aFontMetrics) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FlushFontCache(void) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDepth(PRUint32& aDepth) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPaletteInfo(nsPaletteInfo& aPaletteInfo) = 0; ># 388 "../../../dist/include/gfx/nsIDeviceContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDeviceSurfaceDimensions(nscoord &aWidth, nscoord &aHeight) = 0; ># 397 "../../../dist/include/gfx/nsIDeviceContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRect ( nsRect &aRect ) = 0; ># 409 "../../../dist/include/gfx/nsIDeviceContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetClientRect(nsRect &aRect) = 0; ># 419 "../../../dist/include/gfx/nsIDeviceContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PrepareDocument(PRUnichar * aTitle, > PRUnichar* aPrintToFileName) = 0; ># 437 "../../../dist/include/gfx/nsIDeviceContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) BeginDocument(PRUnichar* aTitle, > PRUnichar* aPrintToFileName, > PRInt32 aStartPage, > PRInt32 aEndPage) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EndDocument(void) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AbortDocument(void) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) BeginPage(void) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) EndPage(void) = 0; ># 480 "../../../dist/include/gfx/nsIDeviceContext.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ClearCachedSystemFonts() = 0; > > > > > > > virtual PRBool CheckDPIChange() = 0; > > > > > > > virtual PRBool SetPixelScale(float aScale) = 0; > > > > > > float GetPixelScale() const { return mPixelScale; } > > > > > > PRInt32 UnscaledAppUnitsPerDevPixel() const { return mAppUnitsPerDevNotScaledPixel; } > >protected: > PRInt32 mAppUnitsPerDevPixel; > PRInt32 mAppUnitsPerInch; > PRInt32 mAppUnitsPerDevNotScaledPixel; > float mPixelScale; >}; > >template <class Dummy> const nsIID nsIDeviceContext::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x92a1e76c, 0xadbd, 0x441e, { 0xaa, 0xe6, 0x24, 0x3d, 0x60, 0x4, 0xe0, 0xee } }; ># 51 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "../../../dist/include/gfx/nsFont.h" 1 ># 43 "../../../dist/include/gfx/nsFont.h" ># 1 "../../../dist/include/xpcom/nsStringGlue.h" 1 ># 44 "../../../dist/include/gfx/nsFont.h" 2 > > > > > >typedef PRBool (*nsFontFamilyEnumFunc)(const nsString& aFamily, PRBool aGeneric, void *aData); > > > > >const PRUint8 kGenericFont_NONE = 0x00; > >const PRUint8 kGenericFont_moz_variable = 0x00; >const PRUint8 kGenericFont_moz_fixed = 0x01; > >const PRUint8 kGenericFont_serif = 0x02; >const PRUint8 kGenericFont_sans_serif = 0x04; >const PRUint8 kGenericFont_monospace = 0x08; >const PRUint8 kGenericFont_cursive = 0x10; >const PRUint8 kGenericFont_fantasy = 0x20; > > >struct nsFont { > > nsString name; > > > unsigned int style : 7; > > > > unsigned int systemFont : 1; > > > PRUint8 variant : 7; > > > > PRUint8 familyNameQuirks : 1; > > > PRUint16 weight; > > > > PRUint8 decorations; > > > nscoord size; > > > > > > float sizeAdjust; > > > nsFont(const char* aName, PRUint8 aStyle, PRUint8 aVariant, > PRUint16 aWeight, PRUint8 aDecoration, nscoord aSize, > float aSizeAdjust=0.0f); > > > nsFont(const nsString& aName, PRUint8 aStyle, PRUint8 aVariant, > PRUint16 aWeight, PRUint8 aDecoration, nscoord aSize, > float aSizeAdjust=0.0f); > > > nsFont(const nsFont& aFont); > > nsFont(); > ~nsFont(); > > PRBool operator==(const nsFont& aOther) const { > return Equals(aOther); > } > > PRBool Equals(const nsFont& aOther) const ; > > PRBool BaseEquals(const nsFont& aOther) const; > > nsFont& operator=(const nsFont& aOther); > > > > > > PRBool EnumerateFamilies(nsFontFamilyEnumFunc aFunc, void* aData) const; > void GetFirstFamily(nsString& aFamily) const; > > > static void GetGenericID(const nsString& aGeneric, PRUint8* aID); >}; ># 52 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "../../../dist/include/xpcom/nsIWeakReference.h" 1 ># 53 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "../../../dist/include/gfx/nsITheme.h" 1 ># 45 "../../../dist/include/gfx/nsITheme.h" ># 1 "../../../dist/include/xpcom/nsCOMPtr.h" 1 ># 46 "../../../dist/include/gfx/nsITheme.h" 2 > > >struct nsRect; >struct nsSize; >struct nsFont; >struct nsMargin; >class nsPresContext; >class nsIRenderingContext; >class nsIDeviceContext; >class nsIFrame; >class nsIContent; >class nsIAtom; ># 78 "../../../dist/include/gfx/nsITheme.h" >class nsITheme: public nsISupports { >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DrawWidgetBackground(nsIRenderingContext* aContext, > nsIFrame* aFrame, > PRUint8 aWidgetType, > const nsRect& aRect, > const nsRect& aClipRect)=0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWidgetBorder(nsIDeviceContext* aContext, > nsIFrame* aFrame, > PRUint8 aWidgetType, > nsMargin* aResult)=0; ># 105 "../../../dist/include/gfx/nsITheme.h" > virtual PRBool GetWidgetPadding(nsIDeviceContext* aContext, > nsIFrame* aFrame, > PRUint8 aWidgetType, > nsMargin* aResult) = 0; ># 118 "../../../dist/include/gfx/nsITheme.h" > virtual PRBool GetWidgetOverflow(nsIDeviceContext* aContext, > nsIFrame* aFrame, > PRUint8 aWidgetType, > nsRect* aOverflowRect) > { return 0; } > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMinimumWidgetSize(nsIRenderingContext* aContext, > nsIFrame* aFrame, > PRUint8 aWidgetType, > nsSize* aResult, > PRBool* aIsOverridable)=0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) WidgetStateChanged(nsIFrame* aFrame, PRUint8 aWidgetType, > nsIAtom* aAttribute, PRBool* aShouldRepaint)=0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ThemeChanged()=0; > > > > > virtual PRBool ThemeSupportsWidget(nsPresContext* aPresContext, > nsIFrame* aFrame, > PRUint8 aWidgetType)=0; > > virtual PRBool WidgetIsContainer(PRUint8 aWidgetType)=0; > > > > > virtual PRBool ThemeDrawsFocusForWidget(nsPresContext* aPresContext, > nsIFrame* aFrame, > PRUint8 aWidgetType)=0; > > > > > virtual PRBool ThemeNeedsComboboxDropmarker()=0; >}; > >template <class Dummy> const nsIID nsITheme::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0xdf8baf21, 0x5ea7, 0x49eb, { 0xa2, 0xbc, 0xf2, 0xfd, 0x4a, 0x9f, 0xd8, 0x96 } }; > > >extern nsresult NS_NewNativeTheme(nsISupports *aOuter, const nsIID& aIID, void **aResult); ># 54 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "../../../dist/include/locale/nsILanguageAtomService.h" 1 ># 49 "../../../dist/include/locale/nsILanguageAtomService.h" ># 1 "../../../dist/include/xpcom/nsISupports.h" 1 ># 50 "../../../dist/include/locale/nsILanguageAtomService.h" 2 ># 1 "../../../dist/include/xpcom/nsCOMPtr.h" 1 ># 51 "../../../dist/include/locale/nsILanguageAtomService.h" 2 ># 1 "../../../dist/include/xpcom/nsIAtom.h" 1 ># 52 "../../../dist/include/locale/nsILanguageAtomService.h" 2 ># 60 "../../../dist/include/locale/nsILanguageAtomService.h" >class nsILanguageAtomService : public nsISupports >{ > public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual nsIAtom* LookupLanguage(const nsAString_internal &aLanguage, > nsresult *aError = 0) = 0; > virtual already_AddRefed<nsIAtom> > LookupCharSet(const char *aCharSet, nsresult *aError = 0) = 0; > > virtual nsIAtom* GetLocaleLanguageGroup(nsresult *aError = 0) = 0; >}; > >template <class Dummy> const nsIID nsILanguageAtomService::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x24b45737, 0x9e94, 0x4e40, { 0x9d, 0x59, 0x29, 0xcd, 0x62, 0x96, 0x3a, 0xdd }}; ># 55 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "../../../dist/include/xpcom/nsIObserver.h" 1 ># 31 "../../../dist/include/xpcom/nsIObserver.h" >class nsIObserver : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 54 "../../../dist/include/xpcom/nsIObserver.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData) = 0; > >}; > > template <class Dummy> const nsIID nsIObserver::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xdb242e01, 0xe4d9, 0x11d2, { 0x9d, 0xde, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}; ># 56 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "../../../dist/include/xpcom/nsITimer.h" 1 ># 17 "../../../dist/include/xpcom/nsITimer.h" >class nsIObserver; ># 32 "../../../dist/include/xpcom/nsITimer.h" >class nsITimer; >typedef void (*nsTimerCallbackFunc) (nsITimer *aTimer, void *aClosure); >class nsITimer; ># 44 "../../../dist/include/xpcom/nsITimer.h" >class nsITimerCallback : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Notify(nsITimer *timer) = 0; > >}; > > template <class Dummy> const nsIID nsITimerCallback::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa796816d, 0x7d47, 0x4348, { 0x9a, 0xb8, 0xc7, 0xae, 0xb3, 0x21, 0x6a, 0x7d }}; ># 123 "../../../dist/include/xpcom/nsITimer.h" >class nsITimer : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 137 "../../../dist/include/xpcom/nsITimer.h" > enum { TYPE_ONE_SHOT = 0 }; ># 147 "../../../dist/include/xpcom/nsITimer.h" > enum { TYPE_REPEATING_SLACK = 1 }; ># 157 "../../../dist/include/xpcom/nsITimer.h" > enum { TYPE_REPEATING_PRECISE = 2 }; ># 176 "../../../dist/include/xpcom/nsITimer.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(nsIObserver *aObserver, PRUint32 aDelay, PRUint32 aType) = 0; ># 189 "../../../dist/include/xpcom/nsITimer.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InitWithFuncCallback(nsTimerCallbackFunc aCallback, void * aClosure, PRUint32 aDelay, PRUint32 aType) = 0; ># 201 "../../../dist/include/xpcom/nsITimer.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InitWithCallback(nsITimerCallback *aCallback, PRUint32 aDelay, PRUint32 aType) = 0; ># 210 "../../../dist/include/xpcom/nsITimer.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Cancel(void) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDelay(PRUint32 *aDelay) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDelay(PRUint32 aDelay) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetType(PRUint32 *aType) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetType(PRUint32 aType) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetClosure(void * *aClosure) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCallback(nsITimerCallback * *aCallback) = 0; > >}; > > template <class Dummy> const nsIID nsITimer::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x436a83fa, 0xb396, 0x11d9, { 0xbc, 0xfa, 0x00, 0x11, 0x24, 0x78, 0xd6, 0x26 }}; ># 57 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "../../../dist/include/xpcom/nsCRT.h" 1 ># 58 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "../../../dist/include/widget/nsIPrintSettings.h" 1 ># 17 "../../../dist/include/widget/nsIPrintSettings.h" ># 1 "../../../dist/include/gfx/nsMargin.h" 1 ># 18 "../../../dist/include/widget/nsIPrintSettings.h" 2 >class nsIPrintSession; ># 33 "../../../dist/include/widget/nsIPrintSettings.h" >class nsIPrintSettings : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > enum { kInitSaveOddEvenPages = 1U }; > > enum { kInitSaveHeaderLeft = 2U }; > > enum { kInitSaveHeaderCenter = 4U }; > > enum { kInitSaveHeaderRight = 8U }; > > enum { kInitSaveFooterLeft = 16U }; > > enum { kInitSaveFooterCenter = 32U }; > > enum { kInitSaveFooterRight = 64U }; > > enum { kInitSaveBGColors = 128U }; > > enum { kInitSaveBGImages = 256U }; > > enum { kInitSavePaperSize = 512U }; > > enum { kInitSavePaperData = 8192U }; > > enum { kInitSaveUnwriteableMargins = 16384U }; > > enum { kInitSaveEdges = 32768U }; > > enum { kInitSaveReversed = 65536U }; > > enum { kInitSaveInColor = 131072U }; > > enum { kInitSaveOrientation = 262144U }; > > enum { kInitSavePrintCommand = 524288U }; > > enum { kInitSavePrinterName = 1048576U }; > > enum { kInitSavePrintToFile = 2097152U }; > > enum { kInitSaveToFileName = 4194304U }; > > enum { kInitSavePageDelay = 8388608U }; > > enum { kInitSaveMargins = 16777216U }; > > enum { kInitSaveNativeData = 33554432U }; > > enum { kInitSavePlexName = 67108864U }; > > enum { kInitSaveShrinkToFit = 134217728U }; > > enum { kInitSaveScaling = 268435456U }; > > enum { kInitSaveColorspace = 536870912U }; > > enum { kInitSaveResolutionName = 1073741824U }; > > enum { kInitSaveDownloadFonts = 2147483648U }; > > enum { kInitSaveAll = 4294967295U }; > > enum { kPrintOddPages = 1 }; > > enum { kPrintEvenPages = 2 }; > > enum { kEnableSelectionRB = 4 }; > > enum { kRangeAllPages = 0 }; > > enum { kRangeSpecifiedPageRange = 1 }; > > enum { kRangeSelection = 2 }; > > enum { kRangeFocusFrame = 3 }; > > enum { kJustLeft = 0 }; > > enum { kJustCenter = 1 }; > > enum { kJustRight = 2 }; > > > > > enum { kUseInternalDefault = 0 }; > > enum { kUseSettingWhenPossible = 1 }; > > > > > enum { kPaperSizeNativeData = 0 }; > > enum { kPaperSizeDefined = 1 }; > > > > > enum { kPaperSizeInches = 0 }; > > enum { kPaperSizeMillimeters = 1 }; > > > > > enum { kPortraitOrientation = 0 }; > > enum { kLandscapeOrientation = 1 }; > > > > > enum { kNoFrames = 0 }; > > enum { kFramesAsIs = 1 }; > > enum { kSelectedFrame = 2 }; > > enum { kEachFrameSep = 3 }; > > > > > enum { kFrameEnableNone = 0 }; > > enum { kFrameEnableAll = 1 }; > > enum { kFrameEnableAsIsAndEach = 2 }; > > > > > enum { kOutputFormatNative = 0 }; > > enum { kOutputFormatPS = 1 }; > > enum { kOutputFormatPDF = 2 }; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrintOptions(PRInt32 aType, PRBool *_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrintOptionsBits(PRInt32 *_retval) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetEffectivePageSize(double *aWidth, double *aHeight) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Clone(nsIPrintSettings **_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Assign(nsIPrintSettings *aPS) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrintSession(nsIPrintSession * *aPrintSession) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrintSession(nsIPrintSession * aPrintSession) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetStartPageRange(PRInt32 *aStartPageRange) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetStartPageRange(PRInt32 aStartPageRange) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetEndPageRange(PRInt32 *aEndPageRange) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetEndPageRange(PRInt32 aEndPageRange) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetEdgeTop(double *aEdgeTop) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetEdgeTop(double aEdgeTop) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetEdgeLeft(double *aEdgeLeft) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetEdgeLeft(double aEdgeLeft) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetEdgeBottom(double *aEdgeBottom) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetEdgeBottom(double aEdgeBottom) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetEdgeRight(double *aEdgeRight) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetEdgeRight(double aEdgeRight) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMarginTop(double *aMarginTop) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetMarginTop(double aMarginTop) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMarginLeft(double *aMarginLeft) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetMarginLeft(double aMarginLeft) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMarginBottom(double *aMarginBottom) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetMarginBottom(double aMarginBottom) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMarginRight(double *aMarginRight) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetMarginRight(double aMarginRight) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetUnwriteableMarginTop(double *aUnwriteableMarginTop) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetUnwriteableMarginTop(double aUnwriteableMarginTop) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetUnwriteableMarginLeft(double aUnwriteableMarginLeft) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetUnwriteableMarginBottom(double aUnwriteableMarginBottom) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetUnwriteableMarginRight(double *aUnwriteableMarginRight) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetUnwriteableMarginRight(double aUnwriteableMarginRight) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetScaling(double *aScaling) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetScaling(double aScaling) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrintBGColors(PRBool *aPrintBGColors) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrintBGColors(PRBool aPrintBGColors) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrintBGImages(PRBool *aPrintBGImages) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrintBGImages(PRBool aPrintBGImages) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrintRange(PRInt16 *aPrintRange) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrintRange(PRInt16 aPrintRange) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTitle(PRUnichar * *aTitle) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetTitle(const PRUnichar * aTitle) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDocURL(PRUnichar * *aDocURL) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDocURL(const PRUnichar * aDocURL) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHeaderStrLeft(PRUnichar * *aHeaderStrLeft) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetHeaderStrLeft(const PRUnichar * aHeaderStrLeft) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHeaderStrCenter(PRUnichar * *aHeaderStrCenter) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetHeaderStrCenter(const PRUnichar * aHeaderStrCenter) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHeaderStrRight(PRUnichar * *aHeaderStrRight) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetHeaderStrRight(const PRUnichar * aHeaderStrRight) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFooterStrLeft(PRUnichar * *aFooterStrLeft) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFooterStrLeft(const PRUnichar * aFooterStrLeft) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFooterStrCenter(PRUnichar * *aFooterStrCenter) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFooterStrCenter(const PRUnichar * aFooterStrCenter) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFooterStrRight(PRUnichar * *aFooterStrRight) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFooterStrRight(const PRUnichar * aFooterStrRight) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIsCancelled(PRBool *aIsCancelled) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetIsCancelled(PRBool aIsCancelled) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrintFrameType(PRInt16 *aPrintFrameType) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrintFrameType(PRInt16 aPrintFrameType) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrintSilent(PRBool *aPrintSilent) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrintSilent(PRBool aPrintSilent) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetShrinkToFit(PRBool *aShrinkToFit) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetShrinkToFit(PRBool aShrinkToFit) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetShowPrintProgress(PRBool *aShowPrintProgress) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetShowPrintProgress(PRBool aShowPrintProgress) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPaperName(PRUnichar * *aPaperName) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPaperName(const PRUnichar * aPaperName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPaperSizeType(PRInt16 *aPaperSizeType) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPaperSizeType(PRInt16 aPaperSizeType) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPaperData(PRInt16 *aPaperData) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPaperData(PRInt16 aPaperData) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPaperWidth(double *aPaperWidth) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPaperWidth(double aPaperWidth) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPaperHeight(double *aPaperHeight) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPaperHeight(double aPaperHeight) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPaperSizeUnit(PRInt16 *aPaperSizeUnit) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPaperSizeUnit(PRInt16 aPaperSizeUnit) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPlexName(PRUnichar * *aPlexName) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPlexName(const PRUnichar * aPlexName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetColorspace(PRUnichar * *aColorspace) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetColorspace(const PRUnichar * aColorspace) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetResolutionName(PRUnichar * *aResolutionName) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetResolutionName(const PRUnichar * aResolutionName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDownloadFonts(PRBool *aDownloadFonts) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDownloadFonts(PRBool aDownloadFonts) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrintReversed(PRBool *aPrintReversed) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrintReversed(PRBool aPrintReversed) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrintInColor(PRBool *aPrintInColor) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrintInColor(PRBool aPrintInColor) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetOrientation(PRInt32 *aOrientation) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetOrientation(PRInt32 aOrientation) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrintCommand(PRUnichar * *aPrintCommand) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrintCommand(const PRUnichar * aPrintCommand) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetNumCopies(PRInt32 *aNumCopies) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetNumCopies(PRInt32 aNumCopies) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrinterName(PRUnichar * *aPrinterName) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrinterName(const PRUnichar * aPrinterName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrintToFile(PRBool *aPrintToFile) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrintToFile(PRBool aPrintToFile) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetToFileName(PRUnichar * *aToFileName) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetToFileName(const PRUnichar * aToFileName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetOutputFormat(PRInt16 *aOutputFormat) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetOutputFormat(PRInt16 aOutputFormat) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrintPageDelay(PRInt32 *aPrintPageDelay) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrintPageDelay(PRInt32 aPrintPageDelay) = 0; ># 456 "../../../dist/include/widget/nsIPrintSettings.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter) = 0; ># 466 "../../../dist/include/widget/nsIPrintSettings.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetMarginInTwips(nsMargin & aMargin) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetEdgeInTwips(nsMargin & aEdge) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMarginInTwips(nsMargin & aMargin) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetEdgeInTwips(nsMargin & aEdge) = 0; ># 490 "../../../dist/include/widget/nsIPrintSettings.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetupSilentPrinting(void) = 0; ># 502 "../../../dist/include/widget/nsIPrintSettings.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetUnwriteableMarginInTwips(nsMargin & aEdge) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetUnwriteableMarginInTwips(nsMargin & aEdge) = 0; > >}; > > template <class Dummy> const nsIID nsIPrintSettings::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x5af07661, 0x6477, 0x4235, { 0x88, 0x14, 0x4a, 0x45, 0x21, 0x58, 0x55, 0xb8 }}; ># 59 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "./nsPropertyTable.h" 1 ># 60 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "./nsGkAtoms.h" 1 ># 61 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "../../../dist/include/content/nsIDocument.h" 1 ># 62 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "../../../dist/include/xpcom/nsInterfaceHashtable.h" 1 ># 63 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "../../../dist/include/xpcom/nsCycleCollectionParticipant.h" 1 ># 64 "../../../dist/include/layout/nsPresContext.h" 2 ># 1 "../../../dist/include/layout/nsChangeHint.h" 1 ># 65 "../../../dist/include/layout/nsPresContext.h" 2 > ># 1 "../../../dist/include/thebes/gfxPoint.h" 1 ># 67 "../../../dist/include/layout/nsPresContext.h" 2 >class nsImageLoader; > >class nsBidiPresUtils; > > >struct nsRect; > >class imgIRequest; > >class nsIContent; >class nsIFontMetrics; >class nsIFrame; >class nsFrameManager; >class nsIImage; >class nsILinkHandler; >class nsStyleContext; >class nsIAtom; >class nsIEventStateManager; >class nsIURI; >class nsILookAndFeel; >class nsICSSPseudoComparator; >class nsIAtom; >struct nsStyleBackground; >template <class T> class nsRunnableMethod; >class nsIRunnable; > > > > > >enum nsWidgetType { > eWidgetType_Button = 1, > eWidgetType_Checkbox = 2, > eWidgetType_Radio = 3, > eWidgetType_Text = 4 >}; > >enum nsLanguageSpecificTransformType { > eLanguageSpecificTransformType_Unknown = -1, > eLanguageSpecificTransformType_None = 0, > eLanguageSpecificTransformType_Japanese >}; > > >enum nsPresContext_CachedBoolPrefType { > kPresContext_UseDocumentColors = 1, > kPresContext_UseDocumentFonts, > kPresContext_UnderlineLinks >}; > > >enum nsPresContext_CachedIntPrefType { > kPresContext_MinimumFontSize = 1, > kPresContext_ScrollbarSide, > kPresContext_BidiDirection >}; > > > >const PRUint8 kPresContext_DefaultVariableFont_ID = 0x00; >const PRUint8 kPresContext_DefaultFixedFont_ID = 0x01; ># 148 "../../../dist/include/layout/nsPresContext.h" >class nsPresContext : public nsIObserver { >public: > public: virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) QueryInterface(const nsIID& aIID, void** aInstancePtr); virtual __attribute__ ((visibility ("hidden"))) nsrefcnt __attribute__ ((regparm (0), cdecl)) AddRef(void); virtual __attribute__ ((visibility ("hidden"))) nsrefcnt __attribute__ ((regparm (0), cdecl)) Release(void); void UnmarkPurple() { mRefCnt.unmarkPurple(); } protected: nsCycleCollectingAutoRefCnt mRefCnt; public: > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData); > void* operator new(size_t sz) throw() { void* rv = ::operator new(sz); if (rv) { memset(rv, 0, sz); } return rv; } void operator delete(void* ptr) { ::operator delete(ptr); } > class cycleCollection : public nsXPCOMCycleCollectionParticipant { public: virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Traverse(void *p, nsCycleCollectionTraversalCallback &cb); virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) UnmarkPurple(nsISupports *s) { Downcast(s)->UnmarkPurple(); } static nsPresContext* Downcast(nsISupports* s) { return static_cast<nsPresContext*>(static_cast<nsPresContext*>(s)); } static nsISupports* Upcast(nsPresContext *p) { return static_cast<nsISupports*>(static_cast<nsPresContext*>(p)); } virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Unlink(void *p); }; static cycleCollection _cycleCollectorGlobal; > > enum nsPresContextType { > eContext_Galley, > eContext_PrintPreview, > eContext_Print, > eContext_PageLayout > }; > > nsPresContext(nsIDocument* aDocument, nsPresContextType aType) __attribute__ ((visibility ("hidden"))); > > > > > __attribute__ ((visibility ("hidden"))) nsresult Init(nsIDeviceContext* aDeviceContext); > > > > > > __attribute__ ((visibility ("hidden"))) void SetShell(nsIPresShell* aShell); > > > __attribute__ ((visibility ("hidden"))) nsPresContextType Type() const { return mType; } > > > > > nsIPresShell* PresShell() const > { > do { } while (0); > return mShell; > } > > nsIPresShell* GetPresShell() const { return mShell; } > > > > nsPresContext* RootPresContext(); > > nsIDocument* Document() const > { > do { } while (0); > > > return mDocument; > } > > nsIViewManager* GetViewManager() { return GetPresShell()->GetViewManager(); } > > nsStyleSet* StyleSet() { return GetPresShell()->StyleSet(); } > > nsFrameManager* FrameManager() > { return GetPresShell()->FrameManager(); } > > > void RebuildAllStyleData(nsChangeHint aExtraHint); > void PostRebuildAllStyleDataEvent(); > > > > > > nsCompatibility CompatibilityMode() const { > return Document()->GetCompatibilityMode(); > } > > > > __attribute__ ((visibility ("hidden"))) void CompatibilityModeChanged(); > > > > > PRUint16 ImageAnimationMode() const { return mImageAnimationMode; } > void RestoreImageAnimationMode() { SetImageAnimationMode(mImageAnimationModePref); } > virtual __attribute__ ((visibility ("hidden"))) void SetImageAnimationModeExternal(PRUint16 aMode); > __attribute__ ((visibility ("hidden"))) void SetImageAnimationModeInternal(PRUint16 aMode); > > void SetImageAnimationMode(PRUint16 aMode) > { SetImageAnimationModeInternal(aMode); } ># 243 "../../../dist/include/layout/nsPresContext.h" > nsILookAndFeel* LookAndFeel() { return mLookAndFeel; } > > > > > nsIAtom* Medium() { return mMedium; } > > void* AllocateFromShell(size_t aSize) > { > if (mShell) > return mShell->AllocateFrame(aSize); > return 0; > } > > void FreeToShell(size_t aSize, void* aFreeChunk) > { > if (mShell) > mShell->FreeFrame(aSize, aFreeChunk); > } > > > > > virtual __attribute__ ((visibility ("hidden"))) already_AddRefed<nsIFontMetrics> > GetMetricsForExternal(const nsFont& aFont); > __attribute__ ((visibility ("hidden"))) already_AddRefed<nsIFontMetrics> > GetMetricsForInternal(const nsFont& aFont); > > already_AddRefed<nsIFontMetrics> GetMetricsFor(const nsFont& aFont) > { return GetMetricsForInternal(aFont); } ># 295 "../../../dist/include/layout/nsPresContext.h" > virtual __attribute__ ((visibility ("hidden"))) const nsFont* GetDefaultFontExternal(PRUint8 aFontID) const; > __attribute__ ((visibility ("hidden"))) const nsFont* GetDefaultFontInternal(PRUint8 aFontID) const; > > const nsFont* GetDefaultFont(PRUint8 aFontID) const > { return GetDefaultFontInternal(aFontID); } > > > > > > > > PRBool GetCachedBoolPref(nsPresContext_CachedBoolPrefType aPrefType) const > { > > > switch (aPrefType) { > case kPresContext_UseDocumentFonts: > return mUseDocumentFonts; > case kPresContext_UseDocumentColors: > return mUseDocumentColors; > case kPresContext_UnderlineLinks: > return mUnderlineLinks; > default: > do { } while (0); > } > > return 0; > } > > > > PRInt32 GetCachedIntPref(nsPresContext_CachedIntPrefType aPrefType) const > { > > > switch (aPrefType) { > case kPresContext_MinimumFontSize: > return mMinimumFontSize; > case kPresContext_ScrollbarSide: > return mPrefScrollbarSide; > case kPresContext_BidiDirection: > return mPrefBidiDirection; > default: > do { } while (0); > } > > return 0; > } > > > > > PRInt32 FontScaler() const { return mFontScaler; } > > > > > const nscolor DefaultColor() const { return mDefaultColor; } > const nscolor DefaultBackgroundColor() const { return mBackgroundColor; } > const nscolor DefaultLinkColor() const { return mLinkColor; } > const nscolor DefaultActiveLinkColor() const { return mActiveLinkColor; } > const nscolor DefaultVisitedLinkColor() const { return mVisitedLinkColor; } > const nscolor FocusBackgroundColor() const { return mFocusBackgroundColor; } > const nscolor FocusTextColor() const { return mFocusTextColor; } > > PRBool GetUseFocusColors() const { return mUseFocusColors; } > PRUint8 FocusRingWidth() const { return mFocusRingWidth; } > PRBool GetFocusRingOnAnything() const { return mFocusRingOnAnything; } ># 373 "../../../dist/include/layout/nsPresContext.h" > __attribute__ ((visibility ("hidden"))) imgIRequest* LoadImage(imgIRequest* aImage, > nsIFrame* aTargetFrame); > > > > > > __attribute__ ((visibility ("hidden"))) void StopImagesFor(nsIFrame* aTargetFrame); > > __attribute__ ((visibility ("hidden"))) void SetContainer(nsISupports* aContainer); > > virtual __attribute__ ((visibility ("hidden"))) already_AddRefed<nsISupports> GetContainerExternal() const; > __attribute__ ((visibility ("hidden"))) already_AddRefed<nsISupports> GetContainerInternal() const; > > already_AddRefed<nsISupports> GetContainer() const > { return GetContainerInternal(); } > > > > > > > void SetLinkHandler(nsILinkHandler* aHandler) { mLinkHandler = aHandler; } > nsILinkHandler* GetLinkHandler() { return mLinkHandler; } > > > > > > > > nsRect GetVisibleArea() { return mVisibleArea; } > > > > > > void SetVisibleArea(const nsRect& r) { mVisibleArea = r; } > > > > > > PRBool IsPaginated() const { return mPaginated; } > > PRBool GetRenderedPositionVaryingContent() const { return mRenderedPositionVaryingContent; } > void SetRenderedPositionVaryingContent() { mRenderedPositionVaryingContent = 1; } > > > > > > __attribute__ ((visibility ("hidden"))) void SetPaginatedScrolling(PRBool aResult); > > > > > > PRBool HasPaginatedScrolling() const { return mCanPaginatedScroll; } > > > > > nsSize GetPageSize() { return mPageSize; } > void SetPageSize(nsSize aSize) { mPageSize = aSize; } > > > > > > > PRBool IsRootPaginatedDocument() { return mIsRootPaginatedDocument; } > void SetIsRootPaginatedDocument(PRBool aIsRootPaginatedDocument) > { mIsRootPaginatedDocument = aIsRootPaginatedDocument; } > > > > > > > > float GetPageScale() { return mPageScale; } > void SetPageScale(float aScale) { mPageScale = aScale; } ># 465 "../../../dist/include/layout/nsPresContext.h" > float GetPrintPreviewScale() { return mPPScale; } > void SetPrintPreviewScale(float aScale) { mPPScale = aScale; } > > nsIDeviceContext* DeviceContext() { return mDeviceContext; } > nsIEventStateManager* EventStateManager() { return mEventManager; } > nsIAtom* GetLangGroup() { return mLangGroup; } > > float TextZoom() { return mTextZoom; } > void SetTextZoom(float aZoom) { > mTextZoom = aZoom; > RebuildAllStyleData(nsChangeHint(nsChangeHint(nsChangeHint_RepaintFrame | nsChangeHint_SyncFrameView) | nsChangeHint_ReflowFrame)); > } > > float GetFullZoom() { return mFullZoom; } > void SetFullZoom(float aZoom); > > nscoord GetAutoQualityMinFontSize() { > return DevPixelsToAppUnits(mAutoQualityMinFontSizePixelsPref); > } > > static PRInt32 AppUnitsPerCSSPixel() { return nsIDeviceContext::AppUnitsPerCSSPixel(); } > PRInt32 AppUnitsPerDevPixel() const { return mDeviceContext->AppUnitsPerDevPixel(); } > PRInt32 AppUnitsPerInch() const { return mDeviceContext->AppUnitsPerInch(); } > > static nscoord CSSPixelsToAppUnits(PRInt32 aPixels) > { return NSIntPixelsToAppUnits(aPixels, > nsIDeviceContext::AppUnitsPerCSSPixel()); } > > static nscoord CSSPixelsToAppUnits(float aPixels) > { return NSFloatPixelsToAppUnits(aPixels, > nsIDeviceContext::AppUnitsPerCSSPixel()); } > > static PRInt32 AppUnitsToIntCSSPixels(nscoord aAppUnits) > { return NSAppUnitsToIntPixels(aAppUnits, > nsIDeviceContext::AppUnitsPerCSSPixel()); } > > static float AppUnitsToFloatCSSPixels(nscoord aAppUnits) > { return NSAppUnitsToFloatPixels(aAppUnits, > nsIDeviceContext::AppUnitsPerCSSPixel()); } > > static gfxFloat AppUnitsToGfxCSSPixels(nscoord aAppUnits) > { return nsIDeviceContext::AppUnitsToGfxCSSPixels(aAppUnits); } > > nscoord DevPixelsToAppUnits(PRInt32 aPixels) const > { return NSIntPixelsToAppUnits(aPixels, > mDeviceContext->AppUnitsPerDevPixel()); } > > PRInt32 AppUnitsToDevPixels(nscoord aAppUnits) const > { return NSAppUnitsToIntPixels(aAppUnits, > mDeviceContext->AppUnitsPerDevPixel()); } > > > nscoord GfxUnitsToAppUnits(gfxFloat aGfxUnits) const > { return mDeviceContext->GfxUnitsToAppUnits(aGfxUnits); } > > gfxFloat AppUnitsToGfxUnits(nscoord aAppUnits) const > { return mDeviceContext->AppUnitsToGfxUnits(aAppUnits); } > > nscoord TwipsToAppUnits(PRInt32 aTwips) const > { return NSToCoordRound(NSTwipsToUnits((aTwips), 1.0f / 72.0f) * > mDeviceContext->AppUnitsPerInch()); } > > > nsMargin TwipsToAppUnits(const nsMargin &marginInTwips) const > { return nsMargin(TwipsToAppUnits(marginInTwips.left), > TwipsToAppUnits(marginInTwips.top), > TwipsToAppUnits(marginInTwips.right), > TwipsToAppUnits(marginInTwips.bottom)); } > > PRInt32 AppUnitsToTwips(nscoord aTwips) const > { return NSUnitsToTwips(((float)aTwips / mDeviceContext->AppUnitsPerInch()), 72.0f); } > > > nscoord PointsToAppUnits(float aPoints) const > { return NSToCoordRound(aPoints * mDeviceContext->AppUnitsPerInch() / > 72.0f); } > float AppUnitsToPoints(nscoord aAppUnits) const > { return (float)aAppUnits / mDeviceContext->AppUnitsPerInch() * > 72.0f; } > > nscoord RoundAppUnitsToNearestDevPixels(nscoord aAppUnits) const > { return DevPixelsToAppUnits(AppUnitsToDevPixels(aAppUnits)); } ># 556 "../../../dist/include/layout/nsPresContext.h" > nsLanguageSpecificTransformType LanguageSpecificTransformType() const > { > return mLanguageSpecificTransformType; > } > > struct ScrollbarStyles { > > > PRUint8 mHorizontal, mVertical; > ScrollbarStyles(PRUint8 h, PRUint8 v) : mHorizontal(h), mVertical(v) {} > ScrollbarStyles() {} > }; > void SetViewportOverflowOverride(PRUint8 aX, PRUint8 aY) > { > mViewportStyleOverflow.mHorizontal = aX; > mViewportStyleOverflow.mVertical = aY; > } > ScrollbarStyles GetViewportOverflowOverride() > { > return mViewportStyleOverflow; > } > > > > > PRBool GetBackgroundImageDraw() const { return mDrawImageBackground; } > void SetBackgroundImageDraw(PRBool aCanDraw) > { > do { } while (0); > mDrawImageBackground = aCanDraw; > } > > PRBool GetBackgroundColorDraw() const { return mDrawColorBackground; } > void SetBackgroundColorDraw(PRBool aCanDraw) > { > do { } while (0); > mDrawColorBackground = aCanDraw; > } ># 603 "../../../dist/include/layout/nsPresContext.h" > virtual __attribute__ ((visibility ("hidden"))) PRBool BidiEnabledExternal() const; > __attribute__ ((visibility ("hidden"))) PRBool BidiEnabledInternal() const; > > PRBool BidiEnabled() const { return BidiEnabledInternal(); } ># 616 "../../../dist/include/layout/nsPresContext.h" > __attribute__ ((visibility ("hidden"))) void SetBidiEnabled(PRBool aBidiEnabled) const; ># 632 "../../../dist/include/layout/nsPresContext.h" > void SetVisualMode(PRBool aIsVisual) > { > do { } while (0); > mIsVisual = aIsVisual; > } > > > > > > > PRBool IsVisualMode() const { return mIsVisual; } > > > > > > > __attribute__ ((visibility ("hidden"))) nsBidiPresUtils* GetBidiUtils(); > > > > > __attribute__ ((visibility ("hidden"))) void SetBidi(PRUint32 aBidiOptions, > PRBool aForceRestyle = 0); > > > > > > > __attribute__ ((visibility ("hidden"))) PRUint32 GetBidi() const; > > > > > > void SetIsBidiSystem(PRBool aIsBidi) > { > do { } while (0); > mIsBidiSystem = aIsBidi; > } > > > > > > PRBool IsBidiSystem() const { return mIsBidiSystem; } > > > > > > void SetIsRenderingOnlySelection(PRBool aResult) > { > do { } while (0); > mIsRenderingOnlySelection = aResult; > } > > PRBool IsRenderingOnlySelection() const { return mIsRenderingOnlySelection; } > > > > > __attribute__ ((visibility ("hidden"))) nsITheme* GetTheme(); > > > > > > > > __attribute__ ((visibility ("hidden"))) void ThemeChanged(); > > > > > __attribute__ ((visibility ("hidden"))) void SysColorChanged(); > > > __attribute__ ((visibility ("hidden"))) void SetPrintSettings(nsIPrintSettings *aPrintSettings); > > nsIPrintSettings* GetPrintSettings() { return mPrintSettings; } > > > nsPropertyTable* PropertyTable() { return &mPropertyTable; } ># 727 "../../../dist/include/layout/nsPresContext.h" > __attribute__ ((visibility ("hidden"))) PRBool EnsureVisible(PRBool aUnsuppressFocus); ># 738 "../../../dist/include/layout/nsPresContext.h" > const nscoord* GetBorderWidthTable() { return mBorderWidthTable; } > > PRBool IsDynamic() { return (mType == eContext_PageLayout || mType == eContext_Galley); } > PRBool IsScreen() { return (mMedium == nsGkAtoms::screen || > mType == eContext_PageLayout || > mType == eContext_PrintPreview); } > > > PRBool IsChrome() const; > > > virtual PRBool HasAuthorSpecifiedRules(nsIFrame *aFrame, PRUint32 ruleTypeMask) const; > > > PRBool UseDocumentColors() const { > return GetCachedBoolPref(kPresContext_UseDocumentColors) || IsChrome(); > } > > PRBool SupressingResizeReflow() const { return mSupressResizeReflow; } > >protected: > friend class nsRunnableMethod<nsPresContext>; > __attribute__ ((visibility ("hidden"))) void ThemeChangedInternal(); > __attribute__ ((visibility ("hidden"))) void SysColorChangedInternal(); > > __attribute__ ((visibility ("hidden"))) void SetImgAnimations(nsIContent *aParent, PRUint16 aMode); > __attribute__ ((visibility ("hidden"))) void GetDocumentColorPreferences(); > > __attribute__ ((visibility ("hidden"))) void PreferenceChanged(const char* aPrefName); > static __attribute__ ((visibility ("hidden"))) int PrefChangedCallback(const char*, void*); > > __attribute__ ((visibility ("hidden"))) void UpdateAfterPreferencesChanged(); > static __attribute__ ((visibility ("hidden"))) void PrefChangedUpdateTimerCallback(nsITimer *aTimer, void *aClosure); > > __attribute__ ((visibility ("hidden"))) void GetUserPreferences(); > __attribute__ ((visibility ("hidden"))) void GetFontPreferences(); > > __attribute__ ((visibility ("hidden"))) void UpdateCharSet(const nsAFlatCString& aCharSet); > > > > > > nsPresContextType mType; > nsIPresShell* mShell; > nsCOMPtr<nsIDocument> mDocument; > nsIDeviceContext* mDeviceContext; > > > > > nsIEventStateManager* mEventManager; > nsILookAndFeel* mLookAndFeel; > nsIAtom* mMedium; > > > nsILinkHandler* mLinkHandler; > nsIAtom* mLangGroup; > > nsInterfaceHashtable<nsVoidPtrHashKey, nsImageLoader> mImageLoaders; > nsWeakPtr mContainer; > > float mTextZoom; > float mFullZoom; > > PRInt32 mCurAppUnitsPerDevPixel; > PRInt32 mAutoQualityMinFontSizePixelsPref; > > > nsBidiPresUtils* mBidiUtils; > > > nsCOMPtr<nsITheme> mTheme; > nsCOMPtr<nsILanguageAtomService> mLangService; > nsCOMPtr<nsIPrintSettings> mPrintSettings; > nsCOMPtr<nsITimer> mPrefChangedTimer; > > nsPropertyTable mPropertyTable; > > nsLanguageSpecificTransformType mLanguageSpecificTransformType; > PRInt32 mFontScaler; > nscoord mMinimumFontSize; > > nsRect mVisibleArea; > nsSize mPageSize; > float mPageScale; > float mPPScale; > > nscolor mDefaultColor; > nscolor mBackgroundColor; > > nscolor mLinkColor; > nscolor mActiveLinkColor; > nscolor mVisitedLinkColor; > > nscolor mFocusBackgroundColor; > nscolor mFocusTextColor; > > ScrollbarStyles mViewportStyleOverflow; > PRUint8 mFocusRingWidth; > > PRUint16 mImageAnimationMode; > PRUint16 mImageAnimationModePref; > > nsFont mDefaultVariableFont; > nsFont mDefaultFixedFont; > nsFont mDefaultSerifFont; > nsFont mDefaultSansSerifFont; > nsFont mDefaultMonospaceFont; > nsFont mDefaultCursiveFont; > nsFont mDefaultFantasyFont; > > nscoord mBorderWidthTable[3]; > > unsigned mUseDocumentFonts : 1; > unsigned mUseDocumentColors : 1; > unsigned mUnderlineLinks : 1; > unsigned mUseFocusColors : 1; > unsigned mFocusRingOnAnything : 1; > unsigned mDrawImageBackground : 1; > unsigned mDrawColorBackground : 1; > unsigned mNeverAnimate : 1; > unsigned mIsRenderingOnlySelection : 1; > unsigned mNoTheme : 1; > unsigned mPaginated : 1; > unsigned mCanPaginatedScroll : 1; > unsigned mDoScaledTwips : 1; > unsigned mEnableJapaneseTransform : 1; > unsigned mIsRootPaginatedDocument : 1; > unsigned mPrefBidiDirection : 1; > unsigned mPrefScrollbarSide : 2; > unsigned mPendingSysColorChanged : 1; > unsigned mPendingThemeChanged : 1; > unsigned mPrefChangePendingNeedsReflow : 1; > unsigned mRenderedPositionVaryingContent : 1; > > > > unsigned mSupressResizeReflow : 1; > > > unsigned mIsVisual : 1; > unsigned mIsBidiSystem : 1; > > > > > > > >protected: > > ~nsPresContext() __attribute__ ((visibility ("hidden"))); > > > enum { > eDefaultFont_Variable, > eDefaultFont_Fixed, > eDefaultFont_Serif, > eDefaultFont_SansSerif, > eDefaultFont_Monospace, > eDefaultFont_Cursive, > eDefaultFont_Fantasy, > eDefaultFont_COUNT > }; ># 914 "../../../dist/include/layout/nsPresContext.h" >}; ># 51 "../../../dist/include/layout/nsIStyleRuleProcessor.h" 2 ># 1 "../../../dist/include/webshell/nsILinkHandler.h" 1 ># 40 "../../../dist/include/webshell/nsILinkHandler.h" ># 1 "../../../dist/include/xpcom/nsISupports.h" 1 ># 41 "../../../dist/include/webshell/nsILinkHandler.h" 2 > >class nsIInputStream; >class nsIDocShell; >class nsIRequest; >class nsIContent; >class nsString; >class nsGUIEvent; > > > > > >enum nsLinkState { > eLinkState_Unknown = 0, > eLinkState_Unvisited = 1, > eLinkState_Visited = 2, > eLinkState_NotLink = 3 >}; > > > > >class nsILinkHandler : public nsISupports { >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 77 "../../../dist/include/webshell/nsILinkHandler.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnLinkClick(nsIContent* aContent, > nsIURI* aURI, > const PRUnichar* aTargetSpec, > nsIInputStream* aPostDataStream = 0, > nsIInputStream* aHeadersDataStream = 0) = 0; ># 98 "../../../dist/include/webshell/nsILinkHandler.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnLinkClickSync(nsIContent* aContent, > nsIURI* aURI, > const PRUnichar* aTargetSpec, > nsIInputStream* aPostDataStream = 0, > nsIInputStream* aHeadersDataStream = 0, > nsIDocShell** aDocShell = 0, > nsIRequest** aRequest = 0) = 0; ># 114 "../../../dist/include/webshell/nsILinkHandler.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnOverLink(nsIContent* aContent, > nsIURI* aURLSpec, > const PRUnichar* aTargetSpec) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnLeaveLink() = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLinkState(nsIURI* aLinkURI, nsLinkState& aState) = 0; >}; > >template <class Dummy> const nsIID nsILinkHandler::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x514bc565, 0x8d38, 0x4dde,{0xb4, 0xeb, 0xe7, 0xb5, 0x01, 0x2b, 0xf4, 0x64}}; ># 52 "../../../dist/include/layout/nsIStyleRuleProcessor.h" 2 ># 1 "../../../dist/include/string/nsString.h" 1 ># 53 "../../../dist/include/layout/nsIStyleRuleProcessor.h" 2 > > >class nsIStyleSheet; >class nsPresContext; >class nsIContent; >class nsIAtom; >class nsICSSPseudoComparator; >class nsRuleWalker; >class nsAttrValue; > > > > >struct RuleProcessorData { > RuleProcessorData(nsPresContext* aPresContext, > nsIContent* aContent, > nsRuleWalker* aRuleWalker, > nsCompatibility* aCompat = 0); > > > ~RuleProcessorData(); > > void* operator new(size_t sz, nsPresContext* aContext) throw() { > return aContext->AllocateFromShell(sz); > } > void Destroy(nsPresContext* aContext) { > this->~RuleProcessorData(); > aContext->FreeToShell(sizeof(RuleProcessorData), this); > } > > const nsString* GetLang(); > > nsPresContext* mPresContext; > nsIContent* mContent; > nsIContent* mParentContent; > nsRuleWalker* mRuleWalker; > nsIContent* mScopedRoot; > > nsIAtom* mContentTag; > nsIAtom* mContentID; > PRPackedBool mIsHTMLContent; > PRPackedBool mIsLink; > PRPackedBool mHasAttributes; > nsCompatibility mCompatMode; > nsLinkState mLinkState; > PRInt32 mEventState; > PRInt32 mNameSpaceID; > const nsAttrValue* mClasses; > > > > RuleProcessorData* mPreviousSiblingData; > RuleProcessorData* mParentData; > >protected: > nsAutoString *mLanguage; >}; > >struct ElementRuleProcessorData : public RuleProcessorData { > ElementRuleProcessorData(nsPresContext* aPresContext, > nsIContent* aContent, > nsRuleWalker* aRuleWalker) > : RuleProcessorData(aPresContext,aContent,aRuleWalker) > { > do { } while (0); > do { } while (0); > } >}; > >struct PseudoRuleProcessorData : public RuleProcessorData { > PseudoRuleProcessorData(nsPresContext* aPresContext, > nsIContent* aParentContent, > nsIAtom* aPseudoTag, > nsICSSPseudoComparator* aComparator, > nsRuleWalker* aRuleWalker) > : RuleProcessorData(aPresContext, aParentContent, aRuleWalker) > { > do { } while (0); > do { } while (0); > mPseudoTag = aPseudoTag; > mComparator = aComparator; > } > > nsIAtom* mPseudoTag; > nsICSSPseudoComparator* mComparator; >}; > >struct StateRuleProcessorData : public RuleProcessorData { > StateRuleProcessorData(nsPresContext* aPresContext, > nsIContent* aContent, > PRInt32 aStateMask) > : RuleProcessorData(aPresContext, aContent, 0), > mStateMask(aStateMask) > { > do { } while (0); > } > const PRInt32 mStateMask; > >}; > >struct AttributeRuleProcessorData : public RuleProcessorData { > AttributeRuleProcessorData(nsPresContext* aPresContext, > nsIContent* aContent, > nsIAtom* aAttribute, > PRInt32 aModType, > PRUint32 aStateMask) > : RuleProcessorData(aPresContext, aContent, 0), > mAttribute(aAttribute), > mModType(aModType), > mStateMask(aStateMask) > { > do { } while (0); > } > nsIAtom* mAttribute; > PRInt32 mModType; > PRUint32 mStateMask; >}; ># 184 "../../../dist/include/layout/nsIStyleRuleProcessor.h" >class nsIStyleRuleProcessor : public nsISupports { >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > typedef PRBool (* EnumFunc)(nsIStyleRuleProcessor*, void*); > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RulesMatching(ElementRuleProcessorData* aData) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RulesMatching(PseudoRuleProcessorData* aData) = 0; ># 214 "../../../dist/include/layout/nsIStyleRuleProcessor.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HasStateDependentStyle(StateRuleProcessorData* aData, > nsReStyleHint* aResult) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HasAttributeDependentStyle(AttributeRuleProcessorData* aData, > nsReStyleHint* aResult) = 0; >}; > >template <class Dummy> const nsIID nsIStyleRuleProcessor::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x015575fe, 0x7b6c, 0x11d3, {0xba, 0x05, 0x00, 0x10, 0x83, 0x02, 0x3c, 0x2b}}; ># 46 "../../../dist/include/content/nsXBLBinding.h" 2 ># 1 "../../../dist/include/xpcom/nsClassHashtable.h" 1 ># 53 "../../../dist/include/xpcom/nsClassHashtable.h" >template<class KeyClass,class T> >class nsClassHashtable : > public nsBaseHashtable< KeyClass, nsAutoPtr<T>, T* > >{ >public: > typedef typename KeyClass::KeyType KeyType; > typedef T* UserDataType; > > > > > > PRBool Get(KeyType aKey, UserDataType* pData) const; >}; ># 76 "../../../dist/include/xpcom/nsClassHashtable.h" >template<class KeyClass,class T> >class nsClassHashtableMT : > public nsBaseHashtableMT< KeyClass, nsAutoPtr<T>, T* > >{ >public: > typedef typename KeyClass::KeyType KeyType; > typedef T* UserDataType; > > > > > > PRBool Get(KeyType aKey, UserDataType* pData) const; >}; > > > > > > >template<class KeyClass,class T> >PRBool >nsClassHashtable<KeyClass,T>::Get(KeyType aKey, T** retVal) const >{ > typename nsBaseHashtable<KeyClass,nsAutoPtr<T>,T*>::EntryType* ent = > GetEntry(aKey); > > if (ent) > { > if (retVal) > *retVal = ent->mData; > > return 1; > } > > if (retVal) > *retVal = 0; > > return 0; >} > > > > > > >template<class KeyClass,class T> >PRBool >nsClassHashtableMT<KeyClass,T>::Get(KeyType aKey, T** retVal) const >{ > PR_Lock(this->mLock); > > typename nsBaseHashtableMT<KeyClass,nsAutoPtr<T>,T*>::EntryType* ent = > GetEntry(aKey); > > if (ent) > { > if (retVal) > *retVal = ent->mData; > > PR_Unlock(this->mLock); > > return 1; > } > > if (retVal) > *retVal = 0; > > PR_Unlock(this->mLock); > > return 0; >} ># 47 "../../../dist/include/content/nsXBLBinding.h" 2 > > > >class nsXBLPrototypeBinding; >class nsIContent; >class nsIAtom; >class nsIDocument; >class nsIScriptContext; >class nsObjectHashtable; >class nsXBLInsertionPoint; >typedef nsTArray<nsRefPtr<nsXBLInsertionPoint> > nsInsertionPointList; >struct JSContext; >struct JSObject; > > > > >class nsXBLBinding >{ >public: > nsXBLBinding(nsXBLPrototypeBinding* aProtoBinding); > ~nsXBLBinding(); ># 80 "../../../dist/include/content/nsXBLBinding.h" > nsrefcnt AddRef() > { > ++mRefCnt; > ; > return mRefCnt; > } > > nsrefcnt Release() > { > --mRefCnt; > ; > if (mRefCnt == 0) { > mRefCnt = 1; > delete this; > return 0; > } > return mRefCnt; > } > > class cycleCollection : public nsCycleCollectionParticipant { public: virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RootAndUnlinkJSObjects(void *n); virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Unlink(void *n); virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Unroot(void *n); virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Traverse(void *n, nsCycleCollectionTraversalCallback &cb); }; static cycleCollection _cycleCollectorGlobal; > > nsXBLPrototypeBinding* PrototypeBinding() { return mPrototypeBinding; } > nsIContent* GetAnonymousContent() { return mContent.get(); } > > nsXBLBinding* GetBaseBinding() { return mNextBinding; } > void SetBaseBinding(nsXBLBinding *aBinding); > > nsIContent* GetBoundElement() { return mBoundElement; } > void SetBoundElement(nsIContent *aElement); > > PRBool IsStyleBinding() const { return mIsStyleBinding; } > void SetIsStyleBinding(PRBool aIsStyle) { mIsStyleBinding = aIsStyle; } > > void MarkForDeath(); > PRBool MarkedForDeath() const { return mMarkedForDeath; } > > PRBool HasStyleSheets() const; > PRBool InheritsStyle() const; > PRBool ImplementsInterface(const nsIID& aIID) const; > PRBool ShouldBuildChildFrames() const; > > void GenerateAnonymousContent(); > void InstallAnonymousContent(nsIContent* aAnonParent, nsIContent* aElement); > void InstallEventHandlers(); > nsresult InstallImplementation(); > > void ExecuteAttachedHandler(); > void ExecuteDetachedHandler(); > void UnhookEventHandlers(); > > nsIAtom* GetBaseTag(PRInt32* aNameSpaceID); > nsXBLBinding* RootBinding(); > nsXBLBinding* GetFirstStyleBinding(); > > > > PRBool ResolveAllFields(JSContext *cx, JSObject *obj) const; > > > > nsresult GetInsertionPointsFor(nsIContent* aParent, > nsInsertionPointList** aResult); > > nsInsertionPointList* GetExistingInsertionPointsFor(nsIContent* aParent); > > nsIContent* GetInsertionPoint(nsIContent* aChild, PRUint32* aIndex); > > nsIContent* GetSingleInsertionPoint(PRUint32* aIndex, > PRBool* aMultipleInsertionPoints); > > void AttributeChanged(nsIAtom* aAttribute, PRInt32 aNameSpaceID, > PRBool aRemoveFlag, PRBool aNotify); > > void ChangeDocument(nsIDocument* aOldDocument, nsIDocument* aNewDocument); > > void WalkRules(nsIStyleRuleProcessor::EnumFunc aFunc, void* aData); > > already_AddRefed<nsIDOMNodeList> GetAnonymousNodes(); > > static nsresult DoInitJSClass(JSContext *cx, JSObject *global, JSObject *obj, > const nsAFlatCString& aClassName, > nsXBLPrototypeBinding* aProtoBinding, > void **aClassObject); > > PRBool AllowScripts(); > > void RemoveInsertionParent(nsIContent* aParent); > PRBool HasInsertionParent(nsIContent* aParent); > > >protected: > > nsAutoRefCnt mRefCnt; > nsXBLPrototypeBinding* mPrototypeBinding; > nsCOMPtr<nsIContent> mContent; > nsRefPtr<nsXBLBinding> mNextBinding; > > nsIContent* mBoundElement; > > > nsClassHashtable<nsISupportsHashKey, nsInsertionPointList>* mInsertionPointTable; > > PRPackedBool mIsStyleBinding; > PRPackedBool mMarkedForDeath; >}; ># 50 "../../../dist/include/content/nsBindingManager.h" 2 > > >class nsIContent; >class nsIXPConnectWrappedJS; >class nsIAtom; >class nsIDOMNodeList; >class nsIDocument; >class nsIURI; >class nsIXBLDocumentInfo; >class nsIStreamListener; >class nsStyleSet; >class nsXBLBinding; >template<class E> class nsRefPtr; >typedef nsTArray<nsRefPtr<nsXBLBinding> > nsBindingList; >template<class T> class nsRunnableMethod; >class nsIPrincipal; > >class nsBindingManager : public nsStubMutationObserver >{ >public: > public: virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) QueryInterface(const nsIID& aIID, void** aInstancePtr); virtual __attribute__ ((visibility ("hidden"))) nsrefcnt __attribute__ ((regparm (0), cdecl)) AddRef(void); virtual __attribute__ ((visibility ("hidden"))) nsrefcnt __attribute__ ((regparm (0), cdecl)) Release(void); void UnmarkPurple() { mRefCnt.unmarkPurple(); } protected: nsCycleCollectingAutoRefCnt mRefCnt; public: > > virtual void ContentAppended(nsIDocument* aDocument, nsIContent* aContainer, PRInt32 aNewIndexInContainer); > virtual void ContentInserted(nsIDocument* aDocument, nsIContent* aContainer, nsIContent* aChild, PRInt32 aIndexInContainer); > virtual void ContentRemoved(nsIDocument* aDocument, nsIContent* aContainer, nsIContent* aChild, PRInt32 aIndexInContainer); > > nsBindingManager(nsIDocument* aDocument); > ~nsBindingManager(); > > nsXBLBinding* GetBinding(nsIContent* aContent); > nsresult SetBinding(nsIContent* aContent, nsXBLBinding* aBinding); > > nsIContent* GetInsertionParent(nsIContent* aContent); > nsresult SetInsertionParent(nsIContent* aContent, nsIContent* aResult); ># 100 "../../../dist/include/content/nsBindingManager.h" > nsresult ChangeDocumentFor(nsIContent* aContent, nsIDocument* aOldDocument, > nsIDocument* aNewDocument); > > nsIAtom* ResolveTag(nsIContent* aContent, PRInt32* aNameSpaceID); > > > > > > nsresult GetContentListFor(nsIContent* aContent, nsIDOMNodeList** aResult); > > > > > > nsresult SetContentListFor(nsIContent* aContent, > nsInsertionPointList* aList); > > > > > > PRBool HasContentListFor(nsIContent* aContent); > > > > > nsresult GetAnonymousNodesFor(nsIContent* aContent, nsIDOMNodeList** aResult); > > > > > > nsresult SetAnonymousNodesFor(nsIContent* aContent, > nsInsertionPointList* aList); > > > > > > > > nsresult GetXBLChildNodesFor(nsIContent* aContent, nsIDOMNodeList** aResult); > > > > > > > > nsIContent* GetInsertionPoint(nsIContent* aParent, > nsIContent* aChild, PRUint32* aIndex); > > > > > > > nsIContent* GetSingleInsertionPoint(nsIContent* aParent, PRUint32* aIndex, > PRBool* aMultipleInsertionPoints); > > nsresult AddLayeredBinding(nsIContent* aContent, nsIURI* aURL, > nsIPrincipal* aOriginPrincipal); > nsresult RemoveLayeredBinding(nsIContent* aContent, nsIURI* aURL); > nsresult LoadBindingDocument(nsIDocument* aBoundDoc, nsIURI* aURL, > nsIPrincipal* aOriginPrincipal); > > nsresult AddToAttachedQueue(nsXBLBinding* aBinding); > void ProcessAttachedQueue(PRUint32 aSkipSize = 0); > > void ExecuteDetachedHandlers(); > > nsresult PutXBLDocumentInfo(nsIXBLDocumentInfo* aDocumentInfo); > nsIXBLDocumentInfo* GetXBLDocumentInfo(nsIURI* aURI); > void RemoveXBLDocumentInfo(nsIXBLDocumentInfo* aDocumentInfo); > > nsresult PutLoadingDocListener(nsIURI* aURL, nsIStreamListener* aListener); > nsIStreamListener* GetLoadingDocListener(nsIURI* aURL); > void RemoveLoadingDocListener(nsIURI* aURL); > > void FlushSkinBindings(); > > nsresult GetBindingImplementation(nsIContent* aContent, const nsIID& aIID, void** aResult); > > PRBool ShouldBuildChildFrames(nsIContent* aContent); > > > nsresult WalkRules(nsStyleSet* aStyleSet, > nsIStyleRuleProcessor::EnumFunc aFunc, > RuleProcessorData* aData, > PRBool* aCutOffInheritance); > > __attribute__ ((visibility ("hidden"))) void Traverse(nsIContent *aContent, > nsCycleCollectionTraversalCallback &cb); > > class cycleCollection : public nsXPCOMCycleCollectionParticipant { public: virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Traverse(void *p, nsCycleCollectionTraversalCallback &cb); virtual __attribute__ ((visibility ("hidden"))) void __attribute__ ((regparm (0), cdecl)) UnmarkPurple(nsISupports *s) { Downcast(s)->UnmarkPurple(); } static nsBindingManager* Downcast(nsISupports* s) { return static_cast<nsBindingManager*>(static_cast<nsBindingManager*>(s)); } static nsISupports* Upcast(nsBindingManager *p) { return static_cast<nsISupports*>(static_cast<nsBindingManager*>(p)); } virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Unlink(void *p); }; static cycleCollection _cycleCollectorGlobal; > > > > void BeginOutermostUpdate(); > void EndOutermostUpdate(); > > > void DropDocumentReference(); > >protected: > nsIXPConnectWrappedJS* GetWrappedJS(nsIContent* aContent); > nsresult SetWrappedJS(nsIContent* aContent, nsIXPConnectWrappedJS* aResult); > > nsresult GetXBLChildNodesInternal(nsIContent* aContent, > nsIDOMNodeList** aResult, > PRBool* aIsAnonymousContentList); > nsresult GetAnonymousNodesInternal(nsIContent* aContent, > nsIDOMNodeList** aResult, > PRBool* aIsAnonymousContentList); > > nsIContent* GetNestedInsertionPoint(nsIContent* aParent, nsIContent* aChild); > nsIContent* GetNestedSingleInsertionPoint(nsIContent* aParent, > PRBool* aMultipleInsertionPoints); > > > > > > void HandleChildInsertion(nsIContent* aContainer, nsIContent* aChild, > PRUint32 aIndexInContainer, PRBool aAppend); > > > > void DoProcessAttachedQueue(); > > > void PostProcessAttachedQueueEvent(); > > >protected: > void RemoveInsertionParent(nsIContent* aParent); > > > nsRefPtrHashtable<nsISupportsHashKey,nsXBLBinding> mBindingTable; > > > > > > > > PLDHashTable mContentListTable; ># 259 "../../../dist/include/content/nsBindingManager.h" > PLDHashTable mAnonymousNodesTable; > > > > > PLDHashTable mInsertionParentTable; ># 273 "../../../dist/include/content/nsBindingManager.h" > PLDHashTable mWrapperTable; > > > > > nsInterfaceHashtable<nsURIHashKey,nsIXBLDocumentInfo> mDocumentTable; > > > > > nsInterfaceHashtable<nsURIHashKey,nsIStreamListener> mLoadingDocTable; > > > nsBindingList mAttachedStack; > PRPackedBool mProcessingAttachedStack; > PRPackedBool mDestroyed; > PRUint32 mAttachedStackSizeOnOutermost; > > > friend class nsRunnableMethod<nsBindingManager>; > nsCOMPtr<nsIRunnable> mProcessAttachedQueueEvent; > > > nsIDocument* mDocument; >}; ># 126 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/necko/nsIURI.h" 1 ># 127 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/necko/nsIURL.h" 1 ># 42 "../../../dist/include/necko/nsIURL.h" >class nsIURL : public nsIURI { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 58 "../../../dist/include/necko/nsIURL.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFilePath(nsACString_internal & aFilePath) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFilePath(const nsACString_internal & aFilePath) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetParam(nsACString_internal & aParam) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetParam(const nsACString_internal & aParam) = 0; ># 77 "../../../dist/include/necko/nsIURL.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetQuery(nsACString_internal & aQuery) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetQuery(const nsACString_internal & aQuery) = 0; ># 87 "../../../dist/include/necko/nsIURL.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRef(nsACString_internal & aRef) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetRef(const nsACString_internal & aRef) = 0; ># 106 "../../../dist/include/necko/nsIURL.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDirectory(nsACString_internal & aDirectory) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetDirectory(const nsACString_internal & aDirectory) = 0; ># 119 "../../../dist/include/necko/nsIURL.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFileName(nsACString_internal & aFileName) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFileName(const nsACString_internal & aFileName) = 0; ># 131 "../../../dist/include/necko/nsIURL.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFileBaseName(nsACString_internal & aFileBaseName) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFileBaseName(const nsACString_internal & aFileBaseName) = 0; ># 141 "../../../dist/include/necko/nsIURL.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFileExtension(nsACString_internal & aFileExtension) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFileExtension(const nsACString_internal & aFileExtension) = 0; ># 166 "../../../dist/include/necko/nsIURL.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString_internal & _retval) = 0; ># 175 "../../../dist/include/necko/nsIURL.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRelativeSpec(nsIURI *aURIToCompare, nsACString_internal & _retval) = 0; > >}; > > template <class Dummy> const nsIID nsIURL::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xd6116970, 0x8034, 0x11d3, { 0x93, 0x99, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40 }}; ># 128 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsXBLBinding.h" 1 ># 129 "nsContentUtils.cpp" 2 ># 1 "./../../xbl/src/nsXBLPrototypeBinding.h" 1 ># 42 "./../../xbl/src/nsXBLPrototypeBinding.h" ># 1 "../../../dist/include/xpcom/nsCOMPtr.h" 1 ># 43 "./../../xbl/src/nsXBLPrototypeBinding.h" 2 ># 1 "./../../xbl/src/nsXBLPrototypeResources.h" 1 ># 43 "./../../xbl/src/nsXBLPrototypeResources.h" ># 1 "../../../dist/include/layout/nsICSSLoaderObserver.h" 1 ># 49 "../../../dist/include/layout/nsICSSLoaderObserver.h" >class nsICSSStyleSheet; > >class nsICSSLoaderObserver : public nsISupports { >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 70 "../../../dist/include/layout/nsICSSLoaderObserver.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) StyleSheetLoaded(nsICSSStyleSheet* aSheet, PRBool aWasAlternate, > nsresult aStatus) = 0; >}; > >template <class Dummy> const nsIID nsICSSLoaderObserver::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0xf5e8eb0f, 0x4c44, 0x49d5, {0xb1, 0xe9, 0xab, 0x39, 0x23, 0x93, 0xc0, 0xf8} }; ># 44 "./../../xbl/src/nsXBLPrototypeResources.h" 2 ># 1 "../../../dist/include/layout/nsIStyleRuleProcessor.h" 1 ># 45 "./../../xbl/src/nsXBLPrototypeResources.h" 2 ># 1 "../../../dist/include/xpcom/nsCOMArray.h" 1 ># 46 "./../../xbl/src/nsXBLPrototypeResources.h" 2 > >class nsIContent; >class nsIAtom; >class nsIDocument; >class nsIScriptContext; >class nsSupportsHashtable; >class nsXBLResourceLoader; >class nsXBLPrototypeBinding; >class nsICSSStyleSheet; > > > > >class nsXBLPrototypeResources >{ >public: > void LoadResources(PRBool* aResult); > void AddResource(nsIAtom* aResourceType, const nsAString_internal& aSrc); > void AddResourceListener(nsIContent* aElement); > nsresult FlushSkinSheets(); > > nsXBLPrototypeResources(nsXBLPrototypeBinding* aBinding); > ~nsXBLPrototypeResources(); > > > nsXBLResourceLoader* mLoader; > nsCOMArray<nsICSSStyleSheet> mStyleSheetList; > > > nsCOMPtr<nsIStyleRuleProcessor> mRuleProcessor; >}; ># 44 "./../../xbl/src/nsXBLPrototypeBinding.h" 2 ># 1 "./../../xbl/src/nsXBLPrototypeHandler.h" 1 ># 42 "./../../xbl/src/nsXBLPrototypeHandler.h" ># 1 "../../../dist/include/xpcom/nsIAtom.h" 1 ># 43 "./../../xbl/src/nsXBLPrototypeHandler.h" 2 ># 1 "../../../dist/include/string/nsString.h" 1 ># 44 "./../../xbl/src/nsXBLPrototypeHandler.h" 2 > ># 1 "../../../dist/include/xuldoc/nsIController.h" 1 ># 25 "../../../dist/include/xuldoc/nsIController.h" >class nsIController : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsCommandEnabled(const char *command, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SupportsCommand(const char *command, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DoCommand(const char *command) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) OnEvent(const char *eventName) = 0; > >}; > > template <class Dummy> const nsIID nsIController::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xd5b61b82, 0x1da4, 0x11d3, { 0xbf, 0x87, 0x00, 0x10, 0x5a, 0x1b, 0x06, 0x27 }}; ># 126 "../../../dist/include/xuldoc/nsIController.h" >class nsICommandParams; ># 136 "../../../dist/include/xuldoc/nsIController.h" >class nsICommandController : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCommandStateWithParams(const char *command, nsICommandParams *aCommandParams) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DoCommandWithParams(const char *command, nsICommandParams *aCommandParams) = 0; > >}; > > template <class Dummy> const nsIID nsICommandController::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xebe55080, 0xc8a9, 0x11d5, { 0xa7, 0x3c, 0xdd, 0x62, 0x0d, 0x6e, 0x04, 0xbc }}; ># 213 "../../../dist/include/xuldoc/nsIController.h" >class nsISimpleEnumerator; ># 223 "../../../dist/include/xuldoc/nsIController.h" >class nsIControllerCommandGroup : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddCommandToGroup(const char *aCommand, const char *aGroup) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveCommandFromGroup(const char *aCommand, const char *aGroup) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsCommandInGroup(const char *aCommand, const char *aGroup, PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetGroupsEnumerator(nsISimpleEnumerator **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetEnumeratorForGroup(const char *aGroup, nsISimpleEnumerator **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIControllerCommandGroup::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x9f82c404, 0x1c7b, 0x11d5, { 0xa7, 0x3c, 0xec, 0xa4, 0x3c, 0xa8, 0x36, 0xfc }}; ># 46 "./../../xbl/src/nsXBLPrototypeHandler.h" 2 ># 1 "../../../dist/include/xpcom/nsAutoPtr.h" 1 ># 47 "./../../xbl/src/nsXBLPrototypeHandler.h" 2 ># 1 "./../../xbl/src/nsXBLEventHandler.h" 1 ># 43 "./../../xbl/src/nsXBLEventHandler.h" ># 1 "../../../dist/include/dom/nsIDOMEventListener.h" 1 ># 25 "../../../dist/include/dom/nsIDOMEventListener.h" >class nsIDOMEventListener : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 49 "../../../dist/include/dom/nsIDOMEventListener.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HandleEvent(nsIDOMEvent *event) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMEventListener::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xdf31c120, 0xded6, 0x11d1, { 0xbd, 0x85, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4 }}; ># 44 "./../../xbl/src/nsXBLEventHandler.h" 2 ># 1 "../../../dist/include/xpcom/nsVoidArray.h" 1 ># 45 "./../../xbl/src/nsXBLEventHandler.h" 2 > >class nsIAtom; >class nsIContent; >class nsIDOM3EventTarget; >class nsIDOMKeyEvent; >class nsPIDOMEventTarget; >class nsXBLPrototypeHandler; > >class nsXBLEventHandler : public nsIDOMEventListener >{ >public: > nsXBLEventHandler(nsXBLPrototypeHandler* aHandler); > virtual ~nsXBLEventHandler(); > > public: virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) QueryInterface(const nsIID& aIID, void** aInstancePtr); virtual __attribute__ ((visibility ("hidden"))) nsrefcnt __attribute__ ((regparm (0), cdecl)) AddRef(void); virtual __attribute__ ((visibility ("hidden"))) nsrefcnt __attribute__ ((regparm (0), cdecl)) Release(void); protected: nsAutoRefCnt mRefCnt; public: > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HandleEvent(nsIDOMEvent *event); > >protected: > nsXBLPrototypeHandler* mProtoHandler; > >private: > nsXBLEventHandler(); > virtual PRBool EventMatched(nsIDOMEvent* aEvent) > { > return 1; > } >}; > >class nsXBLMouseEventHandler : public nsXBLEventHandler >{ >public: > nsXBLMouseEventHandler(nsXBLPrototypeHandler* aHandler); > virtual ~nsXBLMouseEventHandler(); > >private: > PRBool EventMatched(nsIDOMEvent* aEvent); >}; > >class nsXBLKeyEventHandler : public nsIDOMEventListener >{ >public: > nsXBLKeyEventHandler(nsIAtom* aEventType, PRUint8 aPhase, PRUint8 aType); > virtual ~nsXBLKeyEventHandler(); > > public: virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) QueryInterface(const nsIID& aIID, void** aInstancePtr); virtual __attribute__ ((visibility ("hidden"))) nsrefcnt __attribute__ ((regparm (0), cdecl)) AddRef(void); virtual __attribute__ ((visibility ("hidden"))) nsrefcnt __attribute__ ((regparm (0), cdecl)) Release(void); protected: nsAutoRefCnt mRefCnt; public: > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HandleEvent(nsIDOMEvent *event); > > void AddProtoHandler(nsXBLPrototypeHandler* aProtoHandler) > { > mProtoHandlers.AppendElement(aProtoHandler); > } > > PRBool Matches(nsIAtom* aEventType, PRUint8 aPhase, PRUint8 aType) const > { > return (mEventType == aEventType && mPhase == aPhase && mType == aType); > } > > void GetEventName(nsAString_internal& aString) const > { > mEventType->ToString(aString); > } > > PRUint8 GetPhase() const > { > return mPhase; > } > > PRUint8 GetType() const > { > return mType; > } > > void SetIsBoundToChrome(PRBool aIsBoundToChrome) > { > mIsBoundToChrome = aIsBoundToChrome; > } >private: > nsXBLKeyEventHandler(); > PRBool ExecuteMatchedHandlers(nsIDOMKeyEvent* aEvent, PRUint32 aCharCode, > PRBool aIgnoreShiftKey); > > nsVoidArray mProtoHandlers; > nsCOMPtr<nsIAtom> mEventType; > PRUint8 mPhase; > PRUint8 mType; > PRPackedBool mIsBoundToChrome; >}; > >nsresult >NS_NewXBLEventHandler(nsXBLPrototypeHandler* aHandler, > nsIAtom* aEventType, > nsXBLEventHandler** aResult); > >nsresult >NS_NewXBLKeyEventHandler(nsIAtom* aEventType, PRUint8 aPhase, > PRUint8 aType, nsXBLKeyEventHandler** aResult); ># 48 "./../../xbl/src/nsXBLPrototypeHandler.h" 2 ># 1 "../../../dist/include/xpcom/nsIWeakReference.h" 1 ># 49 "./../../xbl/src/nsXBLPrototypeHandler.h" 2 ># 1 "../../../dist/include/dom/nsIScriptGlobalObject.h" 1 ># 50 "./../../xbl/src/nsXBLPrototypeHandler.h" 2 ># 1 "../../../dist/include/dom/nsDOMScriptObjectHolder.h" 1 ># 49 "../../../dist/include/dom/nsDOMScriptObjectHolder.h" >class nsScriptObjectHolder { >public: > > > nsScriptObjectHolder(nsIScriptContext *ctx, void *aObject = 0) : > mObject(aObject), mContext(ctx) { > do { } while (0); > } > > > nsScriptObjectHolder(const nsScriptObjectHolder& other) : > mObject(other.mObject), > mContext(other.mContext) > { > > if (mObject) > mContext->HoldScriptObject(mObject); > } > > ~nsScriptObjectHolder() { > if (mObject) > mContext->DropScriptObject(mObject); > } > > > nsScriptObjectHolder &operator=(const nsScriptObjectHolder &other) { > set(other); > return *this; > } > PRBool operator!() const { > return !mObject; > } > operator void *() const { > return mObject; > } > > > nsresult drop() { > nsresult rv = 0; > if (mObject) { > rv = mContext->DropScriptObject(mObject); > mObject = 0; > } > return rv; > } > nsresult set(void *object) { > do { } while (0); > > nsresult rv = drop(); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > return rv; > if (object) { > rv = mContext->HoldScriptObject(object); > > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > mObject = object; > } > } > return rv; > } > nsresult set(const nsScriptObjectHolder &other) { > do { } while (0); > > nsresult rv = drop(); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > return rv; > return set(other.mObject); > } > > PRUint32 getScriptTypeID() const { > return mContext->GetScriptTypeID(); > } >protected: > void *mObject; > nsCOMPtr<nsIScriptContext> mContext; >}; ># 51 "./../../xbl/src/nsXBLPrototypeHandler.h" 2 ># 1 "../../../dist/include/xpcom/nsCycleCollectionParticipant.h" 1 ># 52 "./../../xbl/src/nsXBLPrototypeHandler.h" 2 > >class nsIDOMEvent; >class nsIContent; >class nsIDOMUIEvent; >class nsIDOMKeyEvent; >class nsIDOMMouseEvent; >class nsPIDOMEventTarget; >class nsIDOM3EventTarget; >class nsXBLPrototypeBinding; ># 75 "./../../xbl/src/nsXBLPrototypeHandler.h" >class nsXBLPrototypeHandler >{ >public: > > nsXBLPrototypeHandler(const PRUnichar* aEvent, const PRUnichar* aPhase, > const PRUnichar* aAction, const PRUnichar* aCommand, > const PRUnichar* aKeyCode, const PRUnichar* aCharCode, > const PRUnichar* aModifiers, const PRUnichar* aButton, > const PRUnichar* aClickCount, const PRUnichar* aGroup, > const PRUnichar* aPreventDefault, > const PRUnichar* aAllowUntrusted, > nsXBLPrototypeBinding* aBinding, > PRUint32 aLineNumber); > > > nsXBLPrototypeHandler(nsIContent* aKeyElement); > > ~nsXBLPrototypeHandler(); > > > PRBool KeyEventMatched(nsIDOMKeyEvent* aKeyEvent, > PRUint32 aCharCode = 0, > PRBool aIgnoreShiftKey = 0); > inline PRBool KeyEventMatched(nsIAtom* aEventType, > nsIDOMKeyEvent* aEvent, > PRUint32 aCharCode = 0, > PRBool aIgnoreShiftKey = 0) > { > if (aEventType != mEventName) > return 0; > > return KeyEventMatched(aEvent, aCharCode, aIgnoreShiftKey); > } > > PRBool MouseEventMatched(nsIDOMMouseEvent* aMouseEvent); > inline PRBool MouseEventMatched(nsIAtom* aEventType, > nsIDOMMouseEvent* aEvent) > { > if (aEventType != mEventName) > return 0; > > return MouseEventMatched(aEvent); > } > > already_AddRefed<nsIContent> GetHandlerElement(); > > void AppendHandlerText(const nsAString_internal& aText); > > PRUint8 GetPhase() { return mPhase; } > PRUint8 GetType() { return mType; } > > nsXBLPrototypeHandler* GetNextHandler() { return mNextHandler; } > void SetNextHandler(nsXBLPrototypeHandler* aHandler) { mNextHandler = aHandler; } > > nsresult ExecuteHandler(nsPIDOMEventTarget* aTarget, nsIDOMEvent* aEvent); > > already_AddRefed<nsIAtom> GetEventName(); > void SetEventName(nsIAtom* aName) { mEventName = aName; } > > nsXBLEventHandler* GetEventHandler() > { > if (!mHandler) { > NS_NewXBLEventHandler(this, mEventName, getter_AddRefs(mHandler)); > > } > > return mHandler; > } > > nsXBLEventHandler* GetCachedEventHandler() > { > return mHandler; > } > > PRBool HasAllowUntrustedAttr() > { > return (mType & (1 << 4)) != 0; > } > > > > PRBool AllowUntrustedEvents() > { > return (mType & (1 << 5)) != 0; > } > >public: > static PRUint32 gRefCnt; > >protected: > already_AddRefed<nsIController> GetController(nsPIDOMEventTarget* aTarget); > > inline PRInt32 GetMatchingKeyCode(const nsAString_internal& aKeyName); > void ConstructPrototype(nsIContent* aKeyElement, > const PRUnichar* aEvent=0, const PRUnichar* aPhase=0, > const PRUnichar* aAction=0, const PRUnichar* aCommand=0, > const PRUnichar* aKeyCode=0, const PRUnichar* aCharCode=0, > const PRUnichar* aModifiers=0, const PRUnichar* aButton=0, > const PRUnichar* aClickCount=0, const PRUnichar* aGroup=0, > const PRUnichar* aPreventDefault=0, > const PRUnichar* aAllowUntrusted=0); > > void ReportKeyConflict(const PRUnichar* aKey, const PRUnichar* aModifiers, nsIContent* aElement, const char *aMessageName); > void GetEventType(nsAString_internal& type); > PRBool ModifiersMatchMask(nsIDOMUIEvent* aEvent, > PRBool aIgnoreShiftKey = 0); > nsresult DispatchXBLCommand(nsPIDOMEventTarget* aTarget, nsIDOMEvent* aEvent); > nsresult DispatchXULKeyCommand(nsIDOMEvent* aEvent); > nsresult EnsureEventHandler(nsIScriptGlobalObject* aGlobal, > nsIScriptContext *aBoundContext, nsIAtom *aName, > nsScriptObjectHolder &aHandler); > static PRInt32 KeyToMask(PRInt32 key); > > static PRInt32 kAccelKey; > static PRInt32 kMenuAccessKey; > static void InitAccessKeys(); > > static const PRInt32 cShift; > static const PRInt32 cAlt; > static const PRInt32 cControl; > static const PRInt32 cMeta; > > static const PRInt32 cShiftMask; > static const PRInt32 cAltMask; > static const PRInt32 cControlMask; > static const PRInt32 cMetaMask; > > static const PRInt32 cAllModifiers; > >protected: > union { > nsIWeakReference* mHandlerElement; > PRUnichar* mHandlerText; > > > > }; > > PRUint32 mLineNumber; > > > PRUint8 mPhase; > PRUint8 mKeyMask; > > PRUint8 mType; > > > > PRUint8 mMisc; > > > > > PRInt32 mDetail; > > > > nsXBLPrototypeHandler* mNextHandler; > nsCOMPtr<nsIAtom> mEventName; > nsRefPtr<nsXBLEventHandler> mHandler; > nsXBLPrototypeBinding* mPrototypeBinding; >}; ># 45 "./../../xbl/src/nsXBLPrototypeBinding.h" 2 ># 1 "./../../xbl/src/nsXBLProtoImplMethod.h" 1 ># 44 "./../../xbl/src/nsXBLProtoImplMethod.h" ># 1 "../../../dist/include/js/jsapi.h" 1 ># 45 "./../../xbl/src/nsXBLProtoImplMethod.h" 2 ># 1 "../../../dist/include/content/nsIContent.h" 1 ># 46 "./../../xbl/src/nsXBLProtoImplMethod.h" 2 > ># 1 "./../../xbl/src/nsXBLProtoImplMember.h" 1 ># 47 "./../../xbl/src/nsXBLProtoImplMember.h" ># 1 "../../../dist/include/xpconnect/nsIJSRuntimeService.h" 1 ># 48 "./../../xbl/src/nsXBLProtoImplMember.h" 2 ># 1 "../../../dist/include/xpcom/nsIServiceManager.h" 1 ># 49 "./../../xbl/src/nsXBLProtoImplMember.h" 2 ># 1 "../../../dist/include/string/nsReadableUtils.h" 1 ># 50 "./../../xbl/src/nsXBLProtoImplMember.h" 2 > > >class nsIScriptContext; >struct JSRuntime; >class nsIJSRuntimeService; > >struct nsXBLTextWithLineNumber >{ > PRUnichar* mText; > PRUint32 mLineNumber; > > nsXBLTextWithLineNumber() : > mText(0), > mLineNumber(0) > { > ; > } > > ~nsXBLTextWithLineNumber() { > ; > if (mText) { > nsMemory::Free(mText); > } > } > > void AppendText(const nsAString_internal& aText) { > if (mText) { > PRUnichar* temp = mText; > mText = ToNewUnicode(nsDependentString(temp) + aText); > nsMemory::Free(temp); > } else { > mText = ToNewUnicode(aText); > } > } > > PRUnichar* GetText() { > return mText; > } > > void SetLineNumber(PRUint32 aLineNumber) { > mLineNumber = aLineNumber; > } > > PRUint32 GetLineNumber() { > return mLineNumber; > } >}; > >class nsXBLProtoImplMember >{ >public: > nsXBLProtoImplMember(const PRUnichar* aName) :mNext(0) { mName = ToNewUnicode(nsDependentString(aName)); } > virtual ~nsXBLProtoImplMember() { nsMemory::Free(mName); delete mNext; } > > nsXBLProtoImplMember* GetNext() { return mNext; } > void SetNext(nsXBLProtoImplMember* aNext) { mNext = aNext; } > > virtual nsresult InstallMember(nsIScriptContext* aContext, > nsIContent* aBoundElement, > void* aScriptObject, > void* aTargetClassObject, > const nsCString& aClassStr) = 0; > virtual nsresult CompileMember(nsIScriptContext* aContext, > const nsCString& aClassStr, > void* aClassObject)=0; > > virtual void Trace(TraceCallback aCallback, void *aClosure) const = 0; > >protected: > friend class nsAutoGCRoot; > > nsXBLProtoImplMember* mNext; > PRUnichar* mName; >}; ># 48 "./../../xbl/src/nsXBLProtoImplMethod.h" 2 > >struct nsXBLParameter { > nsXBLParameter* mNext; > char* mName; > > nsXBLParameter(const nsAString_internal& aName) { > ; > mName = ToNewCString(aName); > mNext = 0; > } > > ~nsXBLParameter() { > ; > nsMemory::Free(mName); > delete mNext; > } >}; > >struct nsXBLUncompiledMethod { > nsXBLParameter* mParameters; > nsXBLParameter* mLastParameter; > nsXBLTextWithLineNumber mBodyText; > > nsXBLUncompiledMethod() : > mParameters(0), > mLastParameter(0), > mBodyText() > { > ; > } > > ~nsXBLUncompiledMethod() { > ; > delete mParameters; > } > > PRInt32 GetParameterCount() { > PRInt32 result = 0; > for (nsXBLParameter* curr = mParameters; curr; curr=curr->mNext) > result++; > return result; > } > > void AppendBodyText(const nsAString_internal& aText) { > mBodyText.AppendText(aText); > } > > void AddParameter(const nsAString_internal& aText) { > nsXBLParameter* param = new nsXBLParameter(aText); > if (!param) > return; > if (!mParameters) > mParameters = param; > else > mLastParameter->mNext = param; > mLastParameter = param; > } > > void SetLineNumber(PRUint32 aLineNumber) { > mBodyText.SetLineNumber(aLineNumber); > } >}; > >class nsXBLProtoImplMethod: public nsXBLProtoImplMember >{ >public: > nsXBLProtoImplMethod(const PRUnichar* aName); > virtual ~nsXBLProtoImplMethod(); > > void AppendBodyText(const nsAString_internal& aBody); > void AddParameter(const nsAString_internal& aName); > > void SetLineNumber(PRUint32 aLineNumber); > > virtual nsresult InstallMember(nsIScriptContext* aContext, > nsIContent* aBoundElement, > void* aScriptObject, > void* aTargetClassObject, > const nsCString& aClassStr); > virtual nsresult CompileMember(nsIScriptContext* aContext, > const nsCString& aClassStr, > void* aClassObject); > > virtual void Trace(TraceCallback aCallback, void *aClosure) const; > > PRBool IsCompiled() const > { > return !(mUncompiledMethod & BIT_UNCOMPILED); > } > void SetUncompiledMethod(nsXBLUncompiledMethod* aUncompiledMethod) > { > mUncompiledMethod = PRUptrdiff(aUncompiledMethod) | BIT_UNCOMPILED; > } > nsXBLUncompiledMethod* GetUncompiledMethod() const > { > PRUptrdiff unmasked = mUncompiledMethod & ~BIT_UNCOMPILED; > return reinterpret_cast<nsXBLUncompiledMethod*>(unmasked); > } > >protected: > enum { BIT_UNCOMPILED = 1 << 0 }; > > union { > PRUptrdiff mUncompiledMethod; > JSObject* mJSMethodObject; > }; > > > > >}; > >class nsXBLProtoImplAnonymousMethod : public nsXBLProtoImplMethod { >public: > nsXBLProtoImplAnonymousMethod() : > nsXBLProtoImplMethod(EmptyString().get()) > {} > > nsresult Execute(nsIContent* aBoundElement); > > > > > virtual nsresult InstallMember(nsIScriptContext* aContext, > nsIContent* aBoundElement, > void* aScriptObject, > void* aTargetClassObject, > const nsCString& aClassStr) { > return 0; > } >}; ># 46 "./../../xbl/src/nsXBLPrototypeBinding.h" 2 ># 1 "../../../dist/include/layout/nsICSSStyleSheet.h" 1 ># 43 "../../../dist/include/layout/nsICSSStyleSheet.h" ># 1 "../../../dist/include/layout/nsIStyleSheet.h" 1 ># 49 "../../../dist/include/layout/nsIStyleSheet.h" >class nsIAtom; >class nsString; >class nsIURI; >class nsIStyleRule; >class nsPresContext; >class nsIContent; >class nsIDocument; >class nsIStyleRuleProcessor; ># 72 "../../../dist/include/layout/nsIStyleSheet.h" >class nsIStyleSheet : public nsISupports { >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSheetURI(nsIURI** aSheetURI) const = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetBaseURI(nsIURI** aBaseURI) const = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTitle(nsString& aTitle) const = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetType(nsString& aType) const = 0; > virtual __attribute__ ((visibility ("hidden"))) PRBool __attribute__ ((regparm (0), cdecl)) UseForMedium(nsPresContext* aPresContext) const = 0; > virtual __attribute__ ((visibility ("hidden"))) PRBool __attribute__ ((regparm (0), cdecl)) HasRules() const = 0; ># 91 "../../../dist/include/layout/nsIStyleSheet.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetApplicable(PRBool& aApplicable) const = 0; ># 102 "../../../dist/include/layout/nsIStyleSheet.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetEnabled(PRBool aEnabled) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetComplete(PRBool& aComplete) const = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetComplete() = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetParentSheet(nsIStyleSheet*& aParent) const = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetOwningDocument(nsIDocument*& aDocument) const = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetOwningDocument(nsIDocument* aDocument) = 0; > > > > >}; > >template <class Dummy> const nsIID nsIStyleSheet::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x7b2d31da, 0xc3fb, 0x4537, { 0xbd, 0x97, 0x33, 0x72, 0x72, 0xb8, 0x35, 0x68 } }; ># 44 "../../../dist/include/layout/nsICSSStyleSheet.h" 2 > > >class nsICSSRule; >class nsIDOMNode; >class nsXMLNameSpaceMap; >class nsCSSRuleProcessor; >class nsMediaList; >class nsICSSGroupRule; >class nsICSSImportRule; >class nsIPrincipal; > > > > > > > >class nsICSSStyleSheet : public nsIStyleSheet { >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ContainsStyleSheet(nsIURI* aURL, PRBool& aContains, nsIStyleSheet** aTheChild=0) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AppendStyleSheet(nsICSSStyleSheet* aSheet) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InsertStyleSheetAt(nsICSSStyleSheet* aSheet, PRInt32 aIndex) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PrependStyleRule(nsICSSRule* aRule) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AppendStyleRule(nsICSSRule* aRule) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ReplaceStyleRule(nsICSSRule* aOld, nsICSSRule* aNew) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) StyleRuleCount(PRInt32& aCount) const = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetStyleRuleAt(PRInt32 aIndex, nsICSSRule*& aRule) const = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DeleteRuleFromGroup(nsICSSGroupRule* aGroup, PRUint32 aIndex) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InsertRuleIntoGroup(const nsAString_internal & aRule, nsICSSGroupRule* aGroup, PRUint32 aIndex, PRUint32* _retval) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ReplaceRuleInGroup(nsICSSGroupRule* aGroup, nsICSSRule* aOld, nsICSSRule* aNew) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) StyleSheetCount(PRInt32& aCount) const = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetStyleSheetAt(PRInt32 aIndex, nsICSSStyleSheet*& aSheet) const = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetURIs(nsIURI* aSheetURI, nsIURI* aOriginalSheetURI, > nsIURI* aBaseURI) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) void SetPrincipal(nsIPrincipal* aPrincipal) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsIPrincipal* Principal() const = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetTitle(const nsAString_internal& aTitle) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetMedia(nsMediaList* aMedia) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetOwningNode(nsIDOMNode* aOwningNode) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetOwnerRule(nsICSSImportRule* aOwnerRule) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetOwnerRule(nsICSSImportRule** aOwnerRule) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsXMLNameSpaceMap* GetNameSpaceMap() const = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Clone(nsICSSStyleSheet* aCloneParent, > nsICSSImportRule* aCloneOwnerRule, > nsIDocument* aCloneDocument, > nsIDOMNode* aCloneOwningNode, > nsICSSStyleSheet** aClone) const = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsModified(PRBool* aModified) const = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetModified(PRBool aModified) = 0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddRuleProcessor(nsCSSRuleProcessor* aProcessor) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) DropRuleProcessor(nsCSSRuleProcessor* aProcessor) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InsertRuleInternal(const nsAString_internal& aRule, > PRUint32 aIndex, PRUint32* aReturn) = 0; >}; > >template <class Dummy> const nsIID nsICSSStyleSheet::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x363c1c5f, 0x81ec, 0x4d83, { 0xad, 0x8a, 0xb4, 0x8d, 0x48, 0xf1, 0x39, 0x8d } }; > >nsresult >NS_NewCSSStyleSheet(nsICSSStyleSheet** aInstancePtrResult); ># 47 "./../../xbl/src/nsXBLPrototypeBinding.h" 2 > ># 1 "../../../dist/include/xpcom/nsWeakReference.h" 1 ># 49 "./../../xbl/src/nsXBLPrototypeBinding.h" 2 > ># 1 "../../../dist/include/xpcom/nsHashtable.h" 1 ># 63 "../../../dist/include/xpcom/nsHashtable.h" >class nsIObjectInputStream; >class nsIObjectOutputStream; > >class nsHashtable; >class nsStringKey; > >class nsHashKey { > protected: > nsHashKey(void) { > > > > ; > } > > > public: > > > > virtual ~nsHashKey(void); > virtual PRUint32 HashCode(void) const = 0; > virtual PRBool Equals(const nsHashKey *aKey) const = 0; > virtual nsHashKey *Clone() const = 0; > virtual nsresult Write(nsIObjectOutputStream* aStream) const; ># 105 "../../../dist/include/xpcom/nsHashtable.h" >}; > > > > >enum { > kHashEnumerateStop = 0, > kHashEnumerateNext = 1, > kHashEnumerateRemove = 2 >}; > >typedef PRIntn >(* nsHashtableEnumFunc)(nsHashKey *aKey, void *aData, void* aClosure); > >typedef nsresult >(* nsHashtableReadEntryFunc)(nsIObjectInputStream *aStream, > nsHashKey **aKey, > void **aData); > > >typedef void >(* nsHashtableFreeEntryFunc)(nsIObjectInputStream *aStream, > nsHashKey *aKey, > void *aData); > >typedef nsresult >(* nsHashtableWriteDataFunc)(nsIObjectOutputStream *aStream, > void *aData); > >class nsHashtable { > protected: > > PRLock* mLock; > PLDHashTable mHashtable; > PRBool mEnumerating; > > public: > nsHashtable(PRUint32 aSize = 16, PRBool threadSafe = 0); > virtual ~nsHashtable(); > > PRInt32 Count(void) { return mHashtable.entryCount; } > PRBool Exists(nsHashKey *aKey); > void *Put(nsHashKey *aKey, void *aData); > void *Get(nsHashKey *aKey); > void *Remove(nsHashKey *aKey); > nsHashtable *Clone(); > void Enumerate(nsHashtableEnumFunc aEnumFunc, void* aClosure = __null); > void Reset(); > void Reset(nsHashtableEnumFunc destroyFunc, void* aClosure = __null); > > nsHashtable(nsIObjectInputStream* aStream, > nsHashtableReadEntryFunc aReadEntryFunc, > nsHashtableFreeEntryFunc aFreeEntryFunc, > nsresult *aRetVal); > nsresult Write(nsIObjectOutputStream* aStream, > nsHashtableWriteDataFunc aWriteDataFunc) const; >}; > > > > > >typedef void* (* nsHashtableCloneElementFunc)(nsHashKey *aKey, void *aData, void* aClosure); > >class nsObjectHashtable : public nsHashtable { > public: > nsObjectHashtable(nsHashtableCloneElementFunc cloneElementFun, > void* cloneElementClosure, > nsHashtableEnumFunc destroyElementFun, > void* destroyElementClosure, > PRUint32 aSize = 16, PRBool threadSafe = 0); > ~nsObjectHashtable(); > > nsHashtable *Clone(); > void Reset(); > PRBool RemoveAndDelete(nsHashKey *aKey); > > protected: > static PLDHashOperator CopyElement(PLDHashTable* table, > PLDHashEntryHdr* hdr, > PRUint32 i, void *arg); > > nsHashtableCloneElementFunc mCloneElementFun; > void* mCloneElementClosure; > nsHashtableEnumFunc mDestroyElementFun; > void* mDestroyElementClosure; >}; > > > > >class nsISupports; > >class nsSupportsHashtable > : private nsHashtable >{ > public: > typedef PRBool (* EnumFunc) (nsHashKey *aKey, void *aData, void* aClosure); > > nsSupportsHashtable(PRUint32 aSize = 16, PRBool threadSafe = 0) > : nsHashtable(aSize, threadSafe) {} > ~nsSupportsHashtable(); > > PRInt32 Count(void) { > return nsHashtable::Count(); > } > PRBool Exists(nsHashKey *aKey) { > return nsHashtable::Exists (aKey); > } > PRBool Put(nsHashKey *aKey, > nsISupports *aData, > nsISupports **value = 0); > nsISupports* Get(nsHashKey *aKey); > PRBool Remove(nsHashKey *aKey, nsISupports **value = 0); > nsHashtable *Clone(); > void Enumerate(EnumFunc aEnumFunc, void* aClosure = __null) { > nsHashtable::Enumerate(aEnumFunc, aClosure); > } > void Reset(); > > private: > static PRBool ReleaseElement(nsHashKey *, void *, void *); > static PLDHashOperator EnumerateCopy(PLDHashTable*, > PLDHashEntryHdr* hdr, > PRUint32 i, void *arg); >}; > > > > > > >class nsISupportsKey : public nsHashKey { > protected: > nsISupports* mKey; > > public: > nsISupportsKey(const nsISupportsKey& aKey) : mKey(aKey.mKey) { > > > > ns_if_addref(mKey); > } > > nsISupportsKey(nsISupports* key) { > > > > mKey = key; > ns_if_addref(mKey); > } > > ~nsISupportsKey(void) { > do { if (mKey) { (mKey)->Release(); (mKey) = 0; } } while (0); > } > > PRUint32 HashCode(void) const { > return ((PRInt32) (PRWord) (mKey)); > } > > PRBool Equals(const nsHashKey *aKey) const { > do { } while (0); > return (mKey == ((nsISupportsKey *) aKey)->mKey); > } > > nsHashKey *Clone() const { > return new nsISupportsKey(mKey); > } > > nsISupportsKey(nsIObjectInputStream* aStream, nsresult *aResult); > nsresult Write(nsIObjectOutputStream* aStream) const; >}; > > >class nsPRUint32Key : public nsHashKey { >protected: > PRUint32 mKey; >public: > nsPRUint32Key(PRUint32 key) { > > > > mKey = key; > } > > PRUint32 HashCode(void) const { > return mKey; > } > > PRBool Equals(const nsHashKey *aKey) const { > return mKey == ((const nsPRUint32Key *) aKey)->mKey; > } > nsHashKey *Clone() const { > return new nsPRUint32Key(mKey); > } > PRUint32 GetValue() { return mKey; } >}; > > > > >class nsVoidKey : public nsHashKey { > protected: > void* mKey; > > public: > nsVoidKey(const nsVoidKey& aKey) : mKey(aKey.mKey) { > > > > } > > nsVoidKey(void* key) { > > > > mKey = key; > } > > PRUint32 HashCode(void) const { > return ((PRInt32) (PRWord) (mKey)); > } > > PRBool Equals(const nsHashKey *aKey) const { > do { } while (0); > return (mKey == ((const nsVoidKey *) aKey)->mKey); > } > > nsHashKey *Clone() const { > return new nsVoidKey(mKey); > } > > void* GetValue() { return mKey; } >}; > > > > > > >class nsIDKey : public nsHashKey { > protected: > nsID mID; > > public: > nsIDKey(const nsIDKey& aKey) : mID(aKey.mID) { > > > > } > > nsIDKey(const nsID &aID) { > > > > mID = aID; > } > > PRUint32 HashCode(void) const { > return mID.m0; > } > > PRBool Equals(const nsHashKey *aKey) const { > do { } while (0); > return (mID.Equals(((const nsIDKey *) aKey)->mID)); > } > > nsHashKey *Clone() const { > return new nsIDKey(mID); > } > > nsIDKey(nsIObjectInputStream* aStream, nsresult *aResult); > nsresult Write(nsIObjectOutputStream* aStream) const; >}; > > > > > > >class nsCStringKey : public nsHashKey { > public: > > > enum Ownership { > NEVER_OWN, > OWN_CLONE, > OWN > }; > > nsCStringKey(const nsCStringKey& aStrKey); > nsCStringKey(const char* str, PRInt32 strLen = -1, Ownership own = OWN_CLONE); > nsCStringKey(const nsAFlatCString& str); > nsCStringKey(const nsACString_internal& str); > ~nsCStringKey(void); > > PRUint32 HashCode(void) const; > PRBool Equals(const nsHashKey* aKey) const; > nsHashKey* Clone() const; > nsCStringKey(nsIObjectInputStream* aStream, nsresult *aResult); > nsresult Write(nsIObjectOutputStream* aStream) const; > > > > const char* GetString() const { return mStr; } > PRUint32 GetStringLength() const { return mStrLen; } > > protected: > char* mStr; > PRUint32 mStrLen; > Ownership mOwnership; >}; > > >class nsStringKey : public nsHashKey { > public: > > > enum Ownership { > NEVER_OWN, > OWN_CLONE, > OWN > }; > > nsStringKey(const nsStringKey& aKey); > nsStringKey(const PRUnichar* str, PRInt32 strLen = -1, Ownership own = OWN_CLONE); > nsStringKey(const nsAFlatString& str); > nsStringKey(const nsAString_internal& str); > ~nsStringKey(void); > > PRUint32 HashCode(void) const; > PRBool Equals(const nsHashKey* aKey) const; > nsHashKey* Clone() const; > nsStringKey(nsIObjectInputStream* aStream, nsresult *aResult); > nsresult Write(nsIObjectOutputStream* aStream) const; > > > > const PRUnichar* GetString() const { return mStr; } > PRUint32 GetStringLength() const { return mStrLen; } > > protected: > PRUnichar* mStr; > PRUint32 mStrLen; > Ownership mOwnership; >}; ># 51 "./../../xbl/src/nsXBLPrototypeBinding.h" 2 ># 1 "../../../dist/include/content/nsIXBLDocumentInfo.h" 1 ># 50 "../../../dist/include/content/nsIXBLDocumentInfo.h" >class nsIContent; >class nsIDocument; >class nsIScriptContext; >class nsXBLPrototypeBinding; >class nsIURI; >class nsACString_internal; > > > > > >class nsIXBLDocumentInfo : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDocument(nsIDocument** aResult)=0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetScriptAccess(PRBool* aResult)=0; > > > virtual __attribute__ ((visibility ("hidden"))) nsIURI* __attribute__ ((regparm (0), cdecl)) DocumentURI()=0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPrototypeBinding(const nsACString_internal& aRef, nsXBLPrototypeBinding** aResult)=0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetPrototypeBinding(const nsACString_internal& aRef, nsXBLPrototypeBinding* aBinding)=0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetFirstPrototypeBinding(nsXBLPrototypeBinding* aBinding)=0; > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FlushSkinStylesheets()=0; > > > virtual __attribute__ ((visibility ("hidden"))) PRBool __attribute__ ((regparm (0), cdecl)) IsChrome()=0; >}; > >template <class Dummy> const nsIID nsIXBLDocumentInfo::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x2d8334b0, 0xe0b8, 0x4a23, { 0x91, 0x52, 0xdc, 0x89, 0xac, 0x27, 0x58, 0x94 } }; > >nsresult >NS_NewXBLDocumentInfo(nsIDocument* aDocument, nsIXBLDocumentInfo** aResult); ># 52 "./../../xbl/src/nsXBLPrototypeBinding.h" 2 > ># 1 "./../../xbl/src/nsXBLProtoImpl.h" 1 ># 42 "./../../xbl/src/nsXBLProtoImpl.h" ># 1 "../../../dist/include/xpcom/nsMemory.h" 1 ># 43 "./../../xbl/src/nsXBLProtoImpl.h" 2 > > ># 1 "./../../xbl/src/nsXBLProtoImplField.h" 1 ># 49 "./../../xbl/src/nsXBLProtoImplField.h" >class nsIURI; > >class nsXBLProtoImplField >{ >public: > nsXBLProtoImplField(const PRUnichar* aName, const PRUnichar* aReadOnly); > ~nsXBLProtoImplField(); > > void AppendFieldText(const nsAString_internal& aText); > void SetLineNumber(PRUint32 aLineNumber) { > mLineNumber = aLineNumber; > } > > nsXBLProtoImplField* GetNext() const { return mNext; } > void SetNext(nsXBLProtoImplField* aNext) { mNext = aNext; } > > nsresult InstallField(nsIScriptContext* aContext, > JSObject* aBoundNode, > nsIURI* aBindingDocURI, > PRBool* aDidInstall) const; > > const PRUnichar* GetName() const { return mName; } > >protected: > nsXBLProtoImplField* mNext; > PRUnichar* mName; > PRUnichar* mFieldText; > PRUint32 mFieldTextLength; > PRUint32 mLineNumber; > uintN mJSAttributes; >}; ># 46 "./../../xbl/src/nsXBLProtoImpl.h" 2 > >class nsIXPConnectJSObjectHolder; >class nsXBLPrototypeBinding; >class nsXBLProtoImplAnonymousMethod; > >class nsXBLProtoImpl >{ >public: > nsXBLProtoImpl() > : mClassObject(0), > mMembers(0), > mFields(0), > mConstructor(0), > mDestructor(0) > { > ; > } > ~nsXBLProtoImpl() > { > ; > > > delete mMembers; > delete mFields; > } > > nsresult InstallImplementation(nsXBLPrototypeBinding* aBinding, nsIContent* aBoundElement); > nsresult InitTargetObjects(nsXBLPrototypeBinding* aBinding, nsIScriptContext* aContext, > nsIContent* aBoundElement, > nsIXPConnectJSObjectHolder** aScriptObjectHolder, > void** aTargetClassObject); > nsresult CompilePrototypeMembers(nsXBLPrototypeBinding* aBinding); > > void SetMemberList(nsXBLProtoImplMember* aMemberList) > { > delete mMembers; > mMembers = aMemberList; > } > > void SetFieldList(nsXBLProtoImplField* aFieldList) > { > delete mFields; > mFields = aFieldList; > } > > void Trace(TraceCallback aCallback, void *aClosure) const; > void UnlinkJSObjects(); > > nsXBLProtoImplField* FindField(const nsString& aFieldName) const; > > > > PRBool ResolveAllFields(JSContext *cx, JSObject *obj) const; > > > > void UndefineFields(JSContext* cx, JSObject* obj) const; > > PRBool CompiledMembers() const { > return mClassObject != 0; > } > >protected: > void DestroyMembers(); > >public: > nsCString mClassName; > >protected: > void* mClassObject; > > > nsXBLProtoImplMember* mMembers; > > nsXBLProtoImplField* mFields; > >public: > nsXBLProtoImplAnonymousMethod* mConstructor; > nsXBLProtoImplAnonymousMethod* mDestructor; >}; > >nsresult >NS_NewXBLProtoImpl(nsXBLPrototypeBinding* aBinding, > const PRUnichar* aClassName, > nsXBLProtoImpl** aResult); ># 54 "./../../xbl/src/nsXBLPrototypeBinding.h" 2 > >class nsIAtom; >class nsIDocument; >class nsIScriptContext; >class nsSupportsHashtable; >class nsIXBLService; >class nsFixedSizeAllocator; >class nsXBLProtoImplField; >class nsXBLBinding; > > > > > > > >class nsXBLPrototypeBinding >{ >public: > already_AddRefed<nsIContent> GetBindingElement(); > void SetBindingElement(nsIContent* aElement); > > nsIURI* BindingURI() const { return mBindingURI; } > nsIURI* DocURI() const { return mXBLDocInfoWeak->DocumentURI(); } > > nsresult GetAllowScripts(PRBool* aResult); > > nsresult BindingAttached(nsIContent* aBoundElement); > nsresult BindingDetached(nsIContent* aBoundElement); > > PRBool LoadResources(); > nsresult AddResource(nsIAtom* aResourceType, const nsAString_internal& aSrc); > > PRBool InheritsStyle() const { return mInheritStyle; } > > nsXBLPrototypeHandler* GetPrototypeHandlers() { return mPrototypeHandler; } > void SetPrototypeHandlers(nsXBLPrototypeHandler* aHandler) { mPrototypeHandler = aHandler; } > > nsXBLProtoImplAnonymousMethod* GetConstructor(); > nsresult SetConstructor(nsXBLProtoImplAnonymousMethod* aConstructor); > nsXBLProtoImplAnonymousMethod* GetDestructor(); > nsresult SetDestructor(nsXBLProtoImplAnonymousMethod* aDestructor); > > nsXBLProtoImplField* FindField(const nsString& aFieldName) const > { > return mImplementation ? mImplementation->FindField(aFieldName) : 0; > } > > > > PRBool ResolveAllFields(JSContext* cx, JSObject* obj) const > { > return !mImplementation || mImplementation->ResolveAllFields(cx, obj); > } > > > > void UndefineFields(JSContext* cx, JSObject* obj) const { > if (mImplementation) { > mImplementation->UndefineFields(cx, obj); > } > } > > const nsCString& ClassName() const { > return mImplementation ? mImplementation->mClassName : EmptyCString(); > } > > nsresult InitClass(const nsCString& aClassName, JSContext * aContext, > JSObject * aGlobal, JSObject * aScriptObject, > void ** aClassObject); > > nsresult ConstructInterfaceTable(const nsAString_internal& aImpls); > > void SetImplementation(nsXBLProtoImpl* aImpl) { mImplementation = aImpl; } > nsresult InstallImplementation(nsIContent* aBoundElement); > PRBool HasImplementation() const { return mImplementation != 0; } > > void AttributeChanged(nsIAtom* aAttribute, PRInt32 aNameSpaceID, > PRBool aRemoveFlag, nsIContent* aChangedElement, > nsIContent* aAnonymousContent, PRBool aNotify); > > void SetBasePrototype(nsXBLPrototypeBinding* aBinding); > nsXBLPrototypeBinding* GetBasePrototype() { return mBaseBinding; } > > nsIXBLDocumentInfo* XBLDocumentInfo() const { return mXBLDocInfoWeak; } > > PRBool HasBasePrototype() { return mHasBaseProto; } > void SetHasBasePrototype(PRBool aHasBase) { mHasBaseProto = aHasBase; } > > void SetInitialAttributes(nsIContent* aBoundElement, nsIContent* aAnonymousContent); > > nsIStyleRuleProcessor* GetRuleProcessor(); > nsCOMArray<nsICSSStyleSheet>* GetStyleSheets(); > > PRBool HasInsertionPoints() { return mInsertionPointTable != 0; } > > PRBool HasStyleSheets() { > return mResources && mResources->mStyleSheetList.Count() > 0; > } > > nsresult FlushSkinSheets(); > > void InstantiateInsertionPoints(nsXBLBinding* aBinding); > > nsIContent* GetInsertionPoint(nsIContent* aBoundElement, > nsIContent* aCopyRoot, nsIContent *aChild, > PRUint32* aIndex); > > nsIContent* GetSingleInsertionPoint(nsIContent* aBoundElement, > nsIContent* aCopyRoot, > PRUint32* aIndex, PRBool* aMultiple); > > nsIAtom* GetBaseTag(PRInt32* aNamespaceID); > void SetBaseTag(PRInt32 aNamespaceID, nsIAtom* aTag); > > PRBool ImplementsInterface(const nsIID& aIID) const; > > PRBool ShouldBuildChildFrames() const; > > nsresult AddResourceListener(nsIContent* aBoundElement); > > void Initialize(); > > const nsCOMArray<nsXBLKeyEventHandler>* GetKeyEventHandlers() > { > if (!mKeyHandlersRegistered) { > CreateKeyHandlers(); > mKeyHandlersRegistered = 1; > } > > return &mKeyHandlers; > } > >public: > nsXBLPrototypeBinding(); > ~nsXBLPrototypeBinding(); > > > > > > nsresult Init(const nsACString_internal& aRef, > nsIXBLDocumentInfo* aInfo, > nsIContent* aElement); > > void Traverse(nsCycleCollectionTraversalCallback &cb) const; > void UnlinkJSObjects(); > void Trace(TraceCallback aCallback, void *aClosure) const; > > > static PRUint32 gRefCnt; > > static nsFixedSizeAllocator* kAttrPool; > > > > > >public: > > > > > nsIContent* GetImmediateChild(nsIAtom* aTag); > nsIContent* LocateInstance(nsIContent* aBoundElt, > nsIContent* aTemplRoot, > nsIContent* aCopyRoot, > nsIContent* aTemplChild); > >protected: > void ConstructAttributeTable(nsIContent* aElement); > void ConstructInsertionTable(nsIContent* aElement); > void GetNestedChildren(nsIAtom* aTag, PRInt32 aNamespace, > nsIContent* aContent, > nsCOMArray<nsIContent> & aList); > void CreateKeyHandlers(); > >protected: > > class nsIIDKey : public nsHashKey { > protected: > nsIID mKey; > > public: > nsIIDKey(const nsIID& key) : mKey(key) {} > ~nsIIDKey(void) {} > > PRUint32 HashCode(void) const { > > return mKey.m0; > } > > PRBool Equals(const nsHashKey *aKey) const { > return mKey.Equals( ((nsIIDKey*) aKey)->mKey); > } > > nsHashKey *Clone(void) const { > return new nsIIDKey(mKey); > } > }; > > >protected: > nsCOMPtr<nsIURI> mBindingURI; > nsCOMPtr<nsIContent> mBinding; > nsAutoPtr<nsXBLPrototypeHandler> mPrototypeHandler; > > nsXBLProtoImpl* mImplementation; > > > nsXBLPrototypeBinding* mBaseBinding; > PRPackedBool mInheritStyle; > PRPackedBool mHasBaseProto; > PRPackedBool mKeyHandlersRegistered; > > nsXBLPrototypeResources* mResources; > > nsIXBLDocumentInfo* mXBLDocInfoWeak; > > nsObjectHashtable* mAttributeTable; > > > > nsObjectHashtable* mInsertionPointTable; > > > nsSupportsHashtable* mInterfaceTable; > > PRInt32 mBaseNameSpaceID; > nsCOMPtr<nsIAtom> mBaseTag; > > nsCOMArray<nsXBLKeyEventHandler> mKeyHandlers; >}; ># 130 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/xpcom/nsEscape.h" 1 ># 53 "../../../dist/include/xpcom/nsEscape.h" >typedef enum { > url_All = 0 >, url_XAlphas = ((PRUint32)1 << (0)) >, url_XPAlphas = ((PRUint32)1 << (1)) >, url_Path = ((PRUint32)1 << (2)) >} nsEscapeMask; > > >extern "C" { ># 71 "../../../dist/include/xpcom/nsEscape.h" > char * nsEscape(const char * str, nsEscapeMask mask); > > char * nsUnescape(char * str); > > > > > PRInt32 nsUnescapeCount (char * str); > > > > > > char * >nsEscapeHTML(const char * string); > > PRUnichar * >nsEscapeHTML2(const PRUnichar *aSourceBuffer, > PRInt32 aSourceBufferLen = -1); > > > > > > >} ># 106 "../../../dist/include/xpcom/nsEscape.h" >enum EscapeMask { > > esc_Scheme = ((PRUint32)1 << (0)), > esc_Username = ((PRUint32)1 << (1)), > esc_Password = ((PRUint32)1 << (2)), > esc_Host = ((PRUint32)1 << (3)), > esc_Directory = ((PRUint32)1 << (4)), > esc_FileBaseName = ((PRUint32)1 << (5)), > esc_FileExtension = ((PRUint32)1 << (6)), > esc_FilePath = esc_Directory | esc_FileBaseName | esc_FileExtension, > esc_Param = ((PRUint32)1 << (7)), > esc_Query = ((PRUint32)1 << (8)), > esc_Ref = ((PRUint32)1 << (9)), > > esc_Minimal = esc_Scheme | esc_Username | esc_Password | esc_Host | esc_FilePath | esc_Param | esc_Query | esc_Ref, > esc_Forced = ((PRUint32)1 << (10)), > esc_OnlyASCII = ((PRUint32)1 << (11)), > esc_OnlyNonASCII = ((PRUint32)1 << (12)), > > > esc_AlwaysCopy = ((PRUint32)1 << (13)), > esc_Colon = ((PRUint32)1 << (14)), > esc_SkipControl = ((PRUint32)1 << (15)) >}; ># 145 "../../../dist/include/xpcom/nsEscape.h" > PRBool NS_EscapeURL(const char *str, > PRInt32 len, > PRUint32 flags, > nsACString_internal &result); ># 161 "../../../dist/include/xpcom/nsEscape.h" > PRBool NS_UnescapeURL(const char *str, > PRInt32 len, > PRUint32 flags, > nsACString_internal &result); > > >inline PRInt32 NS_UnescapeURL(char *str) { > return nsUnescapeCount(str); >} > > > > >inline const nsCSubstring & >NS_EscapeURL(const nsCSubstring &str, PRUint32 flags, nsCSubstring &result) { > if (NS_EscapeURL(str.Data(), str.Length(), flags, result)) > return result; > return str; >} >inline const nsCSubstring & >NS_UnescapeURL(const nsCSubstring &str, PRUint32 flags, nsCSubstring &result) { > if (NS_UnescapeURL(str.Data(), str.Length(), flags, result)) > return result; > return str; >} ># 227 "../../../dist/include/xpcom/nsEscape.h" >inline PRBool >NS_Escape(const nsCString& aOriginal, nsCString& aEscaped, > nsEscapeMask aMask) >{ > char* esc = nsEscape(aOriginal.get(), aMask); > if (! esc) > return 0; > aEscaped.Adopt(esc); > return 1; >} > > > > >inline nsCString & >NS_UnescapeURL(nsCString &str) >{ > str.SetLength(nsUnescapeCount(str.BeginWriting())); > return str; >} ># 131 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/uconv/nsICharsetConverterManager.h" 1 ># 21 "../../../dist/include/uconv/nsICharsetConverterManager.h" ># 1 "../../../dist/include/uconv/nsIUnicodeDecoder.h" 1 ># 41 "../../../dist/include/uconv/nsIUnicodeDecoder.h" ># 1 "../../../dist/include/xpcom/nscore.h" 1 ># 42 "../../../dist/include/uconv/nsIUnicodeDecoder.h" 2 ># 1 "../../../dist/include/xpcom/nsISupports.h" 1 ># 43 "../../../dist/include/uconv/nsIUnicodeDecoder.h" 2 ># 93 "../../../dist/include/uconv/nsIUnicodeDecoder.h" >class nsIUnicodeDecoder : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > enum { > kOnError_Recover, > kOnError_Signal > }; ># 149 "../../../dist/include/uconv/nsIUnicodeDecoder.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Convert(const char * aSrc, PRInt32 * aSrcLength, > PRUnichar * aDest, PRInt32 * aDestLength) = 0; ># 163 "../../../dist/include/uconv/nsIUnicodeDecoder.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMaxLength(const char * aSrc, PRInt32 aSrcLength, > PRInt32 * aDestLength) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Reset() = 0; >}; > >template <class Dummy> const nsIID nsIUnicodeDecoder::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0xb2f178e1, 0x832a, 0x11d2, { 0x8a, 0x8e, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36 }}; ># 22 "../../../dist/include/uconv/nsICharsetConverterManager.h" 2 ># 1 "../../../dist/include/uconv/nsIUnicodeEncoder.h" 1 ># 42 "../../../dist/include/uconv/nsIUnicodeEncoder.h" ># 1 "../../../dist/include/xpcom/nsError.h" 1 ># 43 "../../../dist/include/uconv/nsIUnicodeEncoder.h" 2 ># 79 "../../../dist/include/uconv/nsIUnicodeEncoder.h" >class nsIUnicharEncoder : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Convert(PRUnichar aChar, char * aDest, PRInt32 * aDestLength) = 0; >}; > >template <class Dummy> const nsIID nsIUnicharEncoder::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x299bccd0, 0xc6df, 0x11d2, {0x8a, 0xa8, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36 }}; ># 133 "../../../dist/include/uconv/nsIUnicodeEncoder.h" >class nsIUnicodeEncoder : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > enum { > kOnError_Signal, > kOnError_CallBack, > kOnError_Replace > }; ># 179 "../../../dist/include/uconv/nsIUnicodeEncoder.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Convert(const PRUnichar * aSrc, PRInt32 * aSrcLength, > char * aDest, PRInt32 * aDestLength) = 0; ># 192 "../../../dist/include/uconv/nsIUnicodeEncoder.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Finish(char * aDest, PRInt32 * aDestLength) = 0; ># 205 "../../../dist/include/uconv/nsIUnicodeEncoder.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMaxLength(const PRUnichar * aSrc, PRInt32 aSrcLength, > PRInt32 * aDestLength) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Reset() = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetOutputErrorBehavior(PRInt32 aBehavior, > nsIUnicharEncoder * aEncoder, PRUnichar aChar) = 0; >}; > >template <class Dummy> const nsIID nsIUnicodeEncoder::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x2b2ca3d0, 0xa4c9, 0x11d2, { 0x8a, 0xa1, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36 }}; ># 23 "../../../dist/include/uconv/nsICharsetConverterManager.h" 2 ># 1 "../../../dist/include/xpcom/nsStringGlue.h" 1 ># 24 "../../../dist/include/uconv/nsICharsetConverterManager.h" 2 > > > > > >class nsIUnicodeDecoder; > >class nsIUnicodeEncoder; > >class nsIUTF8StringEnumerator; ># 52 "../../../dist/include/uconv/nsICharsetConverterManager.h" >class nsICharsetConverterManager : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetUnicodeDecoder(const char *charset, nsIUnicodeDecoder **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetUnicodeDecoderRaw(const char *charset, nsIUnicodeDecoder **_retval) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetUnicodeEncoder(const char *charset, nsIUnicodeEncoder **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetUnicodeEncoderRaw(const char *charset, nsIUnicodeEncoder **_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCharsetAlias(const char *charset, nsACString_internal & _retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDecoderList(nsIUTF8StringEnumerator **_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetEncoderList(nsIUTF8StringEnumerator **_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCharsetDetectorList(nsIUTF8StringEnumerator **_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCharsetTitle(const char *charset, nsAString_internal & _retval) = 0; ># 122 "../../../dist/include/uconv/nsICharsetConverterManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCharsetData(const char *charset, const PRUnichar *prop, nsAString_internal & _retval) = 0; ># 132 "../../../dist/include/uconv/nsICharsetConverterManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCharsetLangGroup(const char *charset, nsIAtom **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCharsetLangGroupRaw(const char *charset, nsIAtom **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsICharsetConverterManager::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xf5323a76, 0xc8f7, 0x4c65, { 0x8d, 0x0c, 0x12, 0x50, 0xe9, 0x69, 0xc7, 0xd5 }}; ># 132 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsIEventListenerManager.h" 1 ># 44 "../../../dist/include/content/nsIEventListenerManager.h" >class nsPresContext; >class nsIDOMEventListener; >class nsIScriptContext; >class nsIDOMEventTarget; >class nsIDOMEventGroup; >class nsIAtom; ># 59 "../../../dist/include/content/nsIEventListenerManager.h" >class nsIEventListenerManager : public nsISupports { > >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddEventListenerByIID(nsIDOMEventListener *aListener, > const nsIID& aIID, PRInt32 flags) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveEventListenerByIID(nsIDOMEventListener *aListener, > const nsIID& aIID, PRInt32 flags) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddEventListenerByType(nsIDOMEventListener *aListener, > const nsAString_internal& type, > PRInt32 flags, > nsIDOMEventGroup* aEvtGrp) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveEventListenerByType(nsIDOMEventListener *aListener, > const nsAString_internal& type, > PRInt32 flags, > nsIDOMEventGroup* aEvtGrp) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) AddScriptEventListener(nsISupports *aObject, > nsIAtom *aName, > const nsAString_internal& aFunc, > PRUint32 aLanguage, > PRBool aDeferCompilation, > PRBool aPermitUntrustedEvents) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveScriptEventListener(nsIAtom *aName) = 0; ># 118 "../../../dist/include/content/nsIEventListenerManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RegisterScriptEventListener(nsIScriptContext *aContext, > void *aScopeObject, > nsISupports *aObject, > nsIAtom* aName) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CompileScriptEventListener(nsIScriptContext *aContext, > void *aScopeObject, > nsISupports *aObject, > nsIAtom* aName, > PRBool *aDidCompile) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HandleEvent(nsPresContext* aPresContext, > nsEvent* aEvent, > nsIDOMEvent** aDOMEvent, > nsISupports* aCurrentTarget, > PRUint32 aFlags, > nsEventStatus* aEventStatus) = 0; ># 152 "../../../dist/include/content/nsIEventListenerManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Disconnect() = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetListenerTarget(nsISupports* aTarget) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HasMutationListeners(PRBool* aListener) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSystemEventGroupLM(nsIDOMEventGroup** aGroup) = 0; > > > > > > virtual PRBool HasUnloadListeners() = 0; ># 185 "../../../dist/include/content/nsIEventListenerManager.h" > virtual PRUint32 MutationListenerBits() = 0; > > > > > virtual PRBool HasListenersFor(const nsAString_internal& aEventName) = 0; >}; > >template <class Dummy> const nsIID nsIEventListenerManager::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x6ee5eeeb, 0x1bf3, 0x4865, { 0xa9, 0x52, 0x3b, 0x3e, 0x97, 0x9b, 0x4a, 0xb3 } }; > > >nsresult >NS_NewEventListenerManager(nsIEventListenerManager** aInstancePtrResult); ># 133 "nsContentUtils.cpp" 2 ># 1 "nsAttrName.h" 1 ># 50 "nsAttrName.h" ># 1 "../../../dist/include/dom/nsDOMString.h" 1 ># 51 "nsAttrName.h" 2 > >typedef unsigned long PtrBits; > > >class nsAttrName >{ >public: > nsAttrName(const nsAttrName& aOther) > : mBits(aOther.mBits) > { > AddRefInternalName(); > } > > explicit nsAttrName(nsIAtom* aAtom) > : mBits(reinterpret_cast<PtrBits>(aAtom)) > { > do { } while (0); > (aAtom)->AddRef(); > } > > explicit nsAttrName(nsINodeInfo* aNodeInfo) > { > do { } while (0); > if (aNodeInfo->NamespaceEquals(kNameSpaceID_None)) { > mBits = reinterpret_cast<PtrBits>(aNodeInfo->NameAtom()); > (aNodeInfo->NameAtom())->AddRef(); > } > else { > mBits = reinterpret_cast<PtrBits>(aNodeInfo) | > 1; > (aNodeInfo)->AddRef(); > } > } > > ~nsAttrName() > { > ReleaseInternalName(); > } > > void SetTo(nsINodeInfo* aNodeInfo) > { > do { } while (0); > > ReleaseInternalName(); > if (aNodeInfo->NamespaceEquals(kNameSpaceID_None)) { > mBits = reinterpret_cast<PtrBits>(aNodeInfo->NameAtom()); > (aNodeInfo->NameAtom())->AddRef(); > } > else { > mBits = reinterpret_cast<PtrBits>(aNodeInfo) | > 1; > (aNodeInfo)->AddRef(); > } > } > > void SetTo(nsIAtom* aAtom) > { > do { } while (0); > > ReleaseInternalName(); > mBits = reinterpret_cast<PtrBits>(aAtom); > (aAtom)->AddRef(); > } > > PRBool IsAtom() const > { > return !(mBits & 1); > } > > nsINodeInfo* NodeInfo() const > { > do { } while (0); > return reinterpret_cast<nsINodeInfo*>(mBits & ~1); > } > > nsIAtom* Atom() const > { > do { } while (0); > return reinterpret_cast<nsIAtom*>(mBits); > } > > PRBool Equals(const nsAttrName& aOther) const > { > return mBits == aOther.mBits; > } > > > PRBool Equals(nsIAtom* aAtom) const > { > return reinterpret_cast<PtrBits>(aAtom) == mBits; > } > > PRBool Equals(nsIAtom* aLocalName, PRInt32 aNamespaceID) const > { > if (aNamespaceID == kNameSpaceID_None) { > return Equals(aLocalName); > } > return !IsAtom() && NodeInfo()->Equals(aLocalName, aNamespaceID); > } > > PRBool Equals(nsINodeInfo* aNodeInfo) const > { > return Equals(aNodeInfo->NameAtom(), aNodeInfo->NamespaceID()); > } > > PRInt32 NamespaceID() const > { > return IsAtom() ? kNameSpaceID_None : NodeInfo()->NamespaceID(); > } > > PRInt32 NamespaceEquals(PRInt32 aNamespaceID) const > { > return aNamespaceID == kNameSpaceID_None ? > IsAtom() : > (!IsAtom() && NodeInfo()->NamespaceEquals(aNamespaceID)); > } > > nsIAtom* LocalName() const > { > return IsAtom() ? Atom() : NodeInfo()->NameAtom(); > } > > nsIAtom* GetPrefix() const > { > return IsAtom() ? 0 : NodeInfo()->GetPrefixAtom(); > } > > PRBool QualifiedNameEquals(const nsACString_internal& aName) const > { > return IsAtom() ? Atom()->EqualsUTF8(aName) : > NodeInfo()->QualifiedNameEquals(aName); > } > > void GetQualifiedName(nsAString_internal& aStr) const > { > if (IsAtom()) { > Atom()->ToString(aStr); > } > else { > NodeInfo()->GetQualifiedName(aStr); > } > } > > void GetPrefix(nsAString_internal& aStr) const > { > if (IsAtom()) { > SetDOMStringToNull(aStr); > } > else { > NodeInfo()->GetPrefix(aStr); > } > } > > PRUint32 HashValue() const > { > > > > return mBits - 0; > } > > PRBool IsSmaller(nsIAtom* aOther) const > { > return mBits < reinterpret_cast<PtrBits>(aOther); > } > >private: > > void AddRefInternalName() > { > > > nsISupports* name = reinterpret_cast<nsISupports *> > (mBits & ~1); > > (name)->AddRef(); > } > > void ReleaseInternalName() > { > > > nsISupports* name = reinterpret_cast<nsISupports *> > (mBits & ~1); > > do { (name)->Release(); (name) = 0; } while (0); > } > > PtrBits mBits; >}; ># 134 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIDOMUserDataHandler.h" 1 ># 29 "../../../dist/include/dom/nsIDOMUserDataHandler.h" >class nsIDOMUserDataHandler : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > enum { NODE_CLONED = 1U }; > > enum { NODE_IMPORTED = 2U }; > > enum { NODE_DELETED = 3U }; > > enum { NODE_RENAMED = 4U }; > > enum { NODE_ADOPTED = 5U }; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Handle(PRUint16 operation, const nsAString_internal & key, nsIVariant *data, nsIDOMNode *src, nsIDOMNode *dst) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMUserDataHandler::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x91afebdd, 0xa201, 0x4db0, { 0xb7, 0x28, 0x9d, 0x59, 0x58, 0x0f, 0x0c, 0xfd }}; ># 135 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsContentCreatorFunctions.h" 1 ># 51 "../../../dist/include/content/nsContentCreatorFunctions.h" >class nsAString_internal; >class nsIContent; >class nsIDocument; >class nsINodeInfo; >class imgIRequest; >class nsNodeInfoManager; >class nsGenericHTMLElement; > >nsresult >NS_NewElement(nsIContent** aResult, PRInt32 aElementType, > nsINodeInfo* aNodeInfo, PRBool aFromParser); > >nsresult >NS_NewXMLElement(nsIContent** aResult, nsINodeInfo* aNodeInfo); > > > > >nsresult >NS_NewTextNode(nsIContent **aResult, nsNodeInfoManager *aNodeInfoManager); > > > > >nsresult >NS_NewCommentNode(nsIContent **aResult, nsNodeInfoManager *aNodeInfoManager); > > > > >nsresult >NS_NewXMLProcessingInstruction(nsIContent** aInstancePtrResult, > nsNodeInfoManager *aNodeInfoManager, > const nsAString_internal& aTarget, > const nsAString_internal& aData); > > > > >nsresult >NS_NewXMLStylesheetProcessingInstruction(nsIContent** aInstancePtrResult, > nsNodeInfoManager *aNodeInfoManager, > const nsAString_internal& aData); > > > > >nsresult >NS_NewXMLCDATASection(nsIContent** aInstancePtrResult, > nsNodeInfoManager *aNodeInfoManager); > >nsresult >NS_NewHTMLElement(nsIContent** aResult, nsINodeInfo *aNodeInfo, > PRBool aFromParser); > > > >already_AddRefed<nsGenericHTMLElement> >CreateHTMLElement(PRUint32 aNodeType, nsINodeInfo *aNodeInfo, > PRBool aFromParser); > > >nsresult >NS_NewMathMLElement(nsIContent** aResult, nsINodeInfo* aNodeInfo); > > > >nsresult >NS_NewXULElement(nsIContent** aResult, nsINodeInfo* aNodeInfo); > > > >nsresult >NS_NewSVGElement(nsIContent** aResult, nsINodeInfo* aNodeInfo); > > >nsresult >NS_NewGenConImageContent(nsIContent** aResult, nsINodeInfo* aNodeInfo, > imgIRequest* aImageRequest); > >nsresult >NS_NewXMLEventsElement(nsIContent** aResult, nsINodeInfo* aNodeInfo); ># 136 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/xpcom/nsTPtrArray.h" 1 ># 50 "../../../dist/include/xpcom/nsTPtrArray.h" >template<class E> >class nsTPtrArray : public nsTArray<E*> { > public: > typedef nsTPtrArray<E> self_type; > typedef nsTArray<E*> base_type; > typedef typename base_type::size_type size_type; > typedef typename base_type::elem_type elem_type; > typedef typename base_type::index_type index_type; > > > > > > nsTPtrArray() {} > > > explicit nsTPtrArray(size_type capacity) { > SetCapacity(capacity); > } > > > > nsTPtrArray(const self_type& other) { > AppendElements(other); > } > > > > > > > elem_type& SafeElementAt(index_type i, elem_type& def) { > return base_type::SafeElementAt(i, def); > } > const elem_type& SafeElementAt(index_type i, const elem_type& def) const { > return base_type::SafeElementAt(i, def); > } > > > > > > elem_type SafeElementAt(index_type i) const { > return SafeElementAt(i, 0); > } >}; > >template<class E, PRUint32 N> >class nsAutoTPtrArray : public nsTPtrArray<E> { > public: > typedef nsTPtrArray<E> base_type; > typedef typename base_type::Header Header; > typedef typename base_type::elem_type elem_type; > > nsAutoTPtrArray() { > base_type::mHdr = reinterpret_cast<Header*>(&mAutoBuf); > base_type::mHdr->mLength = 0; > base_type::mHdr->mCapacity = N; > base_type::mHdr->mIsAutoArray = 1; > > do { } while (0); > > > } > > protected: > char mAutoBuf[sizeof(Header) + N * sizeof(elem_type)]; >}; ># 137 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/widget/nsGUIEvent.h" 1 ># 43 "../../../dist/include/widget/nsGUIEvent.h" ># 1 "../../../dist/include/gfx/nsPoint.h" 1 ># 44 "../../../dist/include/widget/nsGUIEvent.h" 2 ># 1 "../../../dist/include/gfx/nsRect.h" 1 ># 45 "../../../dist/include/widget/nsGUIEvent.h" 2 > ># 1 "../../../dist/include/xpcom/nsStringGlue.h" 1 ># 47 "../../../dist/include/widget/nsGUIEvent.h" 2 ># 55 "../../../dist/include/widget/nsGUIEvent.h" ># 1 "../../../dist/include/xpcom/nsIAtom.h" 1 ># 56 "../../../dist/include/widget/nsGUIEvent.h" 2 ># 1 "../../../dist/include/dom/nsIDOMKeyEvent.h" 1 ># 10 "../../../dist/include/dom/nsIDOMKeyEvent.h" ># 1 "../../../dist/include/dom/nsIDOMUIEvent.h" 1 ># 34 "../../../dist/include/dom/nsIDOMUIEvent.h" >class nsIDOMUIEvent : public nsIDOMEvent { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetView(nsIDOMAbstractView * *aView) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetDetail(PRInt32 *aDetail) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InitUIEvent(const nsAString_internal & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMUIEvent::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa6cf90c3, 0x15b3, 0x11d2, { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}; ># 11 "../../../dist/include/dom/nsIDOMKeyEvent.h" 2 ># 25 "../../../dist/include/dom/nsIDOMKeyEvent.h" >class nsIDOMKeyEvent : public nsIDOMUIEvent { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > enum { DOM_VK_CANCEL = 3U }; > > enum { DOM_VK_HELP = 6U }; > > enum { DOM_VK_BACK_SPACE = 8U }; > > enum { DOM_VK_TAB = 9U }; > > enum { DOM_VK_CLEAR = 12U }; > > enum { DOM_VK_RETURN = 13U }; > > enum { DOM_VK_ENTER = 14U }; > > enum { DOM_VK_SHIFT = 16U }; > > enum { DOM_VK_CONTROL = 17U }; > > enum { DOM_VK_ALT = 18U }; > > enum { DOM_VK_PAUSE = 19U }; > > enum { DOM_VK_CAPS_LOCK = 20U }; > > enum { DOM_VK_ESCAPE = 27U }; > > enum { DOM_VK_SPACE = 32U }; > > enum { DOM_VK_PAGE_UP = 33U }; > > enum { DOM_VK_PAGE_DOWN = 34U }; > > enum { DOM_VK_END = 35U }; > > enum { DOM_VK_HOME = 36U }; > > enum { DOM_VK_LEFT = 37U }; > > enum { DOM_VK_UP = 38U }; > > enum { DOM_VK_RIGHT = 39U }; > > enum { DOM_VK_DOWN = 40U }; > > enum { DOM_VK_PRINTSCREEN = 44U }; > > enum { DOM_VK_INSERT = 45U }; > > enum { DOM_VK_DELETE = 46U }; > > enum { DOM_VK_0 = 48U }; > > enum { DOM_VK_1 = 49U }; > > enum { DOM_VK_2 = 50U }; > > enum { DOM_VK_3 = 51U }; > > enum { DOM_VK_4 = 52U }; > > enum { DOM_VK_5 = 53U }; > > enum { DOM_VK_6 = 54U }; > > enum { DOM_VK_7 = 55U }; > > enum { DOM_VK_8 = 56U }; > > enum { DOM_VK_9 = 57U }; > > enum { DOM_VK_SEMICOLON = 59U }; > > enum { DOM_VK_EQUALS = 61U }; > > enum { DOM_VK_A = 65U }; > > enum { DOM_VK_B = 66U }; > > enum { DOM_VK_C = 67U }; > > enum { DOM_VK_D = 68U }; > > enum { DOM_VK_E = 69U }; > > enum { DOM_VK_F = 70U }; > > enum { DOM_VK_G = 71U }; > > enum { DOM_VK_H = 72U }; > > enum { DOM_VK_I = 73U }; > > enum { DOM_VK_J = 74U }; > > enum { DOM_VK_K = 75U }; > > enum { DOM_VK_L = 76U }; > > enum { DOM_VK_M = 77U }; > > enum { DOM_VK_N = 78U }; > > enum { DOM_VK_O = 79U }; > > enum { DOM_VK_P = 80U }; > > enum { DOM_VK_Q = 81U }; > > enum { DOM_VK_R = 82U }; > > enum { DOM_VK_S = 83U }; > > enum { DOM_VK_T = 84U }; > > enum { DOM_VK_U = 85U }; > > enum { DOM_VK_V = 86U }; > > enum { DOM_VK_W = 87U }; > > enum { DOM_VK_X = 88U }; > > enum { DOM_VK_Y = 89U }; > > enum { DOM_VK_Z = 90U }; > > enum { DOM_VK_CONTEXT_MENU = 93U }; > > enum { DOM_VK_NUMPAD0 = 96U }; > > enum { DOM_VK_NUMPAD1 = 97U }; > > enum { DOM_VK_NUMPAD2 = 98U }; > > enum { DOM_VK_NUMPAD3 = 99U }; > > enum { DOM_VK_NUMPAD4 = 100U }; > > enum { DOM_VK_NUMPAD5 = 101U }; > > enum { DOM_VK_NUMPAD6 = 102U }; > > enum { DOM_VK_NUMPAD7 = 103U }; > > enum { DOM_VK_NUMPAD8 = 104U }; > > enum { DOM_VK_NUMPAD9 = 105U }; > > enum { DOM_VK_MULTIPLY = 106U }; > > enum { DOM_VK_ADD = 107U }; > > enum { DOM_VK_SEPARATOR = 108U }; > > enum { DOM_VK_SUBTRACT = 109U }; > > enum { DOM_VK_DECIMAL = 110U }; > > enum { DOM_VK_DIVIDE = 111U }; > > enum { DOM_VK_F1 = 112U }; > > enum { DOM_VK_F2 = 113U }; > > enum { DOM_VK_F3 = 114U }; > > enum { DOM_VK_F4 = 115U }; > > enum { DOM_VK_F5 = 116U }; > > enum { DOM_VK_F6 = 117U }; > > enum { DOM_VK_F7 = 118U }; > > enum { DOM_VK_F8 = 119U }; > > enum { DOM_VK_F9 = 120U }; > > enum { DOM_VK_F10 = 121U }; > > enum { DOM_VK_F11 = 122U }; > > enum { DOM_VK_F12 = 123U }; > > enum { DOM_VK_F13 = 124U }; > > enum { DOM_VK_F14 = 125U }; > > enum { DOM_VK_F15 = 126U }; > > enum { DOM_VK_F16 = 127U }; > > enum { DOM_VK_F17 = 128U }; > > enum { DOM_VK_F18 = 129U }; > > enum { DOM_VK_F19 = 130U }; > > enum { DOM_VK_F20 = 131U }; > > enum { DOM_VK_F21 = 132U }; > > enum { DOM_VK_F22 = 133U }; > > enum { DOM_VK_F23 = 134U }; > > enum { DOM_VK_F24 = 135U }; > > enum { DOM_VK_NUM_LOCK = 144U }; > > enum { DOM_VK_SCROLL_LOCK = 145U }; > > enum { DOM_VK_COMMA = 188U }; > > enum { DOM_VK_PERIOD = 190U }; > > enum { DOM_VK_SLASH = 191U }; > > enum { DOM_VK_BACK_QUOTE = 192U }; > > enum { DOM_VK_OPEN_BRACKET = 219U }; > > enum { DOM_VK_BACK_SLASH = 220U }; > > enum { DOM_VK_CLOSE_BRACKET = 221U }; > > enum { DOM_VK_QUOTE = 222U }; > > enum { DOM_VK_META = 224U }; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCharCode(PRUint32 *aCharCode) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetKeyCode(PRUint32 *aKeyCode) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetAltKey(PRBool *aAltKey) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCtrlKey(PRBool *aCtrlKey) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetShiftKey(PRBool *aShiftKey) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMetaKey(PRBool *aMetaKey) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) InitKeyEvent(const nsAString_internal & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg, PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg, PRUint32 charCodeArg) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMKeyEvent::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x028e0e6e, 0x8b01, 0x11d3, { 0xaa, 0xe7, 0x00, 0x10, 0x83, 0x8a, 0x31, 0x23 }}; ># 57 "../../../dist/include/widget/nsGUIEvent.h" 2 ># 1 "../../../dist/include/xpcom/nsWeakPtr.h" 1 ># 58 "../../../dist/include/widget/nsGUIEvent.h" 2 ># 1 "../../../dist/include/widget/nsIWidget.h" 1 ># 59 "../../../dist/include/widget/nsGUIEvent.h" 2 ># 1 "../../../dist/include/xpcom/nsTArray.h" 1 ># 60 "../../../dist/include/widget/nsGUIEvent.h" 2 ># 1 "../../../dist/include/xpcom/nsTraceRefcnt.h" 1 ># 61 "../../../dist/include/widget/nsGUIEvent.h" 2 > >class nsIRenderingContext; >class nsIRegion; >class nsIMenuItem; >class nsIAccessible; >class nsIContent; >class nsIURI; >class nsIDOMEvent; >class nsHashKey; ># 368 "../../../dist/include/widget/nsGUIEvent.h" >enum nsSizeMode { > nsSizeMode_Normal = 0, > nsSizeMode_Minimized, > nsSizeMode_Maximized >}; > > > > >enum nsWindowZ { > nsWindowZTop = 0, > nsWindowZBottom, > nsWindowZRelative >}; > > > > > >class nsEvent >{ >protected: > nsEvent(PRBool isTrusted, PRUint32 msg, PRUint8 structType) > : eventStructType(structType), > message(msg), > refPoint(0, 0), > time(0), > flags(isTrusted ? 0x0001 : 0x0000), > userType(0) > { > ; > } > >public: > nsEvent(PRBool isTrusted, PRUint32 msg) > : eventStructType(1), > message(msg), > refPoint(0, 0), > time(0), > flags(isTrusted ? 0x0001 : 0x0000), > userType(0) > { > ; > } > > ~nsEvent() > { > ; > } > > > PRUint8 eventStructType; > > PRUint32 message; > > nsPoint refPoint; > > > PRUint32 time; > > > PRUint32 flags; > > nsCOMPtr<nsIAtom> userType; > > > > nsCOMPtr<nsISupports> target; > nsCOMPtr<nsISupports> currentTarget; > nsCOMPtr<nsISupports> originalTarget; >}; > > > > > >class nsGUIEvent : public nsEvent >{ >protected: > nsGUIEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w, PRUint8 structType) > : nsEvent(isTrusted, msg, structType), > widget(w), nativeMsg(0) > { > } > >public: > nsGUIEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsEvent(isTrusted, msg, 2), > widget(w), nativeMsg(0) > { > } > > > nsCOMPtr<nsIWidget> widget; > > void* nativeMsg; >}; > > > > > >class nsScriptErrorEvent : public nsEvent >{ >public: > nsScriptErrorEvent(PRBool isTrusted, PRUint32 msg) > : nsEvent(isTrusted, msg, 12), > lineNr(0), errorMsg(0), fileName(0) > { > } > > PRInt32 lineNr; > const PRUnichar* errorMsg; > const PRUnichar* fileName; >}; > >class nsBeforePageUnloadEvent : public nsEvent >{ >public: > nsBeforePageUnloadEvent(PRBool isTrusted, PRUint32 msg) > : nsEvent(isTrusted, msg, 26) > { > } > > nsString text; >}; > > > > > >class nsSizeEvent : public nsGUIEvent >{ >public: > nsSizeEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsGUIEvent(isTrusted, msg, w, 3), > windowSize(0), mWinWidth(0), mWinHeight(0) > { > } > > > nsRect *windowSize; > > PRInt32 mWinWidth; > > PRInt32 mWinHeight; >}; > > > > > >class nsSizeModeEvent : public nsGUIEvent >{ >public: > nsSizeModeEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsGUIEvent(isTrusted, msg, w, 4), > mSizeMode(nsSizeMode_Normal) > { > } > > nsSizeMode mSizeMode; >}; > > > > > >class nsZLevelEvent : public nsGUIEvent >{ >public: > nsZLevelEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsGUIEvent(isTrusted, msg, w, 5), > mPlacement(nsWindowZTop), mReqBelow(0), mActualBelow(0), > mImmediate(0), mAdjusted(0) > { > } > > nsWindowZ mPlacement; > nsIWidget *mReqBelow, > *mActualBelow; > PRBool mImmediate, > mAdjusted; >}; > > > > > >class nsPaintEvent : public nsGUIEvent >{ >public: > nsPaintEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsGUIEvent(isTrusted, msg, w, 6), > renderingContext(0), region(0), rect(0) > { > } > > > nsIRenderingContext *renderingContext; > > nsIRegion *region; > > nsRect *rect; >}; > > > > > >class nsScrollbarEvent : public nsGUIEvent >{ >public: > nsScrollbarEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsGUIEvent(isTrusted, msg, w, 7), > position(0) > { > } > > > PRUint32 position; >}; > >class nsScrollPortEvent : public nsGUIEvent >{ >public: > enum orientType { > vertical = 0, > horizontal = 1, > both = 2 > }; > > nsScrollPortEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsGUIEvent(isTrusted, msg, w, 18), > orient(vertical) > { > } > > orientType orient; >}; > >class nsInputEvent : public nsGUIEvent >{ >protected: > nsInputEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w, > PRUint8 structType) > : nsGUIEvent(isTrusted, msg, w, structType), > isShift(0), isControl(0), isAlt(0), isMeta(0) > { > } > >public: > nsInputEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsGUIEvent(isTrusted, msg, w, 8), > isShift(0), isControl(0), isAlt(0), isMeta(0) > { > } > > > PRBool isShift; > > PRBool isControl; > > PRBool isAlt; > > PRBool isMeta; >}; > > > > > >class nsMouseEvent_base : public nsInputEvent >{ >public: > nsMouseEvent_base(PRBool isTrusted, PRUint32 msg, nsIWidget *w, PRUint8 type) > : nsInputEvent(isTrusted, msg, w, type), button(0) {} > > > nsCOMPtr<nsISupports> relatedTarget; > > PRInt16 button; >}; > >class nsMouseEvent : public nsMouseEvent_base >{ >public: > enum buttonType { eLeftButton = 0, eMiddleButton = 1, eRightButton = 2 }; > enum reasonType { eReal, eSynthesized }; > enum contextType { eNormal, eContextMenuKey }; > enum exitType { eChild, eTopLevel }; > > nsMouseEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w, > reasonType aReason, contextType aContext = eNormal) > : nsMouseEvent_base(isTrusted, msg, w, 10), > acceptActivation(0), reason(aReason), context(aContext), > exit(eChild), clickCount(0) > { > if (msg == (300)) { > flags |= 0x0020; > } else if (msg == (500)) { > button = (context == eNormal) ? eRightButton : eLeftButton; > } > } ># 683 "../../../dist/include/widget/nsGUIEvent.h" > PRPackedBool acceptActivation; > reasonType reason : 4; > contextType context : 4; > exitType exit; > > > PRUint32 clickCount; >}; > > > > > >class nsAccessibleEvent : public nsInputEvent >{ >public: > nsAccessibleEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsInputEvent(isTrusted, msg, w, 20), > accessible(0) > { > } > > nsIAccessible* accessible; >}; > > > > > >struct nsAlternativeCharCode { > nsAlternativeCharCode(PRUint32 aUnshiftedCharCode, > PRUint32 aShiftedCharCode) : > mUnshiftedCharCode(aUnshiftedCharCode), mShiftedCharCode(aShiftedCharCode) > { > } > PRUint32 mUnshiftedCharCode; > PRUint32 mShiftedCharCode; >}; > >class nsKeyEvent : public nsInputEvent >{ >public: > nsKeyEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsInputEvent(isTrusted, msg, w, 9), > keyCode(0), charCode(0), isChar(0) > { > } > > > PRUint32 keyCode; > > PRUint32 charCode; > > > nsTArray<nsAlternativeCharCode> alternativeCharCodes; > > PRBool isChar; >}; > > > > >struct nsTextRange >{ > nsTextRange() > : mStartOffset(0), mEndOffset(0), mRangeType(0) > { > } > > PRUint32 mStartOffset; > PRUint32 mEndOffset; > PRUint32 mRangeType; >}; > >typedef nsTextRange* nsTextRangeArray; > >struct nsTextEventReply >{ > nsTextEventReply() > : mCursorIsCollapsed(0) > { > } > > nsRect mCursorPosition; > PRBool mCursorIsCollapsed; >}; > >typedef struct nsTextEventReply nsTextEventReply; > >class nsTextEvent : public nsInputEvent >{ >public: > nsTextEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsInputEvent(isTrusted, msg, w, 13), > theText(0), rangeCount(0), rangeArray(0), isChar(0) > { > } > > const PRUnichar* theText; > nsTextEventReply theReply; > PRUint32 rangeCount; > nsTextRangeArray rangeArray; > PRBool isChar; >}; > >class nsCompositionEvent : public nsInputEvent >{ >public: > nsCompositionEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsInputEvent(isTrusted, msg, w, 14) > { > } > > nsTextEventReply theReply; >}; > >class nsMouseScrollEvent : public nsMouseEvent_base >{ >public: > enum nsMouseScrollFlags { > kIsFullPage = 1 << 0, > kIsVertical = 1 << 1, > kIsHorizontal = 1 << 2, > kIsPixels = 1 << 3 > }; > > nsMouseScrollEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsMouseEvent_base(isTrusted, msg, w, 16), > scrollFlags(0), delta(0) > { > } > > PRInt32 scrollFlags; > PRInt32 delta; >}; > >struct nsReconversionEventReply { > nsReconversionEventReply() > : mReconversionString(0) > { > } > > PRUnichar *mReconversionString; >}; > >class nsReconversionEvent : public nsInputEvent >{ >public: > nsReconversionEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsInputEvent(isTrusted, msg, w, 15) > { > } > > nsReconversionEventReply theReply; >}; > >struct nsQueryCaretRectEventReply >{ > nsQueryCaretRectEventReply() > : mRectIsValid(0) > { > } > > PRBool mRectIsValid; > nsRect mCaretRect; >}; > >class nsQueryCaretRectEvent : public nsInputEvent >{ >public: > nsQueryCaretRectEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsInputEvent(isTrusted, msg, w, 28) > { > } > > nsQueryCaretRectEventReply theReply; >}; > >class nsQueryContentEvent : public nsGUIEvent >{ >public: > nsQueryContentEvent(PRBool aIsTrusted, PRUint32 aMsg, nsIWidget *aWidget) : > nsGUIEvent(aIsTrusted, aMsg, aWidget, 33), > mSucceeded(0) > { > } > > void InitForQueryTextContent(PRUint32 aOffset, PRUint32 aLength) > { > do { } while (0); > > mInput.mOffset = aOffset; > mInput.mLength = aLength; > } > > void InitForQueryCharacterRect(PRUint32 aOffset) > { > do { } while (0); > > mInput.mOffset = aOffset; > } > > void InitForQueryCaretRect(PRUint32 aOffset) > { > do { } while (0); > > mInput.mOffset = aOffset; > } > > PRBool mSucceeded; > struct { > PRUint32 mOffset; > PRUint32 mLength; > } mInput; > struct { > void* mContentsRoot; > PRUint32 mOffset; > nsString mString; > nsRect mRect; > } mReply; >}; ># 912 "../../../dist/include/widget/nsGUIEvent.h" >class nsMenuEvent : public nsGUIEvent >{ >public: > nsMenuEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsGUIEvent(isTrusted, msg, w, 11), > mMenuItem(0), mCommand(0) > { > } > > nsIMenuItem * mMenuItem; > PRUint32 mCommand; >}; ># 932 "../../../dist/include/widget/nsGUIEvent.h" >class nsFormEvent : public nsEvent >{ >public: > nsFormEvent(PRBool isTrusted, PRUint32 msg) > : nsEvent(isTrusted, msg, 21), > originator(0) > { > } > > nsIContent *originator; >}; > > > > >class nsFocusEvent : public nsGUIEvent >{ >public: > nsFocusEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsGUIEvent(isTrusted, msg, w, 22), > isMozWindowTakingFocus(0) > { > } > > PRBool isMozWindowTakingFocus; >}; > > > > > > > >class nsCommandEvent : public nsGUIEvent >{ >public: > nsCommandEvent(PRBool isTrusted, nsIAtom* aEventType, > nsIAtom* aCommand, nsIWidget* w) > : nsGUIEvent(isTrusted, 2000, w, 24) > { > userType = aEventType; > command = aCommand; > } > > nsCOMPtr<nsIAtom> command; >}; > > > > >class nsPopupBlockedEvent : public nsEvent >{ >public: > nsPopupBlockedEvent(PRBool isTrusted, PRUint32 msg) > : nsEvent(isTrusted, msg, 25), > mPopupWindowURI(0) > { > } > > nsWeakPtr mRequestingWindow; > nsIURI* mPopupWindowURI; > nsString mPopupWindowFeatures; > nsString mPopupWindowName; >}; > > > > >class nsUIEvent : public nsEvent >{ >public: > nsUIEvent(PRBool isTrusted, PRUint32 msg, PRInt32 d) > : nsEvent(isTrusted, msg, 27), > detail(d) > { > } > > PRInt32 detail; >}; > > > > >class nsPageTransitionEvent : public nsEvent >{ >public: > nsPageTransitionEvent(PRBool isTrusted, PRUint32 msg, PRBool p) > : nsEvent(isTrusted, msg, 29), > persisted(p) > { > } > > PRBool persisted; >}; > > > > >class nsXULCommandEvent : public nsInputEvent >{ >public: > nsXULCommandEvent(PRBool isTrusted, PRUint32 msg, nsIWidget *w) > : nsInputEvent(isTrusted, msg, w, 32) > { > } > > nsCOMPtr<nsIDOMEvent> sourceEvent; >}; > > > > >enum nsDragDropEventStatus { > > nsDragDropEventStatus_eDragEntered, > > nsDragDropEventStatus_eDragExited, > > nsDragDropEventStatus_eDrop >}; ># 1268 "../../../dist/include/widget/nsGUIEvent.h" >inline PRBool NS_TargetUnfocusedEventToLastFocusedContent(nsEvent* aEvent) >{ ># 1283 "../../../dist/include/widget/nsGUIEvent.h" > return (((aEvent)->message == (2400)) || ((aEvent)->message == (2200)) || ((aEvent)->message == (2200 + 1)) || ((aEvent)->message == (2300)) || ((aEvent)->message == (2600)) || ((aEvent)->message == (2200 + 2))); ># 1295 "../../../dist/include/widget/nsGUIEvent.h" >} ># 138 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsMutationEvent.h" 1 ># 41 "../../../dist/include/content/nsMutationEvent.h" ># 1 "../../../dist/include/widget/nsGUIEvent.h" 1 ># 42 "../../../dist/include/content/nsMutationEvent.h" 2 ># 1 "../../../dist/include/dom/nsIDOMNode.h" 1 ># 43 "../../../dist/include/content/nsMutationEvent.h" 2 > ># 1 "../../../dist/include/dom/nsIDOMEventTarget.h" 1 ># 45 "../../../dist/include/content/nsMutationEvent.h" 2 > > >class nsMutationEvent : public nsEvent >{ >public: > nsMutationEvent(PRBool isTrusted, PRUint32 msg) > : nsEvent(isTrusted, msg, 19), > mAttrChange(0) > { > flags |= 0x0020; > } > > nsCOMPtr<nsIDOMNode> mRelatedNode; > nsCOMPtr<nsIAtom> mAttrName; > nsCOMPtr<nsIAtom> mPrevAttrValue; > nsCOMPtr<nsIAtom> mNewAttrValue; > unsigned short mAttrChange; >}; ># 139 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/widget/nsIKBStateControl.h" 1 ># 53 "../../../dist/include/widget/nsIKBStateControl.h" >class nsIKBStateControl : public nsISupports { > > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ResetInputState()=0; ># 79 "../../../dist/include/widget/nsIKBStateControl.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetIMEOpenState(PRBool aState) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIMEOpenState(PRBool* aState) = 0; > > > > > > enum { > > > > > IME_STATUS_DISABLED = 0, > > > > IME_STATUS_ENABLED = 1, > > > > > > > IME_STATUS_PASSWORD = 2 > }; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetIMEEnabled(PRUint32 aState) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIMEEnabled(PRUint32* aState) = 0; > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CancelIMEComposition() = 0; ># 135 "../../../dist/include/widget/nsIKBStateControl.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetToggledKeyState(PRUint32 aKeyCode, PRBool* aLEDState) = 0; >}; > >template <class Dummy> const nsIID nsIKBStateControl::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0xac4ebf71, 0x86b6, 0x4dab, { 0xa7, 0xfd, 0x17, 0x75, 0x01, 0xad, 0xec, 0x98 } }; ># 140 "nsContentUtils.cpp" 2 ># 1 "./../../events/src/nsIMEStateManager.h" 1 ># 42 "./../../events/src/nsIMEStateManager.h" ># 1 "../../../dist/include/xpcom/nscore.h" 1 ># 43 "./../../events/src/nsIMEStateManager.h" 2 > >class nsIContent; >class nsPIDOMWindow; >class nsPresContext; >class nsIKBStateControl; >class nsIFocusController; > > > > > >class nsIMEStateManager >{ >public: > static nsresult OnDestroyPresContext(nsPresContext* aPresContext); > static nsresult OnRemoveContent(nsPresContext* aPresContext, > nsIContent* aContent); > static nsresult OnChangeFocus(nsPresContext* aPresContext, > nsIContent* aContent); > static nsresult OnActivate(nsPresContext* aPresContext); > static nsresult OnDeactivate(nsPresContext* aPresContext); > static void OnInstalledMenuKeyboardListener(PRBool aInstalling); >protected: > static void SetIMEState(nsPresContext* aPresContext, > PRUint32 aState, > nsIKBStateControl* aKB); > static PRUint32 GetNewIMEState(nsPresContext* aPresContext, > nsIContent* aContent); > > static PRBool IsActive(nsPresContext* aPresContext); > > static nsIFocusController* GetFocusController(nsPresContext* aPresContext); > static nsIKBStateControl* GetKBStateControl(nsPresContext* aPresContext); > > static nsIContent* sContent; > static nsPresContext* sPresContext; > static nsPIDOMWindow* sActiveWindow; > static PRBool sInstalledMenuKeyboardListener; >}; ># 141 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/content/nsContentErrors.h" 1 ># 142 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/unicharutil/nsUnicharUtilCIID.h" 1 ># 41 "../../../dist/include/unicharutil/nsUnicharUtilCIID.h" ># 1 "../../../dist/include/xpcom/nsISupports.h" 1 ># 42 "../../../dist/include/unicharutil/nsUnicharUtilCIID.h" 2 ># 1 "../../../dist/include/xpcom/nscore.h" 1 ># 43 "../../../dist/include/unicharutil/nsUnicharUtilCIID.h" 2 ># 143 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/unicharutil/nsICaseConversion.h" 1 ># 49 "../../../dist/include/unicharutil/nsICaseConversion.h" >class nsICaseConversion : public nsISupports { > >public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToUpper( PRUnichar aChar, PRUnichar* aReturn) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToLower( PRUnichar aChar, PRUnichar* aReturn) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToTitle( PRUnichar aChar, PRUnichar* aReturn) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToUpper( const PRUnichar* anArray, PRUnichar* aReturn, PRUint32 aLen) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToLower( const PRUnichar* anArray, PRUnichar* aReturn, PRUint32 aLen) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToTitle( const PRUnichar* anArray, PRUnichar* aReturn, > PRUint32 aLen, PRBool aStartInWordBundary=1) = 0; > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CaseInsensitiveCompare(const PRUnichar* aLeft, const PRUnichar* aRight, PRUint32 aLength, PRInt32* aResult) = 0; >}; > >template <class Dummy> const nsIID nsICaseConversion::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x7d3d8e0, 0x9614, 0x11d2, { 0xb3, 0xad, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }; ># 144 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/unicharutil/nsCompressedCharMap.h" 1 ># 41 "../../../dist/include/unicharutil/nsCompressedCharMap.h" ># 1 "../../../dist/include/nspr/prtypes.h" 1 ># 42 "../../../dist/include/unicharutil/nsCompressedCharMap.h" 2 ># 1 "../../../dist/include/uconv/nsICharRepresentable.h" 1 ># 62 "../../../dist/include/uconv/nsICharRepresentable.h" >class nsICharRepresentable : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FillInfo(PRUint32* aInfo) = 0; > >}; > >template <class Dummy> const nsIID nsICharRepresentable::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0xa4d9a521, 0x185a, 0x11d3, { 0xb3, 0xbd, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }; ># 43 "../../../dist/include/unicharutil/nsCompressedCharMap.h" 2 ># 63 "../../../dist/include/unicharutil/nsCompressedCharMap.h" >class nsICharRepresentable; > >extern PRUint16* CreateEmptyCCMap(); >extern PRUint16* MapToCCMap(PRUint32* aMap); >extern PRUint16* MapperToCCMap(nsICharRepresentable *aMapper); >extern void FreeCCMap(PRUint16* &aMap); >extern PRBool NextNonEmptyCCMapPage(const PRUint16 *, PRUint32 *); >extern PRBool IsSameCCMap(PRUint16* ccmap1, PRUint16* ccmap2); > > > > > > >extern PRUint16* >MapToCCMapExt(PRUint32* aBmpPlaneMap, PRUint32** aOtherPlaneMaps, PRUint32 aOtherPlaneNum); ># 106 "../../../dist/include/unicharutil/nsCompressedCharMap.h" >class nsCompressedCharMap { >public: > nsCompressedCharMap(); > ~nsCompressedCharMap(); > > PRUint16* NewCCMap(); > PRUint16* FillCCMap(PRUint16* aCCMap); > PRUint16 GetSize() {return mUsedLen;} > void SetChar(PRUint32); > void SetChars(PRUint16*); > void SetChars(PRUint16, PRUint32*); > void SetChars(PRUint32*); > void Extend() {mExtended = 1;} > >protected: > union { > PRUint16 mCCMap[(16+16+16+256+4096)]; > PRUint32 used_for_align; > > } u; > PRUint16 mUsedLen; > PRUint16 mAllOnesPage; > > PRBool mExtended; > > > PRUint32* mExtMap[16 +1]; > PRUint32 mMap[2048]; >}; ># 145 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/widget/nsINativeKeyBindings.h" 1 ># 51 "../../../dist/include/widget/nsINativeKeyBindings.h" >struct nsNativeKeyEvent >{ > nsEvent *nativeEvent; > PRUint32 keyCode; > PRUint32 charCode; > PRBool altKey; > PRBool ctrlKey; > PRBool shiftKey; > PRBool metaKey; >}; > >class nsINativeKeyBindings : public nsISupports >{ > public: > typedef void (*DoCommandCallback)(const char *, void*); > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual __attribute__ ((visibility ("hidden"))) PRBool KeyDown(const nsNativeKeyEvent& aEvent, > DoCommandCallback aCallback, > void *aCallbackData) = 0; > > virtual __attribute__ ((visibility ("hidden"))) PRBool KeyPress(const nsNativeKeyEvent& aEvent, > DoCommandCallback aCallback, > void *aCallbackData) = 0; > > virtual __attribute__ ((visibility ("hidden"))) PRBool KeyUp(const nsNativeKeyEvent& aEvent, > DoCommandCallback aCallback, > void *aCallbackData) = 0; >}; > >template <class Dummy> const nsIID nsINativeKeyBindings::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x606c54e7, 0x0593, 0x4750, {0x99, 0xd9, 0x4e, 0x1b, 0xcc, 0xec, 0x98, 0xd9}}; ># 146 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIDOMNSUIEvent.h" 1 ># 25 "../../../dist/include/dom/nsIDOMNSUIEvent.h" >class nsIDOMNSUIEvent : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > enum { SCROLL_PAGE_UP = -32768 }; > > enum { SCROLL_PAGE_DOWN = 32768 }; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPreventDefault(PRBool *_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLayerX(PRInt32 *aLayerX) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLayerY(PRInt32 *aLayerY) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPageX(PRInt32 *aPageX) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPageY(PRInt32 *aPageY) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetWhich(PRUint32 *aWhich) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRangeParent(nsIDOMNode * *aRangeParent) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetRangeOffset(PRInt32 *aRangeOffset) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCancelBubble(PRBool *aCancelBubble) = 0; > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetCancelBubble(PRBool aCancelBubble) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIsChar(PRBool *aIsChar) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMNSUIEvent::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xa6cf90c4, 0x15b3, 0x11d2, { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}; ># 147 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIDOMNSEvent.h" 1 ># 28 "../../../dist/include/dom/nsIDOMNSEvent.h" >class nsIDOMNSEvent : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > enum { MOUSEDOWN = 1 }; > > enum { MOUSEUP = 2 }; > > enum { MOUSEOVER = 4 }; > > enum { MOUSEOUT = 8 }; > > enum { MOUSEMOVE = 16 }; > > enum { MOUSEDRAG = 32 }; > > enum { CLICK = 64 }; > > enum { DBLCLICK = 128 }; > > enum { KEYDOWN = 256 }; > > enum { KEYUP = 512 }; > > enum { KEYPRESS = 1024 }; > > enum { DRAGDROP = 2048 }; > > enum { FOCUS = 4096 }; > > enum { BLUR = 8192 }; > > enum { SELECT = 16384 }; > > enum { CHANGE = 32768 }; > > enum { RESET = 65536 }; > > enum { SUBMIT = 131072 }; > > enum { SCROLL = 262144 }; > > enum { LOAD = 524288 }; > > enum { UNLOAD = 1048576 }; > > enum { XFER_DONE = 2097152 }; > > enum { ABORT = 4194304 }; > > enum { ERROR = 8388608 }; > > enum { LOCATE = 16777216 }; > > enum { MOVE = 33554432 }; > > enum { RESIZE = 67108864 }; > > enum { FORWARD = 134217728 }; > > enum { HELP = 268435456 }; > > enum { BACK = 536870912 }; > > enum { TEXT = 1073741824 }; > > enum { ALT_MASK = 1 }; > > enum { CONTROL_MASK = 2 }; > > enum { SHIFT_MASK = 4 }; > > enum { META_MASK = 8 }; > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetOriginalTarget(nsIDOMEventTarget * *aOriginalTarget) = 0; ># 118 "../../../dist/include/dom/nsIDOMNSEvent.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetExplicitOriginalTarget(nsIDOMEventTarget * *aExplicitOriginalTarget) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetTmpRealOriginalTarget(nsIDOMEventTarget * *aTmpRealOriginalTarget) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PreventBubble(void) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) PreventCapture(void) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIsTrusted(PRBool *aIsTrusted) = 0; > >}; > > template <class Dummy> const nsIID nsIDOMNSEvent::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xe565d518, 0x4510, 0x407f, { 0xa3, 0xd9, 0x3b, 0x41, 0x07, 0x54, 0x9c, 0x6d }}; ># 148 "nsContentUtils.cpp" 2 > ># 1 "../../../dist/include/layout/nsXULPopupManager.h" 1 ># 44 "../../../dist/include/layout/nsXULPopupManager.h" ># 1 "../../../dist/include/content/nsIContent.h" 1 ># 45 "../../../dist/include/layout/nsXULPopupManager.h" 2 ># 1 "../../../dist/include/widget/nsIWidget.h" 1 ># 46 "../../../dist/include/layout/nsXULPopupManager.h" 2 ># 1 "../../../dist/include/widget/nsIRollupListener.h" 1 ># 17 "../../../dist/include/widget/nsIRollupListener.h" >class nsIContent; ># 27 "../../../dist/include/widget/nsIRollupListener.h" >class nsIRollupListener : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Rollup(nsIContent **_retval) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ShouldRollupOnMouseWheelEvent(PRBool *aShould) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ShouldRollupOnMouseActivate(PRBool *aShould) = 0; > >}; > > template <class Dummy> const nsIID nsIRollupListener::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xee6efe03, 0x77dc, 0x4aac, { 0xa6, 0xa8, 0x90, 0x57, 0x31, 0xa1, 0x79, 0x6e }}; ># 47 "../../../dist/include/layout/nsXULPopupManager.h" 2 ># 1 "../../../dist/include/widget/nsIMenuRollup.h" 1 ># 50 "../../../dist/include/widget/nsIMenuRollup.h" >class nsIMenuRollup : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual void GetSubmenuWidgetChain(nsTArray<nsIWidget*> *_retval) = 0; > > > virtual void AdjustPopupsOnWindowChange(void) = 0; > >}; > > template <class Dummy> const nsIID nsIMenuRollup::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x2b65d177, 0xc3e4, 0x4564, { 0x8d, 0xed, 0x86, 0xd2, 0xfa, 0x2f, 0x65, 0x9a }}; ># 48 "../../../dist/include/layout/nsXULPopupManager.h" 2 ># 1 "../../../dist/include/dom/nsIDOMKeyListener.h" 1 ># 41 "../../../dist/include/dom/nsIDOMKeyListener.h" ># 1 "../../../dist/include/dom/nsIDOMEvent.h" 1 ># 42 "../../../dist/include/dom/nsIDOMKeyListener.h" 2 ># 1 "../../../dist/include/dom/nsIDOMEventListener.h" 1 ># 43 "../../../dist/include/dom/nsIDOMKeyListener.h" 2 ># 57 "../../../dist/include/dom/nsIDOMKeyListener.h" >class nsIDOMKeyListener : public nsIDOMEventListener { > >public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) KeyDown(nsIDOMEvent* aKeyEvent) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) KeyUp(nsIDOMEvent* aKeyEvent) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) KeyPress(nsIDOMEvent* aKeyEvent) = 0; > >}; > >template <class Dummy> const nsIID nsIDOMKeyListener::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x35f0d080, 0xda38, 0x11d1, {0xbd, 0x85, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4} }; ># 49 "../../../dist/include/layout/nsXULPopupManager.h" 2 ># 1 "../../../dist/include/gfx/nsPoint.h" 1 ># 50 "../../../dist/include/layout/nsXULPopupManager.h" 2 > ># 1 "../../../dist/include/xpcom/nsTArray.h" 1 ># 52 "../../../dist/include/layout/nsXULPopupManager.h" 2 > ># 1 "../../../dist/include/xpcom/nsThreadUtils.h" 1 ># 43 "../../../dist/include/xpcom/nsThreadUtils.h" ># 1 "../../../dist/include/nspr/prinrval.h" 1 ># 44 "../../../dist/include/xpcom/nsThreadUtils.h" 2 ># 1 "../../../dist/include/xpcom/nsIThreadManager.h" 1 ># 17 "../../../dist/include/xpcom/nsIThreadManager.h" >class nsIThread; ># 30 "../../../dist/include/xpcom/nsIThreadManager.h" >class nsIThreadManager : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 45 "../../../dist/include/xpcom/nsIThreadManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) NewThread(PRUint32 creationFlags, nsIThread **_retval) = 0; ># 59 "../../../dist/include/xpcom/nsIThreadManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetThreadFromPRThread(PRThread * prthread, nsIThread **_retval) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMainThread(nsIThread * *aMainThread) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCurrentThread(nsIThread * *aCurrentThread) = 0; > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetIsMainThread(PRBool *aIsMainThread) = 0; > >}; > > template <class Dummy> const nsIID nsIThreadManager::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x056216f5, 0x8803, 0x46b4, { 0x91, 0x99, 0xd9, 0x5b, 0xc1, 0xf0, 0x44, 0x6f }}; ># 45 "../../../dist/include/xpcom/nsThreadUtils.h" 2 ># 1 "../../../dist/include/xpcom/nsIThread.h" 1 ># 10 "../../../dist/include/xpcom/nsIThread.h" ># 1 "../../../dist/include/xpcom/nsIEventTarget.h" 1 ># 17 "../../../dist/include/xpcom/nsIEventTarget.h" >class nsIRunnable; ># 27 "../../../dist/include/xpcom/nsIEventTarget.h" >class nsIEventTarget : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 49 "../../../dist/include/xpcom/nsIEventTarget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Dispatch(nsIRunnable *event, PRUint32 flags) = 0; > > > > > > > enum { DISPATCH_NORMAL = 0U }; ># 66 "../../../dist/include/xpcom/nsIEventTarget.h" > enum { DISPATCH_SYNC = 1U }; ># 77 "../../../dist/include/xpcom/nsIEventTarget.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsOnCurrentThread(PRBool *_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIEventTarget::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x4e8febe4, 0x6631, 0x49dc, { 0x8a, 0xc9, 0x30, 0x8c, 0x1c, 0xb9, 0xb0, 0x9c }}; ># 11 "../../../dist/include/xpcom/nsIThread.h" 2 ># 34 "../../../dist/include/xpcom/nsIThread.h" >class nsIThread : public nsIEventTarget { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetPRThread(PRThread * *aPRThread) = 0; ># 65 "../../../dist/include/xpcom/nsIThread.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Shutdown(void) = 0; ># 84 "../../../dist/include/xpcom/nsIThread.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) HasPendingEvents(PRBool *_retval) = 0; ># 104 "../../../dist/include/xpcom/nsIThread.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ProcessNextEvent(PRBool mayWait, PRBool *_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIThread::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x9c889946, 0xa73a, 0x4af3, { 0xae, 0x9a, 0xea, 0x64, 0xf7, 0xd4, 0xe3, 0xca }}; ># 46 "../../../dist/include/xpcom/nsThreadUtils.h" 2 ># 1 "../../../dist/include/xpcom/nsIRunnable.h" 1 ># 25 "../../../dist/include/xpcom/nsIRunnable.h" >class nsIRunnable : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Run(void) = 0; > >}; > > template <class Dummy> const nsIID nsIRunnable::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x4a2abaf0, 0x6886, 0x11d3, { 0x93, 0x82, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40 }}; ># 47 "../../../dist/include/xpcom/nsThreadUtils.h" 2 ># 80 "../../../dist/include/xpcom/nsThreadUtils.h" >extern nsresult >NS_NewThread_P(nsIThread **result, nsIRunnable *initialEvent = 0); > > > > > > > >extern nsresult >NS_GetCurrentThread_P(nsIThread **result); > > > > > > > >extern nsresult >NS_GetMainThread_P(nsIThread **result); > > > > > > > >extern PRBool >NS_IsMainThread_P(); ># 119 "../../../dist/include/xpcom/nsThreadUtils.h" >extern nsresult >NS_DispatchToCurrentThread_P(nsIRunnable *event); ># 133 "../../../dist/include/xpcom/nsThreadUtils.h" >extern nsresult >NS_DispatchToMainThread_P(nsIRunnable *event, > PRUint32 dispatchFlags = nsIEventTarget::DISPATCH_NORMAL); ># 153 "../../../dist/include/xpcom/nsThreadUtils.h" >extern nsresult >NS_ProcessPendingEvents_P(nsIThread *thread, > PRIntervalTime timeout = 0xffffffffUL); ># 172 "../../../dist/include/xpcom/nsThreadUtils.h" >extern PRBool >NS_HasPendingEvents_P(nsIThread *thread = 0); ># 192 "../../../dist/include/xpcom/nsThreadUtils.h" >extern PRBool >NS_ProcessNextEvent_P(nsIThread *thread = 0, PRBool mayWait = 1); > > > > >inline already_AddRefed<nsIThread> >do_GetCurrentThread() { > nsIThread *thread = 0; > NS_GetCurrentThread_P(&thread); > return already_AddRefed<nsIThread>(thread); >} > >inline already_AddRefed<nsIThread> >do_GetMainThread() { > nsIThread *thread = 0; > NS_GetMainThread_P(&thread); > return already_AddRefed<nsIThread>(thread); >} ># 219 "../../../dist/include/xpcom/nsThreadUtils.h" >extern nsIThread *NS_GetCurrentThread_P(); ># 230 "../../../dist/include/xpcom/nsThreadUtils.h" >class nsRunnable : public nsIRunnable >{ >public: > public: virtual nsresult __attribute__ ((regparm (0), cdecl)) QueryInterface(const nsIID& aIID, void** aInstancePtr); virtual nsrefcnt __attribute__ ((regparm (0), cdecl)) AddRef(void); virtual nsrefcnt __attribute__ ((regparm (0), cdecl)) Release(void); protected: nsAutoRefCnt mRefCnt; public: > virtual nsresult __attribute__ ((regparm (0), cdecl)) Run(void); > > nsRunnable() { > } > >protected: > virtual ~nsRunnable() { > } >}; > > > > > > >template <class T> >class nsRunnableMethod : public nsRunnable >{ >public: > typedef void (T::*Method)(); > > nsRunnableMethod(T *obj, Method method) > : mObj(obj), mMethod(method) { > (mObj)->AddRef(); > } > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Run() { > (mObj->*mMethod)(); > return 0; > } > >private: > virtual ~nsRunnableMethod() { > do { (mObj)->Release(); (mObj) = 0; } while (0); > } > > T *mObj; > Method mMethod; >}; ># 336 "../../../dist/include/xpcom/nsThreadUtils.h" >template <class T> >class nsRevocableEventPtr { >public: > nsRevocableEventPtr() > : mEvent(0) { > } > > ~nsRevocableEventPtr() { > Revoke(); > } > > const nsRevocableEventPtr& operator=(T *event) { > Revoke(); > mEvent = event; > return *this; > } > > void Revoke() { > if (mEvent) { > mEvent->Revoke(); > mEvent = 0; > } > } > > void Forget() { > mEvent = 0; > } > > PRBool IsPending() { > return mEvent != 0; > } > >private: > > nsRevocableEventPtr(const nsRevocableEventPtr&); > nsRevocableEventPtr& operator=(const nsRevocableEventPtr&); > > T *mEvent; >}; ># 54 "../../../dist/include/layout/nsXULPopupManager.h" 2 ># 72 "../../../dist/include/layout/nsXULPopupManager.h" >class nsIPresShell; >class nsMenuFrame; >class nsMenuPopupFrame; >class nsMenuBarFrame; >class nsIMenuParent; >class nsIDOMKeyEvent; >class nsIDocShellTreeItem; > > > >enum CloseMenuMode { > CloseMenuMode_Auto, > CloseMenuMode_None, > CloseMenuMode_Single >}; ># 114 "../../../dist/include/layout/nsXULPopupManager.h" >enum nsNavigationDirection { > eNavigationDirection_Last, > eNavigationDirection_First, > eNavigationDirection_Start, > eNavigationDirection_Before, > eNavigationDirection_End, > eNavigationDirection_After >}; ># 135 "../../../dist/include/layout/nsXULPopupManager.h" >extern nsNavigationDirection DirectionFromKeyCode_lr_tb [6]; > > > > > > >extern nsNavigationDirection DirectionFromKeyCode_rl_tb [6]; ># 161 "../../../dist/include/layout/nsXULPopupManager.h" >class nsMenuChainItem >{ >private: > nsMenuPopupFrame* mFrame; > nsPopupType mPopupType; > PRPackedBool mIsContext; > PRPackedBool mOnMenuBar; > PRPackedBool mIgnoreKeys; > > nsMenuChainItem* mParent; > nsMenuChainItem* mChild; > >public: > nsMenuChainItem(nsMenuPopupFrame* aFrame, PRBool aIsContext, nsPopupType aPopupType) > : mFrame(aFrame), > mPopupType(aPopupType), > mIsContext(aIsContext), > mOnMenuBar(0), > mIgnoreKeys(0), > mParent(0), > mChild(0) > { > do { } while (0); > ; > } > > ~nsMenuChainItem() > { > ; > } > > nsIContent* Content(); > nsMenuPopupFrame* Frame() { return mFrame; } > nsPopupType PopupType() { return mPopupType; } > PRBool IsMenu() { return mPopupType == ePopupTypeMenu; } > PRBool IsContextMenu() { return mIsContext; } > PRBool IgnoreKeys() { return mIgnoreKeys; } > PRBool IsOnMenuBar() { return mOnMenuBar; } > void SetIgnoreKeys(PRBool aIgnoreKeys) { mIgnoreKeys = aIgnoreKeys; } > void SetOnMenuBar(PRBool aOnMenuBar) { mOnMenuBar = aOnMenuBar; } > nsMenuChainItem* GetParent() { return mParent; } > nsMenuChainItem* GetChild() { return mChild; } > > > > void SetParent(nsMenuChainItem* aParent); > > > > > > void Detach(nsMenuChainItem** aRoot); >}; > > >class nsXULPopupShowingEvent : public nsRunnable >{ >public: > nsXULPopupShowingEvent(nsIContent *aPopup, > nsIContent *aMenu, > PRBool aIsContextMenu, > PRBool aSelectFirstItem) > : mPopup(aPopup), > mMenu(aMenu), > mIsContextMenu(aIsContextMenu), > mSelectFirstItem(aSelectFirstItem) > { > do { } while (0); > do { } while (0); > } > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Run(); > >private: > nsCOMPtr<nsIContent> mPopup; > nsCOMPtr<nsIContent> mMenu; > PRBool mIsContextMenu; > PRBool mSelectFirstItem; >}; > > >class nsXULPopupHidingEvent : public nsRunnable >{ >public: > nsXULPopupHidingEvent(nsIContent *aPopup, > nsIContent* aNextPopup, > nsIContent* aLastPopup, > nsPopupType aPopupType, > PRBool aDeselectMenu) > : mPopup(aPopup), > mNextPopup(aNextPopup), > mLastPopup(aLastPopup), > mPopupType(aPopupType), > mDeselectMenu(aDeselectMenu) > { > do { } while (0); > > } > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Run(); > >private: > nsCOMPtr<nsIContent> mPopup; > nsCOMPtr<nsIContent> mNextPopup; > nsCOMPtr<nsIContent> mLastPopup; > nsPopupType mPopupType; > PRBool mDeselectMenu; >}; > > >class nsXULMenuCommandEvent : public nsRunnable >{ >public: > nsXULMenuCommandEvent(nsIContent *aMenu, > PRBool aIsTrusted, > PRBool aShift, > PRBool aControl, > PRBool aAlt, > PRBool aMeta, > PRBool aUserInput, > CloseMenuMode aCloseMenuMode) > : mMenu(aMenu), > mIsTrusted(aIsTrusted), > mShift(aShift), > mControl(aControl), > mAlt(aAlt), > mMeta(aMeta), > mUserInput(aUserInput), > mCloseMenuMode(aCloseMenuMode) > { > do { } while (0); > } > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Run(); > >private: > nsCOMPtr<nsIContent> mMenu; > PRBool mIsTrusted; > PRBool mShift; > PRBool mControl; > PRBool mAlt; > PRBool mMeta; > PRBool mUserInput; > CloseMenuMode mCloseMenuMode; >}; > >class nsXULPopupManager : public nsIDOMKeyListener, > public nsIMenuRollup, > public nsIRollupListener, > public nsITimerCallback >{ > >public: > friend class nsXULPopupShowingEvent; > friend class nsXULPopupHidingEvent; > friend class nsXULMenuCommandEvent; > > public: virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) QueryInterface(const nsIID& aIID, void** aInstancePtr); virtual __attribute__ ((visibility ("hidden"))) nsrefcnt __attribute__ ((regparm (0), cdecl)) AddRef(void); virtual __attribute__ ((visibility ("hidden"))) nsrefcnt __attribute__ ((regparm (0), cdecl)) Release(void); protected: nsAutoRefCnt mRefCnt; public: > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Rollup(nsIContent **_retval); virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ShouldRollupOnMouseWheelEvent(PRBool *aShould); virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ShouldRollupOnMouseActivate(PRBool *aShould); > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Notify(nsITimer *timer); > > virtual void GetSubmenuWidgetChain(nsTArray<nsIWidget*> *_retval); > virtual void AdjustPopupsOnWindowChange(void); > > static nsXULPopupManager* sInstance; > > > static nsresult Init(); > static void Shutdown(); > > > > static nsXULPopupManager* GetInstance(); > > > > > nsIFrame* GetFrameOfTypeForContent(nsIContent* aContent, > nsIAtom* aFrameType, > PRBool aShouldFlush); ># 361 "../../../dist/include/layout/nsXULPopupManager.h" > static nsMenuFrame* GetPreviousMenuItem(nsIFrame* aParent, > nsMenuFrame* aStart, > PRBool aIsPopup); > static nsMenuFrame* GetNextMenuItem(nsIFrame* aParent, > nsMenuFrame* aStart, > PRBool aIsPopup); > > > > > static PRBool IsValidMenuItem(nsPresContext* aPresContext, > nsIContent* aContent, > PRBool aOnPopup); ># 382 "../../../dist/include/layout/nsXULPopupManager.h" > void SetActiveMenuBar(nsMenuBarFrame* aMenuBar, PRBool aActivate); > > > > > > > void GetMouseLocation(nsIDOMNode** aNode, PRInt32* aOffset); > > > > > > > > void ShowMenu(nsIContent *aMenu, PRBool aSelectFirstItem, PRBool aAsynchronous); ># 411 "../../../dist/include/layout/nsXULPopupManager.h" > void ShowPopup(nsIContent* aPopup, > nsIContent* aAnchorContent, > const nsAString_internal& aPosition, > PRInt32 aXPos, PRInt32 aYPos, > PRBool aIsContextMenu, > PRBool aAttributesOverride, > PRBool aSelectFirstItem, > nsIDOMEvent* aTriggerEvent); ># 430 "../../../dist/include/layout/nsXULPopupManager.h" > void ShowPopupAtScreen(nsIContent* aPopup, > PRInt32 aXPos, PRInt32 aYPos, > PRBool aIsContextMenu, > nsIDOMEvent* aTriggerEvent); > > > > > > > > void ShowPopupWithAnchorAlign(nsIContent* aPopup, > nsIContent* aAnchorContent, > nsAString_internal& aAnchor, > nsAString_internal& aAlign, > PRInt32 aXPos, PRInt32 aYPos, > PRBool aIsContextMenu); ># 461 "../../../dist/include/layout/nsXULPopupManager.h" > void HidePopup(nsIContent* aPopup, > PRBool aHideChain, > PRBool aDeselectMenu, > PRBool aAsynchronous); > > > > > > > void HidePopupAfterDelay(nsMenuPopupFrame* aPopup); > > > > > > void HidePopupsInDocShell(nsIDocShellTreeItem* aDocShellToHide); ># 486 "../../../dist/include/layout/nsXULPopupManager.h" > void ExecuteMenu(nsIContent* aMenu, nsEvent* aEvent); > > > > > PRBool IsPopupOpen(nsIContent* aPopup); > > > > > PRBool IsPopupOpenForMenuParent(nsIMenuParent* aMenuParent); > > > > > > > nsIFrame* GetTopPopup(nsPopupType aType); > > > > > > nsTArray<nsIFrame *> GetOpenPopups(); > > > > > > > PRBool MayShowPopup(nsMenuPopupFrame* aFrame); > > > > > > > void PopupDestroyed(nsMenuPopupFrame* aFrame); > > > > > > > PRBool HasContextMenu(nsMenuPopupFrame* aPopup); > > > > > > > > void UpdateMenuItems(nsIContent* aPopup); > > > > > > > void KillMenuTimer(); ># 555 "../../../dist/include/layout/nsXULPopupManager.h" > void CancelMenuTimer(nsIMenuParent* aMenuParent); > > > > > > > > PRBool HandleShortcutNavigation(nsIDOMKeyEvent* aKeyEvent, > nsMenuPopupFrame* aFrame); > > > > > > PRBool HandleKeyboardNavigation(PRUint32 aKeyCode); > > > > > > > PRBool HandleKeyboardNavigationInPopup(nsMenuPopupFrame* aFrame, > nsNavigationDirection aDir) > { > return HandleKeyboardNavigationInPopup(0, aFrame, aDir); > } > > nsresult HandleEvent(nsIDOMEvent* aEvent) { return 0; } > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) KeyUp(nsIDOMEvent* aKeyEvent); > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) KeyDown(nsIDOMEvent* aKeyEvent); > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) KeyPress(nsIDOMEvent* aKeyEvent); > >protected: > nsXULPopupManager(); > ~nsXULPopupManager(); > > > nsMenuFrame* GetMenuFrameForContent(nsIContent* aContent); > > > nsMenuPopupFrame* GetPopupFrameForContent(nsIContent* aContent); > > > nsMenuChainItem* GetTopVisibleMenu(); > > > > > > void HidePopupsInList(const nsTArray<nsMenuPopupFrame *> &aFrames, > PRBool aDeselectMenu); > > > > void SetTriggerEvent(nsIDOMEvent* aEvent, nsIContent* aPopup); > > > void ShowPopupCallback(nsIContent* aPopup, > nsMenuPopupFrame* aPopupFrame, > PRBool aIsContextMenu, > PRBool aSelectFirstItem); > void HidePopupCallback(nsIContent* aPopup, > nsMenuPopupFrame* aPopupFrame, > nsIContent* aNextPopup, > nsIContent* aLastPopup, > nsPopupType aPopupType, > PRBool aDeselectMenu); ># 638 "../../../dist/include/layout/nsXULPopupManager.h" > void FirePopupShowingEvent(nsIContent* aPopup, > nsIContent* aMenu, > nsPresContext* aPresContext, > nsPopupType aPopupType, > PRBool aIsContextMenu, > PRBool aSelectFirstItem); ># 663 "../../../dist/include/layout/nsXULPopupManager.h" > void FirePopupHidingEvent(nsIContent* aPopup, > nsIContent* aNextPopup, > nsIContent* aLastPopup, > nsPresContext *aPresContext, > nsPopupType aPopupType, > PRBool aDeselectMenu); > > > > > PRBool HandleKeyboardNavigationInPopup(nsMenuChainItem* aItem, > nsNavigationDirection aDir) > { > return HandleKeyboardNavigationInPopup(aItem, aItem->Frame(), aDir); > } > >private: > > > > > > > > PRBool HandleKeyboardNavigationInPopup(nsMenuChainItem* aItem, > nsMenuPopupFrame* aFrame, > nsNavigationDirection aDir); > >protected: > > > > > > > void SetCaptureState(nsIContent *aOldPopup); ># 711 "../../../dist/include/layout/nsXULPopupManager.h" > void UpdateKeyboardListeners(); > > > > > PRBool IsChildOfDocShell(nsIDocument* aDoc, nsIDocShellTreeItem* aExpected); > > > nsCOMPtr<nsIDOMEventTarget> mKeyListener; > > > nsCOMPtr<nsIWidget> mWidget; > > > nsCOMPtr<nsIDOMNode> mRangeParent; > PRInt32 mRangeOffset; > nsPoint mCachedMousePoint; > > > nsMenuBarFrame* mActiveMenuBar; > > > nsMenuChainItem* mCurrentMenu; > > > nsMenuChainItem* mPanels; > > > nsCOMPtr<nsITimer> mCloseTimer; > > > nsMenuPopupFrame* mTimerMenu; >}; > >nsresult >NS_NewXULPopupManager(nsISupports** aResult); ># 150 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/necko/nsIPermissionManager.h" 1 ># 21 "../../../dist/include/necko/nsIPermissionManager.h" >class nsIURI; > >class nsIObserver; ># 33 "../../../dist/include/necko/nsIPermissionManager.h" >class nsIPermissionManager : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} ># 45 "../../../dist/include/necko/nsIPermissionManager.h" > enum { UNKNOWN_ACTION = 0U }; > > enum { ALLOW_ACTION = 1U }; > > enum { DENY_ACTION = 2U }; ># 71 "../../../dist/include/necko/nsIPermissionManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Add(nsIURI *uri, const char *type, PRUint32 permission) = 0; ># 85 "../../../dist/include/necko/nsIPermissionManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Remove(const nsACString_internal & host, const char *type) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RemoveAll(void) = 0; ># 101 "../../../dist/include/necko/nsIPermissionManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) TestPermission(nsIURI *uri, const char *type, PRUint32 *_retval) = 0; ># 112 "../../../dist/include/necko/nsIPermissionManager.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) TestExactPermission(nsIURI *uri, const char *type, PRUint32 *_retval) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetEnumerator(nsISimpleEnumerator * *aEnumerator) = 0; > >}; > > template <class Dummy> const nsIID nsIPermissionManager::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x00708302, 0x684c, 0x42d6, { 0xa5, 0xa3, 0x99, 0x5d, 0x51, 0xb1, 0xd1, 0x7c }}; ># 151 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsIScriptObjectPrincipal.h" 1 ># 43 "../../../dist/include/dom/nsIScriptObjectPrincipal.h" >class nsIPrincipal; ># 53 "../../../dist/include/dom/nsIScriptObjectPrincipal.h" >class nsIScriptObjectPrincipal : public nsISupports >{ >public: > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > virtual nsIPrincipal* GetPrincipal() = 0; >}; > >template <class Dummy> const nsIID nsIScriptObjectPrincipal::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = { 0x3eedba38, 0x8d22, 0x41e1, { 0x81, 0x7a, 0x0e, 0x43, 0xe1, 0x65, 0xb6, 0x64} }; ># 152 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/xpcom/nsIRunnable.h" 1 ># 153 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/dom/nsDOMJSUtils.h" 1 > > > > ># 1 "../../../dist/include/js/jsapi.h" 1 ># 6 "../../../dist/include/dom/nsDOMJSUtils.h" 2 > > > > >inline nsIScriptContext * >GetScriptContextFromJSContext(JSContext *cx) >{ > if (!(::JS_GetOptions(cx) & ((JSUint32)1 << (3)))) { > return 0; > } > > nsCOMPtr<nsIScriptContext> scx = > do_QueryInterface(static_cast<nsISupports *> > (::JS_GetContextPrivate(cx))); > > > > return scx; >} ># 36 "../../../dist/include/dom/nsDOMJSUtils.h" >nsresult NS_CreateJSArgv(JSContext *aContext, PRUint32 aArgc, void *aArgv, > nsIArray **aArray); ># 154 "nsContentUtils.cpp" 2 > > ># 1 "../../../dist/include/widget/nsIBidiKeyboard.h" 1 ># 25 "../../../dist/include/widget/nsIBidiKeyboard.h" >class nsIBidiKeyboard : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) IsLangRTL(PRBool *_retval) = 0; > > > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) SetLangFromBidiLevel(PRUint8 aLevel) = 0; > >}; > > template <class Dummy> const nsIID nsIBidiKeyboard::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x0d8f8f10, 0xc92d, 0x4a6a, { 0xb2, 0xbb, 0xe1, 0x92, 0x1f, 0x3f, 0x4d, 0xda }}; ># 157 "nsContentUtils.cpp" 2 > ># 1 "../../../dist/include/xpcom/nsCycleCollectionParticipant.h" 1 ># 159 "nsContentUtils.cpp" 2 > > ># 1 "../../../dist/include/intl/nsIStringBundle.h" 1 ># 39 "../../../dist/include/intl/nsIStringBundle.h" >class nsIStringBundle : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetStringFromID(PRInt32 aID, PRUnichar **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetStringFromName(const PRUnichar *aName, PRUnichar **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FormatStringFromID(PRInt32 aID, const PRUnichar **params, PRUint32 length, PRUnichar **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FormatStringFromName(const PRUnichar *aName, const PRUnichar **params, PRUint32 length, PRUnichar **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSimpleEnumeration(nsISimpleEnumerator **_retval) = 0; > >}; > > template <class Dummy> const nsIID nsIStringBundle::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xd85a17c2, 0xaa7c, 0x11d2, { 0x9b, 0x8c, 0x00, 0x80, 0x5f, 0x8a, 0x16, 0xd9 }}; ># 160 "../../../dist/include/intl/nsIStringBundle.h" >class nsIStringBundleService : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateBundle(const char *aURLSpec, nsIStringBundle **_retval) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) CreateExtensibleBundle(const char *aRegistryKey, nsIStringBundle **_retval) = 0; ># 180 "../../../dist/include/intl/nsIStringBundle.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FormatStatusMessage(nsresult aStatus, const PRUnichar *aStatusArg, PRUnichar **_retval) = 0; ># 192 "../../../dist/include/intl/nsIStringBundle.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) FlushBundles(void) = 0; > >}; > > template <class Dummy> const nsIID nsIStringBundleService::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xd85a17c0, 0xaa7c, 0x11d2, { 0x9b, 0x8c, 0x00, 0x80, 0x5f, 0x8a, 0x16, 0xd9 }}; ># 162 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/xpconnect/nsIScriptError.h" 1 ># 14 "../../../dist/include/xpconnect/nsIScriptError.h" ># 1 "../../../dist/include/xpcom/nsIConsoleMessage.h" 1 ># 30 "../../../dist/include/xpcom/nsIConsoleMessage.h" >class nsIConsoleMessage : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMessageMoz(PRUnichar * *aMessage) = 0; > >}; > > template <class Dummy> const nsIID nsIConsoleMessage::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x41bd8784, 0x1dd2, 0x11b2, { 0x95, 0x53, 0x86, 0x06, 0x95, 0x8f, 0xff, 0xe1 }}; ># 15 "../../../dist/include/xpconnect/nsIScriptError.h" 2 ># 29 "../../../dist/include/xpconnect/nsIScriptError.h" >class nsIScriptError : public nsIConsoleMessage { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > enum { errorFlag = 0U }; > > > enum { warningFlag = 1U }; > > > enum { exceptionFlag = 2U }; > > > enum { strictFlag = 4U }; ># 53 "../../../dist/include/xpconnect/nsIScriptError.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetErrorMessage(nsAString_internal & aErrorMessage) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSourceName(nsAString_internal & aSourceName) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetSourceLine(nsAString_internal & aSourceLine) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetLineNumber(PRUint32 *aLineNumber) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetColumnNumber(PRUint32 *aColumnNumber) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetFlags(PRUint32 *aFlags) = 0; ># 77 "../../../dist/include/xpconnect/nsIScriptError.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetCategory(char * *aCategory) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Init(const PRUnichar *message, const PRUnichar *sourceName, const PRUnichar *sourceLine, PRUint32 lineNumber, PRUint32 columnNumber, PRUint32 flags, const char *category) = 0; > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) ToString(nsACString_internal & _retval) = 0; > >}; > > template <class Dummy> const nsIID nsIScriptError::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xb0196fc7, 0x1913, 0x441a, { 0x88, 0x2a, 0x45, 0x3c, 0x0d, 0x8b, 0x89, 0xb8 }}; ># 163 "nsContentUtils.cpp" 2 ># 1 "../../../dist/include/xpcom/nsIConsoleService.h" 1 ># 14 "../../../dist/include/xpcom/nsIConsoleService.h" ># 1 "../../../dist/include/xpcom/nsIConsoleListener.h" 1 ># 29 "../../../dist/include/xpcom/nsIConsoleListener.h" >class nsIConsoleListener : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Observe(nsIConsoleMessage *aMessage) = 0; > >}; > > template <class Dummy> const nsIID nsIConsoleListener::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0xeaaf61d6, 0x1dd1, 0x11b2, { 0xbc, 0x6e, 0x8f, 0xc9, 0x64, 0x80, 0xf2, 0x0d }}; ># 15 "../../../dist/include/xpcom/nsIConsoleService.h" 2 ># 33 "../../../dist/include/xpcom/nsIConsoleService.h" >class nsIConsoleService : public nsISupports { > public: > > template <class Dummy> struct COMTypeInfo { static const nsIID kIID __attribute__ ((visibility ("hidden"))); }; static const nsIID& GetIID() {return COMTypeInfo<int>::kIID;} > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LogMessage(nsIConsoleMessage *message) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) LogStringMessage(const PRUnichar *message) = 0; ># 54 "../../../dist/include/xpcom/nsIConsoleService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) GetMessageArray(nsIConsoleMessage ***messages, PRUint32 *count) = 0; ># 63 "../../../dist/include/xpcom/nsIConsoleService.h" > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) RegisterListener(nsIConsoleListener *listener) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) UnregisterListener(nsIConsoleListener *listener) = 0; > > > > > > virtual __attribute__ ((visibility ("hidden"))) nsresult __attribute__ ((regparm (0), cdecl)) Reset(void) = 0; > >}; > > template <class Dummy> const nsIID nsIConsoleService::COMTypeInfo<Dummy>::kIID __attribute__ ((visibility ("hidden"))) = {0x883472a0, 0xea9b, 0x11da, { 0x8a, 0xd9, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}; ># 164 "nsContentUtils.cpp" 2 > ># 1 "mozAutoDocUpdate.h" 1 ># 44 "mozAutoDocUpdate.h" >class mozAutoDocUpdate >{ >public: > mozAutoDocUpdate(nsIDocument* aDocument, nsUpdateType aUpdateType, > PRBool aNotify) : > mDocument(aNotify ? aDocument : 0), > mUpdateType(aUpdateType) > { > if (mDocument) { > mDocument->BeginUpdate(mUpdateType); > } > else if (aUpdateType == 0x00000001) { > nsContentUtils::AddRemovableScriptBlocker(); > } > else { > nsContentUtils::AddScriptBlocker(); > } > } > > ~mozAutoDocUpdate() > { > if (mDocument) { > mDocument->EndUpdate(mUpdateType); > } > else if (mUpdateType == 0x00000001) { > nsContentUtils::RemoveRemovableScriptBlocker(); > } > else { > nsContentUtils::RemoveScriptBlocker(); > } > } > >private: > nsCOMPtr<nsIDocument> mDocument; > nsUpdateType mUpdateType; >}; ># 97 "mozAutoDocUpdate.h" >class mozAutoDocConditionalContentUpdateBatch >{ >public: > mozAutoDocConditionalContentUpdateBatch(nsIDocument* aDocument, > PRBool aNotify) : > mDocument(aNotify ? aDocument : 0) > { > if (mDocument) { > mDocument->BeginUpdate(0x00000001); > } > } > > ~mozAutoDocConditionalContentUpdateBatch() > { > if (mDocument) { > mDocument->EndUpdate(0x00000001); > } > } > >private: > nsCOMPtr<nsIDocument> mDocument; >}; ># 166 "nsContentUtils.cpp" 2 > >const char kLoadAsData[] = "loadAsData"; > >static const char kJSStackContractID[] = "@mozilla.org/js/xpc/ContextStack;1"; >static const nsCID kParserServiceCID = { 0xa6cf9112, 0x15b3, 0x11d2, { 0x93, 0x2e, 0x0, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }; >static const nsCID kCParserCID = { 0x2ce606b0, 0xbee6, 0x11d1, { 0xaa, 0xd9, 0x0, 0x80, 0x5f, 0x8a, 0x3e, 0x14 } }; > >nsIDOMScriptObjectFactory *nsContentUtils::sDOMScriptObjectFactory = 0; >nsIXPConnect *nsContentUtils::sXPConnect; >nsIScriptSecurityManager *nsContentUtils::sSecurityManager; >nsIThreadJSContextStack *nsContentUtils::sThreadJSContextStack; >nsIParserService *nsContentUtils::sParserService = 0; >nsINameSpaceManager *nsContentUtils::sNameSpaceManager; >nsIIOService *nsContentUtils::sIOService; > >nsIXTFService *nsContentUtils::sXTFService = 0; > >nsIPrefBranch *nsContentUtils::sPrefBranch = 0; >nsIPref *nsContentUtils::sPref = 0; >imgILoader *nsContentUtils::sImgLoader; >nsIConsoleService *nsContentUtils::sConsoleService; >nsDataHashtable<nsISupportsHashKey, EventNameMapping>* nsContentUtils::sEventTable = 0; >nsIStringBundleService *nsContentUtils::sStringBundleService; >nsIStringBundle *nsContentUtils::sStringBundles[PropertiesFile_COUNT]; >nsIContentPolicy *nsContentUtils::sContentPolicyService; >PRBool nsContentUtils::sTriedToGetContentPolicy = 0; >nsILineBreaker *nsContentUtils::sLineBreaker; >nsIWordBreaker *nsContentUtils::sWordBreaker; >nsICaseConversion *nsContentUtils::sCaseConv; >nsVoidArray *nsContentUtils::sPtrsToPtrsToRelease; >nsIScriptRuntime *nsContentUtils::sScriptRuntimes[((nsIProgrammingLanguage::MAX > 0x000FU ? 0x000FU : nsIProgrammingLanguage::MAX)-nsIProgrammingLanguage::JAVASCRIPT+1)]; >PRInt32 nsContentUtils::sScriptRootCount[((nsIProgrammingLanguage::MAX > 0x000FU ? 0x000FU : nsIProgrammingLanguage::MAX)-nsIProgrammingLanguage::JAVASCRIPT+1)]; >PRUint32 nsContentUtils::sJSGCThingRootCount; > >nsIBidiKeyboard *nsContentUtils::sBidiKeyboard = 0; > >PRUint32 nsContentUtils::sScriptBlockerCount = 0; >PRUint32 nsContentUtils::sRemovableScriptBlockerCount = 0; >nsCOMArray<nsIRunnable>* nsContentUtils::sBlockedScriptRunners = 0; >PRUint32 nsContentUtils::sRunnersCountAtFirstBlocker = 0; > >nsIJSRuntimeService *nsAutoGCRoot::sJSRuntimeService; >JSRuntime *nsAutoGCRoot::sJSScriptRuntime; > >PRBool nsContentUtils::sInitialized = 0; > >static PLDHashTable sEventListenerManagersHash; > >class EventListenerManagerMapEntry : public PLDHashEntryHdr >{ >public: > EventListenerManagerMapEntry(const void *aKey) > : mKey(aKey) > { > } > > ~EventListenerManagerMapEntry() > { > do { } while (0); > } > >private: > const void *mKey; > >public: > nsCOMPtr<nsIEventListenerManager> mListenerManager; >}; > >static PRBool >EventListenerManagerHashInitEntry(PLDHashTable *table, PLDHashEntryHdr *entry, > const void *key) >{ > > new (entry) EventListenerManagerMapEntry(key); > return 1; >} > >static void >EventListenerManagerHashClearEntry(PLDHashTable *table, PLDHashEntryHdr *entry) >{ > EventListenerManagerMapEntry *lm = > static_cast<EventListenerManagerMapEntry *>(entry); > > > lm->~EventListenerManagerMapEntry(); >} > > >nsresult >nsContentUtils::Init() >{ > if (sInitialized) { > do { } while (0); > > return 0; > } > > nsresult rv = CallGetService("@mozilla.org/scriptsecuritymanager;1", > &sSecurityManager); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > > CallGetService("@mozilla.org/preferences-service;1", &sPrefBranch); > > > CallGetService("@mozilla.org/preferences;1", &sPref); > > rv = NS_GetNameSpaceManager(&sNameSpaceManager); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > rv = CallGetService(nsIXPConnect::GetCID(), &sXPConnect); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > rv = CallGetService(kJSStackContractID, &sThreadJSContextStack); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > rv = CallGetService("@mozilla.org/network/io-service;1", &sIOService); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) { > > > sIOService = 0; > } > > rv = CallGetService("@mozilla.org/intl/lbrk;1", &sLineBreaker); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > rv = CallGetService("@mozilla.org/intl/wbrk;1", &sWordBreaker); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > rv = CallGetService("@mozilla.org/intl/unicharutil;1", &sCaseConv); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > > rv = CallGetService("@mozilla.org/image/loader;1", &sImgLoader); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) { > > sImgLoader = 0; > } > > sPtrsToPtrsToRelease = new nsVoidArray(); > if (!sPtrsToPtrsToRelease) { > return ((nsresult) 0x8007000eL); > } > > if (!InitializeEventTable()) > return ((nsresult) 0x80004005L); > > if (!sEventListenerManagersHash.ops) { > static PLDHashTableOps hash_table_ops = > { > PL_DHashAllocTable, > PL_DHashFreeTable, > PL_DHashVoidPtrKeyStub, > PL_DHashMatchEntryStub, > PL_DHashMoveEntryStub, > EventListenerManagerHashClearEntry, > PL_DHashFinalizeStub, > EventListenerManagerHashInitEntry > }; > > if (!PL_DHashTableInit(&sEventListenerManagersHash, &hash_table_ops, > 0, sizeof(EventListenerManagerMapEntry), 16)) { > sEventListenerManagersHash.ops = 0; > > return ((nsresult) 0x8007000eL); > } > } > > sBlockedScriptRunners = new nsCOMArray<nsIRunnable>; > do { if ((__builtin_expect(!!(!(sBlockedScriptRunners)), 0))) { do { } while (0); return ((nsresult) 0x8007000eL); } } while (0); > > sInitialized = 1; > > return 0; >} > >PRBool >nsContentUtils::InitializeEventTable() { > do { } while (0); > > struct EventItem > { > nsIAtom** mAtom; > EventNameMapping mValue; > }; > > static const EventItem eventArray[] = { > { &nsGkAtoms::onmousedown, { (300 + 2), EventNameType_All }}, > { &nsGkAtoms::onmouseup, { (300 + 1), EventNameType_All }}, > { &nsGkAtoms::onclick, { (300 + 27), EventNameType_All }}, > { &nsGkAtoms::ondblclick, { (300 + 24), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onmouseover, { (300 + 31), EventNameType_All }}, > { &nsGkAtoms::onmouseout, { (300 + 32), EventNameType_All }}, > { &nsGkAtoms::onmousemove, { (300), EventNameType_All }}, > { &nsGkAtoms::oncontextmenu, { (500), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onkeydown, { (100 + 33), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onkeyup, { (100 + 32), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onkeypress, { (100 + 31), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onfocus, { (1300), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onblur, { (1300 + 1), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onoffline, { (100 + 63), EventNameType_HTMLXUL }}, > { &nsGkAtoms::ononline, { (100 + 64), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onsubmit, { (1200), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onreset, { (1200 + 1), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onchange, { (1200 + 2), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onselect, { (1200 + 3), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onload, { (1100), EventNameType_All }}, > { &nsGkAtoms::onunload, { (1100 + 1), > (EventNameType_HTMLXUL | EventNameType_SVGSVG) }}, > { &nsGkAtoms::onbeforeunload, { (1100 + 6), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onabort, { (1100 + 3), > (EventNameType_HTMLXUL | EventNameType_SVGSVG) }}, > { &nsGkAtoms::onerror, { (1100 + 4), > (EventNameType_HTMLXUL | EventNameType_SVGSVG) }}, > { &nsGkAtoms::onDOMAttrModified, { (1800 +5), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onDOMCharacterDataModified, { (1800 +6), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onDOMNodeInserted, { (1800 +1), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onDOMNodeRemoved, { (1800 +2), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onDOMNodeInsertedIntoDocument, { (1800 +4), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onDOMNodeRemovedFromDocument, { (1800 +3), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onDOMSubtreeModified, { (1800), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onDOMActivate, { (2500), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onDOMFocusIn, { (2500 + 1), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onDOMFocusOut, { (2500 + 2), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onDOMMouseScroll, { (1600), EventNameType_HTMLXUL }}, > { &nsGkAtoms::oninput, { (1200 + 4), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onpageshow, { (2700 + 1), EventNameType_HTML }}, > { &nsGkAtoms::onpagehide, { (2700 + 2), EventNameType_HTML }}, > { &nsGkAtoms::onresize, { (100 + 60), > (EventNameType_HTMLXUL | EventNameType_SVGSVG) }}, > { &nsGkAtoms::onscroll, { (100 + 61), > (EventNameType_HTMLXUL | EventNameType_SVGSVG) }}, > { &nsGkAtoms::oncopy, { (3100), EventNameType_HTMLXUL }}, > { &nsGkAtoms::oncut, { (3100 + 1), EventNameType_HTMLXUL }}, > { &nsGkAtoms::onpaste, { (3100 + 2), EventNameType_HTMLXUL }}, > > { &nsGkAtoms::ontext, { (2400), EventNameType_XUL }}, > { &nsGkAtoms::oncompositionstart, { (2200), EventNameType_XUL }}, > { &nsGkAtoms::oncompositionend, { (2200 + 1), EventNameType_XUL }}, > { &nsGkAtoms::onclose, { (100 + 1), EventNameType_XUL }}, > { &nsGkAtoms::onpopupshowing, { (1500), EventNameType_XUL }}, > { &nsGkAtoms::onpopupshown, { (1500 +1), EventNameType_XUL }}, > { &nsGkAtoms::onpopuphiding, { (1500 +2), EventNameType_XUL }}, > { &nsGkAtoms::onpopuphidden, { (1500 +3), EventNameType_XUL }}, > { &nsGkAtoms::oncommand, { (3000), EventNameType_XUL }}, > { &nsGkAtoms::onbroadcast, { (1500 +5), EventNameType_XUL }}, > { &nsGkAtoms::oncommandupdate, { (1500 +6), EventNameType_XUL }}, > { &nsGkAtoms::ondragenter, { (1400), EventNameType_XUL }}, > { &nsGkAtoms::ondragover, { (1400 + 1), EventNameType_XUL }}, > { &nsGkAtoms::ondragexit, { (1400 + 2), EventNameType_XUL }}, > { &nsGkAtoms::ondragdrop, { (1400 + 3), EventNameType_XUL }}, > { &nsGkAtoms::ondraggesture, { (1400 + 4), EventNameType_XUL }}, > { &nsGkAtoms::ondrag, { (1400 + 5), EventNameType_XUL }}, > { &nsGkAtoms::ondragend, { (1400 + 6), EventNameType_XUL }}, > { &nsGkAtoms::onoverflow, { (1700 +1), EventNameType_XUL }}, > { &nsGkAtoms::onunderflow, { (1700), EventNameType_XUL }} > > ,{ &nsGkAtoms::onSVGLoad, { (2800), EventNameType_None }}, > { &nsGkAtoms::onSVGUnload, { (2800 + 1), EventNameType_None }}, > { &nsGkAtoms::onSVGAbort, { (2800 + 2), EventNameType_None }}, > { &nsGkAtoms::onSVGError, { (2800 + 3), EventNameType_None }}, > { &nsGkAtoms::onSVGResize, { (2800 + 4), EventNameType_None }}, > { &nsGkAtoms::onSVGScroll, { (2800 + 5), EventNameType_None }}, > { &nsGkAtoms::onSVGZoom, { (2900), EventNameType_None }}, > { &nsGkAtoms::onzoom, { (2900), EventNameType_SVGSVG }} > > }; > > sEventTable = new nsDataHashtable<nsISupportsHashKey, EventNameMapping>; > if (!sEventTable || > !sEventTable->Init(int((sizeof(eventArray)/sizeof(eventArray[0])) / 0.75) + 1)) { > delete sEventTable; > sEventTable = 0; > return 0; > } > > for (PRUint32 i = 0; i < (sizeof(eventArray)/sizeof(eventArray[0])); ++i) { > if (!sEventTable->Put(*(eventArray[i].mAtom), eventArray[i].mValue)) { > delete sEventTable; > sEventTable = 0; > return 0; > } > } > > return 1; >} > > > > > > >nsIParserService* >nsContentUtils::GetParserService() >{ > > if (!sParserService) { > > > nsresult rv = CallGetService(kParserServiceCID, &sParserService); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) { > sParserService = 0; > } > } > > return sParserService; >} > > >nsIXTFService* >nsContentUtils::GetXTFService() >{ > if (!sXTFService) { > nsresult rv = CallGetService(kXTFServiceCID, &sXTFService); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) { > sXTFService = 0; > } > } > > return sXTFService; >} > > > >nsIBidiKeyboard* >nsContentUtils::GetBidiKeyboard() >{ > if (!sBidiKeyboard) { > nsresult rv = CallGetService("@mozilla.org/widget/bidikeyboard;1", &sBidiKeyboard); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) { > sBidiKeyboard = 0; > } > } > return sBidiKeyboard; >} > > >template <class OutputIterator> >struct NormalizeNewlinesCharTraits { > public: > typedef typename OutputIterator::value_type value_type; > > public: > NormalizeNewlinesCharTraits(OutputIterator& aIterator) : mIterator(aIterator) { } > void writechar(typename OutputIterator::value_type aChar) { > *mIterator++ = aChar; > } > > private: > OutputIterator mIterator; >}; > > > >template <class CharT> >struct NormalizeNewlinesCharTraits<CharT*> { > public: > typedef CharT value_type; > > public: > NormalizeNewlinesCharTraits(CharT* aCharPtr) : mCharPtr(aCharPtr) { } > void writechar(CharT aChar) { > *mCharPtr++ = aChar; > } > > private: > CharT* mCharPtr; >}; ># 569 "nsContentUtils.cpp" >template <class OutputIterator> >class CopyNormalizeNewlines >{ > public: > typedef typename OutputIterator::value_type value_type; > > public: > CopyNormalizeNewlines(OutputIterator* aDestination, > PRBool aLastCharCR=0) : > mLastCharCR(aLastCharCR), > mDestination(aDestination), > mWritten(0) > { } > > PRUint32 GetCharsWritten() { > return mWritten; > } > > PRBool IsLastCharCR() { > return mLastCharCR; > } > > void write(const typename OutputIterator::value_type* aSource, PRUint32 aSourceLength) { > > const typename OutputIterator::value_type* done_writing = aSource + aSourceLength; > > > if (mLastCharCR) { > > > if (aSourceLength && (*aSource == value_type('\n'))) { > ++aSource; > } > mLastCharCR = 0; > } > > PRUint32 num_written = 0; > while ( aSource < done_writing ) { > if (*aSource == value_type('\r')) { > mDestination->writechar('\n'); > ++aSource; > > > if (aSource == done_writing) { > mLastCharCR = 1; > } > > else if (*aSource == value_type('\n')) { > ++aSource; > } > } > else { > mDestination->writechar(*aSource++); > } > ++num_written; > } > > mWritten += num_written; > } > > private: > PRBool mLastCharCR; > OutputIterator* mDestination; > PRUint32 mWritten; >}; > > >PRUint32 >nsContentUtils::CopyNewlineNormalizedUnicodeTo(const nsAString_internal& aSource, > PRUint32 aSrcOffset, > PRUnichar* aDest, > PRUint32 aLength, > PRBool& aLastCharCR) >{ > typedef NormalizeNewlinesCharTraits<PRUnichar*> sink_traits; > > sink_traits dest_traits(aDest); > CopyNormalizeNewlines<sink_traits> normalizer(&dest_traits,aLastCharCR); > nsReadingIterator<PRUnichar> fromBegin, fromEnd; > copy_string(aSource.BeginReading(fromBegin).advance( PRInt32(aSrcOffset) ), > aSource.BeginReading(fromEnd).advance( PRInt32(aSrcOffset+aLength) ), > normalizer); > aLastCharCR = normalizer.IsLastCharCR(); > return normalizer.GetCharsWritten(); >} > > >PRUint32 >nsContentUtils::CopyNewlineNormalizedUnicodeTo(nsReadingIterator<PRUnichar>& aSrcStart, const nsReadingIterator<PRUnichar>& aSrcEnd, nsAString_internal& aDest) >{ > typedef nsWritingIterator<PRUnichar> WritingIterator; > typedef NormalizeNewlinesCharTraits<WritingIterator> sink_traits; > > WritingIterator iter; > aDest.BeginWriting(iter); > sink_traits dest_traits(iter); > CopyNormalizeNewlines<sink_traits> normalizer(&dest_traits); > copy_string(aSrcStart, aSrcEnd, normalizer); > return normalizer.GetCharsWritten(); >} ># 677 "nsContentUtils.cpp" ># 1 "./../../../layout/generic/punct_marks.ccmap" 1 ># 678 "nsContentUtils.cpp" 2 >static const union { PRUint16 array[592]; PRUint32 align; } gPuncCharsCCMapUnion = { { 0x0030,0x00D0,0x0160,0x01D0,0x0010,0x0010,0x0010,0x0010, 0x0010,0x0010,0x01F0,0x0010,0x0010,0x0010,0x0010,0x0210, 0x0020,0x0020,0x0020,0x0020,0x0020,0x0020,0x0020,0x0020, 0x0020,0x0020,0x0020,0x0020,0x0020,0x0020,0x0020,0x0020, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0040,0x0020,0x0020,0x0050,0x0020,0x0060,0x0070,0x0080, 0x0020,0x0090,0x0020,0x0020,0x0020,0x00A0,0x00B0,0x00C0, 0x0000,0x0000,0xD7EE,0x8C00,0x0001,0x3800,0x0000,0x2800, 0x0000,0x0000,0x0802,0x8880,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x4000, 0x0080,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0xFC00,0x0000,0x0000, 0x0200,0x0000,0x0000,0x4000,0x0049,0x0000,0x0000,0x0018, 0x3000,0xC800,0x0000,0x0000,0x0000,0x0000,0x3C00,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0010,0x0000,0x0000, 0x3FFF,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0380, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0030,0x0001, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0010, 0x0000,0x0000,0x0000,0x0000,0x8000,0x0C00,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xFFF0,0x0007,0x0000,0x3C00,0x0000,0x0000,0x0000,0x0000, 0x0020,0x0000,0x0000,0x0000,0x0000,0x0003,0x0000,0x0000, 0x00E0,0x0020,0x0020,0x00F0,0x0020,0x0020,0x0100,0x0110, 0x0120,0x0130,0x0140,0x0150,0x0020,0x0020,0x0020,0x0020, 0x0000,0x0000,0x0000,0x0000,0xFC00,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0800, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x01FE,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x6000,0x0000, 0x0000,0x1800,0x0000,0x0000,0x0000,0x0000,0x3800,0x0000, 0x0000,0x0000,0x0000,0x0060,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0770,0x0000,0x0000, 0x07BF,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0030,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0xC000,0x0000,0x0000, 0x0000,0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0xFC00,0x0001,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0170,0x0020,0x0020,0x0180,0x0020,0x0020,0x0020,0x0190, 0x0020,0x01A0,0x0020,0x0020,0x01B0,0x0020,0x01C0,0x0020, 0x0000,0xFFC0,0x00FF,0x7FFF,0xFFEE,0x7FEB,0x0000,0x6000, 0x6000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0600,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xFF00,0x003F, 0x0000,0x0000,0x0000,0x0000,0x0060,0x0000,0x0FC0,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xFFF8,0x01FF,0x0000,0x0000,0x0000,0x0F00,0x0000,0x3000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xDE00, 0xFFFF,0x307F,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x01E0,0x0020,0x0020,0x0020,0x0020,0x0020,0x0020,0x0020, 0x0020,0x0020,0x0020,0x0020,0x0020,0x0020,0x0020,0x0020, 0xFF0E,0xEFF3,0x0000,0x2000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0800, 0x0020,0x0020,0x0020,0x0020,0x0020,0x0020,0x0020,0x0020, 0x0200,0x0020,0x0020,0x0020,0x0020,0x0020,0x0020,0x0020, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x00F0, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0020,0x0020,0x0020,0x0020,0x0020,0x0020,0x0020,0x0020, 0x0020,0x0020,0x0020,0x0020,0x0020,0x0220,0x0230,0x0240, 0x0000,0x0000,0x0000,0xC000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x03FF,0x0000,0xFFE1,0x1FFF,0xFEF7,0x0D03,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0xD7EE,0x8C00,0x0001,0x3800,0x0000,0xA800,0x003F,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, } }; static const PRUint16* gPuncCharsCCMap = gPuncCharsCCMapUnion.array + 0; > > >PRBool >nsContentUtils::IsPunctuationMark(PRUnichar aChar) >{ > return ((((*((PRUint32*)(&((gPuncCharsCCMap)[(((gPuncCharsCCMap))[((((gPuncCharsCCMap)))[(((((aChar)))>>(4 +8)) & (((PRUint32)1 << (4)) - 1))]) + ((((aChar))>>8) & (((PRUint32)1 << (4)) - 1))])])) + (((aChar)>>5) & (((PRUint32)1 << (8 - 5)) - 1)))))>>((aChar) & (((PRUint32)1 << (5)) - 1))) & 1); >} > > >void >nsContentUtils::GetOfflineAppManifest(nsIDOMWindow *aWindow, nsIURI **aURI) >{ > nsCOMPtr<nsIDOMWindow> top; > aWindow->GetTop(getter_AddRefs(top)); > if (!top) { > return; > } > > nsCOMPtr<nsIDOMDocument> topDOMDocument; > top->GetDocument(getter_AddRefs(topDOMDocument)); > nsCOMPtr<nsIDocument> topDoc = do_QueryInterface(topDOMDocument); > if (!topDoc) { > return; > } > > nsCOMPtr<nsIContent> docElement = topDoc->GetRootContent(); > if (!docElement) { > return; > } > > nsAutoString manifestSpec; > docElement->GetAttr(kNameSpaceID_None, nsGkAtoms::manifest, manifestSpec); > > > if (manifestSpec.IsEmpty() || > manifestSpec.FindChar('#') != -1) { > return; > } > > nsContentUtils::NewURIWithDocumentCharset(aURI, manifestSpec, > topDoc, topDoc->GetBaseURI()); >} > > >PRBool >nsContentUtils::OfflineAppAllowed(nsIURI *aURI) >{ > nsCOMPtr<nsIURI> innerURI = NS_GetInnermostURI(aURI); > if (!innerURI) > return 0; > > > PRBool match; > nsresult rv = innerURI->SchemeIs("http", &match); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return 0; } } while (0); > > if (!match) { > rv = innerURI->SchemeIs("https", &match); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return 0; } } while (0); > if (!match) { > return 0; > } > } > > nsCOMPtr<nsIPermissionManager> permissionManager = > do_GetService("@mozilla.org/permissionmanager;1"); > if (!permissionManager) { > return 0; > } > > PRUint32 perm; > permissionManager->TestExactPermission(innerURI, "offline-app", &perm); > > if (perm == nsIPermissionManager::UNKNOWN_ACTION) { > return GetBoolPref("offline-apps.allow_by_default"); > } > > if (perm == nsIPermissionManager::DENY_ACTION) { > return 0; > } > > return 1; >} > > >void >nsContentUtils::Shutdown() >{ > sInitialized = 0; > > NS_HTMLParanoidFragmentSinkShutdown(); > NS_XHTMLParanoidFragmentSinkShutdown(); > > do { if (sContentPolicyService) { (sContentPolicyService)->Release(); (sContentPolicyService) = 0; } } while (0); > sTriedToGetContentPolicy = 0; > PRInt32 i; > for (i = 0; i < PRInt32(PropertiesFile_COUNT); ++i) > do { if (sStringBundles[i]) { (sStringBundles[i])->Release(); (sStringBundles[i]) = 0; } } while (0); > do { if (sStringBundleService) { (sStringBundleService)->Release(); (sStringBundleService) = 0; } } while (0); > do { if (sConsoleService) { (sConsoleService)->Release(); (sConsoleService) = 0; } } while (0); > do { if (sDOMScriptObjectFactory) { (sDOMScriptObjectFactory)->Release(); (sDOMScriptObjectFactory) = 0; } } while (0); > if (sJSGCThingRootCount == 0 && sXPConnect) > do { (sXPConnect)->Release(); (sXPConnect) = 0; } while (0); > do { if (sSecurityManager) { (sSecurityManager)->Release(); (sSecurityManager) = 0; } } while (0); > do { if (sThreadJSContextStack) { (sThreadJSContextStack)->Release(); (sThreadJSContextStack) = 0; } } while (0); > do { if (sNameSpaceManager) { (sNameSpaceManager)->Release(); (sNameSpaceManager) = 0; } } while (0); > do { if (sParserService) { (sParserService)->Release(); (sParserService) = 0; } } while (0); > do { if (sIOService) { (sIOService)->Release(); (sIOService) = 0; } } while (0); > do { if (sLineBreaker) { (sLineBreaker)->Release(); (sLineBreaker) = 0; } } while (0); > do { if (sWordBreaker) { (sWordBreaker)->Release(); (sWordBreaker) = 0; } } while (0); > do { if (sCaseConv) { (sCaseConv)->Release(); (sCaseConv) = 0; } } while (0); > > do { if (sXTFService) { (sXTFService)->Release(); (sXTFService) = 0; } } while (0); > > do { if (sImgLoader) { (sImgLoader)->Release(); (sImgLoader) = 0; } } while (0); > do { if (sPrefBranch) { (sPrefBranch)->Release(); (sPrefBranch) = 0; } } while (0); > do { if (sPref) { (sPref)->Release(); (sPref) = 0; } } while (0); > > do { if (sBidiKeyboard) { (sBidiKeyboard)->Release(); (sBidiKeyboard) = 0; } } while (0); > > > delete sEventTable; > sEventTable = 0; > > if (sPtrsToPtrsToRelease) { > for (i = 0; i < sPtrsToPtrsToRelease->Count(); ++i) { > nsISupports** ptrToPtr = > static_cast<nsISupports**>(sPtrsToPtrsToRelease->ElementAt(i)); > do { (*ptrToPtr)->Release(); (*ptrToPtr) = 0; } while (0); > } > delete sPtrsToPtrsToRelease; > sPtrsToPtrsToRelease = 0; > } > > if (sEventListenerManagersHash.ops) { > do { } while (0); ># 826 "nsContentUtils.cpp" > if (sEventListenerManagersHash.entryCount == 0) { > PL_DHashTableFinish(&sEventListenerManagersHash); > sEventListenerManagersHash.ops = 0; > } > } > > do { } while (0); > > > delete sBlockedScriptRunners; > sBlockedScriptRunners = 0; > > nsAutoGCRoot::Shutdown(); >} > > >PRBool >nsContentUtils::IsCallerTrustedForCapability(const char* aCapability) >{ > > > PRBool hasCap; > if (((__builtin_expect(!!((sSecurityManager->IsCapabilityEnabled(aCapability, &hasCap)) & 0x80000000), 0)))) > return 0; > if (hasCap) > return 1; > > if (((__builtin_expect(!!((sSecurityManager->IsCapabilityEnabled("UniversalXPConnect", &hasCap)) & 0x80000000), 0)))) > > return 0; > return hasCap; >} ># 867 "nsContentUtils.cpp" >nsresult >nsContentUtils::CheckSameOrigin(nsIDOMNode *aTrustedNode, > nsIDOMNode *aUnTrustedNode) >{ > do { } while (0); > > PRBool isSystem = 0; > sSecurityManager->SubjectPrincipalIsSystem(&isSystem); > if (isSystem) { > > > return 0; > } > > > > > nsCOMPtr<nsINode> trustedNode = do_QueryInterface(aTrustedNode); > nsCOMPtr<nsINode> unTrustedNode = do_QueryInterface(aUnTrustedNode); > > > do { if ((__builtin_expect(!!(!(trustedNode && unTrustedNode)), 0))) { do { } while (0); return ((nsresult) 0x8000ffffL); } } while (0); > > nsIPrincipal* trustedPrincipal = trustedNode->NodePrincipal(); > nsIPrincipal* unTrustedPrincipal = unTrustedNode->NodePrincipal(); > > if (trustedPrincipal == unTrustedPrincipal) { > return 0; > } > > PRBool equal; > > > if (((__builtin_expect(!!((trustedPrincipal->Equals(unTrustedPrincipal, &equal)) & 0x80000000), 0))) || > !equal) { > return ((nsresult) (((PRUint32)(1)<<31) | ((PRUint32)(14 +0x45)<<16) | ((PRUint32)(1010))) ); > } > > return 0; >} > > >PRBool >nsContentUtils::CanCallerAccess(nsIPrincipal* aSubjectPrincipal, > nsIPrincipal* aPrincipal) >{ > PRBool subsumes; > nsresult rv = aSubjectPrincipal->Subsumes(aPrincipal, &subsumes); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return 0; } } while (0); > > if (subsumes) { > return 1; > } > > > > > PRBool isSystem; > rv = sSecurityManager->IsSystemPrincipal(aPrincipal, &isSystem); > isSystem = ((__builtin_expect(!!((rv) & 0x80000000), 0))) || isSystem; > const char* capability = > ((__builtin_expect(!!((rv) & 0x80000000), 0))) || isSystem ? "UniversalXPConnect" : "UniversalBrowserRead"; > > return IsCallerTrustedForCapability(capability); >} > > >PRBool >nsContentUtils::CanCallerAccess(nsIDOMNode *aNode) >{ > > > > nsCOMPtr<nsIPrincipal> subjectPrincipal; > sSecurityManager->GetSubjectPrincipal(getter_AddRefs(subjectPrincipal)); > > if (!subjectPrincipal) { > > > return 1; > } > > nsCOMPtr<nsINode> node = do_QueryInterface(aNode); > do { if ((__builtin_expect(!!(!(node)), 0))) { do { } while (0); return 0; } } while (0); > > return CanCallerAccess(subjectPrincipal, node->NodePrincipal()); >} > > >PRBool >nsContentUtils::CanCallerAccess(nsPIDOMWindow* aWindow) >{ > > > > nsCOMPtr<nsIPrincipal> subjectPrincipal; > sSecurityManager->GetSubjectPrincipal(getter_AddRefs(subjectPrincipal)); > > if (!subjectPrincipal) { > > > return 1; > } > > nsCOMPtr<nsIScriptObjectPrincipal> scriptObject = > do_QueryInterface(aWindow->IsOuterWindow() ? > aWindow->GetCurrentInnerWindow() : aWindow); > do { if ((__builtin_expect(!!(!(scriptObject)), 0))) { do { } while (0); return 0; } } while (0); > > return CanCallerAccess(subjectPrincipal, scriptObject->GetPrincipal()); >} > > >PRBool >nsContentUtils::InProlog(nsINode *aNode) >{ > do { } while (0); > > nsINode* parent = aNode->GetNodeParent(); > if (!parent || !parent->IsNodeOfType(nsINode::eDOCUMENT)) { > return 0; > } > > nsIDocument* doc = static_cast<nsIDocument*>(parent); > nsIContent* root = doc->GetRootContent(); > > return !root || doc->IndexOf(aNode) < doc->IndexOf(root); >} > > >nsresult >nsContentUtils::doReparentContentWrapper(nsIContent *aNode, > JSContext *cx, > JSObject *aOldGlobal, > JSObject *aNewGlobal, > nsIDocument *aOldDocument, > nsIDocument *aNewDocument) >{ > nsCOMPtr<nsIXPConnectJSObjectHolder> old_wrapper; > > nsresult rv; > > rv = sXPConnect->ReparentWrappedNativeIfFound(cx, aOldGlobal, aNewGlobal, > aNode, > getter_AddRefs(old_wrapper)); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > if (aOldDocument) { > nsCOMPtr<nsISupports> old_ref = aOldDocument->GetReference(aNode); > if (old_ref) { > > aOldDocument->RemoveReference(aNode); > aNewDocument->AddReference(aNode, old_ref); > } > } > > > > > > > > PRUint32 i, count = aNode->GetChildCount(); > > for (i = 0; i < count; i++) { > nsIContent *child = aNode->GetChildAt(i); > do { if ((__builtin_expect(!!(!(child)), 0))) { do { } while (0); return ((nsresult) 0x8000ffffL); } } while (0); > > rv = doReparentContentWrapper(child, cx, > aOldGlobal, aNewGlobal, > aOldDocument, aNewDocument); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > } > > return rv; >} > >static JSContext * >GetContextFromDocument(nsIDocument *aDocument, JSObject** aGlobalObject) >{ > nsIScriptGlobalObject *sgo = aDocument->GetScopeObject(); > if (!sgo) { > > > *aGlobalObject = 0; > > return 0; > } > > *aGlobalObject = sgo->GetGlobalJSObject(); > > nsIScriptContext *scx = sgo->GetContext(); > if (!scx) { > > > return 0; > } > > return (JSContext *)scx->GetNativeContext(); >} > > >nsresult >nsContentUtils::ReparentContentWrapper(nsIContent *aContent, > nsIContent *aNewParent, > nsIDocument *aNewDocument, > nsIDocument *aOldDocument) >{ > > > if (!aOldDocument || !aNewDocument || aNewDocument == aOldDocument) { > return 0; > } > > JSContext *cx; > JSObject *oldScope, *newScope; > nsresult rv = GetContextAndScopes(aOldDocument, aNewDocument, &cx, &oldScope, > &newScope); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > if (!cx) { > return 0; > } > > return doReparentContentWrapper(aContent, cx, oldScope, newScope, > aOldDocument, aNewDocument); >} > > >nsresult >nsContentUtils::GetContextAndScopes(nsIDocument *aOldDocument, > nsIDocument *aNewDocument, JSContext **aCx, > JSObject **aOldScope, JSObject **aNewScope) >{ > *aCx = 0; > *aOldScope = 0; > *aNewScope = 0; > > JSObject *newScope = 0; > nsIScriptGlobalObject *newSGO = aNewDocument->GetScopeObject(); > if (!newSGO || !(newScope = newSGO->GetGlobalJSObject())) { > return 0; > } > > do { if ((__builtin_expect(!!(!(sXPConnect)), 0))) { do { } while (0); return (((nsresult) 0xC1F30000) + 1); } } while (0); ># 1120 "nsContentUtils.cpp" > JSObject *oldScope = 0; > JSContext *cx = GetContextFromDocument(aOldDocument, &oldScope); > > if (!oldScope) { > return 0; > } > > if (!cx) { > JSObject *dummy; > cx = GetContextFromDocument(aNewDocument, &dummy); > > if (!cx) { > > > > > sThreadJSContextStack->Peek(&cx); > > if (!cx) { > sThreadJSContextStack->GetSafeJSContext(&cx); > > if (!cx) { > > do { } while (0); > > return ((nsresult) 0x80040111L); > } > } > } > } > > *aCx = cx; > *aOldScope = oldScope; > *aNewScope = newScope; > > return 0; >} > >nsresult >nsContentUtils::ReparentContentWrappersInScope(nsIScriptGlobalObject *aOldScope, > nsIScriptGlobalObject *aNewScope) >{ > JSContext *cx = 0; > > > nsIScriptContext *context = aOldScope->GetContext(); > if (context) { > cx = static_cast<JSContext *>(context->GetNativeContext()); > } > > if (!cx) { > context = aNewScope->GetContext(); > if (context) { > cx = static_cast<JSContext *>(context->GetNativeContext()); > } > > if (!cx) { > sThreadJSContextStack->Peek(&cx); > > if (!cx) { > sThreadJSContextStack->GetSafeJSContext(&cx); > > if (!cx) { > > do { } while (0); > > return ((nsresult) 0x80040111L); > } > } > } > } > > > > > JSObject *oldScopeObj = aOldScope->GetGlobalJSObject(); > JSObject *newScopeObj = aNewScope->GetGlobalJSObject(); > > if (!newScopeObj || !oldScopeObj) { > > > return ((nsresult) 0x80040111L); > } > > return sXPConnect->ReparentScopeAwareWrappers(cx, oldScopeObj, newScopeObj); >} > >nsIDocShell * >nsContentUtils::GetDocShellFromCaller() >{ > JSContext *cx = 0; > sThreadJSContextStack->Peek(&cx); > > if (cx) { > nsIScriptGlobalObject *sgo = nsJSUtils::GetDynamicScriptGlobal(cx); > nsCOMPtr<nsPIDOMWindow> win(do_QueryInterface(sgo)); > > if (win) { > return win->GetDocShell(); > } > } > > return 0; >} > >nsIDOMDocument * >nsContentUtils::GetDocumentFromCaller() >{ > JSContext *cx = 0; > sThreadJSContextStack->Peek(&cx); > > nsIDOMDocument *doc = 0; > > if (cx) { > JSObject *callee = 0; > JSStackFrame *fp = 0; > while (!callee && (fp = ::JS_FrameIterator(cx, &fp))) { > callee = ::JS_GetFrameCalleeObject(cx, fp); > } > > nsCOMPtr<nsPIDOMWindow> win = > do_QueryInterface(nsJSUtils::GetStaticScriptGlobal(cx, callee)); > if (win) { > doc = win->GetExtantDocument(); > } > } > > return doc; >} > >nsIDOMDocument * >nsContentUtils::GetDocumentFromContext() >{ > JSContext *cx = 0; > sThreadJSContextStack->Peek(&cx); > > if (cx) { > nsIScriptGlobalObject *sgo = nsJSUtils::GetDynamicScriptGlobal(cx); > > if (sgo) { > nsCOMPtr<nsPIDOMWindow> pwin = do_QueryInterface(sgo); > if (pwin) { > return pwin->GetExtantDocument(); > } > } > } > > return 0; >} > >PRBool >nsContentUtils::IsCallerChrome() >{ > PRBool is_caller_chrome = 0; > nsresult rv = sSecurityManager->SubjectPrincipalIsSystem(&is_caller_chrome); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) { > return 0; > } > > return is_caller_chrome; >} > >PRBool >nsContentUtils::IsCallerTrustedForRead() >{ > return IsCallerTrustedForCapability("UniversalBrowserRead"); >} > >PRBool >nsContentUtils::IsCallerTrustedForWrite() >{ > return IsCallerTrustedForCapability("UniversalBrowserWrite"); >} > > >PRBool >nsContentUtils::ContentIsDescendantOf(nsINode* aPossibleDescendant, > nsINode* aPossibleAncestor) >{ > do { } while (0); > do { } while (0); > > do { > if (aPossibleDescendant == aPossibleAncestor) > return 1; > aPossibleDescendant = aPossibleDescendant->GetNodeParent(); > } while (aPossibleDescendant); > > return 0; >} > > > >nsresult >nsContentUtils::GetAncestors(nsIDOMNode* aNode, > nsVoidArray* aArray) >{ > do { if ((__builtin_expect(!!(!(aNode)), 0))) { do { } while (0); return ((nsresult) 0x80004003L); } } while (0); > > nsCOMPtr<nsIDOMNode> node(aNode); > nsCOMPtr<nsIDOMNode> ancestor; > > do { > aArray->AppendElement(node.get()); > node->GetParentNode(getter_AddRefs(ancestor)); > node.swap(ancestor); > } while (node); > > return 0; >} > > >nsresult >nsContentUtils::GetAncestorsAndOffsets(nsIDOMNode* aNode, > PRInt32 aOffset, > nsVoidArray* aAncestorNodes, > nsVoidArray* aAncestorOffsets) >{ > do { if ((__builtin_expect(!!(!(aNode)), 0))) { do { } while (0); return ((nsresult) 0x80004003L); } } while (0); > > nsCOMPtr<nsIContent> content(do_QueryInterface(aNode)); > > if (!content) { > return ((nsresult) 0x80004005L); > } > > if (aAncestorNodes->Count() != 0) { > do { } while (0); > aAncestorNodes->Clear(); > } > > if (aAncestorOffsets->Count() != 0) { > do { } while (0); > aAncestorOffsets->Clear(); > } > > > aAncestorNodes->AppendElement(content.get()); > aAncestorOffsets->AppendElement(((void *) (PRWord) (aOffset))); > > > nsIContent* child = content; > nsIContent* parent = child->GetParent(); > while (parent) { > aAncestorNodes->AppendElement(parent); > aAncestorOffsets->AppendElement(((void *) (PRWord) (parent->IndexOf(child)))); > child = parent; > parent = parent->GetParent(); > } > > return 0; >} > > >nsresult >nsContentUtils::GetCommonAncestor(nsIDOMNode *aNode, > nsIDOMNode *aOther, > nsIDOMNode** aCommonAncestor) >{ > *aCommonAncestor = 0; > > nsCOMPtr<nsINode> node1 = do_QueryInterface(aNode); > nsCOMPtr<nsINode> node2 = do_QueryInterface(aOther); > > do { if ((__builtin_expect(!!(!(node1 && node2)), 0))) { do { } while (0); return ((nsresult) 0x8000ffffL); } } while (0); > > nsINode* common = GetCommonAncestor(node1, node2); > do { if ((__builtin_expect(!!(!(common)), 0))) { do { } while (0); return ((nsresult) 0x80040111L); } } while (0); > > return CallQueryInterface(common, aCommonAncestor); >} > > >nsINode* >nsContentUtils::GetCommonAncestor(nsINode* aNode1, > nsINode* aNode2) >{ > if (aNode1 == aNode2) { > return aNode1; > } > > > nsAutoTPtrArray<nsINode, 30> parents1, parents2; > do { > parents1.AppendElement(aNode1); > aNode1 = aNode1->GetNodeParent(); > } while (aNode1); > do { > parents2.AppendElement(aNode2); > aNode2 = aNode2->GetNodeParent(); > } while (aNode2); > > > PRUint32 pos1 = parents1.Length(); > PRUint32 pos2 = parents2.Length(); > nsINode* parent = 0; > PRUint32 len; > for (len = ((pos1)<(pos2)?(pos1):(pos2)); len > 0; --len) { > nsINode* child1 = parents1.ElementAt(--pos1); > nsINode* child2 = parents2.ElementAt(--pos2); > if (child1 != child2) { > break; > } > parent = child1; > } > > return parent; >} > >PRUint16 >nsContentUtils::ComparePosition(nsINode* aNode1, > nsINode* aNode2) >{ > do { } while (0); > > if (aNode1 == aNode2) { > return 0; > } > > nsAutoTPtrArray<nsINode, 32> parents1, parents2; > > > nsIAttribute* attr1 = 0; > if (aNode1->IsNodeOfType(nsINode::eATTRIBUTE)) { > attr1 = static_cast<nsIAttribute*>(aNode1); > nsIContent* elem = attr1->GetContent(); > > > if (elem) { > aNode1 = elem; > parents1.AppendElement(static_cast<nsINode*>(attr1)); > } > } > if (aNode2->IsNodeOfType(nsINode::eATTRIBUTE)) { > nsIAttribute* attr2 = static_cast<nsIAttribute*>(aNode2); > nsIContent* elem = attr2->GetContent(); > if (elem == aNode1 && attr1) { > > > > PRUint32 i; > const nsAttrName* attrName; > for (i = 0; (attrName = elem->GetAttrNameAt(i)); ++i) { > if (attrName->Equals(attr1->NodeInfo())) { > do { } while (0); > > return nsIDOM3Node::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | > nsIDOM3Node::DOCUMENT_POSITION_PRECEDING; > } > if (attrName->Equals(attr2->NodeInfo())) { > return nsIDOM3Node::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | > nsIDOM3Node::DOCUMENT_POSITION_FOLLOWING; > } > } > do { } while (0); > return nsIDOM3Node::DOCUMENT_POSITION_DISCONNECTED; > } > > if (elem) { > aNode2 = elem; > parents2.AppendElement(static_cast<nsINode*>(attr2)); > } > } > > > > > > > > do { > parents1.AppendElement(aNode1); > aNode1 = aNode1->GetNodeParent(); > } while (aNode1); > do { > parents2.AppendElement(aNode2); > aNode2 = aNode2->GetNodeParent(); > } while (aNode2); > > > PRUint32 pos1 = parents1.Length(); > PRUint32 pos2 = parents2.Length(); > nsINode* top1 = parents1.ElementAt(--pos1); > nsINode* top2 = parents2.ElementAt(--pos2); > if (top1 != top2) { > return top1 < top2 ? > (nsIDOM3Node::DOCUMENT_POSITION_PRECEDING | > nsIDOM3Node::DOCUMENT_POSITION_DISCONNECTED | > nsIDOM3Node::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC) : > (nsIDOM3Node::DOCUMENT_POSITION_FOLLOWING | > nsIDOM3Node::DOCUMENT_POSITION_DISCONNECTED | > nsIDOM3Node::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC); > } > > > nsINode* parent = top1; > PRUint32 len; > for (len = ((pos1)<(pos2)?(pos1):(pos2)); len > 0; --len) { > nsINode* child1 = parents1.ElementAt(--pos1); > nsINode* child2 = parents2.ElementAt(--pos2); > if (child1 != child2) { > > > > return parent->IndexOf(child1) < parent->IndexOf(child2) ? > static_cast<PRUint16>(nsIDOM3Node::DOCUMENT_POSITION_PRECEDING) : > static_cast<PRUint16>(nsIDOM3Node::DOCUMENT_POSITION_FOLLOWING); > } > parent = child1; > } > > > > > return pos1 < pos2 ? > (nsIDOM3Node::DOCUMENT_POSITION_PRECEDING | > nsIDOM3Node::DOCUMENT_POSITION_CONTAINS) : > (nsIDOM3Node::DOCUMENT_POSITION_FOLLOWING | > nsIDOM3Node::DOCUMENT_POSITION_CONTAINED_BY); >} > > >PRInt32 >nsContentUtils::ComparePoints(nsINode* aParent1, PRInt32 aOffset1, > nsINode* aParent2, PRInt32 aOffset2, > PRBool* aDisconnected) >{ > if (aParent1 == aParent2) { > return aOffset1 < aOffset2 ? -1 : > aOffset1 > aOffset2 ? 1 : > 0; > } > > nsAutoTArray<nsINode*, 32> parents1, parents2; > nsINode* node1 = aParent1; > nsINode* node2 = aParent2; > do { > parents1.AppendElement(node1); > node1 = node1->GetNodeParent(); > } while (node1); > do { > parents2.AppendElement(node2); > node2 = node2->GetNodeParent(); > } while (node2); > > PRUint32 pos1 = parents1.Length() - 1; > PRUint32 pos2 = parents2.Length() - 1; > > do { } while (0); > > > if (aDisconnected) { > *aDisconnected = (parents1.ElementAt(pos1) != parents2.ElementAt(pos2)); > } > > > nsINode* parent = parents1.ElementAt(pos1); > PRUint32 len; > for (len = ((pos1)<(pos2)?(pos1):(pos2)); len > 0; --len) { > nsINode* child1 = parents1.ElementAt(--pos1); > nsINode* child2 = parents2.ElementAt(--pos2); > if (child1 != child2) { > return parent->IndexOf(child1) < parent->IndexOf(child2) ? -1 : 1; > } > parent = child1; > } > > > > > > do { } while (0); > > > if (!pos1) { > nsINode* child2 = parents2.ElementAt(--pos2); > return aOffset1 <= parent->IndexOf(child2) ? -1 : 1; > } > > nsINode* child1 = parents1.ElementAt(--pos1); > return parent->IndexOf(child1) < aOffset2 ? -1 : 1; >} > >nsIContent* >nsContentUtils::FindFirstChildWithResolvedTag(nsIContent* aParent, > PRInt32 aNamespace, > nsIAtom* aTag) >{ > nsIDocument* doc; > if (!aParent || !(doc = aParent->GetOwnerDoc())) { > return 0; > } > > nsBindingManager* bindingManager = doc->BindingManager(); > > PRInt32 namespaceID; > PRUint32 count = aParent->GetChildCount(); > > PRUint32 i; > > for (i = 0; i < count; i++) { > nsIContent *child = aParent->GetChildAt(i); > nsIAtom* tag = bindingManager->ResolveTag(child, &namespaceID); > if (tag == aTag && namespaceID == aNamespace) { > return child; > } > } > > > nsCOMPtr<nsIDOMNodeList> children; > bindingManager->GetXBLChildNodesFor(aParent, getter_AddRefs(children)); > if (!children) { > return 0; > } > > PRUint32 length; > children->GetLength(&length); > for (i = 0; i < length; i++) { > nsCOMPtr<nsIDOMNode> childNode; > children->Item(i, getter_AddRefs(childNode)); > nsCOMPtr<nsIContent> childContent = do_QueryInterface(childNode); > nsIAtom* tag = bindingManager->ResolveTag(childContent, &namespaceID); > if (tag == aTag && namespaceID == aNamespace) { > return childContent; > } > } > > return 0; >} > >inline PRBool >IsCharInSet(const char* aSet, > const PRUnichar aChar) >{ > PRUnichar ch; > while ((ch = *aSet)) { > if (aChar == PRUnichar(ch)) { > return 1; > } > ++aSet; > } > return 0; >} > > > > > > >const nsDependentSubstring >nsContentUtils::TrimCharsInSet(const char* aSet, > const nsAString_internal& aValue) >{ > nsAString_internal::const_iterator valueCurrent, valueEnd; > > aValue.BeginReading(valueCurrent); > aValue.EndReading(valueEnd); > > > while (valueCurrent != valueEnd) { > if (!IsCharInSet(aSet, *valueCurrent)) { > break; > } > ++valueCurrent; > } > > if (valueCurrent != valueEnd) { > for (;;) { > --valueEnd; > if (!IsCharInSet(aSet, *valueEnd)) { > break; > } > } > ++valueEnd; > } > > > return Substring(valueCurrent, valueEnd); >} > > > > > > >const nsDependentSubstring >nsContentUtils::TrimWhitespace(const nsAString_internal& aStr, PRBool aTrimTrailing) >{ > nsAString_internal::const_iterator start, end; > > aStr.BeginReading(start); > aStr.EndReading(end); > > > while (start != end && nsCRT::IsAsciiSpace(*start)) { > ++start; > } > > if (aTrimTrailing) { > > while (end != start) { > --end; > > if (!nsCRT::IsAsciiSpace(*end)) { > > ++end; > > break; > } > } > } > > > > > return Substring(start, end); >} > >static inline void KeyAppendSep(nsACString_internal& aKey) >{ > if (!aKey.IsEmpty()) { > aKey.Append('>'); > } >} > >static inline void KeyAppendString(const nsAString_internal& aString, nsACString_internal& aKey) >{ > KeyAppendSep(aKey); > > > > > AppendUTF16toUTF8(aString, aKey); >} > >static inline void KeyAppendString(const nsACString_internal& aString, nsACString_internal& aKey) >{ > KeyAppendSep(aKey); > > > > > aKey.Append(aString); >} > >static inline void KeyAppendInt(PRInt32 aInt, nsACString_internal& aKey) >{ > KeyAppendSep(aKey); > > aKey.Append(nsPrintfCString("%d", aInt)); >} > >static inline void KeyAppendAtom(nsIAtom* aAtom, nsACString_internal& aKey) >{ > do { } while (0); > > const char* atomString = 0; > aAtom->GetUTF8String(&atomString); > > KeyAppendString(nsDependentCString(atomString), aKey); >} > >static inline PRBool IsAutocompleteOff(nsIDOMElement* aElement) >{ > nsAutoString autocomplete; > aElement->GetAttribute(static_cast<const nsAFlatString&>(nsDependentString(reinterpret_cast<const nsAString_internal::char_type*>(L"autocomplete"), PRUint32((sizeof(L"autocomplete")/sizeof(wchar_t))-1))), autocomplete); > return autocomplete.LowerCaseEqualsLiteral("off"); >} > > nsresult >nsContentUtils::GenerateStateKey(nsIContent* aContent, > nsIDocument* aDocument, > nsIStatefulFrame::SpecialStateID aID, > nsACString_internal& aKey) >{ > aKey.Truncate(); > > PRUint32 partID = aDocument ? aDocument->GetPartID() : 0; > > > > if (nsIStatefulFrame::eNoID != aID) { > KeyAppendInt(partID, aKey); > KeyAppendInt(aID, aKey); > return 0; > } > > > do { if ((__builtin_expect(!!(!(aContent)), 0))) { do { } while (0); return ((nsresult) 0x80004005L); } } while (0); > > > if (aContent->IsNativeAnonymous() || aContent->GetBindingParent()) { > return 0; > } > > nsCOMPtr<nsIDOMElement> element(do_QueryInterface(aContent)); > if (element && IsAutocompleteOff(element)) { > return 0; > } > > nsCOMPtr<nsIHTMLDocument> htmlDocument(do_QueryInterface(aContent->GetCurrentDoc())); > > KeyAppendInt(partID, aKey); > > > KeyAppendInt(nsIStatefulFrame::eNoID, aKey); > PRBool generatedUniqueKey = 0; > > if (htmlDocument) { > > aContent->GetCurrentDoc()->FlushPendingNotifications(Flush_Content); > > nsContentList *htmlForms = htmlDocument->GetForms(); > nsContentList *htmlFormControls = htmlDocument->GetFormControls(); > > do { if ((__builtin_expect(!!(!(htmlForms && htmlFormControls)), 0))) { do { } while (0); return ((nsresult) 0x8007000eL); } } while (0); ># 1851 "nsContentUtils.cpp" > nsCOMPtr<nsIFormControl> control(do_QueryInterface(aContent)); > if (control && htmlFormControls && htmlForms) { > > > KeyAppendInt(control->GetType(), aKey); > > > PRInt32 index = -1; > nsCOMPtr<nsIDOMHTMLFormElement> formElement; > control->GetForm(getter_AddRefs(formElement)); > if (formElement) { > > if (IsAutocompleteOff(formElement)) { > aKey.Truncate(); > return 0; > } > > KeyAppendString(static_cast<const nsDependentCString&>(nsDependentCString("f", PRUint32(sizeof("f")-1))), aKey); > > > nsCOMPtr<nsIContent> formContent(do_QueryInterface(formElement)); > index = htmlForms->IndexOf(formContent, 0); > if (index <= -1) { > > > > > > > > index = htmlDocument->GetNumFormsSynchronous() - 1; > } > if (index > -1) { > KeyAppendInt(index, aKey); > > > nsCOMPtr<nsIForm> form(do_QueryInterface(formElement)); > form->IndexOfControl(control, &index); > > if (index > -1) { > KeyAppendInt(index, aKey); > generatedUniqueKey = 1; > } > } > > > nsAutoString formName; > formElement->GetName(formName); > KeyAppendString(formName, aKey); > > } else { > > KeyAppendString(static_cast<const nsDependentCString&>(nsDependentCString("d", PRUint32(sizeof("d")-1))), aKey); ># 1913 "nsContentUtils.cpp" > index = htmlFormControls->IndexOf(aContent, 1); > if (index > -1) { > KeyAppendInt(index, aKey); > generatedUniqueKey = 1; > } > } > > > nsAutoString name; > aContent->GetAttr(kNameSpaceID_None, nsGkAtoms::name, name); > KeyAppendString(name, aKey); > } > } > > if (!generatedUniqueKey) { > > > > > KeyAppendString(static_cast<const nsDependentCString&>(nsDependentCString("o", PRUint32(sizeof("o")-1))), aKey); > > > > > nsINode* parent = aContent->GetNodeParent(); > nsINode* content = aContent; > while (parent) { > KeyAppendInt(parent->IndexOf(content), aKey); > content = parent; > parent = content->GetNodeParent(); > } > } > > return 0; >} > > >nsresult >nsContentUtils::NewURIWithDocumentCharset(nsIURI** aResult, > const nsAString_internal& aSpec, > nsIDocument* aDocument, > nsIURI* aBaseURI) >{ > return NS_NewURI(aResult, aSpec, > aDocument ? aDocument->GetDocumentCharacterSet().get() : 0, > aBaseURI, sIOService); >} > > >PRBool >nsContentUtils::BelongsInForm(nsIDOMHTMLFormElement *aForm, > nsIContent *aContent) >{ > do { } while (0); > do { } while (0); > > nsCOMPtr<nsIContent> form(do_QueryInterface(aForm)); > > if (!form) { > do { } while (0); > > return 1; > } > > if (form == aContent) { > > > return 0; > } > > nsIContent* content = aContent->GetParent(); > > while (content) { > if (content == form) { > > > return 1; > } > > if (content->Tag() == nsGkAtoms::form && > content->IsNodeOfType(nsINode::eHTML)) { > > > > return 0; > } > > content = content->GetParent(); > } > > if (form->GetChildCount() > 0) { > > > > return 0; > } > > > > > > if (PositionIsBefore(form, aContent)) { > > > > > return 1; > } > > return 0; >} > > >nsresult >nsContentUtils::CheckQName(const nsAString_internal& aQualifiedName, > PRBool aNamespaceAware) >{ > nsIParserService *parserService = GetParserService(); > do { if ((__builtin_expect(!!(!(parserService)), 0))) { do { } while (0); return ((nsresult) 0x80004005L); } } while (0); > > const PRUnichar *colon; > return parserService->CheckQName(PromiseFlatString(aQualifiedName), > aNamespaceAware, &colon); >} > > >nsresult >nsContentUtils::SplitQName(nsIContent* aNamespaceResolver, > const nsAFlatString& aQName, > PRInt32 *aNamespace, nsIAtom **aLocalName) >{ > nsIParserService* parserService = GetParserService(); > do { if ((__builtin_expect(!!(!(parserService)), 0))) { do { } while (0); return ((nsresult) 0x80004005L); } } while (0); > > const PRUnichar* colon; > nsresult rv = parserService->CheckQName(aQName, 1, &colon); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > if (colon) { > const PRUnichar* end; > aQName.EndReading(end); > nsAutoString nameSpace; > rv = LookupNamespaceURI(aNamespaceResolver, Substring(aQName.get(), colon), > nameSpace); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > *aNamespace = NameSpaceManager()->GetNameSpaceID(nameSpace); > if (*aNamespace == -1) > return ((nsresult) 0x80004005L); > > *aLocalName = NS_NewAtom(Substring(colon + 1, end)); > } > else { > *aNamespace = kNameSpaceID_None; > *aLocalName = NS_NewAtom(aQName); > } > do { if ((__builtin_expect(!!(!(aLocalName)), 0))) { do { } while (0); return ((nsresult) 0x8007000eL); } } while (0); > return 0; >} > > >nsresult >nsContentUtils::LookupNamespaceURI(nsIContent* aNamespaceResolver, > const nsAString_internal& aNamespacePrefix, > nsAString_internal& aNamespaceURI) >{ > if (aNamespacePrefix.EqualsLiteral("xml")) { > > aNamespaceURI.AssignLiteral("http://www.w3.org/XML/1998/namespace"); > return 0; > } > > if (aNamespacePrefix.EqualsLiteral("xmlns")) { > > aNamespaceURI.AssignLiteral("http://www.w3.org/2000/xmlns/"); > return 0; > } > > nsCOMPtr<nsIAtom> name; > if (!aNamespacePrefix.IsEmpty()) { > name = do_GetAtom(aNamespacePrefix); > do { if ((__builtin_expect(!!(!(name)), 0))) { do { } while (0); return ((nsresult) 0x8007000eL); } } while (0); > } > else { > name = nsGkAtoms::xmlns; > } > > > for (nsIContent* content = aNamespaceResolver; content; > content = content->GetParent()) { > if (content->GetAttr(1, name, aNamespaceURI)) > return 0; > } > return ((nsresult) 0x80004005L); >} > > >nsresult >nsContentUtils::GetNodeInfoFromQName(const nsAString_internal& aNamespaceURI, > const nsAString_internal& aQualifiedName, > nsNodeInfoManager* aNodeInfoManager, > nsINodeInfo** aNodeInfo) >{ > nsIParserService* parserService = GetParserService(); > do { if ((__builtin_expect(!!(!(parserService)), 0))) { do { } while (0); return ((nsresult) 0x80004005L); } } while (0); > > const nsAFlatString& qName = PromiseFlatString(aQualifiedName); > const PRUnichar* colon; > nsresult rv = parserService->CheckQName(qName, 1, &colon); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > PRInt32 nsID; > sNameSpaceManager->RegisterNameSpace(aNamespaceURI, nsID); > if (colon) { > const PRUnichar* end; > qName.EndReading(end); > > nsCOMPtr<nsIAtom> prefix = do_GetAtom(Substring(qName.get(), colon)); > > rv = aNodeInfoManager->GetNodeInfo(Substring(colon + 1, end), prefix, > nsID, aNodeInfo); > } > else { > rv = aNodeInfoManager->GetNodeInfo(aQualifiedName, 0, nsID, > aNodeInfo); > } > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > return nsContentUtils::IsValidNodeName((*aNodeInfo)->NameAtom(), > (*aNodeInfo)->GetPrefixAtom(), > (*aNodeInfo)->NamespaceID()) ? > 0 : ((nsresult) (((PRUint32)(1)<<31) | ((PRUint32)(14 +0x45)<<16) | ((PRUint32)(14))) ); >} > > >void >nsContentUtils::SplitExpatName(const PRUnichar *aExpatName, nsIAtom **aPrefix, > nsIAtom **aLocalName, PRInt32* aNameSpaceID) >{ ># 2162 "nsContentUtils.cpp" > const PRUnichar *uriEnd = 0; > const PRUnichar *nameEnd = 0; > const PRUnichar *pos; > for (pos = aExpatName; *pos; ++pos) { > if (*pos == 0xFFFF) { > if (uriEnd) { > nameEnd = pos; > } > else { > uriEnd = pos; > } > } > } > > const PRUnichar *nameStart; > if (uriEnd) { > if (sNameSpaceManager) { > sNameSpaceManager->RegisterNameSpace(nsDependentSubstring(aExpatName, > uriEnd), > *aNameSpaceID); > } > else { > *aNameSpaceID = -1; > } > > nameStart = (uriEnd + 1); > if (nameEnd) { > const PRUnichar *prefixStart = nameEnd + 1; > *aPrefix = NS_NewAtom(NS_ConvertUTF16toUTF8(prefixStart, > pos - prefixStart)); > } > else { > nameEnd = pos; > *aPrefix = 0; > } > } > else { > *aNameSpaceID = kNameSpaceID_None; > nameStart = aExpatName; > nameEnd = pos; > *aPrefix = 0; > } > *aLocalName = NS_NewAtom(NS_ConvertUTF16toUTF8(nameStart, > nameEnd - nameStart)); >} > > >nsPresContext* >nsContentUtils::GetContextForContent(nsIContent* aContent) >{ > nsIDocument* doc = aContent->GetCurrentDoc(); > if (doc) { > nsIPresShell *presShell = doc->GetPrimaryShell(); > if (presShell) { > return presShell->GetPresContext(); > } > } > return 0; >} > > >PRBool >nsContentUtils::CanLoadImage(nsIURI* aURI, nsISupports* aContext, > nsIDocument* aLoadingDocument, > nsIPrincipal* aLoadingPrincipal, > PRInt16* aImageBlockingStatus) >{ > do { } while (0); > do { } while (0); > do { } while (0); > > nsresult rv; > > PRUint32 appType = nsIDocShell::APP_TYPE_UNKNOWN; > > { > nsCOMPtr<nsISupports> container = aLoadingDocument->GetContainer(); > nsCOMPtr<nsIDocShellTreeItem> docShellTreeItem = > do_QueryInterface(container); > > if (docShellTreeItem) { > nsCOMPtr<nsIDocShellTreeItem> root; > docShellTreeItem->GetRootTreeItem(getter_AddRefs(root)); > > nsCOMPtr<nsIDocShell> docShell(do_QueryInterface(root)); > > if (!docShell || ((__builtin_expect(!!((docShell->GetAppType(&appType)) & 0x80000000), 0)))) { > appType = nsIDocShell::APP_TYPE_UNKNOWN; > } > } > } > > if (appType != nsIDocShell::APP_TYPE_EDITOR) { > > > > rv = sSecurityManager-> > CheckLoadURIWithPrincipal(aLoadingPrincipal, aURI, > nsIScriptSecurityManager::ALLOW_CHROME); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) { > if (aImageBlockingStatus) { > > > *aImageBlockingStatus = nsIContentPolicy::REJECT_REQUEST; > } > return 0; > } > } > > PRInt16 decision = nsIContentPolicy::ACCEPT; > > rv = NS_CheckContentLoadPolicy(nsIContentPolicy::TYPE_IMAGE, > aURI, > aLoadingPrincipal, > aContext, > EmptyCString(), > 0, > &decision, > GetContentPolicy(), > sSecurityManager); > > if (aImageBlockingStatus) { > *aImageBlockingStatus = > ((__builtin_expect(!!((rv) & 0x80000000), 0))) ? nsIContentPolicy::REJECT_REQUEST : decision; > } > return ((__builtin_expect(!!((rv) & 0x80000000), 0))) ? 0 : ((decision) == nsIContentPolicy::ACCEPT); >} > > >nsresult >nsContentUtils::LoadImage(nsIURI* aURI, nsIDocument* aLoadingDocument, > nsIPrincipal* aLoadingPrincipal, nsIURI* aReferrer, > imgIDecoderObserver* aObserver, PRInt32 aLoadFlags, > imgIRequest** aRequest) >{ > do { } while (0); > do { } while (0); > do { } while (0); > do { } while (0); > > if (!sImgLoader) { > > return 0; > } > > nsCOMPtr<nsILoadGroup> loadGroup = aLoadingDocument->GetDocumentLoadGroup(); > do { } while (0); > > nsIURI *documentURI = aLoadingDocument->GetDocumentURI(); > > > NS_TryToSetImmutable(aURI); > > > > > > > return sImgLoader->LoadImage(aURI, > documentURI, > aReferrer, > loadGroup, > aObserver, > aLoadingDocument, > aLoadFlags, > 0, > 0, > aRequest); >} > > >already_AddRefed<nsIImage> >nsContentUtils::GetImageFromContent(nsIImageLoadingContent* aContent, > imgIRequest **aRequest) >{ > if (aRequest) { > *aRequest = 0; > } > > do { if ((__builtin_expect(!!(!(aContent)), 0))) { do { } while (0); return 0; } } while (0); > > nsCOMPtr<imgIRequest> imgRequest; > aContent->GetRequest(nsIImageLoadingContent::CURRENT_REQUEST, > getter_AddRefs(imgRequest)); > if (!imgRequest) { > return 0; > } > > nsCOMPtr<imgIContainer> imgContainer; > imgRequest->GetImage(getter_AddRefs(imgContainer)); > > if (!imgContainer) { > return 0; > } > > nsCOMPtr<gfxIImageFrame> imgFrame; > imgContainer->GetFrameAt(0, getter_AddRefs(imgFrame)); > > if (!imgFrame) { > return 0; > } > > nsCOMPtr<nsIInterfaceRequestor> ir = do_QueryInterface(imgFrame); > > if (!ir) { > return 0; > } > > if (aRequest) { > imgRequest.swap(*aRequest); > } > > nsIImage* image = 0; > CallGetInterface(ir.get(), &image); > return image; >} > > >PRBool >nsContentUtils::IsDraggableImage(nsIContent* aContent) >{ > do { } while (0); > > nsCOMPtr<nsIImageLoadingContent> imageContent(do_QueryInterface(aContent)); > if (!imageContent) { > return 0; > } > > nsCOMPtr<imgIRequest> imgRequest; > imageContent->GetRequest(nsIImageLoadingContent::CURRENT_REQUEST, > getter_AddRefs(imgRequest)); > > > > return imgRequest != 0; >} > > >PRBool >nsContentUtils::IsDraggableLink(nsIContent* aContent) { > nsCOMPtr<nsIURI> absURI; > return aContent->IsLink(getter_AddRefs(absURI)); >} > > >nsAdoptingCString >nsContentUtils::GetCharPref(const char *aPref) >{ > nsAdoptingCString result; > > if (sPrefBranch) { > sPrefBranch->GetCharPref(aPref, getter_Copies(result)); > } > > return result; >} > > >PRPackedBool >nsContentUtils::GetBoolPref(const char *aPref, PRBool aDefault) >{ > PRBool result; > > if (!sPrefBranch || > ((__builtin_expect(!!((sPrefBranch->GetBoolPref(aPref, &result)) & 0x80000000), 0)))) { > result = aDefault; > } > > return (PRPackedBool)result; >} > > >PRInt32 >nsContentUtils::GetIntPref(const char *aPref, PRInt32 aDefault) >{ > PRInt32 result; > > if (!sPrefBranch || > ((__builtin_expect(!!((sPrefBranch->GetIntPref(aPref, &result)) & 0x80000000), 0)))) { > result = aDefault; > } > > return result; >} > > >nsAdoptingString >nsContentUtils::GetLocalizedStringPref(const char *aPref) >{ > nsAdoptingString result; > > if (sPrefBranch) { > nsCOMPtr<nsIPrefLocalizedString> prefLocalString; > sPrefBranch->GetComplexValue(aPref, (::nsIPrefLocalizedString::COMTypeInfo<int>::kIID), > getter_AddRefs(prefLocalString)); > if (prefLocalString) { > prefLocalString->GetData(getter_Copies(result)); > } > } > > return result; >} > > >nsAdoptingString >nsContentUtils::GetStringPref(const char *aPref) >{ > nsAdoptingString result; > > if (sPrefBranch) { > nsCOMPtr<nsISupportsString> theString; > sPrefBranch->GetComplexValue(aPref, (::nsISupportsString::COMTypeInfo<int>::kIID), > getter_AddRefs(theString)); > if (theString) { > theString->ToString(getter_Copies(result)); > } > } > > return result; >} > > >void >nsContentUtils::RegisterPrefCallback(const char *aPref, > PrefChangedFunc aCallback, > void * aClosure) >{ > if (sPref) > sPref->RegisterCallback(aPref, aCallback, aClosure); >} > > >void >nsContentUtils::UnregisterPrefCallback(const char *aPref, > PrefChangedFunc aCallback, > void * aClosure) >{ > if (sPref) > sPref->UnregisterCallback(aPref, aCallback, aClosure); >} > >static int >BoolVarChanged(const char *aPref, void *aClosure) >{ > PRBool* cache = static_cast<PRBool*>(aClosure); > *cache = nsContentUtils::GetBoolPref(aPref, 0); > > return 0; >} > >void >nsContentUtils::AddBoolPrefVarCache(const char *aPref, > PRBool* aCache) >{ > *aCache = GetBoolPref(aPref, 0); > RegisterPrefCallback(aPref, BoolVarChanged, aCache); >} > >static const char *gEventNames[] = {"event"}; >static const char *gSVGEventNames[] = {"evt"}; > > > >static const char *gOnErrorNames[] = {"event", "source", "lineno"}; > > >void >nsContentUtils::GetEventArgNames(PRInt32 aNameSpaceID, > nsIAtom *aEventName, > PRUint32 *aArgCount, > const char*** aArgArray) >{ > > > > > > > > if (aEventName == nsGkAtoms::onerror) { > *aArgCount = sizeof(gOnErrorNames)/sizeof(gOnErrorNames[0]); *aArgArray = gOnErrorNames;; > } else if (aNameSpaceID == 10) { > *aArgCount = sizeof(gSVGEventNames)/sizeof(gSVGEventNames[0]); *aArgArray = gSVGEventNames;; > } else { > *aArgCount = sizeof(gEventNames)/sizeof(gEventNames[0]); *aArgArray = gEventNames;; > } >} > >nsCxPusher::nsCxPusher() > : mScriptIsRunning(0) >{ >} > >nsCxPusher::~nsCxPusher() >{ > Pop(); >} > >static PRBool >IsContextOnStack(nsIJSContextStack *aStack, JSContext *aContext) >{ > JSContext *ctx = 0; > aStack->Peek(&ctx); > if (!ctx) > return 0; > if (ctx == aContext) > return 1; > > nsCOMPtr<nsIJSContextStackIterator> > iterator(do_CreateInstance("@mozilla.org/js/xpc/ContextStackIterator;1")); > do { if ((__builtin_expect(!!(!(iterator)), 0))) { do { } while (0); return 0; } } while (0); > > nsresult rv = iterator->Reset(aStack); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return 0; } } while (0); > > PRBool done; > while (((__builtin_expect(!!(!((iterator->Done(&done)) & 0x80000000)), 1))) && !done) { > rv = iterator->Prev(&ctx); > do { } while (0); > > if (!ctx) { > continue; > } > > if (nsJSUtils::GetDynamicScriptContext(ctx) && ctx == aContext) > return 1; > } > > return 0; >} > >PRBool >nsCxPusher::Push(nsISupports *aCurrentTarget) >{ > if (mScx) { > do { } while (0); > > return 0; > } > > nsCOMPtr<nsIScriptGlobalObject> sgo; > nsCOMPtr<nsINode> node(do_QueryInterface(aCurrentTarget)); > nsCOMPtr<nsIDocument> document; > > if (node) { > document = node->GetOwnerDoc(); > if (document) { > PRBool hasHadScriptObject = 1; > sgo = document->GetScriptHandlingObject(hasHadScriptObject); > > > do { if ((__builtin_expect(!!(!(sgo || !hasHadScriptObject)), 0))) { do { } while (0); return 0; } } while (0); > } > } else { > sgo = do_QueryInterface(aCurrentTarget); > } > > JSContext *cx = 0; > > nsCOMPtr<nsIScriptContext> scx; > > if (sgo) { > scx = sgo->GetContext(); > > if (scx) { > cx = (JSContext *)scx->GetNativeContext(); > } > > do { if ((__builtin_expect(!!(!(cx)), 0))) { do { } while (0); return 0; } } while (0); > } > > > > > > return Push(cx); >} > >PRBool >nsCxPusher::Push(JSContext *cx) >{ > if (mScx) { > do { } while (0); > > return 0; > } > > if (cx) { > mScx = GetScriptContextFromJSContext(cx); > if (!mScx) { > > return 1; > } > > if (!mStack) { > mStack = do_GetService(kJSStackContractID); > } > > if (mStack) { > if (IsContextOnStack(mStack, cx)) { > > > mScriptIsRunning = 1; > } > > mStack->Push(cx); > } > } > return 1; >} > >void >nsCxPusher::Pop() >{ > if (!mScx || !mStack) { > mScx = 0; > > do { } while (0); > > > return; > } > > JSContext *unused; > mStack->Pop(&unused); > > if (!mScriptIsRunning) { > > > > mScx->ScriptEvaluated(1); > } > > mScx = 0; > mScriptIsRunning = 0; >} > >static const char gPropertiesFiles[nsContentUtils::PropertiesFile_COUNT][56] = { > > "chrome://global/locale/css.properties", > "chrome://global/locale/xbl.properties", > "chrome://global/locale/xul.properties", > "chrome://global/locale/layout_errors.properties", > "chrome://global/locale/layout/HtmlForm.properties", > "chrome://global/locale/printing.properties", > "chrome://global/locale/dom/dom.properties", > > "chrome://global/locale/svg/svg.properties", > > "chrome://branding/locale/brand.properties", > "chrome://global/locale/commonDialogs.properties" >}; > > nsresult >nsContentUtils::EnsureStringBundle(PropertiesFile aFile) >{ > if (!sStringBundles[aFile]) { > if (!sStringBundleService) { > nsresult rv = > CallGetService("@mozilla.org/intl/stringbundle;1", &sStringBundleService); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > } > nsIStringBundle *bundle; > nsresult rv = > sStringBundleService->CreateBundle(gPropertiesFiles[aFile], &bundle); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > sStringBundles[aFile] = bundle; > } > return 0; >} > > >nsresult nsContentUtils::GetLocalizedString(PropertiesFile aFile, > const char* aKey, > nsXPIDLString& aResult) >{ > nsresult rv = EnsureStringBundle(aFile); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > nsIStringBundle *bundle = sStringBundles[aFile]; > > return bundle->GetStringFromName(NS_ConvertASCIItoUTF16(aKey).get(), > getter_Copies(aResult)); >} > > >nsresult nsContentUtils::FormatLocalizedString(PropertiesFile aFile, > const char* aKey, > const PRUnichar **aParams, > PRUint32 aParamsLength, > nsXPIDLString& aResult) >{ > nsresult rv = EnsureStringBundle(aFile); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > nsIStringBundle *bundle = sStringBundles[aFile]; > > return bundle->FormatStringFromName(NS_ConvertASCIItoUTF16(aKey).get(), > aParams, aParamsLength, > getter_Copies(aResult)); >} > > nsresult >nsContentUtils::ReportToConsole(PropertiesFile aFile, > const char *aMessageName, > const PRUnichar **aParams, > PRUint32 aParamsLength, > nsIURI* aURI, > const nsAFlatString& aSourceLine, > PRUint32 aLineNumber, > PRUint32 aColumnNumber, > PRUint32 aErrorFlags, > const char *aCategory) >{ > do { } while (0); > > > > nsresult rv; > if (!sConsoleService) { > rv = CallGetService("@mozilla.org/consoleservice;1", &sConsoleService); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > } > > nsXPIDLString errorText; > if (aParams) { > rv = FormatLocalizedString(aFile, aMessageName, aParams, aParamsLength, > errorText); > } > else { > rv = GetLocalizedString(aFile, aMessageName, errorText); > } > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > nsCAutoString spec; > if (aURI) > aURI->GetSpec(spec); > > nsCOMPtr<nsIScriptError> errorObject = > do_CreateInstance("@mozilla.org/scripterror;1", &rv); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > rv = errorObject->Init(errorText.get(), > NS_ConvertUTF8toUTF16(spec).get(), > aSourceLine.get(), > aLineNumber, aColumnNumber, > aErrorFlags, aCategory); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > return sConsoleService->LogMessage(errorObject); >} > >PRBool >nsContentUtils::IsChromeDoc(nsIDocument *aDocument) >{ > if (!aDocument) { > return 0; > } > > nsCOMPtr<nsIPrincipal> systemPrincipal; > sSecurityManager->GetSystemPrincipal(getter_AddRefs(systemPrincipal)); > > return aDocument->NodePrincipal() == systemPrincipal; >} > >void >nsContentUtils::NotifyXPCIfExceptionPending(JSContext* aCx) >{ > if (!::JS_IsExceptionPending(aCx)) { > return; > } > > nsAXPCNativeCallContext *nccx = 0; > XPConnect()->GetCurrentNativeCallContext(&nccx); > if (nccx) { > > > > JSContext* cx; > nccx->GetJSContext(&cx); > if (cx == aCx) { > nccx->SetExceptionWasThrown(1); > } > } >} > > >nsIContentPolicy* >nsContentUtils::GetContentPolicy() >{ > if (!sTriedToGetContentPolicy) { > CallGetService("@mozilla.org/layout/content-policy;1", &sContentPolicyService); > > sTriedToGetContentPolicy = 1; > } > > return sContentPolicyService; >} > > >nsresult >nsAutoGCRoot::AddJSGCRoot(void* aPtr, const char* aName) >{ > if (!sJSScriptRuntime) { > nsresult rv = CallGetService("@mozilla.org/js/xpc/RuntimeService;1", > &sJSRuntimeService); > do { if ((__builtin_expect(!!(!(sJSRuntimeService)), 0))) { do { } while (0); return rv; } } while (0); > > sJSRuntimeService->GetRuntime(&sJSScriptRuntime); > if (!sJSScriptRuntime) { > do { (sJSRuntimeService)->Release(); (sJSRuntimeService) = 0; } while (0); > do { } while (0); > return ((nsresult) 0x80004005L); > } > } > > PRBool ok; > ok = ::JS_AddNamedRootRT(sJSScriptRuntime, aPtr, aName); > if (!ok) { > do { } while (0); > return ((nsresult) 0x8007000eL); > } > > return 0; >} > > >nsresult >nsAutoGCRoot::RemoveJSGCRoot(void* aPtr) >{ > if (!sJSScriptRuntime) { > do { } while (0); > return ((nsresult) 0x8000ffffL); > } > > ::JS_RemoveRootRT(sJSScriptRuntime, aPtr); > > return 0; >} > > >PRBool >nsContentUtils::IsEventAttributeName(nsIAtom* aName, PRInt32 aType) >{ > const char* name; > aName->GetUTF8String(&name); > if (name[0] != 'o' || name[1] != 'n') > return 0; > > EventNameMapping mapping; > return (sEventTable->Get(aName, &mapping) && mapping.mType & aType); >} > > >PRUint32 >nsContentUtils::GetEventId(nsIAtom* aName) >{ > EventNameMapping mapping; > if (sEventTable->Get(aName, &mapping)) > return mapping.mId; > > return 2000; >} > > >nsresult >nsContentUtils::DispatchTrustedEvent(nsIDocument* aDoc, nsISupports* aTarget, > const nsAString_internal& aEventName, > PRBool aCanBubble, PRBool aCancelable, > PRBool *aDefaultAction) >{ > nsCOMPtr<nsIDOMDocumentEvent> docEvent(do_QueryInterface(aDoc)); > nsCOMPtr<nsIDOMEventTarget> target(do_QueryInterface(aTarget)); > do { if ((__builtin_expect(!!(!(docEvent && target)), 0))) { do { } while (0); return ((nsresult) 0x80070057L); } } while (0); > > nsCOMPtr<nsIDOMEvent> event; > nsresult rv = > docEvent->CreateEvent(static_cast<const nsAFlatString&>(nsDependentString(reinterpret_cast<const nsAString_internal::char_type*>(L"Events"), PRUint32((sizeof(L"Events")/sizeof(wchar_t))-1))), getter_AddRefs(event)); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > nsCOMPtr<nsIPrivateDOMEvent> privateEvent(do_QueryInterface(event)); > do { if ((__builtin_expect(!!(!(privateEvent)), 0))) { do { } while (0); return ((nsresult) 0x80004005L); } } while (0); > > rv = event->InitEvent(aEventName, aCanBubble, aCancelable); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > rv = privateEvent->SetTrusted(1); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > PRBool dummy; > return target->DispatchEvent(event, aDefaultAction ? aDefaultAction : &dummy); >} > > >nsIContent* >nsContentUtils::MatchElementId(nsIContent *aContent, nsIAtom* aId) >{ > if (aId == aContent->GetID()) { > return aContent; > } > > nsIContent *result = 0; > PRUint32 i, count = aContent->GetChildCount(); > > for (i = 0; i < count && result == 0; i++) { > result = MatchElementId(aContent->GetChildAt(i), aId); > } > > return result; >} > > > > >nsIContent * >nsContentUtils::MatchElementId(nsIContent *aContent, const nsAString_internal& aId) >{ > do { } while (0); > > > nsCOMPtr<nsIAtom> id(do_GetAtom(aId)); > if (!id) { > > return 0; > } > > return MatchElementId(aContent, id); >} > > > >nsresult >nsContentUtils::ConvertStringFromCharset(const nsACString_internal& aCharset, > const nsACString_internal& aInput, > nsAString_internal& aOutput) >{ > if (aCharset.IsEmpty()) { > > CopyUTF8toUTF16(aInput, aOutput); > return 0; > } > > nsresult rv; > nsCOMPtr<nsICharsetConverterManager> ccm = > do_GetService("@mozilla.org/charset-converter-manager;1", &rv); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > return rv; > > nsCOMPtr<nsIUnicodeDecoder> decoder; > rv = ccm->GetUnicodeDecoder(PromiseFlatCString(aCharset).get(), > getter_AddRefs(decoder)); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > return rv; > > nsPromiseFlatCString flatInput(aInput); > PRInt32 srcLen = flatInput.Length(); > PRInt32 dstLen; > rv = decoder->GetMaxLength(flatInput.get(), srcLen, &dstLen); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > return rv; > > PRUnichar *ustr = (PRUnichar *)nsMemory::Alloc((dstLen + 1) * > sizeof(PRUnichar)); > if (!ustr) > return ((nsresult) 0x8007000eL); > > rv = decoder->Convert(flatInput.get(), &srcLen, ustr, &dstLen); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > ustr[dstLen] = 0; > aOutput.Assign(ustr, dstLen); > } > > nsMemory::Free(ustr); > return rv; >} > > >PRBool >nsContentUtils::CheckForBOM(const unsigned char* aBuffer, PRUint32 aLength, > nsACString_internal& aCharset) >{ > PRBool found = 1; > aCharset.Truncate(); > if (aLength >= 3 && > aBuffer[0] == 0xEF && > aBuffer[1] == 0xBB && > aBuffer[2] == 0xBF) { > aCharset = "UTF-8"; > } > else if (aLength >= 4 && > aBuffer[0] == 0x00 && > aBuffer[1] == 0x00 && > aBuffer[2] == 0xFE && > aBuffer[3] == 0xFF) { > aCharset = "UTF-32BE"; > } > else if (aLength >= 4 && > aBuffer[0] == 0xFF && > aBuffer[1] == 0xFE && > aBuffer[2] == 0x00 && > aBuffer[3] == 0x00) { > aCharset = "UTF-32LE"; > } > else if (aLength >= 2 && > aBuffer[0] == 0xFE && aBuffer[1] == 0xFF) { > aCharset = "UTF-16BE"; > } > else if (aLength >= 2 && > aBuffer[0] == 0xFF && aBuffer[1] == 0xFE) { > aCharset = "UTF-16LE"; > } else { > found = 0; > } > > return found; >} > >static PRBool EqualExceptRef(nsIURL* aURL1, nsIURL* aURL2) >{ > nsCOMPtr<nsIURI> u1; > nsCOMPtr<nsIURI> u2; > > nsresult rv = aURL1->Clone(getter_AddRefs(u1)); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = aURL2->Clone(getter_AddRefs(u2)); > } > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) > return 0; > > nsCOMPtr<nsIURL> url1 = do_QueryInterface(u1); > nsCOMPtr<nsIURL> url2 = do_QueryInterface(u2); > if (!url1 || !url2) { > do { } while (0); > return 0; > } > url1->SetRef(EmptyCString()); > url2->SetRef(EmptyCString()); > > PRBool equal; > rv = url1->Equals(url2, &equal); > return ((__builtin_expect(!!(!((rv) & 0x80000000)), 1))) && equal; >} > > >nsIContent* >nsContentUtils::GetReferencedElement(nsIURI* aURI, nsIContent *aFromContent) >{ > nsCOMPtr<nsIURL> url = do_QueryInterface(aURI); > if (!url) > return 0; > > nsCAutoString refPart; > url->GetRef(refPart); > > > NS_UnescapeURL(refPart); > > nsCAutoString charset; > url->GetOriginCharset(charset); > nsAutoString ref; > nsresult rv = ConvertStringFromCharset(charset, refPart, ref); > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) { > CopyUTF8toUTF16(refPart, ref); > } > if (ref.IsEmpty()) > return 0; > > > nsIDocument *doc = aFromContent->GetCurrentDoc(); > if (!doc) > return 0; > > > > > nsCOMPtr<nsIURL> documentURL = do_QueryInterface(doc->GetDocumentURI()); > nsIContent* bindingParent = aFromContent->GetBindingParent(); > PRBool isXBL = 0; > if (bindingParent) { > nsXBLBinding* binding = doc->BindingManager()->GetBinding(bindingParent); > if (binding) { > > > > > > > > documentURL = do_QueryInterface(binding->PrototypeBinding()->DocURI()); > isXBL = 1; > } > } > if (!documentURL) > return 0; > > if (!EqualExceptRef(url, documentURL)) { > > return 0; > } > > > nsCOMPtr<nsIContent> content; > if (isXBL) { > nsCOMPtr<nsIDOMNodeList> anonymousChildren; > doc->BindingManager()-> > GetAnonymousNodesFor(bindingParent, getter_AddRefs(anonymousChildren)); > > if (anonymousChildren) { > PRUint32 length; > anonymousChildren->GetLength(&length); > for (PRUint32 i = 0; i < length && !content; ++i) { > nsCOMPtr<nsIDOMNode> node; > anonymousChildren->Item(i, getter_AddRefs(node)); > nsCOMPtr<nsIContent> c = do_QueryInterface(node); > if (c) { > content = MatchElementId(c, ref); > } > } > } > } else { > nsCOMPtr<nsIDOMDocument> domDoc = do_QueryInterface(doc); > do { } while (0); > > nsCOMPtr<nsIDOMElement> element; > rv = domDoc->GetElementById(ref, getter_AddRefs(element)); > if (element) { > content = do_QueryInterface(element); > } > } > > return content; >} > > >PRBool >nsContentUtils::HasNonEmptyAttr(nsIContent* aContent, PRInt32 aNameSpaceID, > nsIAtom* aName) >{ > static nsIContent::AttrValuesArray strings[] = {&nsGkAtoms::_empty, 0}; > return aContent->FindAttrValueIn(aNameSpaceID, aName, strings, eCaseMatters) > == nsIContent::ATTR_VALUE_NO_MATCH; >} > > >PRBool >nsContentUtils::HasMutationListeners(nsINode* aNode, > PRUint32 aType, > nsINode* aTargetForSubtreeModified) >{ > nsIDocument* doc = aNode->GetOwnerDoc(); > if (!doc) { > return 0; > } > > > nsCOMPtr<nsPIDOMWindow> window; > window = do_QueryInterface(doc->GetScriptGlobalObject()); > > > if (window && !window->HasMutationListeners(aType)) { > return 0; > } > > if (aNode->IsNodeOfType(nsINode::eCONTENT) && > static_cast<nsIContent*>(aNode)->IsInNativeAnonymousSubtree()) { > return 0; > } > > doc->MayDispatchMutationEvent(aTargetForSubtreeModified); > > > nsCOMPtr<nsPIDOMEventTarget> piTarget(do_QueryInterface(window)); > if (piTarget) { > nsCOMPtr<nsIEventListenerManager> manager; > piTarget->GetListenerManager(0, getter_AddRefs(manager)); > if (manager) { > PRBool hasListeners = 0; > manager->HasMutationListeners(&hasListeners); > if (hasListeners) { > return 1; > } > } > } > > > > > while (aNode) { > nsCOMPtr<nsIEventListenerManager> manager; > aNode->GetListenerManager(0, getter_AddRefs(manager)); > if (manager) { > PRBool hasListeners = 0; > manager->HasMutationListeners(&hasListeners); > if (hasListeners) { > return 1; > } > } > > if (aNode->IsNodeOfType(nsINode::eCONTENT)) { > nsIContent* content = static_cast<nsIContent*>(aNode); > nsIContent* insertionParent = > doc->BindingManager()->GetInsertionParent(content); > if (insertionParent) { > aNode = insertionParent; > continue; > } > } > aNode = aNode->GetNodeParent(); > } > > return 0; >} > > >void >nsContentUtils::TraverseListenerManager(nsINode *aNode, > nsCycleCollectionTraversalCallback &cb) >{ > if (!sEventListenerManagersHash.ops) { > > return; > } > > EventListenerManagerMapEntry *entry = > static_cast<EventListenerManagerMapEntry *> > (PL_DHashTableOperate(&sEventListenerManagersHash, aNode, > PL_DHASH_LOOKUP)); > if ((!((entry)->keyHash == 0))) { > do { } while (0); > cb.NoteXPCOMChild(entry->mListenerManager); > } >} > >nsresult >nsContentUtils::GetListenerManager(nsINode *aNode, > PRBool aCreateIfNotFound, > nsIEventListenerManager **aResult) >{ > *aResult = 0; > > if (!aCreateIfNotFound && !aNode->HasFlag(NODE_HAS_LISTENERMANAGER)) { > return 0; > } > > if (!sEventListenerManagersHash.ops) { > > > > return ((nsresult) 0x80040111L); > } > > if (!aCreateIfNotFound) { > EventListenerManagerMapEntry *entry = > static_cast<EventListenerManagerMapEntry *> > (PL_DHashTableOperate(&sEventListenerManagersHash, aNode, > PL_DHASH_LOOKUP)); > if ((!((entry)->keyHash == 0))) { > *aResult = entry->mListenerManager; > (*aResult)->AddRef(); > } > return 0; > } > > EventListenerManagerMapEntry *entry = > static_cast<EventListenerManagerMapEntry *> > (PL_DHashTableOperate(&sEventListenerManagersHash, aNode, > PL_DHASH_ADD)); > > if (!entry) { > return ((nsresult) 0x8007000eL); > } > > if (!entry->mListenerManager) { > nsresult rv = > NS_NewEventListenerManager(getter_AddRefs(entry->mListenerManager)); > > if (((__builtin_expect(!!((rv) & 0x80000000), 0)))) { > PL_DHashTableRawRemove(&sEventListenerManagersHash, entry); > > return rv; > } > > entry->mListenerManager->SetListenerTarget(aNode); > > aNode->SetFlags(NODE_HAS_LISTENERMANAGER); > } > > (*aResult = entry->mListenerManager)->AddRef(); > > return 0; >} > > >void >nsContentUtils::RemoveListenerManager(nsINode *aNode) >{ > if (sEventListenerManagersHash.ops) { > EventListenerManagerMapEntry *entry = > static_cast<EventListenerManagerMapEntry *> > (PL_DHashTableOperate(&sEventListenerManagersHash, aNode, > PL_DHASH_LOOKUP)); > if ((!((entry)->keyHash == 0))) { > nsCOMPtr<nsIEventListenerManager> listenerManager; > listenerManager.swap(entry->mListenerManager); > > > PL_DHashTableRawRemove(&sEventListenerManagersHash, entry); > if (listenerManager) { > listenerManager->Disconnect(); > } > } > } >} > > >PRBool >nsContentUtils::IsValidNodeName(nsIAtom *aLocalName, nsIAtom *aPrefix, > PRInt32 aNamespaceID) >{ > if (aNamespaceID == -1) { > return 0; > } > > if (!aPrefix) { > > > return (aLocalName == nsGkAtoms::xmlns) == > (aNamespaceID == 1); > } > > > if (aNamespaceID == kNameSpaceID_None) { > return 0; > } > > > > if (aNamespaceID == 1) { > return aPrefix == nsGkAtoms::xmlns && aLocalName != nsGkAtoms::xmlns; > } > > > > > > return aPrefix != nsGkAtoms::xmlns && > (aNamespaceID == 2 || aPrefix != nsGkAtoms::xml); >} > > >nsresult >nsContentUtils::CreateContextualFragment(nsIDOMNode* aContextNode, > const nsAString_internal& aFragment, > PRBool aWillOwnFragment, > nsIDOMDocumentFragment** aReturn) >{ > do { if ((__builtin_expect(!!(!(aContextNode)), 0))) { do { } while (0); return ((nsresult) 0x80070057L); } } while (0); > *aReturn = 0; > > nsresult rv; > nsCOMPtr<nsINode> node = do_QueryInterface(aContextNode); > do { if ((__builtin_expect(!!(!(node)), 0))) { do { } while (0); return ((nsresult) 0x80040111L); } } while (0); > > > > nsCOMPtr<nsIDocument> document = node->GetOwnerDoc(); > do { if ((__builtin_expect(!!(!(document)), 0))) { do { } while (0); return ((nsresult) 0x80040111L); } } while (0); > > nsAutoTArray<nsString, 32> tagStack; > nsAutoString uriStr, nameStr; > nsCOMPtr<nsIContent> content = do_QueryInterface(aContextNode); > > if (content && !content->IsNodeOfType(nsINode::eELEMENT)) > content = content->GetParent(); > > while (content && content->IsNodeOfType(nsINode::eELEMENT)) { > nsString& tagName = *tagStack.AppendElement(); > do { if ((__builtin_expect(!!(!(&tagName)), 0))) { do { } while (0); return ((nsresult) 0x8007000eL); } } while (0); > > content->NodeInfo()->GetQualifiedName(tagName); > > > PRUint32 count = content->GetAttrCount(); > PRBool setDefaultNamespace = 0; > if (count > 0) { > PRUint32 index; > > for (index = 0; index < count; index++) { > const nsAttrName* name = content->GetAttrNameAt(index); > if (name->NamespaceEquals(1)) { > content->GetAttr(1, name->LocalName(), uriStr); > > > tagName.Append(static_cast<const nsAFlatString&>(nsDependentString(reinterpret_cast<const nsAString_internal::char_type*>(L" xmlns"), PRUint32((sizeof(L" xmlns")/sizeof(wchar_t))-1)))); > if (name->GetPrefix()) { > tagName.Append(PRUnichar(':')); > name->LocalName()->ToString(nameStr); > tagName.Append(nameStr); > } else { > setDefaultNamespace = 1; > } > tagName.Append(static_cast<const nsAFlatString&>(nsDependentString(reinterpret_cast<const nsAString_internal::char_type*>(L"=\""), PRUint32((sizeof(L"=\"")/sizeof(wchar_t))-1))) + uriStr + > static_cast<const nsAFlatString&>(nsDependentString(reinterpret_cast<const nsAString_internal::char_type*>(L"\""), PRUint32((sizeof(L"\"")/sizeof(wchar_t))-1)))); > } > } > } > > if (!setDefaultNamespace) { > nsINodeInfo* info = content->NodeInfo(); > if (!info->GetPrefixAtom() && > info->NamespaceID() != kNameSpaceID_None) { > > > > info->GetNamespaceURI(uriStr); > tagName.Append(static_cast<const nsAFlatString&>(nsDependentString(reinterpret_cast<const nsAString_internal::char_type*>(L" xmlns=\""), PRUint32((sizeof(L" xmlns=\"")/sizeof(wchar_t))-1))) + uriStr + > static_cast<const nsAFlatString&>(nsDependentString(reinterpret_cast<const nsAString_internal::char_type*>(L"\""), PRUint32((sizeof(L"\"")/sizeof(wchar_t))-1)))); > } > } > > content = content->GetParent(); > } > > nsCAutoString contentType; > PRBool bCaseSensitive = 1; > nsAutoString buf; > document->GetContentType(buf); > LossyCopyUTF16toASCII(buf, contentType); > bCaseSensitive = document->IsCaseSensitive(); > > nsCOMPtr<nsIHTMLDocument> htmlDoc(do_QueryInterface(document)); > PRBool bHTML = htmlDoc && !bCaseSensitive; > > > > nsCOMPtr<nsIParser> parser = document->GetFragmentParser(); > if (parser) { > > parser->Reset(); > } > else { > > parser = do_CreateInstance(kCParserCID, &rv); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > } > > > nsCOMPtr<nsIFragmentContentSink> sink; > nsCOMPtr<nsIContentSink> contentsink = parser->GetContentSink(); > if (contentsink) { > > if (bHTML) { > nsCOMPtr<nsIHTMLContentSink> htmlsink = do_QueryInterface(contentsink); > sink = do_QueryInterface(htmlsink); > } > else { > nsCOMPtr<nsIXMLContentSink> xmlsink = do_QueryInterface(contentsink); > sink = do_QueryInterface(xmlsink); > } > } > > if (!sink) { > > > if (bHTML) { > rv = NS_NewHTMLFragmentContentSink(getter_AddRefs(sink)); > } else { > rv = NS_NewXMLFragmentContentSink(getter_AddRefs(sink)); > } > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > contentsink = do_QueryInterface(sink); > do { } while (0); > > parser->SetContentSink(contentsink); > } > > sink->SetTargetDocument(document); > > nsDTDMode mode = eDTDMode_autodetect; > switch (document->GetCompatibilityMode()) { > case eCompatibility_NavQuirks: > mode = eDTDMode_quirks; > break; > case eCompatibility_AlmostStandards: > mode = eDTDMode_almost_standards; > break; > case eCompatibility_FullStandards: > mode = eDTDMode_full_standards; > break; > default: > do { } while (0); > break; > } > > > rv = parser->ParseFragment(aFragment, 0, tagStack, > !bHTML, contentType, mode); > if (((__builtin_expect(!!(!((rv) & 0x80000000)), 1)))) { > rv = sink->GetFragment(aWillOwnFragment, aReturn); > } > > document->SetFragmentParser(parser); > > return 0; >} > > >nsresult >nsContentUtils::CreateDocument(const nsAString_internal& aNamespaceURI, > const nsAString_internal& aQualifiedName, > nsIDOMDocumentType* aDoctype, > nsIURI* aDocumentURI, nsIURI* aBaseURI, > nsIPrincipal* aPrincipal, > nsIScriptGlobalObject* aEventObject, > nsIDOMDocument** aResult) >{ > nsresult rv = NS_NewDOMDocument(aResult, aNamespaceURI, aQualifiedName, > aDoctype, aDocumentURI, aBaseURI, aPrincipal, > 1); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > nsCOMPtr<nsIDocument> document = do_QueryInterface(*aResult); > document->SetScriptHandlingObject(aEventObject); > return 0; >} > > >nsresult >nsContentUtils::SetNodeTextContent(nsIContent* aContent, > const nsAString_internal& aValue, > PRBool aTryReuse) >{ > > > mozAutoDocUpdate updateBatch(aContent->GetCurrentDoc(), > 0x00000001, 1); > > PRUint32 childCount = aContent->GetChildCount(); > > if (aTryReuse && !aValue.IsEmpty()) { > PRUint32 removeIndex = 0; > > > for (PRUint32 i = 0; i < childCount; ++i) { > nsIContent* child = aContent->GetChildAt(removeIndex); > if (removeIndex == 0 && child->IsNodeOfType(nsINode::eTEXT)) { > nsresult rv = child->SetText(aValue, 1); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > removeIndex = 1; > } > else { > aContent->RemoveChildAt(removeIndex, 1); > } > } > > if (removeIndex == 1) { > return 0; > } > } > else { > > for (PRUint32 i = childCount; i-- != 0; ) { > aContent->RemoveChildAt(i, 1); > } > } > > if (aValue.IsEmpty()) { > return 0; > } > > nsCOMPtr<nsIContent> textContent; > nsresult rv = NS_NewTextNode(getter_AddRefs(textContent), > aContent->NodeInfo()->NodeInfoManager()); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > textContent->SetText(aValue, 1); > > return aContent->AppendChildTo(textContent, 1); >} > >static void AppendNodeTextContentsRecurse(nsINode* aNode, nsAString_internal& aResult) >{ > nsIContent* child; > PRUint32 i; > for (i = 0; (child = aNode->GetChildAt(i)); ++i) { > if (child->IsNodeOfType(nsINode::eELEMENT)) { > AppendNodeTextContentsRecurse(child, aResult); > } > else if (child->IsNodeOfType(nsINode::eTEXT)) { > child->AppendTextTo(aResult); > } > } >} > > >void >nsContentUtils::AppendNodeTextContent(nsINode* aNode, PRBool aDeep, > nsAString_internal& aResult) >{ > if (aNode->IsNodeOfType(nsINode::eTEXT)) { > static_cast<nsIContent*>(aNode)->AppendTextTo(aResult); > } > else if (aDeep) { > AppendNodeTextContentsRecurse(aNode, aResult); > } > else { > nsIContent* child; > PRUint32 i; > for (i = 0; (child = aNode->GetChildAt(i)); ++i) { > if (child->IsNodeOfType(nsINode::eTEXT)) { > child->AppendTextTo(aResult); > } > } > } >} > >PRBool >nsContentUtils::HasNonEmptyTextContent(nsINode* aNode) >{ > nsIContent* child; > PRUint32 i; > for (i = 0; (child = aNode->GetChildAt(i)); ++i) { > if (child->IsNodeOfType(nsINode::eTEXT) && > child->TextLength() > 0) { > return 1; > } > } > > return 0; >} > > >PRBool >nsContentUtils::IsInSameAnonymousTree(nsINode* aNode, > nsIContent* aContent) >{ > do { } while (0); > > do { } while (0); > > > if (!aNode->IsNodeOfType(nsINode::eCONTENT)) { > > > > > > > > return aContent->GetBindingParent() == 0; > } > > return static_cast<nsIContent*>(aNode)->GetBindingParent() == > aContent->GetBindingParent(); > >} > > >void >nsContentUtils::DestroyAnonymousContent(nsCOMPtr<nsIContent>* aContent) >{ > if (*aContent) { > (*aContent)->UnbindFromTree(); > *aContent = 0; > } >} > > >nsIDOMScriptObjectFactory* >nsContentUtils::GetDOMScriptObjectFactory() >{ > if (!sDOMScriptObjectFactory) { > static const nsCID kDOMScriptObjectFactoryCID = { 0x9eb760f0, 0x4380, 0x11d2, {0xb3, 0x28, 0x00, 0x80, 0x5f, 0x8a, 0x38, 0x59} }; > > > CallGetService(kDOMScriptObjectFactoryCID, &sDOMScriptObjectFactory); > } > > return sDOMScriptObjectFactory; >} > > >nsresult >nsContentUtils::HoldScriptObject(PRUint32 aLangID, void *aObject) >{ > do { } while (0); > do { } while (0); > > nsresult rv; > > PRUint32 langIndex = (aLangID-nsIProgrammingLanguage::JAVASCRIPT); > nsIScriptRuntime *runtime = sScriptRuntimes[langIndex]; > if (!runtime) { > nsIDOMScriptObjectFactory *factory = GetDOMScriptObjectFactory(); > do { if ((__builtin_expect(!!(!(factory)), 0))) { do { } while (0); return ((nsresult) 0x80004005L); } } while (0); > > rv = factory->GetScriptRuntimeByID(aLangID, &runtime); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > > sScriptRuntimes[langIndex] = runtime; > } > > rv = runtime->HoldScriptObject(aObject); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > ++sScriptRootCount[langIndex]; > ; > > > return 0; >} > > >void >nsContentUtils::DropScriptObject(PRUint32 aLangID, void *aObject, > void *aClosure) >{ > do { } while (0); > do { } while (0); > > PRUint32 langIndex = (aLangID-nsIProgrammingLanguage::JAVASCRIPT); > ; > > sScriptRuntimes[langIndex]->DropScriptObject(aObject); > if (--sScriptRootCount[langIndex] == 0) { > do { (sScriptRuntimes[langIndex])->Release(); (sScriptRuntimes[langIndex]) = 0; } while (0); > } >} > > >nsresult >nsContentUtils::HoldJSObjects(void* aScriptObjectHolder, > nsScriptObjectTracer* aTracer) >{ > nsresult rv = sXPConnect->AddJSHolder(aScriptObjectHolder, aTracer); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > ++sJSGCThingRootCount; > ; > > > return 0; >} > > >nsresult >nsContentUtils::DropJSObjects(void* aScriptObjectHolder) >{ > ; > nsresult rv = sXPConnect->RemoveJSHolder(aScriptObjectHolder); > if (--sJSGCThingRootCount == 0 && !sInitialized) { > do { (sXPConnect)->Release(); (sXPConnect) = 0; } while (0); > } > return rv; >} > > >PRUint32 >nsContentUtils::GetKBStateControlStatusFromIMEStatus(PRUint32 aState) >{ > switch (aState & nsIContent::IME_STATUS_MASK_ENABLED) { > case nsIContent::IME_STATUS_DISABLE: > return nsIKBStateControl::IME_STATUS_DISABLED; > case nsIContent::IME_STATUS_ENABLE: > return nsIKBStateControl::IME_STATUS_ENABLED; > case nsIContent::IME_STATUS_PASSWORD: > return nsIKBStateControl::IME_STATUS_PASSWORD; > default: > do { } while (0); > return nsIKBStateControl::IME_STATUS_ENABLED; > } >} > > >void >nsContentUtils::NotifyInstalledMenuKeyboardListener(PRBool aInstalling) >{ > nsIMEStateManager::OnInstalledMenuKeyboardListener(aInstalling); >} > >static PRBool SchemeIs(nsIURI* aURI, const char* aScheme) >{ > nsCOMPtr<nsIURI> baseURI = NS_GetInnermostURI(aURI); > do { if ((__builtin_expect(!!(!(baseURI)), 0))) { do { } while (0); return 0; } } while (0); > > PRBool isScheme = 0; > return ((__builtin_expect(!!(!((baseURI->SchemeIs(aScheme, &isScheme)) & 0x80000000)), 1))) && isScheme; >} > > >nsresult >nsContentUtils::CheckSecurityBeforeLoad(nsIURI* aURIToLoad, > nsIPrincipal* aLoadingPrincipal, > PRUint32 aCheckLoadFlags, > PRBool aAllowData, > PRUint32 aContentPolicyType, > nsISupports* aContext, > const nsACString_internal& aMimeGuess, > nsISupports* aExtra) >{ > do { } while (0); > > PRBool isSystemPrin = 0; > if (((__builtin_expect(!!(!((sSecurityManager->IsSystemPrincipal(aLoadingPrincipal, &isSystemPrin)) & 0x80000000)), 1))) && > > isSystemPrin) { > return 0; > } > > > > nsresult rv = sSecurityManager-> > CheckLoadURIWithPrincipal(aLoadingPrincipal, aURIToLoad, aCheckLoadFlags); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > > > PRInt16 shouldLoad = nsIContentPolicy::ACCEPT; > rv = NS_CheckContentLoadPolicy(aContentPolicyType, > aURIToLoad, > aLoadingPrincipal, > aContext, > aMimeGuess, > aExtra, > &shouldLoad, > GetContentPolicy(), > sSecurityManager); > do { nsresult __rv = rv; if (((__builtin_expect(!!((__rv) & 0x80000000), 0)))) { do { } while (0); return rv; } } while (0); > if (((shouldLoad) != nsIContentPolicy::ACCEPT)) { > return ((nsresult) (((PRUint32)(1)<<31) | ((PRUint32)(25 +0x45)<<16) | ((PRUint32)(10))) ); > } > > > if ((aAllowData && SchemeIs(aURIToLoad, "data")) || > ((aCheckLoadFlags & nsIScriptSecurityManager::ALLOW_CHROME) && > SchemeIs(aURIToLoad, "chrome"))) { > return 0; > } > > return aLoadingPrincipal->CheckMayLoad(aURIToLoad, 1); >} > > >void >nsContentUtils::TriggerLink(nsIContent *aContent, nsPresContext *aPresContext, > nsIURI *aLinkURI, const nsString &aTargetSpec, > PRBool aClick, PRBool aIsUserTriggered) >{ > do { } while (0); > do { } while (0); > > if (aContent->IsEditable()) { > return; > } > > nsILinkHandler *handler = aPresContext->GetLinkHandler(); > if (!handler) { > return; > } > > if (!aClick) { > handler->OnOverLink(aContent, aLinkURI, aTargetSpec.get()); > > return; > } > > > nsresult proceed = 0; > > if (sSecurityManager) { > PRUint32 flag = > aIsUserTriggered ? > (PRUint32)nsIScriptSecurityManager::STANDARD : > (PRUint32)nsIScriptSecurityManager::LOAD_IS_AUTOMATIC_DOCUMENT_REPLACEMENT; > proceed = > sSecurityManager->CheckLoadURIWithPrincipal(aContent->NodePrincipal(), > aLinkURI, flag); > } > > > if (((__builtin_expect(!!(!((proceed) & 0x80000000)), 1)))) { > handler->OnLinkClick(aContent, aLinkURI, aTargetSpec.get()); > } >} > > >nsIWidget* >nsContentUtils::GetTopLevelWidget(nsIWidget* aWidget) >{ > if (!aWidget) { > return 0; > } > > nsIWidget* currWidget = aWidget; > nsIWidget* parentWidget; > while ((parentWidget = currWidget->GetParent()) != 0) { > currWidget = parentWidget; > } > return currWidget; >} > > >const nsDependentString >nsContentUtils::GetLocalizedEllipsis() >{ > static PRUnichar sBuf[4] = { 0, 0, 0, 0 }; > if (!sBuf[0]) { > nsAutoString tmp(GetLocalizedStringPref("intl.ellipsis")); > PRUint32 len = ((tmp.Length())<((sizeof(sBuf)/sizeof(sBuf[0])) - 1)?(tmp.Length()):((sizeof(sBuf)/sizeof(sBuf[0])) - 1)); > CopyUnicodeTo(tmp, 0, sBuf, len); > if (!sBuf[0]) > sBuf[0] = PRUnichar(0x2026); > } > return nsDependentString(sBuf); >} > > >nsEvent* >nsContentUtils::GetNativeEvent(nsIDOMEvent* aDOMEvent) >{ > nsCOMPtr<nsIPrivateDOMEvent> privateEvent(do_QueryInterface(aDOMEvent)); > if (!privateEvent) > return 0; > nsEvent* nativeEvent; > privateEvent->GetInternalNSEvent(&nativeEvent); > return nativeEvent; >} > > >PRBool >nsContentUtils::DOMEventToNativeKeyEvent(nsIDOMEvent* aDOMEvent, > nsNativeKeyEvent* aNativeEvent, > PRBool aGetCharCode) >{ > nsCOMPtr<nsIDOMNSUIEvent> uievent = do_QueryInterface(aDOMEvent); > PRBool defaultPrevented; > uievent->GetPreventDefault(&defaultPrevented); > if (defaultPrevented) > return 0; > > nsCOMPtr<nsIDOMNSEvent> nsevent = do_QueryInterface(aDOMEvent); > PRBool trusted = 0; > nsevent->GetIsTrusted(&trusted); > if (!trusted) > return 0; > > nsCOMPtr<nsIDOMKeyEvent> keyEvent = do_QueryInterface(aDOMEvent); > > if (aGetCharCode) { > keyEvent->GetCharCode(&aNativeEvent->charCode); > } else { > aNativeEvent->charCode = 0; > } > keyEvent->GetKeyCode(&aNativeEvent->keyCode); > keyEvent->GetAltKey(&aNativeEvent->altKey); > keyEvent->GetCtrlKey(&aNativeEvent->ctrlKey); > keyEvent->GetShiftKey(&aNativeEvent->shiftKey); > keyEvent->GetMetaKey(&aNativeEvent->metaKey); > > aNativeEvent->nativeEvent = GetNativeEvent(aDOMEvent); > > return 1; >} > >static PRBool >HasASCIIDigit(const nsTArray<nsShortcutCandidate>& aCandidates) >{ > for (PRUint32 i = 0; i < aCandidates.Length(); ++i) { > PRUint32 ch = aCandidates[i].mCharCode; > if (ch >= '0' && ch <= '9') > return 1; > } > return 0; >} > >static PRBool >CharsCaseInsensitiveEqual(PRUint32 aChar1, PRUint32 aChar2) >{ > return aChar1 == aChar2 || > ((PRUint32(aChar1) < PRUint32(0x00010000)) && (PRUint32(aChar2) < PRUint32(0x00010000)) && > ToLowerCase(PRUnichar(aChar1)) == ToLowerCase(PRUnichar(aChar2))); >} > >static PRBool >IsCaseChangeableChar(PRUint32 aChar) >{ > return (PRUint32(aChar) < PRUint32(0x00010000)) && > ToLowerCase(PRUnichar(aChar)) != ToUpperCase(PRUnichar(aChar)); >} > > >void >nsContentUtils::GetAccelKeyCandidates(nsIDOMEvent* aDOMEvent, > nsTArray<nsShortcutCandidate>& aCandidates) >{ > do { } while (0); > > nsAutoString eventType; > aDOMEvent->GetType(eventType); > > if (!eventType.EqualsLiteral("keypress")) > return; > > nsKeyEvent* nativeKeyEvent = > static_cast<nsKeyEvent*>(GetNativeEvent(aDOMEvent)); > if (nativeKeyEvent) { ># 4078 "nsContentUtils.cpp" > if (nativeKeyEvent->charCode) { > nsShortcutCandidate key(nativeKeyEvent->charCode, 0); > aCandidates.AppendElement(key); > } > > PRUint32 len = nativeKeyEvent->alternativeCharCodes.Length(); > if (!nativeKeyEvent->isShift) { > for (PRUint32 i = 0; i < len; ++i) { > PRUint32 ch = > nativeKeyEvent->alternativeCharCodes[i].mUnshiftedCharCode; > if (!ch || ch == nativeKeyEvent->charCode) > continue; > > nsShortcutCandidate key(ch, 0); > aCandidates.AppendElement(key); > } > > > > > if (!HasASCIIDigit(aCandidates)) { > for (PRUint32 i = 0; i < len; ++i) { > PRUint32 ch = > nativeKeyEvent->alternativeCharCodes[i].mShiftedCharCode; > if (ch >= '0' && ch <= '9') { > nsShortcutCandidate key(ch, 0); > aCandidates.AppendElement(key); > break; > } > } > } > } else { > for (PRUint32 i = 0; i < len; ++i) { > PRUint32 ch = nativeKeyEvent->alternativeCharCodes[i].mShiftedCharCode; > if (!ch) > continue; > > if (ch != nativeKeyEvent->charCode) { > nsShortcutCandidate key(ch, 0); > aCandidates.AppendElement(key); > } > > > > > > > PRUint32 unshiftCh = > nativeKeyEvent->alternativeCharCodes[i].mUnshiftedCharCode; > if (CharsCaseInsensitiveEqual(ch, unshiftCh)) > continue; > > > > > if (IsCaseChangeableChar(ch)) > continue; > > > > nsShortcutCandidate key(ch, 1); > aCandidates.AppendElement(key); > } > } > } else { > nsCOMPtr<nsIDOMKeyEvent> key(do_QueryInterface(aDOMEvent)); > PRUint32 charCode; > key->GetCharCode(&charCode); > if (charCode) { > nsShortcutCandidate key(charCode, 0); > aCandidates.AppendElement(key); > } > } >} > > >void >nsContentUtils::GetAccessKeyCandidates(nsKeyEvent* aNativeKeyEvent, > nsTArray<PRUint32>& aCandidates) >{ > do { } while (0); > > > > > > if (aNativeKeyEvent->charCode) { > PRUint32 ch = aNativeKeyEvent->charCode; > if ((PRUint32(ch) < PRUint32(0x00010000))) > ch = ToLowerCase(PRUnichar(ch)); > aCandidates.AppendElement(ch); > } > for (PRUint32 i = 0; > i < aNativeKeyEvent->alternativeCharCodes.Length(); ++i) { > PRUint32 ch[2] = > { aNativeKeyEvent->alternativeCharCodes[i].mUnshiftedCharCode, > aNativeKeyEvent->alternativeCharCodes[i].mShiftedCharCode }; > for (PRUint32 j = 0; j < 2; ++j) { > if (!ch[j]) > continue; > if ((PRUint32(ch[j]) < PRUint32(0x00010000))) > ch[j] = ToLowerCase(PRUnichar(ch[j])); > > if (aCandidates.IndexOf(ch[j]) == aCandidates.NoIndex) > aCandidates.AppendElement(ch[j]); > } > } > return; >} > > >void >nsContentUtils::AddScriptBlocker() >{ > if (!sScriptBlockerCount) { > do { } while (0); > > sRunnersCountAtFirstBlocker = sBlockedScriptRunners->Count(); > } > ++sScriptBlockerCount; >} > > >void >nsContentUtils::RemoveScriptBlocker() >{ > do { } while (0); > --sScriptBlockerCount; > if (sScriptBlockerCount) { > return; > } > > PRUint32 firstBlocker = sRunnersCountAtFirstBlocker; > PRUint32 lastBlocker = sBlockedScriptRunners->Count(); > sRunnersCountAtFirstBlocker = 0; > do { } while (0); > > > while (firstBlocker < lastBlocker) { > nsCOMPtr<nsIRunnable> runnable = (*sBlockedScriptRunners)[firstBlocker]; > sBlockedScriptRunners->RemoveObjectAt(firstBlocker); > --lastBlocker; > > runnable->Run(); > do { } while (0); > > > do { } while (0); > } >} > > > >PRBool >nsContentUtils::AddScriptRunner(nsIRunnable* aRunnable) >{ > if (!aRunnable) { > return 0; > } > > if (sScriptBlockerCount) { > return sBlockedScriptRunners->AppendObject(aRunnable); > } > > nsCOMPtr<nsIRunnable> run = aRunnable; > run->Run(); > > return 1; >} > > >void >nsContentUtils::HidePopupsInDocument(nsIDocument* aDocument) >{ > do { } while (0); > > > nsXULPopupManager* pm = nsXULPopupManager::GetInstance(); > if (pm) { > nsCOMPtr<nsISupports> container = aDocument->GetContainer(); > nsCOMPtr<nsIDocShellTreeItem> docShellToHide = do_QueryInterface(container); > if (docShellToHide) > pm->HidePopupsInDocShell(docShellToHide); > } > >} > > >PRBool >nsContentUtils::URIIsLocalFile(nsIURI *aURI) >{ > PRBool isFile; > nsCOMPtr<nsINetUtil> util = do_QueryInterface(sIOService); > > return util && ((__builtin_expect(!!(!((util->ProtocolHasFlags(aURI, nsIProtocolHandler::URI_IS_LOCAL_FILE, &isFile)) & 0x80000000)), 1))) && > > > isFile; >} > > >void >nsAutoGCRoot::Shutdown() >{ > do { if (sJSRuntimeService) { (sJSRuntimeService)->Release(); (sJSRuntimeService) = 0; } } while (0); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 448511
: 306759