Closed Bug 258039 Opened 21 years ago Closed 21 years ago

nsCWebBrowser.idl should be part of the gecko SDK

Categories

(Core Graveyard :: Embedding: APIs, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Biesinger, Assigned: bzbarsky)

References

()

Details

Attachments

(1 file)

(see also news://news.mozilla.org:119/%3C282cac13.0409040939.5d4c13a7@posting.google.com%3E) A lot of samples use NS_WEBBROWSER_CONTRACTID to refer to the component implementing nsIWebBrowser, we should allow using that from the SDK and make nsCWebBrowser part of it. It only defines a CID and ContractID for nsIWebBrowser.
This is crap ;) We shouldn't be defining NS_WEBBROWSER_CID anywhere public, and we shouldn't be defining NS_WEBBROWSER_CONTRACTID in an IDL file. Let's create an nsEmbedCID.h like nsXPCOMCID.h (for frozen contractIDs only, unlike nsNetCID).
Because the samples all use do_CreateInstance() it should be added to the SDK as well (see the same newsgroup posting).
*** Bug 284297 has been marked as a duplicate of this bug. ***
I like the idea of nsEmbedCID.h. Is anyone actually opposed to it? If not, let's just do it.
> I like the idea of nsEmbedCID.h. Is anyone actually opposed to it? If not, > let's just do it. I agree.
Attached patch Possible patchSplinter Review
This creates nsEmbedCID.h, puts NS_WEBBROWSER_CONTRACTID in it, and exports it as part of the SDK. I only documented frozen interfaces as being implemented by the contract for the time being. I also left nsICWebBrowser.idl almost as-is, since a lot of the Mozilla embedding code includes it and it includes a whole slew of IDL files; I'd have to either include those all over or test-compile on a bazillion platforms. I think all the includers ought to be ok with including nsEmbedCID.h, since they already include nsEmbedAPI.h... (so already REQUIRE embed_base). Not sure whether Adam should review this; your call, Darin.
Attachment #176011 - Flags: review?(darin)
Comment on attachment 176011 [details] [diff] [review] Possible patch >Index: embedding/base/nsEmbedCID.h >+ * Web Browser contract id I've been writing ContractID elsewhere in Gecko documention, and I think it works well since it really is a jargon term. r=darin
Attachment #176011 - Flags: review?(darin) → review+
Assignee: adamlock → bzbarsky
Checked in. I'll post to n.p.m.embedding.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Bug 285080 filed on putting more things in nsEmbedCID.h.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: