21#define NS_PROMPTSERVICE_CONTRACTID "@mozilla.org/embedcomp/prompt-service;1"
22#define NS_TOOLTIPTEXTPROVIDER_CONTRACTID "@mozilla.org/embedcomp/tooltiptextprovider;1"
24#define NS_TOOLTIPTEXTPROVIDER_CLASSNAME "nsTooltipTextProvider"
27 {0xa2112d6a,0x0e28,0x421f,{0xb4,0x6a,0x25,0xc0,0xb3,0x8,0xcb,0xd0}};
29 {0x0b666e3e,0x569a,0x462c,{0xa7,0xf0,0xb1,0x6b,0xb1,0x5d,0x42,0xff}};
71 WARN(
"Could not find HTMLWindow for nsIDOMWindow %p\n", aParent);
76 IHTMLWindow2_alert(&
window->base.IHTMLWindow2_iface,
text);
115 static const PRUnichar wszContinue[] = {
'C',
'o',
'n',
't',
'i',
'n',
'u',
'e',0};
117 FIXME(
"(%p %s %s %08x %s %s %s %s %p %p) hack!\n", aParent,
debugstr_w(aDialogTitle),
120 aCheckState, _retval);
127 if(aButton0Title && !
memcmp(aButton0Title, wszContinue,
sizeof(wszContinue)))
129 else if(aButton1Title && !
memcmp(aButton1Title, wszContinue,
sizeof(wszContinue)))
131 else if(aButton2Title && !
memcmp(aButton2Title, wszContinue,
sizeof(wszContinue)))
145 aValue,
debugstr_w(aCheckMsg), aCheckState, _retval);
154 FIXME(
"(%p %s %s %p %p %s %p %p)\n", aParent,
debugstr_w(aDialogTitle),
176 debugstr_w(aText), aCount, aSelectList, aOutSelection, _retval);
206 TRACE(
"(IID_nsITooltipTextProvider %p)\n",
result);
211 nsITooltipTextProvider_AddRef(iface);
238 TRACE(
"(%p %p %p)\n", aNode, aText, _retval);
245 nsres = nsIDOMNode_QueryInterface(
node, &IID_nsIDOMHTMLElement, (
void**)&nselem);
249 nsIDOMHTMLElement_GetTitle(nselem, &title_str);
250 nsIDOMHTMLElement_Release(nselem);
255 nsIDOMNode_Release(
node);
260 nsres = nsIDOMNode_GetParentNode(
node, &
parent);
265 nsIDOMNode_Release(
node);
344 return nsISupports_QueryInterface(
This->service, iid,
result);
379 ERR(
"RegisterFactory failed: %08x\n", nsres);
385 ERR(
"RegisterFactory failed: %08x\n", nsres);
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
HTMLOuterWindow * nswindow_to_window(const nsIDOMWindow *nswindow)
#define memcpy(s1, s2, n)
static IHTMLWindow2 * window
void * nsalloc(size_t) __WINE_ALLOC_SIZE(1) DECLSPEC_HIDDEN
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
#define NS_ERROR_NOT_IMPLEMENTED
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
#define NS_SUCCEEDED(res)
#define NS_ERROR_UNEXPECTED
static nsresult NSAPI nsTooltipTextProvider_QueryInterface(nsITooltipTextProvider *iface, nsIIDRef riid, void **result)
static nsresult NSAPI nsTooltipTextProvider_GetNodeText(nsITooltipTextProvider *iface, nsIDOMNode *aNode, PRUnichar **aText, cpp_bool *_retval)
static const nsITooltipTextProviderVtbl nsTooltipTextProviderVtbl
static nsresult NSAPI nsPromptService_Prompt(nsIPromptService *iface, nsIDOMWindow *aParent, const PRUnichar *aDialogTitle, const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg, cpp_bool *aCheckState, cpp_bool *_retval)
static nsresult NSAPI nsPromptService_ConfirmEx(nsIPromptService *iface, nsIDOMWindow *aParent, const PRUnichar *aDialogTitle, const PRUnichar *aText, UINT32 aButtonFlags, const PRUnichar *aButton0Title, const PRUnichar *aButton1Title, const PRUnichar *aButton2Title, const PRUnichar *aCheckMsg, cpp_bool *aCheckState, LONG *_retval)
static const nsIID NS_PROMPTSERVICE_CID
static nsresult NSAPI nsPromptService_Alert(nsIPromptService *iface, nsIDOMWindow *aParent, const PRUnichar *aDialogTitle, const PRUnichar *aText)
static nsresult NSAPI nsPromptService_QueryInterface(nsIPromptService *iface, nsIIDRef riid, void **result)
static nsresult NSAPI nsPromptService_Confirm(nsIPromptService *iface, nsIDOMWindow *aParent, const PRUnichar *aDialogTitle, const PRUnichar *aText, cpp_bool *_retval)
static nsresult NSAPI nsServiceFactory_CreateInstance(nsIFactory *iface, nsISupports *aOuter, const nsIID *iid, void **result)
#define NS_TOOLTIPTEXTPROVIDER_CLASSNAME
static nsresult NSAPI nsServiceFactory_LockFactory(nsIFactory *iface, cpp_bool lock)
static nsresult NSAPI nsServiceFactory_QueryInterface(nsIFactory *iface, nsIIDRef riid, void **result)
static nsrefcnt NSAPI nsPromptService_AddRef(nsIPromptService *iface)
static nsrefcnt NSAPI nsServiceFactory_Release(nsIFactory *iface)
static nsrefcnt NSAPI nsTooltipTextProvider_Release(nsITooltipTextProvider *iface)
static nsIPromptService nsPromptService
static nsresult NSAPI nsPromptService_AlertCheck(nsIPromptService *iface, nsIDOMWindow *aParent, const PRUnichar *aDialogTitle, const PRUnichar *aText, const PRUnichar *aCheckMsg, cpp_bool *aCheckState)
static nsrefcnt NSAPI nsTooltipTextProvider_AddRef(nsITooltipTextProvider *iface)
static nsServiceFactory nsTooltipTextFactory
#define NS_TOOLTIPTEXTPROVIDER_CONTRACTID
#define NS_PROMPTSERVICE_CONTRACTID
static const nsIID NS_TOOLTIPTEXTPROVIDER_CID
void register_nsservice(nsIComponentRegistrar *registrar, nsIServiceManager *service_manager)
static nsServiceFactory * impl_from_nsIFactory(nsIFactory *iface)
static const nsIPromptServiceVtbl PromptServiceVtbl
static nsresult NSAPI nsPromptService_PromptUsernameAndPassword(nsIPromptService *iface, nsIDOMWindow *aParent, const PRUnichar *aDialogTitle, const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword, const PRUnichar *aCheckMsg, cpp_bool *aCheckState, cpp_bool *_retval)
static nsresult NSAPI nsPromptService_Select(nsIPromptService *iface, nsIDOMWindow *aParent, const PRUnichar *aDialogTitle, const PRUnichar *aText, UINT32 aCount, const PRUnichar **aSelectList, LONG *aOutSelection, cpp_bool *_retval)
static nsITooltipTextProvider nsTooltipTextProvider
static nsrefcnt NSAPI nsPromptService_Release(nsIPromptService *iface)
static nsresult NSAPI nsPromptService_PromptPassword(nsIPromptService *iface, nsIDOMWindow *aParent, const PRUnichar *aDialogTitle, const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg, cpp_bool *aCheckState, cpp_bool *_retval)
static nsrefcnt NSAPI nsServiceFactory_AddRef(nsIFactory *iface)
static const nsIFactoryVtbl nsServiceFactoryVtbl
static nsresult NSAPI nsPromptService_ConfirmCheck(nsIPromptService *iface, nsIDOMWindow *aParent, const PRUnichar *aDialogTitle, const PRUnichar *aText, const PRUnichar *aCheckMsg, cpp_bool *aCheckState, cpp_bool *_retval)
static nsServiceFactory nsPromptServiceFactory
BSTR WINAPI SysAllocString(LPCOLESTR str)
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
#define IsEqualGUID(rguid1, rguid2)
nsIFactory nsIFactory_iface
#define CONTAINING_RECORD(address, type, field)