removed widget parameters from nsIView::Init(). added CreateWidget() and SetWidget()
APIs to replace this functionality. also added CreateScrollControls() to nsIScrollableView. git-svn-id: svn://10.0.0.236/trunk@14036 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -500,15 +500,18 @@ nsresult DocumentViewerImpl::MakeWindow(nsNativeWidget aNativeParent,
|
||||
static NS_DEFINE_IID(kWidgetCID, NS_CHILD_CID);
|
||||
if ((NS_OK != rv) || (NS_OK != mView->Init(mViewManager,
|
||||
tbounds,
|
||||
nsnull,
|
||||
&kWidgetCID,
|
||||
nsnull,
|
||||
aNativeParent))) {
|
||||
nsnull))) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
rv = mView->CreateWidget(kWidgetCID, nsnull, aNativeParent);
|
||||
|
||||
if (rv != NS_OK)
|
||||
return rv;
|
||||
|
||||
// Setup hierarchical relationship in view manager
|
||||
mViewManager->SetRootView(mView);
|
||||
|
||||
mView->GetWidget(mWindow);
|
||||
|
||||
//set frame rate to 25 fps
|
||||
|
||||
Reference in New Issue
Block a user