pac.*namespace that would establish the common interface for all platform-specific implementations. Another set of controls (e.g.
pac.webos.*) would be defined for each platform, inheriting from the appropriate base kind, which would adapt the interface for the particular platform.
registerPlatforminstead?) which ensures that only the control set relevant for the active platform is ultimately registered as a theme. The app code can then use the generic base name (e.g. "Header") instead of the pac or platform name (e.g. "pac.webos.Header") which would get resolved to the right kind by the enyo theme framework. There's a little more magic hiding in it but i'll leave it at that for now.
It looks like you're new here. If you want to get involved, click one of these buttons!