33 #include "nsIScriptableRegion.h" 
   34 #include "nsIRegion.h" 
   57   if (!window) 
return NS_ERROR_FAILURE;
 
   63     ::SetWindowRgn(wnd, NULL, TRUE);
 
   68   nsIScriptableRegion *srgn = NULL;
 
   69   region->QueryInterface(NS_GET_IID(nsIScriptableRegion), (
void **)&srgn);
 
   70   if (!srgn) 
return NS_ERROR_FAILURE;
 
   72   nsIRegion *rgn = NULL;
 
   73   srgn->GetRegion(&rgn);
 
   79     rgn->GetNativeRegion(hrgn);
 
   80     ::SetWindowRgn(wnd, (HRGN)hrgn, TRUE);
 
Songbird Window Region Object Definition. 
NS_IMPL_ISUPPORTS1(sbDeviceCapabilitiesUtils, sbIDeviceCapabilitiesUtils) sbDeviceCapabilitiesUtils
Window region service interface This is an interface to the window region service, used to assign a region to a window at the OS level. This allows cutting out portions of a window without relying on mozilla's internal transparency management, which may interfere with the window content. 
static void * get(nsISupports *window)