Added GetWindowBounds to sync up window nsIBrowserWindow interface.

Fixed EvaluateString call in jsconsole to pass the proper parameters.
This commit is contained in:
jevering%netscape.com 1998-10-06 07:14:41 +00:00
Родитель c6ecb46bcb
Коммит 750c1430ba
3 изменённых файлов: 10 добавлений и 2 удалений

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

@ -882,8 +882,7 @@ void JSConsole::EvaluateText(UINT aStartSel, UINT aEndSel)
// evaluate the string // evaluate the string
jsval returnValue; jsval returnValue;
if (mContext->EvaluateString(cleanBuffer, if (mContext->EvaluateString(nsString(cleanBuffer),
strlen(cleanBuffer),
nsnull, nsnull,
0, 0,
&returnValue)) { &returnValue)) {

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

@ -2082,6 +2082,14 @@ nsBrowserWindow::GetBounds(nsRect& aBounds)
return NS_OK; return NS_OK;
} }
NS_IMETHODIMP
nsBrowserWindow::GetWindowBounds(nsRect& aBounds)
{
//XXX This needs to be non-client bounds when it exists.
mWindow->GetBounds(aBounds);
return NS_OK;
}
//---------------------------------------------------- //----------------------------------------------------
NS_IMETHODIMP NS_IMETHODIMP
nsBrowserWindow::Show() nsBrowserWindow::Show()

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

@ -79,6 +79,7 @@ public:
PRBool aAllowPlugins = PR_TRUE); PRBool aAllowPlugins = PR_TRUE);
NS_IMETHOD MoveTo(PRInt32 aX, PRInt32 aY); NS_IMETHOD MoveTo(PRInt32 aX, PRInt32 aY);
NS_IMETHOD SizeTo(PRInt32 aWidth, PRInt32 aHeight); NS_IMETHOD SizeTo(PRInt32 aWidth, PRInt32 aHeight);
NS_IMETHOD GetWindowBounds(nsRect& aBounds);
NS_IMETHOD GetBounds(nsRect& aBounds); NS_IMETHOD GetBounds(nsRect& aBounds);
NS_IMETHOD Show(); NS_IMETHOD Show();
NS_IMETHOD Hide(); NS_IMETHOD Hide();