nsURLFormatter - /@line 37

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//@line 37 "e:\builds\moz2_slave\win32_build\build\toolkit\components\urlformatter\ src\nsURLFormatter.js" /** * @class nsURLFormatterService * * nsURLFormatterService exposes methods to substitute variables in URL formats. * * Mozilla Applications linking to Mozilla websites are strongly encouraged to use * URLs of the following format: * * http[s]://%SERVICE%.mozilla.[com|org]/%LOCALE%/ */ const Cc = Components.classes; const Ci = Components.interfaces; const Cu = Components.utils; Cu.import("resource://gre/modules/XPCOMUtils.jsm"); function nsURLFormatterService() {} nsURLFormatterService.prototype = { classDescription: "Application URL Formatter Service", contractID: "@mozilla.org/toolkit/URLFormatterService;1", classID: Components.ID("{e6156350-2be8-11db-a98b-0800200c9a66}"), QueryInterface: XPCOMUtils.generateQI([Ci.nsIURLFormatter]), _defaults: { get appInfo() { if (!this._appInfo) this._appInfo = Cc["@mozilla.org/xre/app-info;1"]. getService(Ci.nsIXULAppInfo).
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

nsURLFormatter - /@line 37

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online