Added IsPainting method to return whether the viewmanager is currently painting. bug 56335 a=buster@netscape.com r=vidur@netscape.com

This commit is contained in:
kmcclusk%netscape.com 2000-10-17 05:03:45 +00:00
Родитель b7f566951c
Коммит 1be2c2c7f2
5 изменённых файлов: 25 добавлений и 0 удалений

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

@ -508,6 +508,14 @@ public:
*/
NS_IMETHOD AllowDoubleBuffering(PRBool aDoubleBuffer)=0;
/**
* Indicate whehter the viewmanager is currently painting
*
* @param aPainting PR_TRUE if the viewmanager is painting
* PR_FALSE otherwise
*/
NS_IMETHOD IsPainting(PRBool& aIsPainting)=0;
};
//when the refresh happens, should it be double buffered?

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

@ -3636,6 +3636,13 @@ nsViewManager::AllowDoubleBuffering(PRBool aDoubleBuffer)
return NS_OK;
}
NS_IMETHODIMP
nsViewManager::IsPainting(PRBool& aIsPainting)
{
aIsPainting = mPainting;
return NS_OK;
}
nsresult
nsViewManager::ProcessWidgetChanges(nsIView* aView)
{

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

@ -160,6 +160,7 @@ public:
NS_IMETHOD IsCachingWidgetChanges(PRBool* aCaching);
NS_IMETHOD CacheWidgetChanges(PRBool aCache);
NS_IMETHOD AllowDoubleBuffering(PRBool aDoubleBuffer);
NS_IMETHOD IsPainting(PRBool& aIsPainting);
protected:
virtual ~nsViewManager();

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

@ -2898,6 +2898,14 @@ nsViewManager2::AllowDoubleBuffering(PRBool aDoubleBuffer)
return NS_OK;
}
NS_IMETHODIMP
nsViewManager2::IsPainting(PRBool& aIsPainting)
{
aIsPainting = mPainting;
return NS_OK;
}
nsresult
nsViewManager2::ProcessWidgetChanges(nsIView* aView)
{

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

@ -158,6 +158,7 @@ public:
NS_IMETHOD IsCachingWidgetChanges(PRBool* aCaching);
NS_IMETHOD CacheWidgetChanges(PRBool aCache);
NS_IMETHOD AllowDoubleBuffering(PRBool aDoubleBuffer);
NS_IMETHOD IsPainting(PRBool& aIsPainting);
protected:
virtual ~nsViewManager2();