Bug 514987 - Remove unused nsIWidget::Validate. r=roc

--HG--
extra : rebase_source : c06acb3c5f6608bc2d8667044fbab904668a58b0
This commit is contained in:
Markus Stange 2009-09-08 09:48:23 +12:00
parent da748db6e5
commit 878180714d
11 changed files with 2 additions and 68 deletions

View File

@ -665,12 +665,6 @@ class nsIWidget : public nsISupports {
*/
NS_IMETHOD MakeFullScreen(PRBool aFullScreen) = 0;
/**
* Validate the widget.
*
*/
NS_IMETHOD Validate() = 0;
/**
* Invalidate the widget and repaint it.
*

View File

@ -341,7 +341,6 @@ public:
NS_IMETHOD Invalidate(PRBool aIsSynchronous);
NS_IMETHOD Invalidate(const nsIntRect &aRect, PRBool aIsSynchronous);
NS_IMETHOD Validate();
virtual void* GetNativeData(PRUint32 aDataType);
virtual nsresult ConfigureChildren(const nsTArray<Configuration>& aConfigurations);

View File

@ -1659,17 +1659,6 @@ NS_IMETHODIMP nsChildView::Invalidate(const nsIntRect &aRect, PRBool aIsSynchron
NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT;
}
// Validate the widget
NS_IMETHODIMP nsChildView::Validate()
{
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
[mView setNeedsDisplay:NO];
return NS_OK;
NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT;
}
inline PRUint16 COLOR8TOCOLOR16(PRUint8 color8)
{
// return (color8 == 0xFF ? 0xFFFF : (color8 << 8));

View File

@ -1680,23 +1680,6 @@ nsWindow::SetCursor(imgIContainer* aCursor,
return rv;
}
NS_IMETHODIMP
nsWindow::Validate()
{
// Get the update for this window and, well, just drop it on the
// floor.
if (!mGdkWindow)
return NS_OK;
GdkRegion *region = gdk_window_get_update_area(mGdkWindow);
if (region)
gdk_region_destroy(region);
return NS_OK;
}
NS_IMETHODIMP
nsWindow::Invalidate(PRBool aIsSynchronous)
{

View File

@ -181,7 +181,6 @@ public:
NS_IMETHOD SetCursor(nsCursor aCursor);
NS_IMETHOD SetCursor(imgIContainer* aCursor,
PRUint32 aHotspotX, PRUint32 aHotspotY);
NS_IMETHOD Validate();
NS_IMETHOD Invalidate(PRBool aIsSynchronous);
NS_IMETHOD Invalidate(const nsIntRect &aRect,
PRBool aIsSynchronous);

View File

@ -634,20 +634,6 @@ nsWindow::SetCursor(imgIContainer* aCursor,
return rv;
}
NS_IMETHODIMP
nsWindow::Validate()
{
// Get the update for this window and, well, just drop it on the
// floor.
if (!mWidget)
return NS_OK;
qDebug("FIXME:>>>>>>Func:%s::%d\n", __PRETTY_FUNCTION__, __LINE__);
return NS_OK;
}
NS_IMETHODIMP
nsWindow::Invalidate(PRBool aIsSynchronous)
{

View File

@ -165,7 +165,6 @@ public:
NS_IMETHOD GetHasTransparentBackground(PRBool& aTransparent);
NS_IMETHOD HideWindowChrome(PRBool aShouldHide);
NS_IMETHOD MakeFullScreen(PRBool aFullScreen);
NS_IMETHOD Validate();
NS_IMETHOD Invalidate(PRBool aIsSynchronous);
NS_IMETHOD Invalidate(const nsIntRect &aRect,
PRBool aIsSynchronous);

View File

@ -1999,20 +1999,12 @@ NS_IMETHODIMP nsWindow::HideWindowChrome(PRBool aShouldHide)
/**************************************************************
*
* SECTION: nsIWidget::Validate, nsIWidget::Invalidate
* SECTION: nsIWidget::Invalidate
*
* Validate or invalidate an area of the client for painting.
* Invalidate an area of the client for painting.
*
**************************************************************/
// Validate a visible area of a widget.
NS_METHOD nsWindow::Validate()
{
if (mWnd)
VERIFY(::ValidateRect(mWnd, NULL));
return NS_OK;
}
#ifdef WINCE_WINDOWS_MOBILE
static inline void AddRECTToRegion(const RECT& aRect, nsIRegion* aRegion)
{

View File

@ -139,7 +139,6 @@ public:
virtual nsresult ConfigureChildren(const nsTArray<Configuration>& aConfigurations);
NS_IMETHOD MakeFullScreen(PRBool aFullScreen);
NS_IMETHOD HideWindowChrome(PRBool aShouldHide);
NS_IMETHOD Validate();
NS_IMETHOD Invalidate(PRBool aIsSynchronous);
NS_IMETHOD Invalidate(const nsIntRect & aRect, PRBool aIsSynchronous);
NS_IMETHOD Update();

View File

@ -214,11 +214,6 @@ NS_IMETHODIMP nsBaseWidget::CaptureMouse(PRBool aCapture)
return NS_OK;
}
NS_IMETHODIMP nsBaseWidget::Validate()
{
return NS_OK;
}
//-------------------------------------------------------------------------
//
// Accessor functions to get/set the client data

View File

@ -74,7 +74,6 @@ public:
// nsIWidget interface
NS_IMETHOD CaptureMouse(PRBool aCapture);
NS_IMETHOD Validate();
NS_IMETHOD GetClientData(void*& aClientData);
NS_IMETHOD SetClientData(void* aClientData);
NS_IMETHOD Destroy();