applications.js File Reference

Go to the source code of this file.

Functions

function getDisplayNameForFile (aFile)
 
function getLocalHandlerApp (aFile)
 
function ArrayEnumerator (aItems)
 
function isFeedType (t)
 
function HandlerInfoWrapper (aType, aHandlerInfo)
 
function FeedHandlerInfo (aMIMEType)
 

Variables

var Cc = Components.classes
 
var Ci = Components.interfaces
 
var Cr = Components.results
 
const TYPE_MAYBE_FEED = "application/vnd.mozilla.maybe.feed"
 
const TYPE_MAYBE_VIDEO_FEED = "application/vnd.mozilla.maybe.video.feed"
 
const TYPE_MAYBE_AUDIO_FEED = "application/vnd.mozilla.maybe.audio.feed"
 
const PREF_DISABLED_PLUGIN_TYPES = "plugin.disable_full_page_plugin_for_types"
 
const PREF_SHOW_PLUGINS_IN_LIST = "browser.download.show_plugins_in_list"
 
const PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS
 
const PREF_FEED_SELECTED_APP = "browser.feeds.handlers.application"
 
const PREF_FEED_SELECTED_WEB = "browser.feeds.handlers.webservice"
 
const PREF_FEED_SELECTED_ACTION = "browser.feeds.handler"
 
const PREF_FEED_SELECTED_READER = "browser.feeds.handler.default"
 
const PREF_VIDEO_FEED_SELECTED_APP = "browser.videoFeeds.handlers.application"
 
const PREF_VIDEO_FEED_SELECTED_WEB = "browser.videoFeeds.handlers.webservice"
 
const PREF_VIDEO_FEED_SELECTED_ACTION = "browser.videoFeeds.handler"
 
const PREF_VIDEO_FEED_SELECTED_READER = "browser.videoFeeds.handler.default"
 
const PREF_AUDIO_FEED_SELECTED_APP = "browser.audioFeeds.handlers.application"
 
const PREF_AUDIO_FEED_SELECTED_WEB = "browser.audioFeeds.handlers.webservice"
 
const PREF_AUDIO_FEED_SELECTED_ACTION = "browser.audioFeeds.handler"
 
const PREF_AUDIO_FEED_SELECTED_READER = "browser.audioFeeds.handler.default"
 
const kActionUsePlugin = 5
 
const ICON_URL_APP = "moz-icon://dummy.exe?size=16"
 
const APP_ICON_ATTR_NAME = "appHandlerIcon"
 
ArrayEnumerator prototype
 
var feedHandlerInfo
 

Function Documentation

function ArrayEnumerator (   aItems)

An enumeration of items in a JS array.

FIXME: use ArrayConverter once it lands (bug 380839).

Definition at line 184 of file applications.js.

function FeedHandlerInfo (   aMIMEType)

This object implements nsIHandlerInfo for the feed types. It's a separate object because we currently store handling information for the feed type in a set of preferences rather than the nsIHandlerService-managed datastore.

This object inherits from HandlerInfoWrapper in order to get functionality that isn't special to the feed type.

XXX Should we inherit from HandlerInfoWrapper? After all, we override most of that wrapper's properties and methods, and we have to dance around the fact that the wrapper expects to have a wrappedHandlerInfo, which we don't provide.

Definition at line 535 of file applications.js.

Here is the call graph for this function:

function getDisplayNameForFile (   aFile)

Definition at line 133 of file applications.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function getLocalHandlerApp (   aFile)

Definition at line 168 of file applications.js.

Here is the call graph for this function:

function HandlerInfoWrapper (   aType,
  aHandlerInfo 
)

This object wraps nsIHandlerInfo with some additional functionality the Applications prefpane needs to display and allow modification of the list of handled types.

We create an instance of this wrapper for each entry we might display in the prefpane, and we compose the instances from various sources, including navigator.plugins and the handler service.

We don't implement all the original nsIHandlerInfo functionality, just the stuff that the prefpane needs.

In theory, all of the custom functionality in this wrapper should get pushed down into nsIHandlerInfo eventually.

Definition at line 223 of file applications.js.

Here is the caller graph for this function:

function isFeedType (   t)

Definition at line 201 of file applications.js.

Variable Documentation

const APP_ICON_ATTR_NAME = "appHandlerIcon"

Definition at line 128 of file applications.js.

var Cc = Components.classes

Definition at line 52 of file applications.js.

Definition at line 53 of file applications.js.

var Cr = Components.results

Definition at line 54 of file applications.js.

var feedHandlerInfo

Definition at line 849 of file applications.js.

const ICON_URL_APP = "moz-icon://dummy.exe?size=16"

Definition at line 117 of file applications.js.

const kActionUsePlugin = 5

Definition at line 112 of file applications.js.

const PREF_AUDIO_FEED_SELECTED_ACTION = "browser.audioFeeds.handler"

Definition at line 105 of file applications.js.

const PREF_AUDIO_FEED_SELECTED_APP = "browser.audioFeeds.handlers.application"

Definition at line 103 of file applications.js.

const PREF_AUDIO_FEED_SELECTED_READER = "browser.audioFeeds.handler.default"

Definition at line 106 of file applications.js.

const PREF_AUDIO_FEED_SELECTED_WEB = "browser.audioFeeds.handlers.webservice"

Definition at line 104 of file applications.js.

const PREF_DISABLED_PLUGIN_TYPES = "plugin.disable_full_page_plugin_for_types"

Definition at line 63 of file applications.js.

const PREF_FEED_SELECTED_ACTION = "browser.feeds.handler"

Definition at line 95 of file applications.js.

const PREF_FEED_SELECTED_APP = "browser.feeds.handlers.application"

Definition at line 93 of file applications.js.

const PREF_FEED_SELECTED_READER = "browser.feeds.handler.default"

Definition at line 96 of file applications.js.

const PREF_FEED_SELECTED_WEB = "browser.feeds.handlers.webservice"

Definition at line 94 of file applications.js.

const PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS
Initial value:
=
"browser.download.hide_plugins_without_extensions"

Definition at line 67 of file applications.js.

const PREF_SHOW_PLUGINS_IN_LIST = "browser.download.show_plugins_in_list"

Definition at line 66 of file applications.js.

const PREF_VIDEO_FEED_SELECTED_ACTION = "browser.videoFeeds.handler"

Definition at line 100 of file applications.js.

const PREF_VIDEO_FEED_SELECTED_APP = "browser.videoFeeds.handlers.application"

Definition at line 98 of file applications.js.

const PREF_VIDEO_FEED_SELECTED_READER = "browser.videoFeeds.handler.default"

Definition at line 101 of file applications.js.

const PREF_VIDEO_FEED_SELECTED_WEB = "browser.videoFeeds.handlers.webservice"

Definition at line 99 of file applications.js.

FeedHandlerInfo prototype
Initial value:
= {
_index: 0,
hasMoreElements: function() {
return this._index < this._contents.length;
},
getNext: function() {
return this._contents[this._index++];
}
}
SimpleArrayEnumerator prototype hasMoreElements

Definition at line 189 of file applications.js.

const TYPE_MAYBE_AUDIO_FEED = "application/vnd.mozilla.maybe.audio.feed"

Definition at line 61 of file applications.js.

const TYPE_MAYBE_FEED = "application/vnd.mozilla.maybe.feed"

Definition at line 59 of file applications.js.

const TYPE_MAYBE_VIDEO_FEED = "application/vnd.mozilla.maybe.video.feed"

Definition at line 60 of file applications.js.