Presentation is loading. Please wait.

Presentation is loading. Please wait.

Mozilla Technologies Sept. 30, 2005. History of Mozilla Mosaic -> Netscape 1.0 -> Netscape 5.0 Netscape 5.0 was announced to be an Open Source project.

Similar presentations


Presentation on theme: "Mozilla Technologies Sept. 30, 2005. History of Mozilla Mosaic -> Netscape 1.0 -> Netscape 5.0 Netscape 5.0 was announced to be an Open Source project."— Presentation transcript:

1 Mozilla Technologies Sept. 30, 2005

2 History of Mozilla Mosaic -> Netscape 1.0 -> Netscape 5.0 Netscape 5.0 was announced to be an Open Source project and it became Mozilla 1.0 in 2002 Up to Mozilla 1.7.x, it is called Mozilla Application Suite including browser, mail and new client, composer, IRC chat client and etc. and many tools for developers. Mozilla Foundation shifts their efforts to FireFox and ThurderBird in 2003 to minimize the maintenance difficulties and to reduce the integration. The Mozilla Application Suite now is called SeaMonkey maintained by a group of volunteers and *NOT* maintained by Mozilla Foundation any more.

3 What is Mozilla Far more than a browser Built on a very big source code base and is far larger than most Open Source projects. A software development platform: a miniature version of Java and Microsoft’s.NET framework

4 Architecture of Mozilla Greatly simplified architecture from my understanding XPCOM XPCONNECT ContractID Layers under XPCOM Javascript DOM XHTML SVG MathML XUL XBL RDF template User-defined tags Apply to

5 XPCOM XPCOM stands for Cross Platform Component Object Model. It’s written in C/C++. It’s an object broking systems like COBRA and COM. –An object broker is a piece of code that finds objects and makes them available. If all objects built provide a standard or common interface that the broker can use, then all members of a large set of objects can be handled the same way. XPCOM is like a miniature of an OS. Applications written in XUL and Javascripts only interact with XPCOM.

6 XPCOM (continued.) Javascripts access objects in XPCOM in a standard way –Get a component –Get the part of the component that implements the interface that we want to use. –Call the function we need Example: Get a service for handling local files var aFile = Components.classes["@mozilla.org/file/local;1"].createInstance(); if (aFile) aFile.QueryInterface(Components.interfaces.nsILocalFile);

7 XUL XUL stands for XML User-Interface Language which is a cross-platform language for describing user interfaces of applications. Most of the Mozilla applications such as the browser, addressbook, DOM inspector are written in XUL. A very good tutorial (go through some examples) http://www.xulplanet.com/tutorials/xultu/ Examples: DOM inspector, a prototype of an equation editor, GeoSVg

8 XUL (continued) RDF is another stepping stone of the Mozilla. It can supply data sources to XUL elements, even SVG elements (an example in SVG from croczilla) Datasources of an element can be from a RDF file or internal datasource such as bookmarks, history, and mail messages. Template (an example from the tutorial)

9 XUL (continued) XUL files can be referenced with a regular HTTP URL XUL files can also be installed as an XUL package to be an standalone application of an extension of the browser. Installed packages are placed under the chrome directory and can be invoked by URL in a form like chrome://inspector/content/inspector.xul A package usually has three folders content, skin, and locale

10 XBL XBL stands for eXtensible Binding Language. XBL is used for declaring the behavior or XUL widgets and user-defined widgets. Different from XSL: –XSL operates in batch mode, performing a single pass over the supplied document

11 XBL (continued) Add anonymous content – Make an element like an object in OOP – Add event handlers to an element –

12 More examples related to SVG –http://www.mozilla.org/projects/svg/http://www.mozilla.org/projects/svg/


Download ppt "Mozilla Technologies Sept. 30, 2005. History of Mozilla Mosaic -> Netscape 1.0 -> Netscape 5.0 Netscape 5.0 was announced to be an Open Source project."

Similar presentations


Ads by Google