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

nsIAboutNewTabService

Macros

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 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAboutNewTabService.idl
 */

#ifndef __gen_nsIAboutNewTabService_h__
#define __gen_nsIAboutNewTabService_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsIAboutNewTabService */
#define NS_IABOUTNEWTABSERVICE_IID_STR "dfcd2adc-7867-4d3a-ba70-17501f208142"

#define NS_IABOUTNEWTABSERVICE_IID \
  {0xdfcd2adc, 0x7867, 0x4d3a, \
    { 0xba, 0x70, 0x17, 0x50, 0x1f, 0x20, 0x81, 0x42 }}

class NS_NO_VTABLE nsIAboutNewTabService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABOUTNEWTABSERVICE_IID)

  /* attribute ACString newTabURL; */
  NS_IMETHOD GetNewTabURL(nsACString & aNewTabURL) = 0;
  NS_IMETHOD SetNewTabURL(const nsACString & aNewTabURL) = 0;

  /* attribute ACString defaultURL; */
  NS_IMETHOD GetDefaultURL(nsACString & aDefaultURL) = 0;
  NS_IMETHOD SetDefaultURL(const nsACString & aDefaultURL) = 0;

  /* readonly attribute bool overridden; */
  NS_IMETHOD GetOverridden(bool *aOverridden) = 0;

  /* readonly attribute bool activityStreamEnabled; */
  NS_IMETHOD GetActivityStreamEnabled(bool *aActivityStreamEnabled) = 0;

  /* readonly attribute ACString activityStreamURL; */
  NS_IMETHOD GetActivityStreamURL(nsACString & aActivityStreamURL) = 0;

  /* void resetNewTabURL (); */
  NS_IMETHOD ResetNewTabURL(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAboutNewTabService, NS_IABOUTNEWTABSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIABOUTNEWTABSERVICE \
  NS_IMETHOD GetNewTabURL(nsACString & aNewTabURL) override; \
  NS_IMETHOD SetNewTabURL(const nsACString & aNewTabURL) override; \
  NS_IMETHOD GetDefaultURL(nsACString & aDefaultURL) override; \
  NS_IMETHOD SetDefaultURL(const nsACString & aDefaultURL) override; \
  NS_IMETHOD GetOverridden(bool *aOverridden) override; \
  NS_IMETHOD GetActivityStreamEnabled(bool *aActivityStreamEnabled) override; \
  NS_IMETHOD GetActivityStreamURL(nsACString & aActivityStreamURL) override; \
  NS_IMETHOD ResetNewTabURL(void) 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_NSIABOUTNEWTABSERVICE \
  nsresult GetNewTabURL(nsACString & aNewTabURL); \
  nsresult SetNewTabURL(const nsACString & aNewTabURL); \
  nsresult GetDefaultURL(nsACString & aDefaultURL); \
  nsresult SetDefaultURL(const nsACString & aDefaultURL); \
  nsresult GetOverridden(bool *aOverridden); \
  nsresult GetActivityStreamEnabled(bool *aActivityStreamEnabled); \
  nsresult GetActivityStreamURL(nsACString & aActivityStreamURL); \
  nsresult ResetNewTabURL(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIABOUTNEWTABSERVICE(_to) \
  NS_IMETHOD GetNewTabURL(nsACString & aNewTabURL) override { return _to GetNewTabURL(aNewTabURL); } \
  NS_IMETHOD SetNewTabURL(const nsACString & aNewTabURL) override { return _to SetNewTabURL(aNewTabURL); } \
  NS_IMETHOD GetDefaultURL(nsACString & aDefaultURL) override { return _to GetDefaultURL(aDefaultURL); } \
  NS_IMETHOD SetDefaultURL(const nsACString & aDefaultURL) override { return _to SetDefaultURL(aDefaultURL); } \
  NS_IMETHOD GetOverridden(bool *aOverridden) override { return _to GetOverridden(aOverridden); } \
  NS_IMETHOD GetActivityStreamEnabled(bool *aActivityStreamEnabled) override { return _to GetActivityStreamEnabled(aActivityStreamEnabled); } \
  NS_IMETHOD GetActivityStreamURL(nsACString & aActivityStreamURL) override { return _to GetActivityStreamURL(aActivityStreamURL); } \
  NS_IMETHOD ResetNewTabURL(void) override { return _to ResetNewTabURL(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIABOUTNEWTABSERVICE(_to) \
  NS_IMETHOD GetNewTabURL(nsACString & aNewTabURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewTabURL(aNewTabURL); } \
  NS_IMETHOD SetNewTabURL(const nsACString & aNewTabURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNewTabURL(aNewTabURL); } \
  NS_IMETHOD GetDefaultURL(nsACString & aDefaultURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultURL(aDefaultURL); } \
  NS_IMETHOD SetDefaultURL(const nsACString & aDefaultURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultURL(aDefaultURL); } \
  NS_IMETHOD GetOverridden(bool *aOverridden) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOverridden(aOverridden); } \
  NS_IMETHOD GetActivityStreamEnabled(bool *aActivityStreamEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActivityStreamEnabled(aActivityStreamEnabled); } \
  NS_IMETHOD GetActivityStreamURL(nsACString & aActivityStreamURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActivityStreamURL(aActivityStreamURL); } \
  NS_IMETHOD ResetNewTabURL(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetNewTabURL(); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsAboutNewTabService : public nsIAboutNewTabService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIABOUTNEWTABSERVICE

  nsAboutNewTabService();

private:
  ~nsAboutNewTabService();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsAboutNewTabService, nsIAboutNewTabService)

nsAboutNewTabService::nsAboutNewTabService()
{
  /* member initializers and constructor code */
}

nsAboutNewTabService::~nsAboutNewTabService()
{
  /* destructor code */
}

/* attribute ACString newTabURL; */
NS_IMETHODIMP nsAboutNewTabService::GetNewTabURL(nsACString & aNewTabURL)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAboutNewTabService::SetNewTabURL(const nsACString & aNewTabURL)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute ACString defaultURL; */
NS_IMETHODIMP nsAboutNewTabService::GetDefaultURL(nsACString & aDefaultURL)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAboutNewTabService::SetDefaultURL(const nsACString & aDefaultURL)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute bool overridden; */
NS_IMETHODIMP nsAboutNewTabService::GetOverridden(bool *aOverridden)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute bool activityStreamEnabled; */
NS_IMETHODIMP nsAboutNewTabService::GetActivityStreamEnabled(bool *aActivityStreamEnabled)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute ACString activityStreamURL; */
NS_IMETHODIMP nsAboutNewTabService::GetActivityStreamURL(nsACString & aActivityStreamURL)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void resetNewTabURL (); */
NS_IMETHODIMP nsAboutNewTabService::ResetNewTabURL()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIAboutNewTabService_h__ */