Closed Bug 280619 Opened 21 years ago Closed 21 years ago

Clean up BrowserWrapper interaction with BWC

Categories

(Camino Graveyard :: Tabbed Browsing, defect)

PowerPC
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 283419

People

(Reporter: sfraser_bugs, Assigned: sfraser_bugs)

Details

Attachments

(1 file)

The BrowserWrapper currently has too much code that looks like: if (mIsPrimary) [mWindowController doSomething] and it also has pointers to the url field and status bar, which seems wrong. We need some better encapsulation here.
Here's a first-cut patch. It's not complete, because there's some fudging (the [mWindow delegate] calls in BrowserWrapper, mostly). The basic strategy is to create a new protocol, BrowserUIDelegate, and implement it in the BWC. The BrowserWrapper has a delegate that implements this protocol. The BrowserWrapper in the frontmost tab is the only one with a non-nil delegate. I've pushed some logic into the BWC (e.g. stuff relating to [mUrlBar userHasTyped]) where it makes sense.
This was checked in (under another bug). *** This bug has been marked as a duplicate of 283419 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: