/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. #ifndef __gen_nsIWebBrowserChromeFocus_h__
  5. #define __gen_nsIWebBrowserChromeFocus_h__
  6. #ifndef __gen_nsISupports_h__
  7. #include "nsISupports.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsIWebBrowserChromeFocus */
  14. #define NS_IWEBBROWSERCHROMEFOCUS_IID_STR "d2206418-1dd1-11b2-8e55-acddcd2bcfb8"
  15. #define NS_IWEBBROWSERCHROMEFOCUS_IID \
  16. {0xd2206418, 0x1dd1, 0x11b2, \
  17. { 0x8e, 0x55, 0xac, 0xdd, 0xcd, 0x2b, 0xcf, 0xb8 }}
  18. /**
  19. * The nsIWebBrowserChromeFocus is implemented by the same object as the
  20. * nsIEmbeddingSiteWindow. It represents the focus up-calls from mozilla
  21. * to the embedding chrome. See mozilla bug #70224 for gratuitous info.
  22. *
  23. * @status FROZEN
  24. */
  25. class NS_NO_VTABLE NS_SCRIPTABLE nsIWebBrowserChromeFocus : public nsISupports {
  26. public:
  27. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBBROWSERCHROMEFOCUS_IID)
  28. /**
  29. * Set the focus at the next focusable element in the chrome.
  30. */
  31. /* void focusNextElement (); */
  32. NS_SCRIPTABLE NS_IMETHOD FocusNextElement(void) = 0;
  33. /**
  34. * Set the focus at the previous focusable element in the chrome.
  35. */
  36. /* void focusPrevElement (); */
  37. NS_SCRIPTABLE NS_IMETHOD FocusPrevElement(void) = 0;
  38. };
  39. NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebBrowserChromeFocus, NS_IWEBBROWSERCHROMEFOCUS_IID)
  40. /* Use this macro when declaring classes that implement this interface. */
  41. #define NS_DECL_NSIWEBBROWSERCHROMEFOCUS \
  42. NS_SCRIPTABLE NS_IMETHOD FocusNextElement(void); \
  43. NS_SCRIPTABLE NS_IMETHOD FocusPrevElement(void);
  44. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  45. #define NS_FORWARD_NSIWEBBROWSERCHROMEFOCUS(_to) \
  46. NS_SCRIPTABLE NS_IMETHOD FocusNextElement(void) { return _to FocusNextElement(); } \
  47. NS_SCRIPTABLE NS_IMETHOD FocusPrevElement(void) { return _to FocusPrevElement(); }
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  49. #define NS_FORWARD_SAFE_NSIWEBBROWSERCHROMEFOCUS(_to) \
  50. NS_SCRIPTABLE NS_IMETHOD FocusNextElement(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->FocusNextElement(); } \
  51. NS_SCRIPTABLE NS_IMETHOD FocusPrevElement(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->FocusPrevElement(); }
  52. #if 0
  53. /* Use the code below as a template for the implementation class for this interface. */
  54. /* Header file */
  55. class nsWebBrowserChromeFocus : public nsIWebBrowserChromeFocus
  56. {
  57. public:
  58. NS_DECL_ISUPPORTS
  59. NS_DECL_NSIWEBBROWSERCHROMEFOCUS
  60. nsWebBrowserChromeFocus();
  61. private:
  62. ~nsWebBrowserChromeFocus();
  63. protected:
  64. /* additional members */
  65. };
  66. /* Implementation file */
  67. NS_IMPL_ISUPPORTS1(nsWebBrowserChromeFocus, nsIWebBrowserChromeFocus)
  68. nsWebBrowserChromeFocus::nsWebBrowserChromeFocus()
  69. {
  70. /* member initializers and constructor code */
  71. }
  72. nsWebBrowserChromeFocus::~nsWebBrowserChromeFocus()
  73. {
  74. /* destructor code */
  75. }
  76. /* void focusNextElement (); */
  77. NS_IMETHODIMP nsWebBrowserChromeFocus::FocusNextElement()
  78. {
  79. return NS_ERROR_NOT_IMPLEMENTED;
  80. }
  81. /* void focusPrevElement (); */
  82. NS_IMETHODIMP nsWebBrowserChromeFocus::FocusPrevElement()
  83. {
  84. return NS_ERROR_NOT_IMPLEMENTED;
  85. }
  86. /* End of implementation class template. */
  87. #endif
  88. #endif /* __gen_nsIWebBrowserChromeFocus_h__ */