Closed Bug 72851 Opened 25 years ago Closed 10 years ago

Rearrange the embedding directory

Categories

(Core Graveyard :: Embedding: APIs, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE
Future

People

(Reporter: adamlock, Assigned: adamlock)

References

Details

I think it's about time we rearranged this directory! Principle things that need doing: 1. Move PowerPlant, gtk widget & ActiveX control out of embedding/browser into another place such as embedding/clients 2. Consider whether winEmbed & mfcEmbed stay where they are or need to move somewhere like embedding/samples. 3. Consider whether default URI fixup service & web browser persist object should move to embedding/components 4. Photon DIE!!!!! The floor is now open for discussion.
Here's a rough outline which makes sense to me. Some of my names could use improvement though. mozilla embedding base browser (this is what is currently webBrowser - divided up into public, src, etc) macbuild public src chrome components build macbuild appstartup commandhandler windowatcher config controls (widgets? things which build complete components which are further embedded) activex gtk examples (frameworks? contain classes which can be used as-is with these frameworks) powerplant mfcEmbed tests (bare metal testbeds) gtkEmbed winEmbed
I'm more friendly to widget myself.
*** Bug 44357 has been marked as a duplicate of this bug. ***
I don't mind controls or widgets though I'd probably prefer some other name. How about clients or wrappers? Conrad are you sure your Powerplant stuff shouldn't be in the same place too?
wrappers might be good. It's neither gtk-biased (widget) nor ActiveX (control) I don't think powerplant should go in there because it's different from the gtk widget and activex control in that it's just source code with classes that can be added to a powerplant app which encapsulate embedding. The other two can be used as-is in binary form - embeded into another app using an OS facility. The powerplant app belongs alongside mfcEmbed which is very similar to it both in features and approach. I can't come up with a good name for that but it's something along the line of "frameworkapps" or maybe just "examples"
Okay I will create the "examples" and "wrappers" (instead of "controls") directories as per Conrad's layout. Once these are in place, can everyone move their code to the new locations and update the makefiles? Me: Move ActiveX to wrappers Chris: Move gtk to wrappers Chak: Move mfcEmbed to examples Conrad: Move powerplant to examples I'm not sure if CVS provides an easy way to move a folder. Does anyone know? Thanks
I don't think it's possible for us to move stuff and maintain the history. I think leaf is the only one who can do that. If we don't care about losing the history, we can do it but just through removing and adding. Is Photon dead (I hope so)? Are you going to clean up embedding/browser/webBrowser so it's like the rest of the DLLs with public, src, and macbuild subdirs? That would be nice but maybe not as crucial on this pass.
Yes I think Photon will be killed as long as CVS allows it to be resurrected. Otherwise perhaps it can go into an "unmaintained" directory. All the IDL files should probably move from webBrowser out into a public directory. So perhaps like this embedding browser (or maybe some other name?) build public src (or keep as webBrowser since other modules may appear here) And the embedding API should be renamed too from "base" to "embed_api" perhaps.
The wrappers and examples directories have been created with some readme files and some sample makefiles.
If you want to rename files then someone has to physically do it on the CVS server. That is assuming that you want history on the files which I do.
Ok, so what needs to go where?
mozilla/embedding/tests/mfcembed -> mozilla/embedding/examples/mfcembed mozilla/embedding/browser/powerplant -> mozilla/embedding/examples/powerplant mozilla/embedding/browser/activex -> mozilla/embedding/wrappers/activex mozilla/embedding/browser/gtk -> mozilla/embedding/wrappers/gtk Chak, Adam, Chris - Is this right? I can only speak for /powerplant.
OK for mfcembed
Yes, this is right with the appropriate makefile fixups of course. My code is ready to move at any time.
My code == activex :)
That's fine for gtk.
I can fairly quickly copy these directories around... to be perfectly clear, we want the entire contents copied, correct? Once i do the copy, the build system changes can go in, and the old files cvs removed.
Can someone answer my question before we make mozilla 0.9?
Yes, whole dirs. If there happen to be any empty dirs in powerplant, don't copy those. There used to be a dir in there with a space so I removed all its contents hoping it would go away.
Target Milestone: --- → mozilla0.9.1
Correction: Changing QA contact for the Embed API bugs to David Epstein.
QA Contact: mdunn → depstein
Leaf do you want to take this bug? The ActiveX control is ready to move at least.
-> 0.9.2
Target Milestone: mozilla0.9.1 → mozilla0.9.2
-> 0.9.3
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Diff to remove Photon from embedding build Index: Makefile.in =================================================================== RCS file: /cvsroot/mozilla/embedding/browser/Makefile.in,v retrieving revision 1.9 diff -u -r1.9 Makefile.in --- Makefile.in 2001/02/21 20:36:17 1.9 +++ Makefile.in 2001/08/22 20:40:41 @@ -31,9 +31,4 @@ DIRS += gtk endif -ifdef MOZ_ENABLE_PHOTON -DIRS += photon -endif - - include $(topsrcdir)/config/rules.mk
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Retargetting. Should definitely done as part of general embedding cleanup and SDK preparedness.
Target Milestone: mozilla0.9.5 → Future
Can I have an r/sr to kill Photon? See the previous comment but 1
You have my r=. If you have time, and can get leaf to do the moving, I'd like to see this happen. The layout of the webBrowser dir is odd. Its macbuild dir is completely outside of it, on the same level as embedding samples, and it is not divided into public and src subdirs. This layout always irks me.
From bug 75538: 1) More visibility for the embed-sample.jar & move it to embedding/samples
QA Contact: depstein → mdunn
QA Contact: dunn5557 → apis
Marking a bunch of bugs in the "Embedding: APIs" component INCOMPLETE in preparation to archive that component. If I have done this incorrectly, please reopen the bugs and move them to a more correct component as we don't have "embedding" APIs any more.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.