More support for capturing, minor adjustments to window.open behavior.
git-svn-id: svn://10.0.0.236/trunk@10077 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -132,6 +132,8 @@ public:
|
||||
NS_IMETHOD MoveTo(PRInt32 aX, PRInt32 aY);
|
||||
NS_IMETHOD Show();
|
||||
NS_IMETHOD Hide();
|
||||
NS_IMETHOD SetFocus();
|
||||
NS_IMETHOD RemoveFocus();
|
||||
NS_IMETHOD Repaint(PRBool aForce);
|
||||
NS_IMETHOD SetContentViewer(nsIContentViewer* aViewer);
|
||||
NS_IMETHOD GetContentViewer(nsIContentViewer*& aResult);
|
||||
@@ -725,6 +727,34 @@ nsWebShell::Hide()
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWebShell::SetFocus()
|
||||
{
|
||||
NS_PRECONDITION(nsnull != mWindow, "null window");
|
||||
|
||||
if (nsnull != mWindow) {
|
||||
mWindow->SetFocus();
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWebShell::RemoveFocus()
|
||||
{
|
||||
NS_PRECONDITION(nsnull != mWindow, "null window");
|
||||
|
||||
if (nsnull != mWindow) {
|
||||
nsIWidget *parentWidget = mWindow->GetParent();
|
||||
if (nsnull != parentWidget) {
|
||||
parentWidget->SetFocus();
|
||||
NS_RELEASE(parentWidget);
|
||||
}
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWebShell::Repaint(PRBool aForce)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user