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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/dom/interfaces/xul/nsIDOMXULSelectCntrlEl.idl
 */

#ifndef __gen_nsIDOMXULSelectCntrlEl_h__
#define __gen_nsIDOMXULSelectCntrlEl_h__


#ifndef __gen_nsIDOMXULControlElement_h__
#include "nsIDOMXULControlElement.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 nsIDOMXULSelectControlItemElement; /* forward declaration */


/* starting interface:    nsIDOMXULSelectControlElement */
#define NS_IDOMXULSELECTCONTROLELEMENT_IID_STR "9bf188a7-d6f9-431b-b5c7-118013998e8b"

#define NS_IDOMXULSELECTCONTROLELEMENT_IID \
  {0x9bf188a7, 0xd6f9, 0x431b, \
    { 0xb5, 0xc7, 0x11, 0x80, 0x13, 0x99, 0x8e, 0x8b }}

class NS_NO_VTABLE nsIDOMXULSelectControlElement : public nsIDOMXULControlElement {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMXULSELECTCONTROLELEMENT_IID)

  /* attribute nsIDOMXULSelectControlItemElement selectedItem; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSelectedItem(nsIDOMXULSelectControlItemElement **aSelectedItem) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSelectedItem(nsIDOMXULSelectControlItemElement *aSelectedItem) = 0;

  /* attribute long selectedIndex; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSelectedIndex(int32_t *aSelectedIndex) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSelectedIndex(int32_t aSelectedIndex) = 0;

  /* attribute DOMString value; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetValue(nsAString& aValue) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetValue(const nsAString& aValue) = 0;

  /* readonly attribute unsigned long itemCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetItemCount(uint32_t *aItemCount) = 0;

  /* long getIndexOfItem (in nsIDOMXULSelectControlItemElement item); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIndexOfItem(nsIDOMXULSelectControlItemElement *item, int32_t *_retval) = 0;

  /* nsIDOMXULSelectControlItemElement getItemAtIndex (in long index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetItemAtIndex(int32_t index, nsIDOMXULSelectControlItemElement **_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMXULSelectControlElement, NS_IDOMXULSELECTCONTROLELEMENT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMXULSELECTCONTROLELEMENT \
  NS_IMETHOD GetSelectedItem(nsIDOMXULSelectControlItemElement **aSelectedItem) override; \
  NS_IMETHOD SetSelectedItem(nsIDOMXULSelectControlItemElement *aSelectedItem) override; \
  NS_IMETHOD GetSelectedIndex(int32_t *aSelectedIndex) override; \
  NS_IMETHOD SetSelectedIndex(int32_t aSelectedIndex) override; \
  NS_IMETHOD GetValue(nsAString& aValue) override; \
  NS_IMETHOD SetValue(const nsAString& aValue) override; \
  NS_IMETHOD GetItemCount(uint32_t *aItemCount) override; \
  NS_IMETHOD GetIndexOfItem(nsIDOMXULSelectControlItemElement *item, int32_t *_retval) override; \
  NS_IMETHOD GetItemAtIndex(int32_t index, nsIDOMXULSelectControlItemElement **_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_NSIDOMXULSELECTCONTROLELEMENT \
  nsresult GetSelectedItem(nsIDOMXULSelectControlItemElement **aSelectedItem); \
  nsresult SetSelectedItem(nsIDOMXULSelectControlItemElement *aSelectedItem); \
  nsresult GetSelectedIndex(int32_t *aSelectedIndex); \
  nsresult SetSelectedIndex(int32_t aSelectedIndex); \
  nsresult GetValue(nsAString& aValue); \
  nsresult SetValue(const nsAString& aValue); \
  nsresult GetItemCount(uint32_t *aItemCount); \
  nsresult GetIndexOfItem(nsIDOMXULSelectControlItemElement *item, int32_t *_retval); \
  nsresult GetItemAtIndex(int32_t index, nsIDOMXULSelectControlItemElement **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMXULSELECTCONTROLELEMENT(_to) \
  NS_IMETHOD GetSelectedItem(nsIDOMXULSelectControlItemElement **aSelectedItem) override { return _to GetSelectedItem(aSelectedItem); } \
  NS_IMETHOD SetSelectedItem(nsIDOMXULSelectControlItemElement *aSelectedItem) override { return _to SetSelectedItem(aSelectedItem); } \
  NS_IMETHOD GetSelectedIndex(int32_t *aSelectedIndex) override { return _to GetSelectedIndex(aSelectedIndex); } \
  NS_IMETHOD SetSelectedIndex(int32_t aSelectedIndex) override { return _to SetSelectedIndex(aSelectedIndex); } \
  NS_IMETHOD GetValue(nsAString& aValue) override { return _to GetValue(aValue); } \
  NS_IMETHOD SetValue(const nsAString& aValue) override { return _to SetValue(aValue); } \
  NS_IMETHOD GetItemCount(uint32_t *aItemCount) override { return _to GetItemCount(aItemCount); } \
  NS_IMETHOD GetIndexOfItem(nsIDOMXULSelectControlItemElement *item, int32_t *_retval) override { return _to GetIndexOfItem(item, _retval); } \
  NS_IMETHOD GetItemAtIndex(int32_t index, nsIDOMXULSelectControlItemElement **_retval) override { return _to GetItemAtIndex(index, _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_NSIDOMXULSELECTCONTROLELEMENT(_to) \
  NS_IMETHOD GetSelectedItem(nsIDOMXULSelectControlItemElement **aSelectedItem) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedItem(aSelectedItem); } \
  NS_IMETHOD SetSelectedItem(nsIDOMXULSelectControlItemElement *aSelectedItem) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectedItem(aSelectedItem); } \
  NS_IMETHOD GetSelectedIndex(int32_t *aSelectedIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedIndex(aSelectedIndex); } \
  NS_IMETHOD SetSelectedIndex(int32_t aSelectedIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectedIndex(aSelectedIndex); } \
  NS_IMETHOD GetValue(nsAString& aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  NS_IMETHOD SetValue(const nsAString& aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
  NS_IMETHOD GetItemCount(uint32_t *aItemCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItemCount(aItemCount); } \
  NS_IMETHOD GetIndexOfItem(nsIDOMXULSelectControlItemElement *item, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexOfItem(item, _retval); } \
  NS_IMETHOD GetItemAtIndex(int32_t index, nsIDOMXULSelectControlItemElement **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItemAtIndex(index, _retval); } 


#endif /* __gen_nsIDOMXULSelectCntrlEl_h__ */