sbIWindowMoveService.idl
Go to the documentation of this file.
1 /*
2  *=BEGIN SONGBIRD GPL
3  *
4  * This file is part of the Songbird web player.
5  *
6  * Copyright(c) 2005-2009 POTI, Inc.
7  * http://www.songbirdnest.com
8  *
9  * This file may be licensed under the terms of of the
10  * GNU General Public License Version 2 (the ``GPL'').
11  *
12  * Software distributed under the License is distributed
13  * on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
14  * express or implied. See the GPL for the specific language
15  * governing rights and limitations.
16  *
17  * You should have received a copy of the GPL along with this
18  * program. If not, go to http://www.gnu.org/licenses/gpl.html
19  * or write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  *=END SONGBIRD GPL
23  */
24 
25 #include "nsISupports.idl"
26 
27 interface nsIDOMWindow;
28 
29 
30 //==============================================================================
31 //
32 // @interface sbIWindowMoveListener
33 // @brief Window move listener callback interface.
34 //
35 //==============================================================================
36 
37 [scriptable, uuid(C93F3A89-50F2-447D-BD70-972A3FB79D47)]
39 {
40  //
41  // @brief Callback method when the window starts moving.
42  //
43  void onMoveStarted();
44 
45  //
46  // @brief Callback method when the window stops moving.
47  //
48  void onMoveStopped();
49 };
50 
51 
52 //==============================================================================
53 //
54 // @inteface sbIWindowMoveService
55 // @brief Service for providing window move callback notices for a given window
56 // and a given listener.
57 //
58 //==============================================================================
59 
60 [scriptable, uuid(08D7A93E-CD74-48E9-951D-C5B8E601EB16)]
62 {
63  //
64  // @brief Start listening to window sizing and move events.
65  // @param aWindow The window to start watching.
66  // @param aListener The callback listener for the move events.
67  //
68  void startWatchingWindow(in nsISupports aWindow,
69  in sbIWindowMoveListener aListener);
70 
71  //
72  // @brief Stop listening to window sizing and move events.
73  // @param aWindow The window to stop watching.
74  // @param aListener The callback listener for the move events.
75  //
76  void stopWatchingWindow(in nsISupports aWindow,
77  in sbIWindowMoveListener aListener);
78 };
79 
var D
void stopWatchingWindow(in nsISupports aWindow, in sbIWindowMoveListener aListener)
var uuid
const nsIDOMWindow
void startWatchingWindow(in nsISupports aWindow, in sbIWindowMoveListener aListener)