25 #include "nsISupports.idl"
29 interface nsIDOMDocument;
112 [scriptable,
uuid(cc8b8082-1dd1-11b2-a707-e1fb775c0d9b)]
122 void init(in AString aId);
135 in AString aSubMenuId,
137 in AString aTooltipText);
150 in AString aBeforeId,
151 in AString aSubMenuId,
153 in AString aTooltipText);
167 in AString aSubMenuId,
169 in AString aTooltipText);
186 in AString aActionId,
188 in AString aTooltipText,
203 in AString aBeforeId,
204 in AString aActionId,
206 in AString aTooltipText,
222 in AString aActionId,
224 in AString aTooltipText,
239 in AString aSeparatorId);
250 in AString aBeforeId,
251 in AString aSeparatorId);
263 in AString aSeparatorId);
281 in AString aTooltipText,
298 in AString aBeforeId,
299 in AString aCommandId,
301 in AString aTooltipText,
319 in AString aCommandId,
321 in AString aTooltipText,
341 in AString aTooltipText,
358 in AString aBeforeId,
361 in AString aTooltipText,
381 in AString aTooltipText,
398 in AString aChoiceMenuId,
400 in AString aTooltipText,
415 in AString aBeforeId,
416 in AString aChoiceMenuId,
418 in AString aTooltipText,
434 in AString aChoiceMenuId,
436 in AString aTooltipText,
452 in AString aChoiceMenuItemId,
454 in AString aTooltipText,
469 in AString aBeforeId,
470 in AString aCommandId,
472 in AString aTooltipText,
488 in AString aCommandId,
490 in AString aTooltipText,
505 in AString aCustomItemId,
520 in AString aBeforeId,
521 in AString aCustomItemId,
537 in AString aCustomItemId,
554 in AString aCommandsId,
567 in AString aBeforeId,
568 in AString aCommandsId,
582 in AString aCommandsId,
599 in AString aCommandId,
600 in AString aShortcutKey,
601 in AString aShortcutKeyCode,
602 in AString aShortcutModifiers,
603 in PRBool aShortcutIsLocal);
616 in AString aCommandId,
629 in AString aCommandId,
665 in AString aCommandId);
689 [scriptable,
uuid(c68a8813-7df9-41f4-888c-30f8a63cef60)]
707 [scriptable,
function,
uuid(d93a113b-348a-4050-8c03-3806228f9293)]
719 in AString aSubMenuId,
720 in AString aCommandId,
733 [scriptable,
function,
uuid(2474bfcf-bf50-4f27-b76e-b2472a126c08)]
747 in AString aSubMenuId,
748 in AString aCommandId,
762 [scriptable,
function,
uuid(68dde54c-5157-4650-addd-79ad331cf9ee)]
776 in AString aSubMenuId,
777 in AString aCommandId,
791 [scriptable,
function,
uuid(24b5f0d8-424f-43ee-8f97-4efbfad6500f)]
804 in AString aSubMenuId,
805 in AString aCommandId,
819 [scriptable,
function,
uuid(fb4694de-ba89-4097-843b-a00091cc430b)]
833 in AString aSubMenuId,
834 in AString aCommandId,
836 in nsIDOMDocument aParentDocument);
848 [scriptable,
function,
uuid(d5f091e8-9b14-47f5-bf48-0f64c9d23a0a)]
861 in AString aSubMenuId,
862 in AString aCommandId,
864 in nsIDOMNode aElement);
876 [scriptable,
function,
uuid(9f578767-7f92-486
d-b0a9-f760ff6e22d0)]
void insertActionAfter(in AString aParentSubMenuId, in AString aAfterId, in AString aActionId, in AString aLabel, in AString aTooltipText, in sbIPlaylistCommandsBuilderSimpleCallback aTriggerCallback)
Insert an action into the set of commands.
A helper used to construct sbIPlaylistCommands interfaces.
void insertChoiceMenuItemAfter(in AString aParentSubMenuId, in AString aAfterId, in AString aCommandId, in AString aLabel, in AString aTooltipText, in sbIPlaylistCommandsBuilderSimpleCallback aTriggerCallback)
Insert a choicemenuitem into the set of commands.
attribute nsISupports implementorContext
The commands builder implementor context.
void setCommandVisibleCallback(in AString aParentSubMenuId, in AString aCommandId, in sbIPlaylistCommandsBuilderGetBoolCallback aVisibleCallback)
Assign a callback to a command item to dynamically determine its visible status.
void insertChoiceMenuItemBefore(in AString aParentSubMenuId, in AString aBeforeId, in AString aCommandId, in AString aLabel, in AString aTooltipText, in sbIPlaylistCommandsBuilderSimpleCallback aTriggerCallback)
Insert a choicemenuitem into the set of commands.
void insertValueAfter(in AString aParentSubMenuId, in AString aAfterId, in AString aValueId, in AString aLabel, in AString aTooltipText, in sbIPlaylistCommandsBuilderSetValueCallback aSetValueCallback, in sbIPlaylistCommandsBuilderGetStringCallback aGetValueCallback)
Insert a value into the set of commands.
void handleCallback(in sbIPlaylistCommandsBuilderContext aContext, in AString aSubMenuId, in AString aCommandId, in AString aHost, in nsIDOMNode aElement)
The callback function.
void setShutdownCallback(in sbIPlaylistCommandsBuilderPCCallback aInitCallback)
Assign a callback to the entire command set to perform shutdown.
AString handleCallback(in sbIPlaylistCommandsBuilderContext aContext, in AString aSubMenuId, in AString aCommandId, in AString aHost, in AString aData)
The callback function.
void appendChoiceMenu(in AString aParentSubMenuId, in AString aChoiceMenuId, in AString aLabel, in AString aTooltipText, in sbIPlaylistCommandsBuilderGetStringCallback aItemCallback)
Append a choicemenu to the set of commands.
void handleCallback(in sbIPlaylistCommandsBuilderContext aContext, in AString aSubMenuId, in AString aCommandId, in AString aHost, in AString aValue)
The callback function.
PRBool handleCallback(in sbIPlaylistCommandsBuilderContext aContext, in AString aSubMenuId, in AString aCommandId, in AString aHost, in AString aData)
The callback function.
void insertSeparatorAfter(in AString aParentSubMenuId, in AString aAfterId, in AString aSeparatorId)
Insert a separator into the set of commands.
void setInitCallback(in sbIPlaylistCommandsBuilderPCCallback aInitCallback)
Assign a callback to the entire command set to perform initialization.
The interface for giving context to playlist builder callbacks.
A callback interface used to receive callbacks from an sbIPlaylistCommandsBuilder object relating to ...
void setVisibleCallback(in sbIPlaylistCommandsBuilderPCCallback aVisibleCallback)
Assign a callback to the entire command set to dynamically determine its visible status (affects all ...
void init(in AString aId)
A required initialization method that sets the id of the sbIPlaylistCommands object. A playlist command must have an id to be registered.
A callback interface used to instantiate a custom command DOM element for sbIPlaylistCommandsBuilder ...
void insertActionBefore(in AString aParentSubMenuId, in AString aBeforeId, in AString aActionId, in AString aLabel, in AString aTooltipText, in sbIPlaylistCommandsBuilderSimpleCallback aTriggerCallback)
Insert an action into the set of commands.
nsIDOMNode handleCallback(in sbIPlaylistCommandsBuilderContext aContext, in AString aSubMenuId, in AString aCommandId, in AString aHost, in nsIDOMDocument aParentDocument)
The callback function.
void appendFlag(in AString aParentSubMenuId, in AString aFlagId, in AString aLabel, in AString aTooltipText, in sbIPlaylistCommandsBuilderSimpleCallback aTriggerCallback, in sbIPlaylistCommandsBuilderGetBoolCallback aValueCallback)
Append a flag to the set of commands.
void appendSubmenu(in AString aParentSubMenuId, in AString aSubMenuId, in AString aLabel, in AString aTooltipText)
Append a submenu to the set of commands.
void handleCallback(in sbIPlaylistCommandsBuilderContext aContext, in AString aSubMenuId, in AString aCommandId, in AString aHost)
The callback function.
An interface used to receive generic callbacks from an sbIPlaylistCommandsBuilder object...
void insertChoiceMenuBefore(in AString aParentSubMenuId, in AString aBeforeId, in AString aChoiceMenuId, in AString aLabel, in AString aTooltipText, in sbIPlaylistCommandsBuilderGetStringCallback aItemCallback)
Insert a choicemenu into the set of commands.
An interface used to receive callbacks from an sbIPlaylistCommandsBuilder object when a string value ...
void removeAllCommands([optional] in AString aParentSubMenuId)
Remove all commands from the set.
A callback interface used to refresh a custom command DOM element for sbIPlaylistCommandsBuilder obje...
PRBool handleCallback(in sbIPlaylistCommandsBuilderContext aContext, in AString aHost, in AString aData)
The callback function.
An interface that represents the set of command buttons and context menu items available on a display...
void insertValueBefore(in AString aParentSubMenuId, in AString aBeforeId, in AString aValueId, in AString aLabel, in AString aTooltipText, in sbIPlaylistCommandsBuilderSetValueCallback aSetValueCallback, in sbIPlaylistCommandsBuilderGetStringCallback aGetValueCallback)
Insert a value into the set of commands.
void insertCustomItemBefore(in AString aParentSubMenuId, in AString aBeforeId, in AString aCustomItemId, in sbIPlaylistCommandsBuilderInstantiationCallback aInstantiationCallback, in sbIPlaylistCommandsBuilderRefreshCallback aRefreshCallback)
Insert a customitem into the set of commands.
void insertPlaylistCommandsBefore(in AString aParentSubMenuId, in AString aBeforeId, in AString aCommandsId, in sbIPlaylistCommands aPlaylistCommands)
Insert an existing set of commands into this set of commands.
void insertCustomItemAfter(in AString aParentSubMenuId, in AString aAfterId, in AString aCustomItemId, in sbIPlaylistCommandsBuilderInstantiationCallback aInstantiationCallback, in sbIPlaylistCommandsBuilderRefreshCallback aRefreshCallback)
Insert a customitem into the set of commands.
void insertFlagAfter(in AString aParentSubMenuId, in AString aAfterId, in AString aCommandId, in AString aLabel, in AString aTooltipText, in sbIPlaylistCommandsBuilderSimpleCallback aTriggerCallback, in sbIPlaylistCommandsBuilderGetBoolCallback aGetValueCallback)
Insert a flag into the set of commands.
void insertChoiceMenuAfter(in AString aParentSubMenuId, in AString aAfterId, in AString aChoiceMenuId, in AString aLabel, in AString aTooltipText, in sbIPlaylistCommandsBuilderGetStringCallback aItemCallback)
Insert a choicemenu into the set of commands.
void removeCommand(in AString aParentSubMenuId, in AString aCommandId)
Remove a command from the set.
void appendPlaylistCommands(in AString aParentSubMenuId, in AString aCommandsId, in sbIPlaylistCommands aPlaylistCommands)
Append an existing set of commands to this set of commands.
The interface for giving context to a playlistcommands object.
void appendAction(in AString aParentSubMenuId, in AString aActionId, in AString aLabel, in AString aTooltipText, in sbIPlaylistCommandsBuilderSimpleCallback aTriggerCallback)
Append an action to the set of commands.
void setCommandEnabledCallback(in AString aParentSubMenuId, in AString aCommandId, in sbIPlaylistCommandsBuilderGetBoolCallback aEnabledCallback)
Assign a callback to a command item to dynamically determine its enabled status.
void appendCustomItem(in AString aParentSubMenuId, in AString aCustomItemId, in sbIPlaylistCommandsBuilderInstantiationCallback aInstantiationCallback, in sbIPlaylistCommandsBuilderRefreshCallback aRefreshCallback)
Append a customitem to the set of commands.
void shutdown()
Shutdown the builder object, ensure that no external reference remains in its internal arrays...
void appendValue(in AString aParentSubMenuId, in AString aValueId, in AString aLabel, in AString aTooltipText, in sbIPlaylistCommandsBuilderSetValueCallback aSetValueCallback, in sbIPlaylistCommandsBuilderGetStringCallback aGetValueCallback)
Append a value to the set of commands.
void setCommandShortcut(in AString aParentSubMenuId, in AString aCommandId, in AString aShortcutKey, in AString aShortcutKeyCode, in AString aShortcutModifiers, in PRBool aShortcutIsLocal)
Assign a keyboard shortcut to a command item.
void insertPlaylistCommandsAfter(in AString aParentSubMenuId, in AString aAfterId, in AString aCommandsId, in sbIPlaylistCommands aPlaylistCommands)
Insert an existing set of commands into this set of commands.
void insertSubmenuBefore(in AString aParentSubMenuId, in AString aBeforeId, in AString aSubMenuId, in AString aLabel, in AString aTooltipText)
Insert a submenu into the set of commands.
void insertSubmenuAfter(in AString aParentSubMenuId, in AString aAfterId, in AString aSubMenuId, in AString aLabel, in AString aTooltipText)
Insert a submenu into the set of commands.
An interface used to receive callbacks from an sbIPlaylistCommandsBuilder object when a boolean value...
void insertFlagBefore(in AString aParentSubMenuId, in AString aBeforeId, in AString aCommandId, in AString aLabel, in AString aTooltipText, in sbIPlaylistCommandsBuilderSimpleCallback aTriggerCallback, in sbIPlaylistCommandsBuilderGetBoolCallback aGetValueCallback)
Insert a flag into the set of commands.
void appendSeparator(in AString aParentSubMenuId, in AString aSeparatorId)
Append a separator to the set of commands.
A callback interface used to receive a string value from an sbIPlaylistCommandsBuilder object...
void appendChoiceMenuItem(in AString aParentSubMenuId, in AString aChoiceMenuItemId, in AString aLabel, in AString aTooltipText, in sbIPlaylistCommandsBuilderSimpleCallback aTriggerCallback)
Append a choicemenuitem to the set of commands.
_updateTextAndScrollDataForFrame aData
void insertSeparatorBefore(in AString aParentSubMenuId, in AString aBeforeId, in AString aSeparatorId)
Insert a separator into the set of commands.