PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 3ms RepoModel.GetById 38ms app.codeStats 0ms

/gecko_api/include/nsIDOMAbstractView.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 100 lines | 48 code | 26 blank | 26 comment | 0 complexity | f26906a19b942b9d6b09b7b88ac565f1 MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/dom/public/idl/views/nsIDOMAbstractView.idl
  3 */
  4
  5#ifndef __gen_nsIDOMAbstractView_h__
  6#define __gen_nsIDOMAbstractView_h__
  7
  8
  9#ifndef __gen_domstubs_h__
 10#include "domstubs.h"
 11#endif
 12
 13/* For IDL files that don't want to include root IDL files. */
 14#ifndef NS_NO_VTABLE
 15#define NS_NO_VTABLE
 16#endif
 17
 18/* starting interface:    nsIDOMAbstractView */
 19#define NS_IDOMABSTRACTVIEW_IID_STR "f51ebade-8b1a-11d3-aae7-0010830123b4"
 20
 21#define NS_IDOMABSTRACTVIEW_IID \
 22  {0xf51ebade, 0x8b1a, 0x11d3, \
 23    { 0xaa, 0xe7, 0x00, 0x10, 0x83, 0x01, 0x23, 0xb4 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMAbstractView : public nsISupports {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMABSTRACTVIEW_IID)
 29
 30  /**
 31 * The nsIDOMAbstractView interface is a datatype for a view in the
 32 * Document Object Model.
 33 *
 34 * For more information on this interface please see
 35 * http://www.w3.org/TR/DOM-Level-2-Views
 36 *
 37 * @status FROZEN
 38 */
 39  /* readonly attribute nsIDOMDocumentView document; */
 40  NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocumentView * *aDocument) = 0;
 41
 42};
 43
 44  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMAbstractView, NS_IDOMABSTRACTVIEW_IID)
 45
 46/* Use this macro when declaring classes that implement this interface. */
 47#define NS_DECL_NSIDOMABSTRACTVIEW \
 48  NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocumentView * *aDocument); 
 49
 50/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 51#define NS_FORWARD_NSIDOMABSTRACTVIEW(_to) \
 52  NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocumentView * *aDocument) { return _to GetDocument(aDocument); } 
 53
 54/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 55#define NS_FORWARD_SAFE_NSIDOMABSTRACTVIEW(_to) \
 56  NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocumentView * *aDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocument(aDocument); } 
 57
 58#if 0
 59/* Use the code below as a template for the implementation class for this interface. */
 60
 61/* Header file */
 62class nsDOMAbstractView : public nsIDOMAbstractView
 63{
 64public:
 65  NS_DECL_ISUPPORTS
 66  NS_DECL_NSIDOMABSTRACTVIEW
 67
 68  nsDOMAbstractView();
 69
 70private:
 71  ~nsDOMAbstractView();
 72
 73protected:
 74  /* additional members */
 75};
 76
 77/* Implementation file */
 78NS_IMPL_ISUPPORTS1(nsDOMAbstractView, nsIDOMAbstractView)
 79
 80nsDOMAbstractView::nsDOMAbstractView()
 81{
 82  /* member initializers and constructor code */
 83}
 84
 85nsDOMAbstractView::~nsDOMAbstractView()
 86{
 87  /* destructor code */
 88}
 89
 90/* readonly attribute nsIDOMDocumentView document; */
 91NS_IMETHODIMP nsDOMAbstractView::GetDocument(nsIDOMDocumentView * *aDocument)
 92{
 93    return NS_ERROR_NOT_IMPLEMENTED;
 94}
 95
 96/* End of implementation class template. */
 97#endif
 98
 99
100#endif /* __gen_nsIDOMAbstractView_h__ */