IntegrationComponent.cpp
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-2010 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 
30 #include "nsIGenericFactory.h"
31 
32 #include "WindowCloak.h"
33 
35 
36 #ifdef XP_MACOSX
42 #endif
43 
44 #ifdef MOZ_WIDGET_GTK2
48 #endif
49 
50 #ifdef XP_WIN
55 #include "GlobalHotkeys.h"
56 #include "WindowMinMax.h"
57 #include "WindowResizeHook.h"
58 #include "WindowRegion.h"
59 #include "sbWindowChromeService.h"
60 #endif
61 
62 
63 #define SB_WINDOWMOVE_SERVICE_CONTRACTID \
64  "@songbirdnest.com/integration/window-move-resize-service;1"
65 #define SB_WINDOWMOVE_SERVICE_CLASSNAME \
66  "Songbird Window Move/Resize Service"
67 #define SB_WINDOWMOVE_SERVICE_CID \
68  {0x4f8fecc6, 0x1dd2, 0x11b2, {0x90, 0x3a, 0xf3, 0x47, 0x1b, 0xfd, 0x3a, 0x60}}
69 
70 
71 
74 
75 #ifdef XP_WIN
84 #endif
85 
86 #ifdef XP_MACOSX
87 NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(sbMacAppDelegateManager, Init);
90 NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(sbScreenSaverSuppressor, Init);
91 #endif
92 
93 #ifdef MOZ_WIDGET_GTK2
95 NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(sbScreenSaverSuppressor, Init);
96 #endif
97 
98 static nsModuleComponentInfo sbIntegration[] =
99 {
100  {
104  sbWindowCloakConstructor
105  },
106 
107  {
111  sbNativeWindowManagerConstructor
112  },
113 
114 #ifdef XP_WIN
115  {
119  sbKnownFolderManagerConstructor
120  },
121 
122  {
126  sbWindowChromeServiceConstructor
127  },
128 
129  {
133  CWindowMinMaxConstructor
134  },
135 
136  {
140  CWindowResizeHookConstructor
141  },
142 
143  {
147  CWindowRegionConstructor
148  },
149 
150  {
154  CGlobalHotkeysConstructor
155  },
156 
157  {
161  sbScreenSaverSuppressorConstructor,
163  },
164 
165  {
169  sbWindowMoveServiceConstructor
170  },
171 #endif
172 #ifdef XP_MACOSX
173  {
177  sbMacAppDelegateManagerConstructor,
178  sbMacAppDelegateManager::RegisterSelf
179  },
180  {
184  sbMacWindowMoveServiceConstructor
185  },
186  {
190  sbMacWindowTitlebarServiceConstructor,
193  },
194  {
198  sbScreenSaverSuppressorConstructor,
200  },
201 #endif
202 #ifdef MOZ_WIDGET_GTK2
203  {
207  sbGtkWindowMoveServiceConstructor
208  },
209  {
213  sbScreenSaverSuppressorConstructor,
215  },
216 #endif
217 };
218 
219 NS_IMPL_NSGETMODULE(SongbirdIntegrationComponent, sbIntegration)
#define SB_BASE_SCREEN_SAVER_SUPPRESSOR_CID
Service for setting min/max limit callbacks to a window position and size - Prototypes.
#define SONGBIRD_WINDOWMINMAX_CONTRACTID
Definition: WindowMinMax.h:54
#define SONGBIRD_WINDOWREGION_CONTRACTID
Definition: WindowRegion.h:52
#define SONGBIRD_GLOBALHOTKEYS_CID
Definition: GlobalHotkeys.h:58
#define SONGBIRD_WINDOW_CHROME_SERVICE_CONTRACTID
Songbird Window Region Object Definition.
#define SONGBIRD_WINDOWRESIZEHOOK_CID
Global Hotkeys Manager.
static NS_METHOD UnregisterSelf(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const nsModuleComponentInfo *aInfo)
#define SONGBIRD_NATIVEWINDOWMANAGER_CLASSNAME
#define SONGBIRD_MACAPPDELEGATEMANAGER_CONTRACTID
#define SONGBIRD_WINDOWMINMAX_CLASSNAME
Definition: WindowMinMax.h:56
static NS_METHOD RegisterSelf(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo)
#define SB_MAC_WINDOW_TITLEBAR_SERVICE_CID
#define SB_BASE_SCREEN_SAVER_SUPPRESSOR_CLASSNAME
#define SONGBIRD_WINDOW_CHROME_SERVICE_CID
#define SONGBIRD_GLOBALHOTKEYS_CONTRACTID
Definition: GlobalHotkeys.h:54
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(sbMockDeviceFirmwareHandler, Init)
#define SONGBIRD_NATIVEWINDOWMANAGER_CONTRACTID
#define SONGBIRD_NATIVEWINDOWMANAGER_CID
#define SONGBIRD_WINDOWRESIZEHOOK_CONTRACTID
#define SB_WINDOWMOVE_SERVICE_CID
#define SB_MAC_WINDOW_TITLEBAR_SERVICE_CLASSNAME
#define SB_WINDOWMOVE_SERVICE_CONTRACTID
#define SONGBIRD_WINDOWREGION_CID
Definition: WindowRegion.h:56
#define SONGBIRD_WINDOWCLOAK_CONTRACTID
Definition: WindowCloak.h:42
#define SONGBIRD_WINDOWCLOAK_CLASSNAME
Definition: WindowCloak.h:44
Native window manager interface implementation.
function Init()
#define SONGBIRD_MACAPPDELEGATEMANAGER_CID
#define SONGBIRD_MACAPPDELEGATEMANAGER_CLASSNAME
Service for setting min/max limit callbacks to a window position and size - Prototypes.
#define SB_MAC_WINDOW_TITLEBAR_SERVICE_CONTRACTID
#define SONGBIRD_GLOBALHOTKEYS_CLASSNAME
Definition: GlobalHotkeys.h:55
#define SONGBIRD_WINDOWRESIZEHOOK_CLASSNAME
NS_IMPL_NSGETMODULE(SongbirdIdentityServiceComponent, sbIdentityServiceComponent)
#define SONGBIRD_KNOWN_FOLDER_MANAGER_CLASSNAME
static NS_METHOD RegisterSelf(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo)
#define SONGBIRD_KNOWN_FOLDER_MANAGER_CONTRACTID
#define SB_BASE_SCREEN_SAVER_SUPPRESSOR_CONTRACTID
Songbird Mac Window Titlebar Service Definitions.
#define SONGBIRD_WINDOWCLOAK_CID
Definition: WindowCloak.h:46
#define SONGBIRD_KNOWN_FOLDER_MANAGER_CID
#define SONGBIRD_WINDOWMINMAX_CID
Definition: WindowMinMax.h:58
#define SB_WINDOWMOVE_SERVICE_CLASSNAME
static nsModuleComponentInfo sbIntegration[]
NS_GENERIC_FACTORY_CONSTRUCTOR(sbMediaSniffer)
Songbird Window Cloaker Object Definition.
#define SONGBIRD_WINDOWREGION_CLASSNAME
Definition: WindowRegion.h:54
#define SONGBIRD_WINDOW_CHROME_SERVICE_CLASSNAME