зеркало из https://github.com/mozilla/gecko-dev.git
checking in stub implementation of nsIWebBrowserFocus interface for embedding. r=pavlov, sr=valeski
This commit is contained in:
Родитель
6a7ed371b7
Коммит
f595ea74e2
|
@ -25,4 +25,5 @@ nsIWebBrowser.idl
|
|||
nsIWebBrowserChrome.idl
|
||||
nsIWebBrowserSetup.idl
|
||||
nsIWebBrowserPersist.idl
|
||||
nsIWebBrowserFocus.idl
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ XPIDLSRCS = \
|
|||
nsIContextMenuListener.idl \
|
||||
nsITooltipListener.idl \
|
||||
nsIWebBrowserPersist.idl \
|
||||
nsIWebBrowserFocus.idl \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
|
|
|
@ -31,6 +31,7 @@ XPIDLSRCS= \
|
|||
.\nsICommandHandler.idl \
|
||||
.\nsIWebBrowserSetup.idl \
|
||||
.\nsIWebBrowserPersist.idl \
|
||||
.\nsIWebBrowserFocus.idl \
|
||||
$(NULL)
|
||||
|
||||
LIBRARY_NAME=nsWebBrowser_s
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
#include "nsIFocusController.h"
|
||||
#include "nsIDOMWindowInternal.h"
|
||||
#include "nsIWebProgress.h"
|
||||
#include "nsIWebBrowserFocus.h"
|
||||
|
||||
static NS_DEFINE_CID(kWebShellCID, NS_WEB_SHELL_CID);
|
||||
static NS_DEFINE_IID(kChildCID, NS_CHILD_CID);
|
||||
|
@ -110,6 +111,7 @@ NS_INTERFACE_MAP_BEGIN(nsWebBrowser)
|
|||
NS_INTERFACE_MAP_ENTRY(nsIInterfaceRequestor)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIWebBrowserSetup)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIWebBrowserPersist)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIWebBrowserFocus)
|
||||
NS_INTERFACE_MAP_END
|
||||
|
||||
///*****************************************************************************
|
||||
|
@ -1252,3 +1254,52 @@ NS_IMETHODIMP nsWebBrowser::GetPrimaryContentWindow(nsIDOMWindowInternal **aDOMW
|
|||
return NS_OK;
|
||||
|
||||
}
|
||||
//*****************************************************************************
|
||||
// nsWebBrowser::nsIWebBrowserFocus
|
||||
//*****************************************************************************
|
||||
|
||||
/* void activate (); */
|
||||
NS_IMETHODIMP nsWebBrowser::Activate(void)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* void deactivate (); */
|
||||
NS_IMETHODIMP nsWebBrowser::Deactivate(void)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* void setFocusAtFirstElement (); */
|
||||
NS_IMETHODIMP nsWebBrowser::SetFocusAtFirstElement(void)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* void setFocusAtLastElement (); */
|
||||
NS_IMETHODIMP nsWebBrowser::SetFocusAtLastElement(void)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* attribute nsIDOMWindow focusedWindow; */
|
||||
NS_IMETHODIMP nsWebBrowser::GetFocusedWindow(nsIDOMWindow * *aFocusedWindow)
|
||||
{
|
||||
*aFocusedWindow = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
NS_IMETHODIMP nsWebBrowser::SetFocusedWindow(nsIDOMWindow * aFocusedWindow)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* attribute nsIDOMElement focusedElement; */
|
||||
NS_IMETHODIMP nsWebBrowser::GetFocusedElement(nsIDOMElement * *aFocusedElement)
|
||||
{
|
||||
*aFocusedElement = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
NS_IMETHODIMP nsWebBrowser::SetFocusedElement(nsIDOMElement * aFocusedElement)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
#include "nsIWebNavigation.h"
|
||||
#include "nsIWebBrowserSetup.h"
|
||||
#include "nsIWebBrowserPersist.h"
|
||||
#include "nsIWebBrowserFocus.h"
|
||||
|
||||
class nsWebBrowserInitInfo
|
||||
{
|
||||
|
@ -69,7 +70,8 @@ class nsWebBrowser : public nsIWebBrowser,
|
|||
public nsIScrollable,
|
||||
public nsITextScroll,
|
||||
public nsIInterfaceRequestor,
|
||||
public nsIWebBrowserPersist
|
||||
public nsIWebBrowserPersist,
|
||||
public nsIWebBrowserFocus
|
||||
{
|
||||
friend class nsDocShellTreeOwner;
|
||||
friend class nsWBURIContentListener;
|
||||
|
@ -87,7 +89,7 @@ public:
|
|||
NS_DECL_NSIWEBNAVIGATION
|
||||
NS_DECL_NSIWEBBROWSERSETUP
|
||||
NS_DECL_NSIWEBBROWSERPERSIST
|
||||
|
||||
NS_DECL_NSIWEBBROWSERFOCUS
|
||||
protected:
|
||||
virtual ~nsWebBrowser();
|
||||
NS_IMETHOD InternalDestroy();
|
||||
|
|
Загрузка…
Ссылка в новой задаче