This commit is contained in:
rpotts%netscape.com 2006-09-14 06:00:13 +00:00
Родитель 9f36f9a742
Коммит 9f3f7111bf
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -109,7 +109,7 @@ nsBrowserContentListener.prototype =
return false; return false;
}, },
doContent: function(contentType, command, request, contentHandler) doContent: function(contentType, isContentPrefered, request, contentHandler)
{ {
// forward the doContent to our content area webshell // forward the doContent to our content area webshell
var docShell = this.contentWindow.docShell; var docShell = this.contentWindow.docShell;
@ -124,11 +124,11 @@ nsBrowserContentListener.prototype =
if (!contentListener) return false; if (!contentListener) return false;
return contentListener.doContent(contentType, command, request, contentHandler); return contentListener.doContent(contentType, isContentPreferred, request, contentHandler);
}, },
isPreferred: function(contentType, command, desiredContentType) isPreferred: function(contentType, desiredContentType)
{ {
// seems like we should be getting this from helper apps or something // seems like we should be getting this from helper apps or something
switch(contentType) { switch(contentType) {
@ -147,7 +147,7 @@ nsBrowserContentListener.prototype =
} }
return false; return false;
}, },
canHandleContent: function(contentType, command, desiredContentType) canHandleContent: function(contentType, isContentPreferred, desiredContentType)
{ {
var docShell = this.contentWindow.docShell; var docShell = this.contentWindow.docShell;
var contentListener; var contentListener;
@ -159,7 +159,7 @@ nsBrowserContentListener.prototype =
} }
if (!contentListener) return false; if (!contentListener) return false;
return contentListener.canHandleContent(contentType, command, desiredContentType); return contentListener.canHandleContent(contentType, isContentPreferred, desiredContentType);
}, },
convertWindowToDocShell: function(win) { convertWindowToDocShell: function(win) {
// don't know how to do this // don't know how to do this