Moved zoom attribute from nsIGenericWindow to nsIDocShell. Updated zoom documentation.
git-svn-id: svn://10.0.0.236/trunk@52298 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -211,6 +211,26 @@ NS_IMETHODIMP nsDocShellBase::GetRootDocShell(nsIDocShell** aRootDocShell)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDocShellBase::GetZoom(float* zoom)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(zoom);
|
||||
|
||||
//XXX First Check
|
||||
/**
|
||||
* Set/Get the document scale factor
|
||||
*/
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDocShellBase::SetZoom(float zoom)
|
||||
{
|
||||
//XXX First Check
|
||||
/**
|
||||
* Set/Get the document scale factor
|
||||
*/
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
// nsDocShellBase::nsIDocShellEdit
|
||||
//*****************************************************************************
|
||||
@@ -727,26 +747,6 @@ NS_IMETHODIMP nsDocShellBase::SetTitle(const PRUnichar* title)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDocShellBase::GetZoom(float* zoom)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(zoom);
|
||||
|
||||
//XXX First Check
|
||||
/**
|
||||
* Set/Get the document scale factor
|
||||
*/
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDocShellBase::SetZoom(float zoom)
|
||||
{
|
||||
//XXX First Check
|
||||
/**
|
||||
* Set/Get the document scale factor
|
||||
*/
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
// nsDocShellBase::nsIScrollable
|
||||
//*****************************************************************************
|
||||
|
||||
@@ -109,4 +109,14 @@ interface nsIDocShell : nsISupports
|
||||
outermost DocShell.
|
||||
*/
|
||||
readonly attribute nsIDocShell rootDocShell;
|
||||
|
||||
/**
|
||||
* Set/Get the document scale factor. When setting this attribute, a
|
||||
* NS_ERROR_NOT_IMPLEMENTED error may be returned by implementations
|
||||
* not supporting zoom. Implementations not supporting zoom should return
|
||||
* 1.0 all the time for the Get operation. 1.0 by the way is the default
|
||||
* of zoom. This means 100% of normal scaling or in other words normal size
|
||||
* no zoom.
|
||||
*/
|
||||
attribute float zoom;
|
||||
};
|
||||
|
||||
@@ -179,9 +179,4 @@ interface nsIGenericWindow : nsISupports
|
||||
void setFocus();
|
||||
|
||||
attribute wstring title;
|
||||
|
||||
/**
|
||||
* Set/Get the document scale factor
|
||||
*/
|
||||
attribute float zoom;
|
||||
};
|
||||
Reference in New Issue
Block a user