DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/uriloader/exthandler/nsIExternalSharingAppService.idl
 */

#ifndef __gen_nsIExternalSharingAppService_h__
#define __gen_nsIExternalSharingAppService_h__


#ifndef __gen_nsIMIMEInfo_h__
#include "nsIMIMEInfo.h"
#endif

#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
#define NS_EXTERNALSHARINGAPPSERVICE_CONTRACTID    "@mozilla.org/uriloader/external-sharing-app-service;1"

/* starting interface:    nsISharingHandlerApp */
#define NS_ISHARINGHANDLERAPP_IID_STR "7111f769-53ec-41fd-b314-613661d5b6ba"

#define NS_ISHARINGHANDLERAPP_IID \
  {0x7111f769, 0x53ec, 0x41fd, \
    { 0xb3, 0x14, 0x61, 0x36, 0x61, 0xd5, 0xb6, 0xba }}

class NS_NO_VTABLE nsISharingHandlerApp : public nsIHandlerApp {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISHARINGHANDLERAPP_IID)

  /* void share (in AString data, [optional] in AString title); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Share(const nsAString& data, const nsAString& title) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsISharingHandlerApp, NS_ISHARINGHANDLERAPP_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISHARINGHANDLERAPP \
  NS_IMETHOD Share(const nsAString& data, const nsAString& title) 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_NSISHARINGHANDLERAPP \
  nsresult Share(const nsAString& data, const nsAString& title); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISHARINGHANDLERAPP(_to) \
  NS_IMETHOD Share(const nsAString& data, const nsAString& title) override { return _to Share(data, title); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISHARINGHANDLERAPP(_to) \
  NS_IMETHOD Share(const nsAString& data, const nsAString& title) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Share(data, title); } 


/* starting interface:    nsIExternalSharingAppService */
#define NS_IEXTERNALSHARINGAPPSERVICE_IID_STR "cf7d04e5-3892-482e-81bb-073dc1c83f76"

#define NS_IEXTERNALSHARINGAPPSERVICE_IID \
  {0xcf7d04e5, 0x3892, 0x482e, \
    { 0x81, 0xbb, 0x07, 0x3d, 0xc1, 0xc8, 0x3f, 0x76 }}

class NS_NO_VTABLE nsIExternalSharingAppService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEXTERNALSHARINGAPPSERVICE_IID)

  /* void shareWithDefault (in AString data, in AString mime, [optional] in AString title); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ShareWithDefault(const nsAString& data, const nsAString& mime, const nsAString& title) = 0;

  /* void getSharingApps (in AString aMIMEType, [optional] out unsigned long aLen, [array, size_is (aLen), retval] out nsISharingHandlerApp handlerApps); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSharingApps(const nsAString& aMIMEType, uint32_t *aLen, nsISharingHandlerApp ***handlerApps) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIExternalSharingAppService, NS_IEXTERNALSHARINGAPPSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIEXTERNALSHARINGAPPSERVICE \
  NS_IMETHOD ShareWithDefault(const nsAString& data, const nsAString& mime, const nsAString& title) override; \
  NS_IMETHOD GetSharingApps(const nsAString& aMIMEType, uint32_t *aLen, nsISharingHandlerApp ***handlerApps) 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_NSIEXTERNALSHARINGAPPSERVICE \
  nsresult ShareWithDefault(const nsAString& data, const nsAString& mime, const nsAString& title); \
  nsresult GetSharingApps(const nsAString& aMIMEType, uint32_t *aLen, nsISharingHandlerApp ***handlerApps); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIEXTERNALSHARINGAPPSERVICE(_to) \
  NS_IMETHOD ShareWithDefault(const nsAString& data, const nsAString& mime, const nsAString& title) override { return _to ShareWithDefault(data, mime, title); } \
  NS_IMETHOD GetSharingApps(const nsAString& aMIMEType, uint32_t *aLen, nsISharingHandlerApp ***handlerApps) override { return _to GetSharingApps(aMIMEType, aLen, handlerApps); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIEXTERNALSHARINGAPPSERVICE(_to) \
  NS_IMETHOD ShareWithDefault(const nsAString& data, const nsAString& mime, const nsAString& title) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShareWithDefault(data, mime, title); } \
  NS_IMETHOD GetSharingApps(const nsAString& aMIMEType, uint32_t *aLen, nsISharingHandlerApp ***handlerApps) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSharingApps(aMIMEType, aLen, handlerApps); } 


#endif /* __gen_nsIExternalSharingAppService_h__ */