зеркало из 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
|
// 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();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче