Bug 554835 - Build fixes for undefined MOZ_IPC. r=bnewman,joe

This commit is contained in:
Josh Matthews 2010-03-25 12:10:14 -04:00
parent 66af51cda6
commit cf4d6ab043
3 changed files with 3 additions and 4 deletions

View File

@ -1601,6 +1601,7 @@ nsFrameLoader::SendCrossProcessKeyEvent(const nsAString& aType,
NS_IMETHODIMP
nsFrameLoader::GetCrossProcessObjectWrapper(nsIVariant** cpow)
{
#ifdef MOZ_IPC
nsIXPConnect* xpc;
nsIThreadJSContextStack* stack;
JSContext* cx;
@ -1612,7 +1613,7 @@ nsFrameLoader::GetCrossProcessObjectWrapper(nsIVariant** cpow)
mChildProcess->GetGlobalJSObject(cx, &global)) {
return xpc->JSToVariant(cx, OBJECT_TO_JSVAL(global), cpow);
}
#endif
return NS_ERROR_NOT_AVAILABLE;
}

View File

@ -140,8 +140,8 @@ public:
#ifdef MOZ_IPC
mozilla::dom::PIFrameEmbeddingParent* GetChildProcess();
NS_IMETHOD GetCrossProcessObjectWrapper(nsIVariant** cpow);
#endif
NS_IMETHOD GetCrossProcessObjectWrapper(nsIVariant** cpow);
nsFrameMessageManager* GetFrameMessageManager() { return mMessageManager; }

View File

@ -245,11 +245,9 @@ public:
NS_IMETHOD SetIsOpaque(PRBool b) { return NS_OK; };
NS_IMETHOD SetIsShmem(PRBool b) { return NS_ERROR_NOT_IMPLEMENTED; }
NS_IMETHOD Redraw(const gfxRect&) { return NS_ERROR_NOT_IMPLEMENTED; }
#ifdef MOZ_IPC
NS_IMETHOD Swap(mozilla::ipc::Shmem& aBack,
PRInt32 x, PRInt32 y, PRInt32 w, PRInt32 h)
{ return NS_ERROR_NOT_IMPLEMENTED; }
#endif
protected:
GLES20Wrap *gl;