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 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 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/comm-central/toolkit/components/autocomplete/nsIAutoCompleteController.idl
 */

#ifndef __gen_nsIAutoCompleteController_h__
#define __gen_nsIAutoCompleteController_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.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
class nsIAutoCompleteInput; /* forward declaration */

namespace mozilla {
namespace dom {
class Event; /* webidl Event */
} // namespace dom
} // namespace mozilla


/* starting interface:    nsIAutoCompleteController */
#define NS_IAUTOCOMPLETECONTROLLER_IID_STR "ff9f8465-204a-47a6-b3c9-0628b3856684"

#define NS_IAUTOCOMPLETECONTROLLER_IID \
  {0xff9f8465, 0x204a, 0x47a6, \
    { 0xb3, 0xc9, 0x06, 0x28, 0xb3, 0x85, 0x66, 0x84 }}

class NS_NO_VTABLE nsIAutoCompleteController : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETECONTROLLER_IID)

  enum {
    STATUS_NONE = 1U,
    STATUS_SEARCHING = 2U,
    STATUS_COMPLETE_NO_MATCH = 3U,
    STATUS_COMPLETE_MATCH = 4U
  };

  /* attribute nsIAutoCompleteInput input; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetInput(nsIAutoCompleteInput **aInput) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetInput(nsIAutoCompleteInput *aInput) = 0;

  /* readonly attribute unsigned short searchStatus; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSearchStatus(uint16_t *aSearchStatus) = 0;

  /* readonly attribute unsigned long matchCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMatchCount(uint32_t *aMatchCount) = 0;

  /* void startSearch (in AString searchString); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StartSearch(const nsAString& searchString) = 0;

  /* void stopSearch (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StopSearch(void) = 0;

  /* boolean handleText (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HandleText(bool *_retval) = 0;

  /* boolean handleEnter (in boolean aIsPopupSelection, [optional] in Event aEvent); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HandleEnter(bool aIsPopupSelection, mozilla::dom::Event *aEvent, bool *_retval) = 0;

  /* boolean handleEscape (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HandleEscape(bool *_retval) = 0;

  /* void handleStartComposition (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HandleStartComposition(void) = 0;

  /* void handleEndComposition (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HandleEndComposition(void) = 0;

  /* void handleTab (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HandleTab(void) = 0;

  /* boolean handleKeyNavigation (in unsigned long key); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HandleKeyNavigation(uint32_t key, bool *_retval) = 0;

  /* boolean handleDelete (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HandleDelete(bool *_retval) = 0;

  /* AString getValueAt (in long index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetValueAt(int32_t index, nsAString& _retval) = 0;

  /* AString getLabelAt (in long index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLabelAt(int32_t index, nsAString& _retval) = 0;

  /* AString getCommentAt (in long index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCommentAt(int32_t index, nsAString& _retval) = 0;

  /* AString getStyleAt (in long index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStyleAt(int32_t index, nsAString& _retval) = 0;

  /* AString getImageAt (in long index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetImageAt(int32_t index, nsAString& _retval) = 0;

  /* AString getFinalCompleteValueAt (in long index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFinalCompleteValueAt(int32_t index, nsAString& _retval) = 0;

  /* attribute AString searchString; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSearchString(nsAString& aSearchString) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSearchString(const nsAString& aSearchString) = 0;

  /* void setInitiallySelectedIndex (in long index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetInitiallySelectedIndex(int32_t index) = 0;

  /* void resetInternalState (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ResetInternalState(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteController, NS_IAUTOCOMPLETECONTROLLER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIAUTOCOMPLETECONTROLLER \
  NS_IMETHOD GetInput(nsIAutoCompleteInput **aInput) override; \
  NS_IMETHOD SetInput(nsIAutoCompleteInput *aInput) override; \
  NS_IMETHOD GetSearchStatus(uint16_t *aSearchStatus) override; \
  NS_IMETHOD GetMatchCount(uint32_t *aMatchCount) override; \
  NS_IMETHOD StartSearch(const nsAString& searchString) override; \
  NS_IMETHOD StopSearch(void) override; \
  NS_IMETHOD HandleText(bool *_retval) override; \
  NS_IMETHOD HandleEnter(bool aIsPopupSelection, mozilla::dom::Event *aEvent, bool *_retval) override; \
  NS_IMETHOD HandleEscape(bool *_retval) override; \
  NS_IMETHOD HandleStartComposition(void) override; \
  NS_IMETHOD HandleEndComposition(void) override; \
  NS_IMETHOD HandleTab(void) override; \
  NS_IMETHOD HandleKeyNavigation(uint32_t key, bool *_retval) override; \
  NS_IMETHOD HandleDelete(bool *_retval) override; \
  NS_IMETHOD GetValueAt(int32_t index, nsAString& _retval) override; \
  NS_IMETHOD GetLabelAt(int32_t index, nsAString& _retval) override; \
  NS_IMETHOD GetCommentAt(int32_t index, nsAString& _retval) override; \
  NS_IMETHOD GetStyleAt(int32_t index, nsAString& _retval) override; \
  NS_IMETHOD GetImageAt(int32_t index, nsAString& _retval) override; \
  NS_IMETHOD GetFinalCompleteValueAt(int32_t index, nsAString& _retval) override; \
  NS_IMETHOD GetSearchString(nsAString& aSearchString) override; \
  NS_IMETHOD SetSearchString(const nsAString& aSearchString) override; \
  NS_IMETHOD SetInitiallySelectedIndex(int32_t index) override; \
  NS_IMETHOD ResetInternalState(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_NSIAUTOCOMPLETECONTROLLER \
  nsresult GetInput(nsIAutoCompleteInput **aInput); \
  nsresult SetInput(nsIAutoCompleteInput *aInput); \
  nsresult GetSearchStatus(uint16_t *aSearchStatus); \
  nsresult GetMatchCount(uint32_t *aMatchCount); \
  nsresult StartSearch(const nsAString& searchString); \
  nsresult StopSearch(void); \
  nsresult HandleText(bool *_retval); \
  nsresult HandleEnter(bool aIsPopupSelection, mozilla::dom::Event *aEvent, bool *_retval); \
  nsresult HandleEscape(bool *_retval); \
  nsresult HandleStartComposition(void); \
  nsresult HandleEndComposition(void); \
  nsresult HandleTab(void); \
  nsresult HandleKeyNavigation(uint32_t key, bool *_retval); \
  nsresult HandleDelete(bool *_retval); \
  nsresult GetValueAt(int32_t index, nsAString& _retval); \
  nsresult GetLabelAt(int32_t index, nsAString& _retval); \
  nsresult GetCommentAt(int32_t index, nsAString& _retval); \
  nsresult GetStyleAt(int32_t index, nsAString& _retval); \
  nsresult GetImageAt(int32_t index, nsAString& _retval); \
  nsresult GetFinalCompleteValueAt(int32_t index, nsAString& _retval); \
  nsresult GetSearchString(nsAString& aSearchString); \
  nsresult SetSearchString(const nsAString& aSearchString); \
  nsresult SetInitiallySelectedIndex(int32_t index); \
  nsresult ResetInternalState(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIAUTOCOMPLETECONTROLLER(_to) \
  NS_IMETHOD GetInput(nsIAutoCompleteInput **aInput) override { return _to GetInput(aInput); } \
  NS_IMETHOD SetInput(nsIAutoCompleteInput *aInput) override { return _to SetInput(aInput); } \
  NS_IMETHOD GetSearchStatus(uint16_t *aSearchStatus) override { return _to GetSearchStatus(aSearchStatus); } \
  NS_IMETHOD GetMatchCount(uint32_t *aMatchCount) override { return _to GetMatchCount(aMatchCount); } \
  NS_IMETHOD StartSearch(const nsAString& searchString) override { return _to StartSearch(searchString); } \
  NS_IMETHOD StopSearch(void) override { return _to StopSearch(); } \
  NS_IMETHOD HandleText(bool *_retval) override { return _to HandleText(_retval); } \
  NS_IMETHOD HandleEnter(bool aIsPopupSelection, mozilla::dom::Event *aEvent, bool *_retval) override { return _to HandleEnter(aIsPopupSelection, aEvent, _retval); } \
  NS_IMETHOD HandleEscape(bool *_retval) override { return _to HandleEscape(_retval); } \
  NS_IMETHOD HandleStartComposition(void) override { return _to HandleStartComposition(); } \
  NS_IMETHOD HandleEndComposition(void) override { return _to HandleEndComposition(); } \
  NS_IMETHOD HandleTab(void) override { return _to HandleTab(); } \
  NS_IMETHOD HandleKeyNavigation(uint32_t key, bool *_retval) override { return _to HandleKeyNavigation(key, _retval); } \
  NS_IMETHOD HandleDelete(bool *_retval) override { return _to HandleDelete(_retval); } \
  NS_IMETHOD GetValueAt(int32_t index, nsAString& _retval) override { return _to GetValueAt(index, _retval); } \
  NS_IMETHOD GetLabelAt(int32_t index, nsAString& _retval) override { return _to GetLabelAt(index, _retval); } \
  NS_IMETHOD GetCommentAt(int32_t index, nsAString& _retval) override { return _to GetCommentAt(index, _retval); } \
  NS_IMETHOD GetStyleAt(int32_t index, nsAString& _retval) override { return _to GetStyleAt(index, _retval); } \
  NS_IMETHOD GetImageAt(int32_t index, nsAString& _retval) override { return _to GetImageAt(index, _retval); } \
  NS_IMETHOD GetFinalCompleteValueAt(int32_t index, nsAString& _retval) override { return _to GetFinalCompleteValueAt(index, _retval); } \
  NS_IMETHOD GetSearchString(nsAString& aSearchString) override { return _to GetSearchString(aSearchString); } \
  NS_IMETHOD SetSearchString(const nsAString& aSearchString) override { return _to SetSearchString(aSearchString); } \
  NS_IMETHOD SetInitiallySelectedIndex(int32_t index) override { return _to SetInitiallySelectedIndex(index); } \
  NS_IMETHOD ResetInternalState(void) override { return _to ResetInternalState(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIAUTOCOMPLETECONTROLLER(_to) \
  NS_IMETHOD GetInput(nsIAutoCompleteInput **aInput) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInput(aInput); } \
  NS_IMETHOD SetInput(nsIAutoCompleteInput *aInput) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInput(aInput); } \
  NS_IMETHOD GetSearchStatus(uint16_t *aSearchStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchStatus(aSearchStatus); } \
  NS_IMETHOD GetMatchCount(uint32_t *aMatchCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatchCount(aMatchCount); } \
  NS_IMETHOD StartSearch(const nsAString& searchString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartSearch(searchString); } \
  NS_IMETHOD StopSearch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopSearch(); } \
  NS_IMETHOD HandleText(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleText(_retval); } \
  NS_IMETHOD HandleEnter(bool aIsPopupSelection, mozilla::dom::Event *aEvent, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEnter(aIsPopupSelection, aEvent, _retval); } \
  NS_IMETHOD HandleEscape(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEscape(_retval); } \
  NS_IMETHOD HandleStartComposition(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleStartComposition(); } \
  NS_IMETHOD HandleEndComposition(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEndComposition(); } \
  NS_IMETHOD HandleTab(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleTab(); } \
  NS_IMETHOD HandleKeyNavigation(uint32_t key, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleKeyNavigation(key, _retval); } \
  NS_IMETHOD HandleDelete(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleDelete(_retval); } \
  NS_IMETHOD GetValueAt(int32_t index, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueAt(index, _retval); } \
  NS_IMETHOD GetLabelAt(int32_t index, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLabelAt(index, _retval); } \
  NS_IMETHOD GetCommentAt(int32_t index, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommentAt(index, _retval); } \
  NS_IMETHOD GetStyleAt(int32_t index, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStyleAt(index, _retval); } \
  NS_IMETHOD GetImageAt(int32_t index, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageAt(index, _retval); } \
  NS_IMETHOD GetFinalCompleteValueAt(int32_t index, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFinalCompleteValueAt(index, _retval); } \
  NS_IMETHOD GetSearchString(nsAString& aSearchString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchString(aSearchString); } \
  NS_IMETHOD SetSearchString(const nsAString& aSearchString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchString(aSearchString); } \
  NS_IMETHOD SetInitiallySelectedIndex(int32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInitiallySelectedIndex(index); } \
  NS_IMETHOD ResetInternalState(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetInternalState(); } 


#endif /* __gen_nsIAutoCompleteController_h__ */