Class AppIntegration
Defined in: AppIntegration.jsm.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Exported app integration functions.
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
AppIntegration.addWindow(window)
Adds an application window to the tracked list.
|
| <static> |
AppIntegration.getWrapperForWindow(wnd)
Retrieves the wrapper object corresponding to a particular application window.
|
| <static> |
AppIntegration.openMenu(window)
Opens ABP menu.
|
| <static> |
AppIntegration.toggleFilter(filter)
If the given filter is already in user's list, removes it from the list.
|
| <static> |
AppIntegration.togglePref(pref)
Toggles the value of a boolean preference.
|
| <static> |
AppIntegration.toggleSync()
Toggles the pref for the Adblock Plus sync engine.
|
| <static> |
AppIntegration.toggleToolbarIcon()
Adds or removes the Adblock Plus toolbar icon.
|
Method Detail
<static>
AppIntegration.addWindow(window)
Adds an application window to the tracked list.
- Parameters:
- {Window} window
<static>
{WindowWrapper}
AppIntegration.getWrapperForWindow(wnd)
Retrieves the wrapper object corresponding to a particular application window.
- Parameters:
- {Window} wnd
<static>
AppIntegration.openMenu(window)
Opens ABP menu.
- Parameters:
- window
<static>
AppIntegration.toggleFilter(filter)
If the given filter is already in user's list, removes it from the list. Otherwise adds it.
- Parameters:
- {Filter} filter
<static>
AppIntegration.togglePref(pref)
Toggles the value of a boolean preference.
- Parameters:
- {String} pref
<static>
{Boolean}
AppIntegration.toggleSync()
Toggles the pref for the Adblock Plus sync engine.
- Returns:
- {Boolean} new state of the sync engine
<static>
{Boolean}
AppIntegration.toggleToolbarIcon()
Adds or removes the Adblock Plus toolbar icon.
- Returns:
- {Boolean} new state of the toolbar button