PageRenderTime 202ms CodeModel.GetById 100ms app.highlight 3ms RepoModel.GetById 78ms app.codeStats 0ms

/gecko_api/include/nsIWebBrowserChromeFocus.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 116 lines | 56 code | 28 blank | 32 comment | 0 complexity | 6d6116b6507ea7ba82a2c88e7c2f5890 MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/embedding/browser/webBrowser/nsIWebBrowserChromeFocus.idl
  3 */
  4
  5#ifndef __gen_nsIWebBrowserChromeFocus_h__
  6#define __gen_nsIWebBrowserChromeFocus_h__
  7
  8
  9#ifndef __gen_nsISupports_h__
 10#include "nsISupports.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:    nsIWebBrowserChromeFocus */
 19#define NS_IWEBBROWSERCHROMEFOCUS_IID_STR "d2206418-1dd1-11b2-8e55-acddcd2bcfb8"
 20
 21#define NS_IWEBBROWSERCHROMEFOCUS_IID \
 22  {0xd2206418, 0x1dd1, 0x11b2, \
 23    { 0x8e, 0x55, 0xac, 0xdd, 0xcd, 0x2b, 0xcf, 0xb8 }}
 24
 25/**
 26 * The nsIWebBrowserChromeFocus is implemented by the same object as the
 27 * nsIEmbeddingSiteWindow. It represents the focus up-calls from mozilla
 28 * to the embedding chrome. See mozilla bug #70224 for gratuitous info.
 29 *
 30 * @status FROZEN
 31 */
 32class NS_NO_VTABLE NS_SCRIPTABLE nsIWebBrowserChromeFocus : public nsISupports {
 33 public: 
 34
 35  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBBROWSERCHROMEFOCUS_IID)
 36
 37  /**
 38     * Set the focus at the next focusable element in the chrome.
 39     */
 40  /* void focusNextElement (); */
 41  NS_SCRIPTABLE NS_IMETHOD FocusNextElement(void) = 0;
 42
 43  /**
 44     * Set the focus at the previous focusable element in the chrome.
 45     */
 46  /* void focusPrevElement (); */
 47  NS_SCRIPTABLE NS_IMETHOD FocusPrevElement(void) = 0;
 48
 49};
 50
 51  NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebBrowserChromeFocus, NS_IWEBBROWSERCHROMEFOCUS_IID)
 52
 53/* Use this macro when declaring classes that implement this interface. */
 54#define NS_DECL_NSIWEBBROWSERCHROMEFOCUS \
 55  NS_SCRIPTABLE NS_IMETHOD FocusNextElement(void); \
 56  NS_SCRIPTABLE NS_IMETHOD FocusPrevElement(void); 
 57
 58/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 59#define NS_FORWARD_NSIWEBBROWSERCHROMEFOCUS(_to) \
 60  NS_SCRIPTABLE NS_IMETHOD FocusNextElement(void) { return _to FocusNextElement(); } \
 61  NS_SCRIPTABLE NS_IMETHOD FocusPrevElement(void) { return _to FocusPrevElement(); } 
 62
 63/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 64#define NS_FORWARD_SAFE_NSIWEBBROWSERCHROMEFOCUS(_to) \
 65  NS_SCRIPTABLE NS_IMETHOD FocusNextElement(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->FocusNextElement(); } \
 66  NS_SCRIPTABLE NS_IMETHOD FocusPrevElement(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->FocusPrevElement(); } 
 67
 68#if 0
 69/* Use the code below as a template for the implementation class for this interface. */
 70
 71/* Header file */
 72class nsWebBrowserChromeFocus : public nsIWebBrowserChromeFocus
 73{
 74public:
 75  NS_DECL_ISUPPORTS
 76  NS_DECL_NSIWEBBROWSERCHROMEFOCUS
 77
 78  nsWebBrowserChromeFocus();
 79
 80private:
 81  ~nsWebBrowserChromeFocus();
 82
 83protected:
 84  /* additional members */
 85};
 86
 87/* Implementation file */
 88NS_IMPL_ISUPPORTS1(nsWebBrowserChromeFocus, nsIWebBrowserChromeFocus)
 89
 90nsWebBrowserChromeFocus::nsWebBrowserChromeFocus()
 91{
 92  /* member initializers and constructor code */
 93}
 94
 95nsWebBrowserChromeFocus::~nsWebBrowserChromeFocus()
 96{
 97  /* destructor code */
 98}
 99
100/* void focusNextElement (); */
101NS_IMETHODIMP nsWebBrowserChromeFocus::FocusNextElement()
102{
103    return NS_ERROR_NOT_IMPLEMENTED;
104}
105
106/* void focusPrevElement (); */
107NS_IMETHODIMP nsWebBrowserChromeFocus::FocusPrevElement()
108{
109    return NS_ERROR_NOT_IMPLEMENTED;
110}
111
112/* End of implementation class template. */
113#endif
114
115
116#endif /* __gen_nsIWebBrowserChromeFocus_h__ */