nsIWebBrowserChromeFocus.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/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 nsIWebBrowserChromeFocus : public nsISupports {
  26. public:
  27. NS_DEFINE_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_IMETHOD FocusNextElement(void) = 0;
  33. /**
  34. * Set the focus at the previous focusable element in the chrome.
  35. */
  36. /* void focusPrevElement (); */
  37. NS_IMETHOD FocusPrevElement(void) = 0;
  38. };
  39. /* Use this macro when declaring classes that implement this interface. */
  40. #define NS_DECL_NSIWEBBROWSERCHROMEFOCUS \
  41. NS_IMETHOD FocusNextElement(void); \
  42. NS_IMETHOD FocusPrevElement(void);
  43. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  44. #define NS_FORWARD_NSIWEBBROWSERCHROMEFOCUS(_to) \
  45. NS_IMETHOD FocusNextElement(void) { return _to FocusNextElement(); } \
  46. NS_IMETHOD FocusPrevElement(void) { return _to FocusPrevElement(); }
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  48. #define NS_FORWARD_SAFE_NSIWEBBROWSERCHROMEFOCUS(_to) \
  49. NS_IMETHOD FocusNextElement(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->FocusNextElement(); } \
  50. NS_IMETHOD FocusPrevElement(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->FocusPrevElement(); }
  51. #if 0
  52. /* Use the code below as a template for the implementation class for this interface. */
  53. /* Header file */
  54. class nsWebBrowserChromeFocus : public nsIWebBrowserChromeFocus
  55. {
  56. public:
  57. NS_DECL_ISUPPORTS
  58. NS_DECL_NSIWEBBROWSERCHROMEFOCUS
  59. nsWebBrowserChromeFocus();
  60. private:
  61. ~nsWebBrowserChromeFocus();
  62. protected:
  63. /* additional members */
  64. };
  65. /* Implementation file */
  66. NS_IMPL_ISUPPORTS1(nsWebBrowserChromeFocus, nsIWebBrowserChromeFocus)
  67. nsWebBrowserChromeFocus::nsWebBrowserChromeFocus()
  68. {
  69. /* member initializers and constructor code */
  70. }
  71. nsWebBrowserChromeFocus::~nsWebBrowserChromeFocus()
  72. {
  73. /* destructor code */
  74. }
  75. /* void focusNextElement (); */
  76. NS_IMETHODIMP nsWebBrowserChromeFocus::FocusNextElement()
  77. {
  78. return NS_ERROR_NOT_IMPLEMENTED;
  79. }
  80. /* void focusPrevElement (); */
  81. NS_IMETHODIMP nsWebBrowserChromeFocus::FocusPrevElement()
  82. {
  83. return NS_ERROR_NOT_IMPLEMENTED;
  84. }
  85. /* End of implementation class template. */
  86. #endif
  87. #endif /* __gen_nsIWebBrowserChromeFocus_h__ */