зеркало из https://github.com/mozilla/pjs.git
Added GetWindowBounds to sync up window nsIBrowserWindow interface.
Fixed EvaluateString call in jsconsole to pass the proper parameters.
This commit is contained in:
Родитель
c6ecb46bcb
Коммит
750c1430ba
|
@ -882,8 +882,7 @@ void JSConsole::EvaluateText(UINT aStartSel, UINT aEndSel)
|
|||
|
||||
// evaluate the string
|
||||
jsval returnValue;
|
||||
if (mContext->EvaluateString(cleanBuffer,
|
||||
strlen(cleanBuffer),
|
||||
if (mContext->EvaluateString(nsString(cleanBuffer),
|
||||
nsnull,
|
||||
0,
|
||||
&returnValue)) {
|
||||
|
|
|
@ -2082,6 +2082,14 @@ nsBrowserWindow::GetBounds(nsRect& aBounds)
|
|||
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
|
||||
nsBrowserWindow::Show()
|
||||
|
|
|
@ -79,6 +79,7 @@ public:
|
|||
PRBool aAllowPlugins = PR_TRUE);
|
||||
NS_IMETHOD MoveTo(PRInt32 aX, PRInt32 aY);
|
||||
NS_IMETHOD SizeTo(PRInt32 aWidth, PRInt32 aHeight);
|
||||
NS_IMETHOD GetWindowBounds(nsRect& aBounds);
|
||||
NS_IMETHOD GetBounds(nsRect& aBounds);
|
||||
NS_IMETHOD Show();
|
||||
NS_IMETHOD Hide();
|
||||
|
|
Загрузка…
Ссылка в новой задаче