mshtml: Wine Gecko 1.9 release.

This commit is contained in:
Jacek Caban 2013-01-09 14:21:18 +01:00 committed by Alexandre Julliard
parent ad16c4c0df
commit 136b738b50
7 changed files with 123 additions and 57 deletions

View File

@ -53,14 +53,14 @@
WINE_DEFAULT_DEBUG_CHANNEL(appwizcpl); WINE_DEFAULT_DEBUG_CHANNEL(appwizcpl);
#define GECKO_VERSION "1.8" #define GECKO_VERSION "1.9"
#ifdef __i386__ #ifdef __i386__
#define ARCH_STRING "x86" #define ARCH_STRING "x86"
#define GECKO_SHA "a8622ff749cc2a2cb311f902b7e99664ecc2f8d6" #define GECKO_SHA "d2553224848a926eacfa8685662ff1d7e8be2428"
#elif defined(__x86_64__) #elif defined(__x86_64__)
#define ARCH_STRING "x86_64" #define ARCH_STRING "x86_64"
#define GECKO_SHA "ea8bb450c6b41f71cc0ef23c490dfebdaccf789d" #define GECKO_SHA "c7cd0994f89dd15b36ce8dacaa33d0ec47c407d1"
#else #else
#define ARCH_STRING "" #define ARCH_STRING ""
#define GECKO_SHA "???" #define GECKO_SHA "???"

View File

@ -1143,7 +1143,7 @@ static nsresult NSAPI HTMLDOMNode_traverse(void *ccp, void *p, nsCycleCollection
TRACE("%p\n", This); TRACE("%p\n", This);
describe_cc_node(&This->ccref, sizeof(*This), "HTMLDOMNode", cb); describe_cc_node(&This->ccref, "HTMLDOMNode", cb);
if(This->nsnode) if(This->nsnode)
note_cc_edge((nsISupports*)This->nsnode, "This->nsnode", cb); note_cc_edge((nsISupports*)This->nsnode, "This->nsnode", cb);

View File

@ -254,7 +254,7 @@ nsrefcnt (__cdecl *ccref_decr)(nsCycleCollectingAutoRefCnt*,nsISupports*);
void (__cdecl *ccref_init)(nsCycleCollectingAutoRefCnt*,nsrefcnt); void (__cdecl *ccref_init)(nsCycleCollectingAutoRefCnt*,nsrefcnt);
void (__cdecl *ccref_unmark_if_purple)(nsCycleCollectingAutoRefCnt*); void (__cdecl *ccref_unmark_if_purple)(nsCycleCollectingAutoRefCnt*);
void (__cdecl *ccp_init)(nsXPCOMCycleCollectionParticipant*,const CCObjCallback*); void (__cdecl *ccp_init)(nsXPCOMCycleCollectionParticipant*,const CCObjCallback*);
void (__cdecl *describe_cc_node)(nsCycleCollectingAutoRefCnt*,size_t,const char*,nsCycleCollectionTraversalCallback*); void (__cdecl *describe_cc_node)(nsCycleCollectingAutoRefCnt*,const char*,nsCycleCollectionTraversalCallback*);
void (__cdecl *note_cc_edge)(nsISupports*,const char*,nsCycleCollectionTraversalCallback*); void (__cdecl *note_cc_edge)(nsISupports*,const char*,nsCycleCollectionTraversalCallback*);
void init_dispex(DispatchEx*,IUnknown*,dispex_static_data_t*) DECLSPEC_HIDDEN; void init_dispex(DispatchEx*,IUnknown*,dispex_static_data_t*) DECLSPEC_HIDDEN;

View File

@ -533,6 +533,11 @@ static void NSAPI nsDocumentObserver_AttributeChanged(nsIDocumentObserver *iface
{ {
} }
static void NSAPI nsDocumentObserver_AttributeSetToCurrentValue(nsIDocumentObserver *iface, nsIDocument *aDocument,
void *aElement, PRInt32 aNameSpaceID, nsIAtom *aAttribute)
{
}
static void NSAPI nsDocumentObserver_ContentAppended(nsIDocumentObserver *iface, nsIDocument *aDocument, static void NSAPI nsDocumentObserver_ContentAppended(nsIDocumentObserver *iface, nsIDocument *aDocument,
nsIContent *aContainer, nsIContent *aFirstNewContent, PRInt32 aNewIndexInContainer) nsIContent *aContainer, nsIContent *aFirstNewContent, PRInt32 aNewIndexInContainer)
{ {
@ -715,6 +720,7 @@ static const nsIDocumentObserverVtbl nsDocumentObserverVtbl = {
nsDocumentObserver_CharacterDataChanged, nsDocumentObserver_CharacterDataChanged,
nsDocumentObserver_AttributeWillChange, nsDocumentObserver_AttributeWillChange,
nsDocumentObserver_AttributeChanged, nsDocumentObserver_AttributeChanged,
nsDocumentObserver_AttributeSetToCurrentValue,
nsDocumentObserver_ContentAppended, nsDocumentObserver_ContentAppended,
nsDocumentObserver_ContentInserted, nsDocumentObserver_ContentInserted,
nsDocumentObserver_ContentRemoved, nsDocumentObserver_ContentRemoved,

View File

@ -138,7 +138,7 @@ static nsresult NSAPI nsInputStream_Close(nsIInputStream *iface)
return NS_ERROR_NOT_IMPLEMENTED; return NS_ERROR_NOT_IMPLEMENTED;
} }
static nsresult NSAPI nsInputStream_Available(nsIInputStream *iface, PRUint32 *_retval) static nsresult NSAPI nsInputStream_Available(nsIInputStream *iface, PRUint64 *_retval)
{ {
nsProtocolStream *This = impl_from_nsIInputStream(iface); nsProtocolStream *This = impl_from_nsIInputStream(iface);
FIXME("(%p)->(%p)\n", This, _retval); FIXME("(%p)->(%p)\n", This, _retval);
@ -1001,7 +1001,8 @@ HRESULT bind_mon_to_wstr(HTMLInnerWindow *window, IMoniker *mon, WCHAR **ret)
static HRESULT read_post_data_stream(nsChannelBSC *This, nsChannel *nschannel) static HRESULT read_post_data_stream(nsChannelBSC *This, nsChannel *nschannel)
{ {
PRUint32 data_len = 0, available = 0; PRUint64 available = 0;
PRUint32 data_len = 0;
char *data, *post_data; char *data, *post_data;
nsresult nsres; nsresult nsres;
HRESULT hres = S_OK; HRESULT hres = S_OK;

View File

@ -23,7 +23,7 @@
* compatible with XPCOM, usable in C code. * compatible with XPCOM, usable in C code.
*/ */
cpp_quote("#define GECKO_VERSION \"1.8\"") cpp_quote("#define GECKO_VERSION \"1.9\"")
cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION") cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION")
import "wtypes.idl"; import "wtypes.idl";
@ -67,6 +67,7 @@ typedef ULONGLONG PRUint64;
typedef uint64_t DOMTimeStamp; typedef uint64_t DOMTimeStamp;
typedef uint32_t nsLoadFlags; typedef uint32_t nsLoadFlags;
typedef int64_t PRTime;
/* Similar trick to stdint.h types for C++ bool type */ /* Similar trick to stdint.h types for C++ bool type */
typedef unsigned char cpp_bool; typedef unsigned char cpp_bool;
@ -373,13 +374,13 @@ interface nsIWritableVariant : nsIVariant
[ [
object, object,
uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a), uuid(53cdbc97-c2d7-4e30-b2c3-45b2ee79db18),
local local
] ]
interface nsIInputStream : nsISupports interface nsIInputStream : nsISupports
{ {
nsresult Close(); nsresult Close();
nsresult Available(uint32_t *_retval); nsresult Available(uint64_t *_retval);
nsresult Read(char *aBuf, uint32_t aCount, uint32_t *_retval); nsresult Read(char *aBuf, uint32_t aCount, uint32_t *_retval);
nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream, nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
void *aClosure, const char *aFromSegment, uint32_t aToOffset, void *aClosure, const char *aFromSegment, uint32_t aToOffset,
@ -516,13 +517,13 @@ interface nsIRequestObserver : nsISupports
[ [
object, object,
uuid(1a637020-1482-11d3-9333-00104ba0fd40), uuid(3b4c8a77-76ba-4610-b316-678c73a3b88c),
local local
] ]
interface nsIStreamListener : nsIRequestObserver interface nsIStreamListener : nsIRequestObserver
{ {
nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext, nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
nsIInputStream *aInputStream, uint32_t aOffset, uint32_t aCount); nsIInputStream *aInputStream, uint64_t aOffset, uint32_t aCount);
} }
[ [
@ -546,7 +547,7 @@ interface nsILoadGroup : nsIRequest
[ [
object, object,
uuid(06f6ada3-7729-4e72-8d3f-bf8ba630ff9b), uuid(98f3b51b-bb55-4276-a43c-db636f8d77e3),
local local
] ]
interface nsIChannel : nsIRequest interface nsIChannel : nsIRequest
@ -568,7 +569,9 @@ interface nsIChannel : nsIRequest
nsresult Open(nsIInputStream **_retval); nsresult Open(nsIInputStream **_retval);
nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext); nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
nsresult GetContentDisposition(uint32_t *aContentDisposition); nsresult GetContentDisposition(uint32_t *aContentDisposition);
nsresult SetContentDisposition(uint32_t aContentDisposition);
nsresult GetContentDispositionFilename(nsAString *aContentDispositionFilename); nsresult GetContentDispositionFilename(nsAString *aContentDispositionFilename);
nsresult SetContentDispositionFilename(const nsAString *aContentDispositionFilename);
nsresult GetContentDispositionHeader(nsACString *aContentDispositionHeader); nsresult GetContentDispositionHeader(nsACString *aContentDispositionHeader);
} }
@ -640,13 +643,13 @@ interface nsIHttpChannelInternal : nsISupports
[ [
object, object,
uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75), uuid(5cfe15bd-5adb-4a7f-9e55-4f5a67d15794),
local local
] ]
interface nsIUploadChannel : nsISupports interface nsIUploadChannel : nsISupports
{ {
nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType, nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
int32_t aContentLength); int64_t aContentLength);
nsresult GetUploadStream(nsIInputStream **aUploadStream); nsresult GetUploadStream(nsIInputStream **aUploadStream);
} }
@ -1063,7 +1066,7 @@ interface nsIDOMHTMLHeadElement : nsIDOMHTMLElement
[ [
object, object,
uuid(b7ccd7b3-86aa-4322-a50c-b972643bb662), uuid(db690d8f-3bca-4198-be64-78adb7f38bf8),
local local
] ]
interface nsIDOMHTMLCollection : nsISupports interface nsIDOMHTMLCollection : nsISupports
@ -1122,7 +1125,7 @@ interface nsIDOMDocumentFragment : nsIDOMNode
[ [
object, object,
uuid(fdb92f4f-c6b4-4509-a29d-a309981e28ac), uuid(b7e90442-74d6-494e-af01-906d95926dec),
local local
] ]
interface nsIDOMDocument : nsIDOMNode interface nsIDOMDocument : nsIDOMNode
@ -1191,7 +1194,9 @@ interface nsIDOMDocument : nsIDOMNode
nsresult SetOnmouseenter(JSContext* cx, const jsval *aOnmouseenter); nsresult SetOnmouseenter(JSContext* cx, const jsval *aOnmouseenter);
nsresult GetOnmouseleave(JSContext* cx, jsval *aOnmouseleave) = 0; nsresult GetOnmouseleave(JSContext* cx, jsval *aOnmouseleave) = 0;
nsresult SetOnmouseleave(JSContext* cx, const jsval *aOnmouseleave); nsresult SetOnmouseleave(JSContext* cx, const jsval *aOnmouseleave);
nsresult GetHidden(bool *aHidden);
nsresult GetMozHidden(bool *aMozHidden); nsresult GetMozHidden(bool *aMozHidden);
nsresult GetVisibilityState(nsAString *aVisibilityState);
nsresult GetMozVisibilityState(nsAString *aMozVisibilityState); nsresult GetMozVisibilityState(nsAString *aMozVisibilityState);
} }
@ -1253,7 +1258,7 @@ interface nsIDOMHTMLDocument : nsIDOMDocument
[ [
object, object,
uuid(a059eea8-fece-4c14-93d3-7f50a944ae43), uuid(1f94055c-42e7-4a30-96a1-6a804f1c2d1e),
local local
] ]
interface nsIDOMRange : nsISupports interface nsIDOMRange : nsISupports
@ -1292,6 +1297,7 @@ interface nsIDOMRange : nsISupports
nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval); nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
nsresult IsPointInRange([in] nsIDOMNode *parent, [in] int32_t offset, [out] bool *_retval); nsresult IsPointInRange([in] nsIDOMNode *parent, [in] int32_t offset, [out] bool *_retval);
nsresult ComparePoint([in] nsIDOMNode *parent, [in] int32_t offset, [out] int16_t *_retval); nsresult ComparePoint([in] nsIDOMNode *parent, [in] int32_t offset, [out] int16_t *_retval);
nsresult IntersectsNode(nsIDOMNode *node, bool *_retval);
nsresult GetClientRects(nsIDOMClientRectList **_retval); nsresult GetClientRects(nsIDOMClientRectList **_retval);
nsresult GetBoundingClientRect(nsIDOMClientRect **_retval); nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
} }
@ -1342,7 +1348,7 @@ interface nsIDOMWindowCollection : nsISupports
[ [
object, object,
uuid(a1af6cd9-c6e7-4037-99f8-dbca1b03e345), uuid(7afa38e6-45a1-4f0b-ae84-997669d14059),
local local
] ]
interface nsIDOMWindow : nsISupports interface nsIDOMWindow : nsISupports
@ -1427,6 +1433,7 @@ interface nsIDOMWindow : nsISupports
nsresult SetDefaultStatus(const nsAString *aDefaultStatus); nsresult SetDefaultStatus(const nsAString *aDefaultStatus);
nsresult GetMozInnerScreenX(float *aMozInnerScreenX); nsresult GetMozInnerScreenX(float *aMozInnerScreenX);
nsresult GetMozInnerScreenY(float *aMozInnerScreenY); nsresult GetMozInnerScreenY(float *aMozInnerScreenY);
nsresult GetDevicePixelRatio(float *aDevicePixelRatio);
nsresult GetScrollMaxX(int32_t *aScrollMaxX); nsresult GetScrollMaxX(int32_t *aScrollMaxX);
nsresult GetScrollMaxY(int32_t *aScrollMaxY); nsresult GetScrollMaxY(int32_t *aScrollMaxY);
nsresult GetFullScreen(bool *aFullScreen); nsresult GetFullScreen(bool *aFullScreen);
@ -1486,7 +1493,7 @@ interface nsIDOMWindow : nsISupports
nsresult SetOndevicelight(JSContext* cx, const jsval *aOndevicelight); nsresult SetOndevicelight(JSContext* cx, const jsval *aOndevicelight);
nsresult GetOnmouseenter(JSContext* cx, jsval *aOnmouseenter); nsresult GetOnmouseenter(JSContext* cx, jsval *aOnmouseenter);
nsresult SetOnmouseenter(JSContext* cx, const jsval *aOnmouseenter); nsresult SetOnmouseenter(JSContext* cx, const jsval *aOnmouseenter);
nsresult GetOnmouseleave(JSContext* cx, jsval *aOnmouseleave) = 0; nsresult GetOnmouseleave(JSContext* cx, jsval *aOnmouseleave);
nsresult SetOnmouseleave(JSContext* cx, const jsval *aOnmouseleave); nsresult SetOnmouseleave(JSContext* cx, const jsval *aOnmouseleave);
} }
@ -1569,7 +1576,7 @@ interface nsIDOMHTMLFormElement : nsIDOMHTMLElement
[ [
object, object,
uuid(c12471c8-155f-4368-9e8b-13a231e85f3b), uuid(e59a4df5-0904-414d-9203-9af2790698ea),
local local
] ]
interface nsIDOMHTMLInputElement : nsIDOMHTMLElement interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
@ -1918,7 +1925,7 @@ interface nsIDOMHTMLAnchorElement : nsIDOMHTMLElement
[ [
object, object,
uuid(59ae3529-170a-41e4-8d7a-241dca6b5760), uuid(5b639ece-7b49-4507-9d38-550beb71955b),
local local
] ]
interface nsIDOMHTMLLinkElement : nsIDOMHTMLElement interface nsIDOMHTMLLinkElement : nsIDOMHTMLElement
@ -1941,6 +1948,8 @@ interface nsIDOMHTMLLinkElement : nsIDOMHTMLElement
nsresult SetTarget(const nsAString *aTarget); nsresult SetTarget(const nsAString *aTarget);
nsresult GetType(nsAString *aType); nsresult GetType(nsAString *aType);
nsresult SetType(const nsAString *aType); nsresult SetType(const nsAString *aType);
nsresult GetCrossOrigin(nsAString *aCrossOrigin);
nsresult SetCrossOrigin(const nsAString *aCrossOrigin);
} }
[ [
@ -2012,7 +2021,7 @@ interface nsIDOMHTMLTableRowElement : nsIDOMHTMLElement
[ [
object, object,
uuid(97e4f0e1-bd27-40ec-9287-5634daf15b73), uuid(a7bd1e34-3969-47ae-8c1d-2970132ba925),
local local
] ]
interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
@ -2039,8 +2048,10 @@ interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
nsresult SetWidth(const nsAString *aWidth); nsresult SetWidth(const nsAString *aWidth);
nsresult GetContentDocument(nsIDOMDocument **aContentDocument); nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
nsresult GetContentWindow(nsIDOMWindow **aContentWindow); nsresult GetContentWindow(nsIDOMWindow **aContentWindow);
nsresult GetMozAllowFullScreen(bool *aMozAllowFullScreen); nsresult GetSandbox(nsAString *aSandbox);
nsresult SetMozAllowFullScreen(bool aMozAllowFullScreen); nsresult SetSandbox(const nsAString *aSandbox);
nsresult GetAllowFullScreen(bool *aAllowFullScreen);
nsresult SetAllowFullScreen(bool aAllowFullScreen);
} }
[ [
@ -2228,7 +2239,7 @@ typedef void* nativeWindow;
[ [
object, object,
uuid(7144ac8b-6702-4a4b-a73d-d1d4e9717e46), uuid(9da319f3-eee6-4504-81a5-6a19cf6215bf),
local local
] ]
interface nsIBaseWindow : nsISupports interface nsIBaseWindow : nsISupports
@ -2248,11 +2259,13 @@ interface nsIBaseWindow : nsISupports
nsresult SetParentWidget(nsIWidget *aParentWidget); nsresult SetParentWidget(nsIWidget *aParentWidget);
nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow); nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow); nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
nsresult GetNativeHandle(nsAString *aNativeHandle);
nsresult GetVisibility(bool *aVisibility); nsresult GetVisibility(bool *aVisibility);
nsresult SetVisibility(bool aVisibility); nsresult SetVisibility(bool aVisibility);
nsresult GetEnabled(bool *aEnabled); nsresult GetEnabled(bool *aEnabled);
nsresult SetEnabled(bool aEnabled); nsresult SetEnabled(bool aEnabled);
nsresult GetMainWidget(nsIWidget **aMainWidget); nsresult GetMainWidget(nsIWidget **aMainWidget);
nsresult GetUnscaledDevicePixelsPerCSSPixel(double *aUnscaledDevicePixelsPerCSSPixel);
nsresult SetFocus(); nsresult SetFocus();
nsresult GetTitle(PRUnichar **aTitle); nsresult GetTitle(PRUnichar **aTitle);
nsresult SetTitle(const PRUnichar *aTitle); nsresult SetTitle(const PRUnichar *aTitle);
@ -2523,10 +2536,10 @@ interface nsIFile : nsISupports
nsresult SetPermissions(uint32_t pPermissions); nsresult SetPermissions(uint32_t pPermissions);
nsresult GetPermissionsOfLink(uint32_t *aPermissions); nsresult GetPermissionsOfLink(uint32_t *aPermissions);
nsresult SetPermissionsOfLink(uint32_t pPermissions); nsresult SetPermissionsOfLink(uint32_t pPermissions);
nsresult GetLastModifiedTime(int64_t *aLastModifiedTime); nsresult GetLastModifiedTime(PRTime *aLastModifiedTime);
nsresult SetLastModifiedTime(int64_t aLastModifiedTime); nsresult SetLastModifiedTime(PRTime aLastModifiedTime);
nsresult GetLastModifiedTimeOfLink(int64_t *aLastModifiedTimeOfLink); nsresult GetLastModifiedTimeOfLink(PRTime *aLastModifiedTimeOfLink);
nsresult SetLastModifiedTimeOfLink(int64_t aLastModifiedTimeOfLink); nsresult SetLastModifiedTimeOfLink(PRTime aLastModifiedTimeOfLink);
nsresult GetFileSize(int64_t *aFileSize); nsresult GetFileSize(int64_t *aFileSize);
nsresult SetFileSize(int64_t aFileSize); nsresult SetFileSize(int64_t aFileSize);
nsresult GetFileSizeOfLink(int64_t *aFileSizeOfLink); nsresult GetFileSizeOfLink(int64_t *aFileSizeOfLink);
@ -2596,6 +2609,7 @@ interface nsIPrefBranch : nsISupports
nsresult GetPrefType(const char *aPrefName, int32_t *_retval); nsresult GetPrefType(const char *aPrefName, int32_t *_retval);
nsresult GetBoolPref(const char *aPrefName, bool *_retval); nsresult GetBoolPref(const char *aPrefName, bool *_retval);
nsresult SetBoolPref(const char *aPrefName, bool aValue); nsresult SetBoolPref(const char *aPrefName, bool aValue);
nsresult GetFloatPref(const char *aPrefName, float *_retval);
nsresult GetCharPref(const char *aPrefName, char **_retval); nsresult GetCharPref(const char *aPrefName, char **_retval);
nsresult SetCharPref(const char *aPrefName, const char *aValue); nsresult SetCharPref(const char *aPrefName, const char *aValue);
nsresult GetIntPref(const char *aPrefName, int32_t *_retval); nsresult GetIntPref(const char *aPrefName, int32_t *_retval);
@ -2765,7 +2779,7 @@ interface nsIDOMEventTarget : nsISupports
[ [
object, object,
uuid(a7dc0284-5832-4034-a8a5-d860ce0f21d3), uuid(270c945b-8a65-4170-bc0b-4ec1443cd39f),
local local
] ]
interface nsIDOMEvent : nsISupports interface nsIDOMEvent : nsISupports
@ -2782,6 +2796,12 @@ interface nsIDOMEvent : nsISupports
nsresult InitEvent(const nsAString *eventTypeArg, bool canBubbleArg, bool cancelableArg); nsresult InitEvent(const nsAString *eventTypeArg, bool canBubbleArg, bool cancelableArg);
nsresult GetDefaultPrevented(bool *aDefaultPrevented); nsresult GetDefaultPrevented(bool *aDefaultPrevented);
nsresult StopImmediatePropagation(); nsresult StopImmediatePropagation();
nsresult GetOriginalTarget(nsIDOMEventTarget **aOriginalTarget);
nsresult GetExplicitOriginalTarget(nsIDOMEventTarget * *aExplicitOriginalTarget);
nsresult PreventBubble();
nsresult PreventCapture();
nsresult GetPreventDefault(bool *_retval);
nsresult GetIsTrusted(bool *aIsTrusted);
nsresult DuplicatePrivateData(); nsresult DuplicatePrivateData();
nsresult SetTarget(nsIDOMEventTarget *aTarget); nsresult SetTarget(nsIDOMEventTarget *aTarget);
bool IsDispatchStopped(); bool IsDispatchStopped();
@ -2793,7 +2813,7 @@ interface nsIDOMEvent : nsISupports
[ [
object, object,
uuid(858578f1-9653-4d5c-821a-07479bf2d9b2), uuid(ed36f965-173c-4101-a615-63b44f51ed90),
local local
] ]
interface nsIDOMWindowUtils : nsISupports interface nsIDOMWindowUtils : nsISupports
@ -2805,19 +2825,21 @@ interface nsIDOMWindowUtils : nsISupports
nsresult GetDocumentMetadata(const nsAString *aName, nsAString *_retval); nsresult GetDocumentMetadata(const nsAString *aName, nsAString *_retval);
nsresult Redraw(uint32_t aCount, uint32_t *_retval); nsresult Redraw(uint32_t aCount, uint32_t *_retval);
nsresult SetCSSViewport(float aWidthPx, float aHeightPx); nsresult SetCSSViewport(float aWidthPx, float aHeightPx);
nsresult GetViewportInfo(uint32_t aDisplayWidth, uint32_t aDisplayHeight, double *aDefaultZoom, bool *aAllowZoom,
double *aMinZoom, double *aMaxZoom, uint32_t *aWidth, uint32_t *aHeight, bool *aAutoSize);
nsresult SetDisplayPortForElement(float aXPx, float aYPx, float aWidthPx, float aHeightPx, nsIDOMElement *aElement); nsresult SetDisplayPortForElement(float aXPx, float aYPx, float aWidthPx, float aHeightPx, nsIDOMElement *aElement);
nsresult SetResolution(float aXResolution, float aYResolution); nsresult SetResolution(float aXResolution, float aYResolution);
nsresult GetIsFirstPaint(bool *aIsFirstPaint); nsresult GetIsFirstPaint(bool *aIsFirstPaint);
nsresult SetIsFirstPaint(bool aIsFirstPaint); nsresult SetIsFirstPaint(bool aIsFirstPaint);
nsresult SendMouseEvent(const nsAString *aType, float aX, float aY, int32_t aButton, nsresult SendMouseEvent(const nsAString *aType, float aX, float aY, int32_t aButton, int32_t aClickCount,
int32_t aClickCount, int32_t aModifiers, bool aIgnoreRootScrollFrame); int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg);
nsresult SendTouchEvent(const nsAString *aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs, nsresult SendTouchEvent(const nsAString *aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs,
uint32_t *aRxs, uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers, uint32_t *aRxs, uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers,
bool aIgnoreRootScrollFrame, bool *_retval); bool aIgnoreRootScrollFrame, bool *_retval);
nsresult SendMouseEventToWindow(const nsAString *aType, float aX, float aY, int32_t aButton, int32_t aClickCount, nsresult SendMouseEventToWindow(const nsAString *aType, float aX, float aY, int32_t aButton, int32_t aClickCount,
int32_t aModifiers, bool aIgnoreRootScrollFrame); int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg);
nsresult SendMouseScrollEvent(const nsAString *aType, float aX, float aY, int32_t aButton, int32_t aScrollFlags, nsresult SendWheelEvent(float aX, float aY, double aDeltaX, double aDeltaY, double aDeltaZ, uint32_t aDeltaMode,
int32_t aDelta, int32_t aModifiers); int32_t aModifiers, int32_t aLineOrPageDeltaX, int32_t aLineOrPageDeltaY, uint32_t aOptions);
nsresult SendKeyEvent(const nsAString *aType, int32_t aKeyCode, int32_t aCharCode, int32_t aModifiers, nsresult SendKeyEvent(const nsAString *aType, int32_t aKeyCode, int32_t aCharCode, int32_t aModifiers,
uint32_t aAdditionalFlags, bool *_retval); uint32_t aAdditionalFlags, bool *_retval);
nsresult SendNativeKeyEvent(int32_t aNativeKeyboardLayout, int32_t aNativeKeyCode, int32_t aModifierFlags, nsresult SendNativeKeyEvent(int32_t aNativeKeyboardLayout, int32_t aNativeKeyCode, int32_t aModifierFlags,
@ -2847,6 +2869,7 @@ interface nsIDOMWindowUtils : nsISupports
nsresult GetIMEIsOpen(bool *aIMEIsOpen); nsresult GetIMEIsOpen(bool *aIMEIsOpen);
nsresult GetIMEStatus(uint32_t *aIMEStatus); nsresult GetIMEStatus(uint32_t *aIMEStatus);
nsresult GetScreenPixelsPerCSSPixel(float *aScreenPixelsPerCSSPixel); nsresult GetScreenPixelsPerCSSPixel(float *aScreenPixelsPerCSSPixel);
nsresult GetFullZoom(float *aFullZoom);
nsresult DispatchDOMEventViaPresShell(nsIDOMNode *aTarget, nsIDOMEvent *aEvent, bool aTrusted, bool *_retval); nsresult DispatchDOMEventViaPresShell(nsIDOMNode *aTarget, nsIDOMEvent *aEvent, bool aTrusted, bool *_retval);
nsresult GetClassName(const /*JS::Value*/ void *aObject, JSContext *cx, char **_retval); nsresult GetClassName(const /*JS::Value*/ void *aObject, JSContext *cx, char **_retval);
nsresult SendContentCommandEvent(const nsAString *aType, nsITransferable *aTransferable); nsresult SendContentCommandEvent(const nsAString *aType, nsITransferable *aTransferable);
@ -2856,7 +2879,11 @@ interface nsIDOMWindowUtils : nsISupports
int32_t aCaretStart, int32_t aCaretLength); int32_t aCaretStart, int32_t aCaretLength);
nsresult SendQueryContentEvent(uint32_t aType, uint32_t aOffset, uint32_t aLength, int32_t aX, int32_t aY, nsresult SendQueryContentEvent(uint32_t aType, uint32_t aOffset, uint32_t aLength, int32_t aX, int32_t aY,
nsIQueryContentEventResult **_retval); nsIQueryContentEventResult **_retval);
nsresult RemoteFrameFullscreenChanged(nsIDOMElement *aFrameElement, const nsAString *aNewOrigin);
nsresult RemoteFrameFullscreenReverted();
nsresult ExitFullscreen();
nsresult SendSelectionSetEvent(uint32_t aOffset, uint32_t aLength, bool aReverse, bool *_retval); nsresult SendSelectionSetEvent(uint32_t aOffset, uint32_t aLength, bool aReverse, bool *_retval);
nsresult SelectAtPoint(float aX, float aY, uint32_t aSelectBehavior, bool *_retval);
nsresult GetVisitedDependentComputedStyle(nsIDOMElement *aElement, const nsAString *aPseudoElement, nsresult GetVisitedDependentComputedStyle(nsIDOMElement *aElement, const nsAString *aPseudoElement,
const nsAString *aPropertyName, nsAString *_retval); const nsAString *aPropertyName, nsAString *_retval);
nsresult GetParent(const /*JS::Value*/ void *obj, JSContext *cx, /*JS::Value*/ void *_retval); nsresult GetParent(const /*JS::Value*/ void *obj, JSContext *cx, /*JS::Value*/ void *_retval);
@ -2869,10 +2896,10 @@ interface nsIDOMWindowUtils : nsISupports
nsresult IsInModalState(bool *_retval); nsresult IsInModalState(bool *_retval);
nsresult SuspendTimeouts(); nsresult SuspendTimeouts();
nsresult ResumeTimeouts(); nsresult ResumeTimeouts();
nsresult GoOnline();
nsresult GetLayerManagerType(nsAString *aLayerManagerType); nsresult GetLayerManagerType(nsAString *aLayerManagerType);
nsresult StartFrameTimeRecording(); nsresult StartFrameTimeRecording();
nsresult StopFrameTimeRecording(uint32_t *frameCount, float **frameTime); nsresult StopFrameTimeRecording(uint32_t *frameCount, float **frameTime);
nsresult BeginTabSwitch();
nsresult GetDisplayDPI(float *aDisplayDPI); nsresult GetDisplayDPI(float *aDisplayDPI);
nsresult GetOuterWindowWithId(uint64_t aOuterWindowID, nsIDOMWindow **_retval); nsresult GetOuterWindowWithId(uint64_t aOuterWindowID, nsIDOMWindow **_retval);
nsresult RenderDocument(const void /*nsRect*/ *aRect, uint32_t aFlags, int /*nscolor*/ aBackgroundColor, nsresult RenderDocument(const void /*nsRect*/ *aRect, uint32_t aFlags, int /*nscolor*/ aBackgroundColor,
@ -2904,9 +2931,11 @@ interface nsIDOMWindowUtils : nsISupports
nsresult GetPaintingSuppressed(bool *aPaintingSuppressed); nsresult GetPaintingSuppressed(bool *aPaintingSuppressed);
nsresult GetPlugins(JSContext *cx, /*JS::Value*/ void *aPlugins); nsresult GetPlugins(JSContext *cx, /*JS::Value*/ void *aPlugins);
nsresult SetScrollPositionClampingScrollPortSize(float aWidth, float aHeight); nsresult SetScrollPositionClampingScrollPortSize(float aWidth, float aHeight);
nsresult SetIsApp(bool value); nsresult PreventFurtherDialogs();
nsresult SetApp(const nsAString *manifestURL); nsresult LoadSheet(nsIURI *sheetURI, uint32_t type);
nsresult GetApp(mozIDOMApplication **_retval); nsresult RemoveSheet(nsIURI *sheetURI, uint32_t type);
nsresult GetIsHandlingUserInput(bool *aIsHandlingUserInput);
nsresult AllowScriptsToClose();
} }
cpp_quote("#define CONTEXT_NONE 0x00") cpp_quote("#define CONTEXT_NONE 0x00")
@ -2929,7 +2958,7 @@ interface nsIContextMenuListener : nsISupports
[ [
object, object,
uuid(6e6f00c2-29d9-452c-b804-5abb2dc429f3), uuid(415453e6-132a-4902-9a99-cc480f0311b6),
local local
] ]
interface nsIDOMUIEvent : nsIDOMEvent interface nsIDOMUIEvent : nsIDOMEvent
@ -2952,7 +2981,7 @@ interface nsIDOMUIEvent : nsIDOMEvent
[ [
object, object,
uuid(6f4bc64b-1aac-4251-82d3-fd2dc76654a0), uuid(796c3436-5f89-4145-be3a-49808c09fdc6),
local local
] ]
interface nsIDOMMouseEvent : nsIDOMUIEvent interface nsIDOMMouseEvent : nsIDOMUIEvent
@ -2987,7 +3016,7 @@ interface nsIDOMMouseEvent : nsIDOMUIEvent
[ [
object, object,
uuid(c43c4852-5bb6-409f-82cd-4f5e842b7208), uuid(5d116380-8432-48cb-a717-200f04c39d2f),
local local
] ]
interface nsIDOMKeyEvent : nsIDOMUIEvent interface nsIDOMKeyEvent : nsIDOMUIEvent
@ -3183,7 +3212,7 @@ interface nsIController : nsISupports
[ [
object, object,
uuid(98fb308d-c6dd-4c6d-b77c-91180cf06f23), uuid(e2985850-81ca-4b5d-b0f3-e395d50d8564),
local local
] ]
interface nsIContent : nsISupports interface nsIContent : nsISupports
@ -3193,7 +3222,7 @@ interface nsIContent : nsISupports
[ [
object, object,
uuid(8c6a1e62-d5ad-4297-b941-6449222ec4f0), uuid(0e1324c9-c997-447e-bcd9-a657802991e4),
local local
] ]
interface nsIDocument : nsISupports interface nsIDocument : nsISupports
@ -3227,7 +3256,7 @@ interface nsIContentSerializer : nsISupports
[ [
object, object,
uuid(7ad59e28-f3d5-4e14-8ea3-794ad4a86de3), uuid(12efa18c-920a-47cd-94a1-4052f245f76c),
local local
] ]
interface nsIEditor : nsISupports interface nsIEditor : nsISupports
@ -3302,8 +3331,8 @@ interface nsIEditor : nsISupports
nsresult SwitchTextDirection(); nsresult SwitchTextDirection();
nsresult OutputToString([in] nsAString formatType, [in] uint32_t flags, [out] nsAString *_retval); nsresult OutputToString([in] nsAString formatType, [in] uint32_t flags, [out] nsAString *_retval);
nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] uint32_t flags); nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] uint32_t flags);
nsresult AddEditorObserver([in] nsIEditorObserver *observer); nsresult SetEditorObserver(void /* EditActionListener*/ *observer);
nsresult RemoveEditorObserver([in] nsIEditorObserver *observer); nsresult RemoveEditorObserver();
nsresult AddEditActionListener([in] nsIEditActionListener *listener); nsresult AddEditActionListener([in] nsIEditActionListener *listener);
nsresult RemoveEditActionListener([in] nsIEditActionListener *listener); nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener); nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
@ -3382,7 +3411,7 @@ interface nsIHTMLEditor : nsISupports
[ [
object, object,
uuid(89ea9f32-18ec-413b-9e2c-ce9a4c851b1c), uuid(318ce516-3f7a-41f6-8f3d-3661650f7a46),
local local
] ]
interface nsIDocShell : nsISupports interface nsIDocShell : nsISupports
@ -3452,7 +3481,6 @@ interface nsIDocShell : nsISupports
nsresult GetPreviousTransIndex(int32_t *aPreviousTransIndex); nsresult GetPreviousTransIndex(int32_t *aPreviousTransIndex);
nsresult GetLoadedTransIndex(int32_t *aLoadedTransIndex); nsresult GetLoadedTransIndex(int32_t *aLoadedTransIndex);
nsresult HistoryPurged(int32_t numEntries); nsresult HistoryPurged(int32_t numEntries);
nsresult GetSessionStorageForURI(nsIURI *uri, const nsAString *documentURI, nsIDOMStorage **_retval);
nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString *documentURI, nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString *documentURI,
bool create, nsIDOMStorage **_retval); bool create, nsIDOMStorage **_retval);
nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage); nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage);
@ -3482,13 +3510,26 @@ interface nsIDocShell : nsISupports
nsresult GetParentCharsetSource(int32_t *aParentCharsetSource); nsresult GetParentCharsetSource(int32_t *aParentCharsetSource);
nsresult SetParentCharsetSource(int32_t aParentCharsetSource); nsresult SetParentCharsetSource(int32_t aParentCharsetSource);
nsresult AddWeakPrivacyTransitionObserver(nsIPrivacyTransitionObserver *obs); nsresult AddWeakPrivacyTransitionObserver(nsIPrivacyTransitionObserver *obs);
nsresult GetIsBrowserFrame(bool *aIsBrowserFrame); nsresult GetIsBrowserElement(bool *aIsBrowserElement);
nsresult SetIsBrowserFrame(bool aIsBrowserFrame); nsresult GetIsApp(bool *aIsApp);
nsresult GetIsBrowserOrApp(bool *aIsBrowserOrApp);
nsresult GetIsInBrowserElement(bool *aIsInBrowserElement);
nsresult GetIsInBrowserOrApp(bool *aIsInBrowserOrApp);
nsresult SetIsApp(uint32_t ownAppId);
nsresult SetIsBrowserInsideApp(uint32_t containingAppId);
nsresult GetAppId(uint32_t *aAppId);
nsresult GetSameTypeParentIgnoreBrowserAndAppBoundaries(nsIDocShell **_retval);
nsresult GetAsyncPanZoomEnabled(bool *aAsyncPanZoomEnabled);
nsresult GetSandboxFlags(uint32_t *aSandboxFlags);
nsresult SetSandboxFlags(uint32_t aSandboxFlags);
bool PluginsAllowedInCurrentDoc();
nsresult GetFullscreenAllowed(bool *aFullscreenAllowed);
nsresult SetFullscreenAllowed(bool allowed);
} }
[ [
object, object,
uuid(85eea794-ed8e-4e1b-a128-d09300ae51aa), uuid(16fe5e3e-eadc-4312-9d44-b6bedd6b5474),
local local
] ]
interface nsIMutationObserver : nsISupports interface nsIMutationObserver : nsISupports
@ -3501,6 +3542,8 @@ interface nsIMutationObserver : nsISupports
nsIAtom *aAttribute, int32_t aModType); nsIAtom *aAttribute, int32_t aModType);
void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, int32_t aNameSpaceID, void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, int32_t aNameSpaceID,
nsIAtom *aAttribute, int32_t aModType); nsIAtom *aAttribute, int32_t aModType);
void AttributeSetToCurrentValue(nsIDocument *aDocument, /*mozilla::dom::Element*/ void *aElement,
int32_t aNameSpaceID, nsIAtom *aAttribute);
void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aFirstNewContent, void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aFirstNewContent,
int32_t aNewIndexInContainer); int32_t aNewIndexInContainer);
void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild, void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,

View File

@ -1134,6 +1134,13 @@ static nsresult NSAPI nsChannel_GetContentDisposition(nsIHttpChannel *iface, PRU
return NS_ERROR_NOT_IMPLEMENTED; return NS_ERROR_NOT_IMPLEMENTED;
} }
static nsresult NSAPI nsChannel_SetContentDisposition(nsIHttpChannel *iface, PRUint32 aContentDisposition)
{
nsChannel *This = impl_from_nsIHttpChannel(iface);
FIXME("(%p)->(%u)\n", This, aContentDisposition);
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsChannel_GetContentDispositionFilename(nsIHttpChannel *iface, nsAString *aContentDispositionFilename) static nsresult NSAPI nsChannel_GetContentDispositionFilename(nsIHttpChannel *iface, nsAString *aContentDispositionFilename)
{ {
nsChannel *This = impl_from_nsIHttpChannel(iface); nsChannel *This = impl_from_nsIHttpChannel(iface);
@ -1141,6 +1148,13 @@ static nsresult NSAPI nsChannel_GetContentDispositionFilename(nsIHttpChannel *if
return NS_ERROR_NOT_IMPLEMENTED; return NS_ERROR_NOT_IMPLEMENTED;
} }
static nsresult NSAPI nsChannel_SetContentDispositionFilename(nsIHttpChannel *iface, const nsAString *aContentDispositionFilename)
{
nsChannel *This = impl_from_nsIHttpChannel(iface);
FIXME("(%p)->(%p)\n", This, aContentDispositionFilename);
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsChannel_GetContentDispositionHeader(nsIHttpChannel *iface, nsACString *aContentDispositionHeader) static nsresult NSAPI nsChannel_GetContentDispositionHeader(nsIHttpChannel *iface, nsACString *aContentDispositionHeader)
{ {
nsChannel *This = impl_from_nsIHttpChannel(iface); nsChannel *This = impl_from_nsIHttpChannel(iface);
@ -1399,7 +1413,9 @@ static const nsIHttpChannelVtbl nsChannelVtbl = {
nsChannel_Open, nsChannel_Open,
nsChannel_AsyncOpen, nsChannel_AsyncOpen,
nsChannel_GetContentDisposition, nsChannel_GetContentDisposition,
nsChannel_SetContentDisposition,
nsChannel_GetContentDispositionFilename, nsChannel_GetContentDispositionFilename,
nsChannel_SetContentDispositionFilename,
nsChannel_GetContentDispositionHeader, nsChannel_GetContentDispositionHeader,
nsChannel_GetRequestMethod, nsChannel_GetRequestMethod,
nsChannel_SetRequestMethod, nsChannel_SetRequestMethod,
@ -1447,7 +1463,7 @@ static nsrefcnt NSAPI nsUploadChannel_Release(nsIUploadChannel *iface)
} }
static nsresult NSAPI nsUploadChannel_SetUploadStream(nsIUploadChannel *iface, static nsresult NSAPI nsUploadChannel_SetUploadStream(nsIUploadChannel *iface,
nsIInputStream *aStream, const nsACString *aContentType, PRInt32 aContentLength) nsIInputStream *aStream, const nsACString *aContentType, PRInt64 aContentLength)
{ {
nsChannel *This = impl_from_nsIUploadChannel(iface); nsChannel *This = impl_from_nsIUploadChannel(iface);
const char *content_type; const char *content_type;
@ -1455,7 +1471,7 @@ static nsresult NSAPI nsUploadChannel_SetUploadStream(nsIUploadChannel *iface,
static const WCHAR content_typeW[] = static const WCHAR content_typeW[] =
{'C','o','n','t','e','n','t','-','T','y','p','e',0}; {'C','o','n','t','e','n','t','-','T','y','p','e',0};
TRACE("(%p)->(%p %s %d)\n", This, aStream, debugstr_nsacstr(aContentType), aContentLength); TRACE("(%p)->(%p %s %s)\n", This, aStream, debugstr_nsacstr(aContentType), wine_dbgstr_longlong(aContentLength));
This->post_data_contains_headers = TRUE; This->post_data_contains_headers = TRUE;
@ -1479,7 +1495,7 @@ static nsresult NSAPI nsUploadChannel_SetUploadStream(nsIUploadChannel *iface,
nsIInputStream_Release(This->post_data_stream); nsIInputStream_Release(This->post_data_stream);
if(aContentLength != -1) if(aContentLength != -1)
FIXME("Unsupported acontentLength = %d\n", aContentLength); FIXME("Unsupported acontentLength = %s\n", wine_dbgstr_longlong(aContentLength));
if(This->post_data_stream) if(This->post_data_stream)
nsIInputStream_Release(This->post_data_stream); nsIInputStream_Release(This->post_data_stream);