33 #include "../NativeWindowFromNode.h"
49 sbNativeWindowManager::BeginResizeDrag(
nsISupports *aWindow,
53 return NS_ERROR_NOT_IMPLEMENTED;
58 sbNativeWindowManager::GetSupportsResizeDrag(PRBool *aSupportsResizeDrag)
60 NS_ENSURE_ARG_POINTER(aSupportsResizeDrag);
61 *aSupportsResizeDrag = PR_FALSE;
67 sbNativeWindowManager::SetMinimumWindowSize(
nsISupports *aWindow,
68 PRInt32 aMinimumWidth,
69 PRInt32 aMinimumHeight)
74 [window setMinSize:NSMakeSize(aMinimumWidth, aMinimumHeight)];
76 rv = NS_ERROR_UNEXPECTED;
83 sbNativeWindowManager::SetMaximumWindowSize(
nsISupports *aWindow,
84 PRInt32 aMaximumWidth,
85 PRInt32 aMaximumHeight)
90 [window setMaxSize:NSMakeSize(aMaximumWidth, aMaximumHeight)];
92 rv = NS_ERROR_UNEXPECTED;
99 sbNativeWindowManager::GetSupportsMinimumWindowSize(PRBool *aSupportsMinimumWindowSize)
101 NS_ENSURE_ARG_POINTER(aSupportsMinimumWindowSize);
102 *aSupportsMinimumWindowSize = PR_TRUE;
108 sbNativeWindowManager::GetSupportsMaximumWindowSize(PRBool *aSupportsMaximumWindowSize)
110 NS_ENSURE_ARG_POINTER(aSupportsMaximumWindowSize);
111 *aSupportsMaximumWindowSize = PR_TRUE;
117 sbNativeWindowManager::SetOnTop(
nsISupports *aWindow, PRBool aOnTop)
119 NS_ENSURE_ARG_POINTER(aWindow);
124 [window setLevel:(aOnTop?NSStatusWindowLevel:NSNormalWindowLevel)];
126 rv = NS_ERROR_UNEXPECTED;
132 sbNativeWindowManager::SetShadowing(
nsISupports *aWindow, PRBool aShadowing)
135 return NS_ERROR_NOT_IMPLEMENTED;
139 sbNativeWindowManager::GetSupportsOnTop(PRBool *aSupportsOnTop)
141 NS_ENSURE_ARG_POINTER(aSupportsOnTop);
142 *aSupportsOnTop = PR_TRUE;
147 sbNativeWindowManager::GetSupportsShadowing(PRBool *aSupportsShadowing)
149 NS_ENSURE_ARG_POINTER(aSupportsShadowing);
152 *aSupportsShadowing = PR_FALSE;
NS_IMPL_ISUPPORTS1(sbDeviceCapabilitiesUtils, sbIDeviceCapabilitiesUtils) sbDeviceCapabilitiesUtils
virtual ~sbNativeWindowManager()
interface to the operating system's window manager This Interfaces to allows JavaScript to talk to th...
static void * get(nsISupports *window)