sbIDisplayPanes.idl
Go to the documentation of this file.
1 /*
2 //
3 // BEGIN SONGBIRD GPL
4 //
5 // This file is part of the Songbird web player.
6 //
7 // Copyright(c) 2005-2008 POTI, Inc.
8 // http://songbirdnest.com
9 //
10 // This file may be licensed under the terms of of the
11 // GNU General Public License Version 2 (the "GPL").
12 //
13 // Software distributed under the License is distributed
14 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
15 // express or implied. See the GPL for the specific language
16 // governing rights and limitations.
17 //
18 // You should have received a copy of the GPL along with this
19 // program. If not, go to http://www.gnu.org/licenses/gpl.html
20 // or write to the Free Software Foundation, Inc.,
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 //
23 // END SONGBIRD GPL
24 //
25 */
26 
27 #include "nsISupports.idl"
28 interface nsIDOMWindow;
29 interface nsIDOMXULElement;
30 interface nsISimpleEnumerator;
31 
51 [scriptable, uuid(4032b416-9bca-48b0-b95a-cd8a14c48ea0)]
53 {
57  readonly attribute AString contentUrl;
61  readonly attribute AString contentTitle;
65  readonly attribute AString contentIcon;
69  readonly attribute PRInt32 defaultWidth;
73  readonly attribute PRInt32 defaultHeight;
78  readonly attribute AString suggestedContentGroups;
79 };
80 
86 [scriptable, uuid(316ba9ab-5fda-4bc3-b4de-dbb8211a4785)]
88 {
92  readonly attribute AString contentGroup;
96  readonly attribute AString contentUrl;
100  readonly attribute AString contentTitle;
104  readonly attribute AString contentIcon;
108  readonly attribute nsIDOMWindow contentWindow;
109 
113  readonly attribute nsIDOMXULElement displayPane;
114 
118  void loadContent(in sbIDisplayPaneContentInfo aPane);
122  void hide();
126  attribute PRBool collapsed;
127 };
128 
134 [scriptable, uuid(1028919e-de26-45ed-ac12-5343972498a6)]
136 {
139  void onRegisterInstantiator(in sbIDisplayPaneInstantiator aInstantiator);
142 };
143 
156 [scriptable, uuid(2b7dbb26-f429-4dff-b537-29c0e8a1d0a8)]
158 {
163  void registerInstantiator(in sbIDisplayPaneInstantiator aInstantiator);
164  void unregisterInstantiator(in sbIDisplayPaneInstantiator aInstantiator);
165 
170  void registerContent(in AString aContentUrl,
171  in AString aContentTitle,
172  in AString aContentIcon,
173  in PRInt32 aDefaultWidth,
174  in PRInt32 aDefaultHeight,
175  in AString aSuggestedContentGroups,
176  in PRBool aAutoShow);
177 
182  void unregisterContent(in AString aContentUrl);
183 
187  void updateContentInfo(in AString aContentUrl,
188  in AString aNewContentTitle,
189  in AString aNewContentIcon);
190 
197  void showPane(in AString aContentUrl);
198 
203  readonly attribute nsISimpleEnumerator contentList;
209 
213  sbIDisplayPaneContentInfo getPaneInfo(in AString aContentUrl);
214 
219 
220  void addListener(in sbIDisplayPaneListener aListener);
221  void removeListener(in sbIDisplayPaneListener aListener);
222 
228 };
229 
230 
void onPaneInfoChanged(in sbIDisplayPaneContentInfo aPane)
void registerInstantiator(in sbIDisplayPaneInstantiator aInstantiator)
void showPane(in AString aContentUrl)
void onRegisterInstantiator(in sbIDisplayPaneInstantiator aInstantiator)
void onRegisterContent(in sbIDisplayPaneContentInfo aPane)
readonly attribute nsISimpleEnumerator instantiatorsList
void loadContent(in sbIDisplayPaneContentInfo aPane)
readonly attribute nsISimpleEnumerator contentList
readonly attribute AString contentUrl
Songbird Display Panes Interface This is the main display panes management interface, used to register and list panes and instantiators. Display panes are blocks within the main user interface which can be used to load arbitary sub-documents for display to the user with full chrome privileges.
readonly attribute PRInt32 defaultWidth
readonly attribute AString contentUrl
readonly attribute AString contentTitle
var uuid
readonly attribute nsIDOMXULElement displayPane
Information needed for a display pane to be instantiated.
const nsIDOMWindow
readonly attribute AString contentIcon
void onUnregisterContent(in sbIDisplayPaneContentInfo aPane)
void unregisterContent(in AString aContentUrl)
readonly attribute sbIDisplayPaneContentInfo defaultPaneInfo
readonly attribute nsIDOMWindow contentWindow
readonly attribute PRInt32 defaultHeight
readonly attribute AString contentIcon
void addListener(in sbIDisplayPaneListener aListener)
sbIDisplayPaneInstantiator getInstantiatorForWindow(in nsIDOMWindow aWindow)
readonly attribute AString contentTitle
void removeListener(in sbIDisplayPaneListener aListener)
void registerContent(in AString aContentUrl, in AString aContentTitle, in AString aContentIcon, in PRInt32 aDefaultWidth, in PRInt32 aDefaultHeight, in AString aSuggestedContentGroups, in PRBool aAutoShow)
readonly attribute AString contentGroup
void updateContentInfo(in AString aContentUrl, in AString aNewContentTitle, in AString aNewContentIcon)
void unregisterInstantiator(in sbIDisplayPaneInstantiator aInstantiator)
void onUnregisterInstantiator(in sbIDisplayPaneInstantiator aInstantiator)
readonly attribute AString suggestedContentGroups
sbIDisplayPaneContentInfo getPaneInfo(in AString aContentUrl)