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:
michaelp%netscape.com
1998-11-04 04:14:10 +00:00
parent 8f341809c7
commit 43acfe6cc5
17 changed files with 289 additions and 202 deletions

View File

@@ -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