Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/browser/components/shell/nsIMacShellService.idl
*/
#ifndef __gen_nsIMacShellService_h__
#define __gen_nsIMacShellService_h__
#include "nsIShellService.h"
#include "nsTArray.h"
#include "js/GCAnnotations.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIMacShellService */
#define NS_IMACSHELLSERVICE_IID_STR "387fdc80-0077-4b60-a0d9-d9e80a83ba64"
#define NS_IMACSHELLSERVICE_IID \
{0x387fdc80, 0x0077, 0x4b60, \
{ 0xa0, 0xd9, 0xd9, 0xe8, 0x0a, 0x83, 0xba, 0x64 }}
class NS_NO_VTABLE nsIMacShellService : public nsIShellService {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMACSHELLSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIMacShellService;
/* void showDesktopPreferences (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ShowDesktopPreferences(void) = 0;
/* void showSecurityPreferences (in ACString aPaneID); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ShowSecurityPreferences(const nsACString& aPaneID) = 0;
/* Array<Array<AString>> getAvailableApplicationsForProtocol (in ACString protocol); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAvailableApplicationsForProtocol(const nsACString& protocol, nsTArray<nsTArray<nsString >>& _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMacShellService, NS_IMACSHELLSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMACSHELLSERVICE \
NS_IMETHOD ShowDesktopPreferences(void) override; \
NS_IMETHOD ShowSecurityPreferences(const nsACString& aPaneID) override; \
NS_IMETHOD GetAvailableApplicationsForProtocol(const nsACString& protocol, nsTArray<nsTArray<nsString >>& _retval) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIMACSHELLSERVICE \
nsresult ShowDesktopPreferences(void); \
nsresult ShowSecurityPreferences(const nsACString& aPaneID); \
nsresult GetAvailableApplicationsForProtocol(const nsACString& protocol, nsTArray<nsTArray<nsString >>& _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMACSHELLSERVICE(_to) \
NS_IMETHOD ShowDesktopPreferences(void) override { return _to ShowDesktopPreferences(); } \
NS_IMETHOD ShowSecurityPreferences(const nsACString& aPaneID) override { return _to ShowSecurityPreferences(aPaneID); } \
NS_IMETHOD GetAvailableApplicationsForProtocol(const nsACString& protocol, nsTArray<nsTArray<nsString >>& _retval) override { return _to GetAvailableApplicationsForProtocol(protocol, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMACSHELLSERVICE(_to) \
NS_IMETHOD ShowDesktopPreferences(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowDesktopPreferences(); } \
NS_IMETHOD ShowSecurityPreferences(const nsACString& aPaneID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowSecurityPreferences(aPaneID); } \
NS_IMETHOD GetAvailableApplicationsForProtocol(const nsACString& protocol, nsTArray<nsTArray<nsString >>& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailableApplicationsForProtocol(protocol, _retval); }
#endif /* __gen_nsIMacShellService_h__ */