Bug 352093. Part 13: Remove nsIViewManager::GetWidget since no-one should be using it. r=bzbarsky

This commit is contained in:
Robert O'Callahan 2009-07-22 12:45:11 +12:00
Родитель a756d86e22
Коммит 6991cf6438
3 изменённых файлов: 2 добавлений и 18 удалений

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

@ -60,8 +60,8 @@ enum nsRectVisibility {
};
#define NS_IVIEWMANAGER_IID \
{ 0x50c0a18c, 0x3e39, 0x4606, \
{ 0x85, 0x77, 0xe7, 0x3a, 0xcc, 0xb4, 0x66, 0xc9 } }
{ 0x739bbc2b, 0x5c45, 0x40bb, \
{ 0xb0, 0xbc, 0xe3, 0x1c, 0xe0, 0xf2, 0x19, 0xc2 } }
class nsIViewManager : public nsISupports
{
@ -416,13 +416,6 @@ public:
*/
NS_IMETHOD GetRootScrollableView(nsIScrollableView **aScrollable) = 0;
/**
* Retrieve the widget at the root of the view manager. This is the
* widget associated with the root view, if the root view exists and has
* a widget.
*/
NS_IMETHOD GetWidget(nsIWidget **aWidget) = 0;
/**
* Retrieve the widget at the root of the nearest enclosing
* view manager whose root view has a widget.

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

@ -1868,13 +1868,6 @@ NS_IMETHODIMP nsViewManager::GetRootScrollableView(nsIScrollableView **aScrollab
return NS_OK;
}
NS_IMETHODIMP nsViewManager::GetWidget(nsIWidget **aWidget)
{
*aWidget = GetWidget();
NS_IF_ADDREF(*aWidget);
return NS_OK;
}
NS_IMETHODIMP nsViewManager::GetRootWidget(nsIWidget **aWidget)
{
if (!mRootView) {

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

@ -171,8 +171,6 @@ public:
NS_IMETHOD SetRootScrollableView(nsIScrollableView *aScrollable);
NS_IMETHOD GetRootScrollableView(nsIScrollableView **aScrollable);
NS_IMETHOD GetWidget(nsIWidget **aWidget);
nsIWidget* GetWidget() { return mRootView ? mRootView->GetWidget() : nsnull; }
NS_IMETHOD GetRootWidget(nsIWidget **aWidget);
NS_IMETHOD ForceUpdate();