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 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/dom/interfaces/base/nsIFocusManager.idl
 */

#ifndef __gen_nsIFocusManager_h__
#define __gen_nsIFocusManager_h__


#ifndef __gen_domstubs_h__
#include "domstubs.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 mozIDOMWindowProxy; /* forward declaration */

class nsIDocument; /* forward declaration */

namespace mozilla {
namespace dom {
class Element; /* webidl Element */
} // namespace dom
} // namespace mozilla


/* starting interface:    nsIFocusManager */
#define NS_IFOCUSMANAGER_IID_STR "86e1f1e1-365d-493b-b52a-a649f3f311dc"

#define NS_IFOCUSMANAGER_IID \
  {0x86e1f1e1, 0x365d, 0x493b, \
    { 0xb5, 0x2a, 0xa6, 0x49, 0xf3, 0xf3, 0x11, 0xdc }}

class NS_NO_VTABLE nsIFocusManager : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFOCUSMANAGER_IID)

  /* attribute mozIDOMWindowProxy activeWindow; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetActiveWindow(mozIDOMWindowProxy **aActiveWindow) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetActiveWindow(mozIDOMWindowProxy *aActiveWindow) = 0;

  /* attribute mozIDOMWindowProxy focusedWindow; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFocusedWindow(mozIDOMWindowProxy **aFocusedWindow) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFocusedWindow(mozIDOMWindowProxy *aFocusedWindow) = 0;

  /* readonly attribute Element focusedElement; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFocusedElement(mozilla::dom::Element **aFocusedElement) = 0;

  /* uint32_t getLastFocusMethod (in mozIDOMWindowProxy window); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLastFocusMethod(mozIDOMWindowProxy *window, uint32_t *_retval) = 0;

  /* void setFocus (in Element aElement, in unsigned long aFlags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFocus(mozilla::dom::Element *aElement, uint32_t aFlags) = 0;

  /* Element moveFocus (in mozIDOMWindowProxy aWindow, in Element aStartElement, in unsigned long aType, in unsigned long aFlags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MoveFocus(mozIDOMWindowProxy *aWindow, mozilla::dom::Element *aStartElement, uint32_t aType, uint32_t aFlags, mozilla::dom::Element **_retval) = 0;

  /* void clearFocus (in mozIDOMWindowProxy aWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ClearFocus(mozIDOMWindowProxy *aWindow) = 0;

  /* Element getFocusedElementForWindow (in mozIDOMWindowProxy aWindow, in boolean aDeep, out mozIDOMWindowProxy aFocusedWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFocusedElementForWindow(mozIDOMWindowProxy *aWindow, bool aDeep, mozIDOMWindowProxy **aFocusedWindow, mozilla::dom::Element **_retval) = 0;

  /* void moveCaretToFocus (in mozIDOMWindowProxy aWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MoveCaretToFocus(mozIDOMWindowProxy *aWindow) = 0;

  /* boolean elementIsFocusable (in Element aElement, in unsigned long aFlags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ElementIsFocusable(mozilla::dom::Element *aElement, uint32_t aFlags, bool *_retval) = 0;

  enum {
    FLAG_RAISE = 1U,
    FLAG_NOSCROLL = 2U,
    FLAG_NOSWITCHFRAME = 4U,
    FLAG_NOPARENTFRAME = 8U,
    FLAG_BYMOUSE = 4096U,
    FLAG_BYKEY = 8192U,
    FLAG_BYMOVEFOCUS = 16384U,
    FLAG_SHOWRING = 1048576U,
    FLAG_BYTOUCH = 2097152U,
    MOVEFOCUS_FORWARD = 1U,
    MOVEFOCUS_BACKWARD = 2U,
    MOVEFOCUS_FORWARDDOC = 3U,
    MOVEFOCUS_BACKWARDDOC = 4U,
    MOVEFOCUS_FIRST = 5U,
    MOVEFOCUS_LAST = 6U,
    MOVEFOCUS_ROOT = 7U,
    MOVEFOCUS_CARET = 8U,
    MOVEFOCUS_FIRSTDOC = 9U,
    MOVEFOCUS_LASTDOC = 10U
  };

  /* [noscript] void windowRaised (in mozIDOMWindowProxy aWindow); */
  NS_IMETHOD WindowRaised(mozIDOMWindowProxy *aWindow) = 0;

  /* [noscript] void windowLowered (in mozIDOMWindowProxy aWindow); */
  NS_IMETHOD WindowLowered(mozIDOMWindowProxy *aWindow) = 0;

  /* [noscript] void windowShown (in mozIDOMWindowProxy aWindow, in boolean aNeedsFocus); */
  NS_IMETHOD WindowShown(mozIDOMWindowProxy *aWindow, bool aNeedsFocus) = 0;

  /* [noscript] void windowHidden (in mozIDOMWindowProxy aWindow); */
  NS_IMETHOD WindowHidden(mozIDOMWindowProxy *aWindow) = 0;

  /* [noscript] void fireDelayedEvents (in nsIDocument aDocument); */
  NS_IMETHOD FireDelayedEvents(nsIDocument *aDocument) = 0;

  /* [noscript] void focusPlugin (in Element aPlugin); */
  NS_IMETHOD FocusPlugin(mozilla::dom::Element *aPlugin) = 0;

  /* [noscript] void parentActivated (in mozIDOMWindowProxy aWindow, in bool active); */
  NS_IMETHOD ParentActivated(mozIDOMWindowProxy *aWindow, bool active) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIFocusManager, NS_IFOCUSMANAGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFOCUSMANAGER \
  NS_IMETHOD GetActiveWindow(mozIDOMWindowProxy **aActiveWindow) override; \
  NS_IMETHOD SetActiveWindow(mozIDOMWindowProxy *aActiveWindow) override; \
  NS_IMETHOD GetFocusedWindow(mozIDOMWindowProxy **aFocusedWindow) override; \
  NS_IMETHOD SetFocusedWindow(mozIDOMWindowProxy *aFocusedWindow) override; \
  NS_IMETHOD GetFocusedElement(mozilla::dom::Element **aFocusedElement) override; \
  NS_IMETHOD GetLastFocusMethod(mozIDOMWindowProxy *window, uint32_t *_retval) override; \
  NS_IMETHOD SetFocus(mozilla::dom::Element *aElement, uint32_t aFlags) override; \
  NS_IMETHOD MoveFocus(mozIDOMWindowProxy *aWindow, mozilla::dom::Element *aStartElement, uint32_t aType, uint32_t aFlags, mozilla::dom::Element **_retval) override; \
  NS_IMETHOD ClearFocus(mozIDOMWindowProxy *aWindow) override; \
  NS_IMETHOD GetFocusedElementForWindow(mozIDOMWindowProxy *aWindow, bool aDeep, mozIDOMWindowProxy **aFocusedWindow, mozilla::dom::Element **_retval) override; \
  NS_IMETHOD MoveCaretToFocus(mozIDOMWindowProxy *aWindow) override; \
  NS_IMETHOD ElementIsFocusable(mozilla::dom::Element *aElement, uint32_t aFlags, bool *_retval) override; \
  NS_IMETHOD WindowRaised(mozIDOMWindowProxy *aWindow) override; \
  NS_IMETHOD WindowLowered(mozIDOMWindowProxy *aWindow) override; \
  NS_IMETHOD WindowShown(mozIDOMWindowProxy *aWindow, bool aNeedsFocus) override; \
  NS_IMETHOD WindowHidden(mozIDOMWindowProxy *aWindow) override; \
  NS_IMETHOD FireDelayedEvents(nsIDocument *aDocument) override; \
  NS_IMETHOD FocusPlugin(mozilla::dom::Element *aPlugin) override; \
  NS_IMETHOD ParentActivated(mozIDOMWindowProxy *aWindow, bool active) 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_NSIFOCUSMANAGER \
  nsresult GetActiveWindow(mozIDOMWindowProxy **aActiveWindow); \
  nsresult SetActiveWindow(mozIDOMWindowProxy *aActiveWindow); \
  nsresult GetFocusedWindow(mozIDOMWindowProxy **aFocusedWindow); \
  nsresult SetFocusedWindow(mozIDOMWindowProxy *aFocusedWindow); \
  nsresult GetFocusedElement(mozilla::dom::Element **aFocusedElement); \
  nsresult GetLastFocusMethod(mozIDOMWindowProxy *window, uint32_t *_retval); \
  nsresult SetFocus(mozilla::dom::Element *aElement, uint32_t aFlags); \
  nsresult MoveFocus(mozIDOMWindowProxy *aWindow, mozilla::dom::Element *aStartElement, uint32_t aType, uint32_t aFlags, mozilla::dom::Element **_retval); \
  nsresult ClearFocus(mozIDOMWindowProxy *aWindow); \
  nsresult GetFocusedElementForWindow(mozIDOMWindowProxy *aWindow, bool aDeep, mozIDOMWindowProxy **aFocusedWindow, mozilla::dom::Element **_retval); \
  nsresult MoveCaretToFocus(mozIDOMWindowProxy *aWindow); \
  nsresult ElementIsFocusable(mozilla::dom::Element *aElement, uint32_t aFlags, bool *_retval); \
  nsresult WindowRaised(mozIDOMWindowProxy *aWindow); \
  nsresult WindowLowered(mozIDOMWindowProxy *aWindow); \
  nsresult WindowShown(mozIDOMWindowProxy *aWindow, bool aNeedsFocus); \
  nsresult WindowHidden(mozIDOMWindowProxy *aWindow); \
  nsresult FireDelayedEvents(nsIDocument *aDocument); \
  nsresult FocusPlugin(mozilla::dom::Element *aPlugin); \
  nsresult ParentActivated(mozIDOMWindowProxy *aWindow, bool active); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFOCUSMANAGER(_to) \
  NS_IMETHOD GetActiveWindow(mozIDOMWindowProxy **aActiveWindow) override { return _to GetActiveWindow(aActiveWindow); } \
  NS_IMETHOD SetActiveWindow(mozIDOMWindowProxy *aActiveWindow) override { return _to SetActiveWindow(aActiveWindow); } \
  NS_IMETHOD GetFocusedWindow(mozIDOMWindowProxy **aFocusedWindow) override { return _to GetFocusedWindow(aFocusedWindow); } \
  NS_IMETHOD SetFocusedWindow(mozIDOMWindowProxy *aFocusedWindow) override { return _to SetFocusedWindow(aFocusedWindow); } \
  NS_IMETHOD GetFocusedElement(mozilla::dom::Element **aFocusedElement) override { return _to GetFocusedElement(aFocusedElement); } \
  NS_IMETHOD GetLastFocusMethod(mozIDOMWindowProxy *window, uint32_t *_retval) override { return _to GetLastFocusMethod(window, _retval); } \
  NS_IMETHOD SetFocus(mozilla::dom::Element *aElement, uint32_t aFlags) override { return _to SetFocus(aElement, aFlags); } \
  NS_IMETHOD MoveFocus(mozIDOMWindowProxy *aWindow, mozilla::dom::Element *aStartElement, uint32_t aType, uint32_t aFlags, mozilla::dom::Element **_retval) override { return _to MoveFocus(aWindow, aStartElement, aType, aFlags, _retval); } \
  NS_IMETHOD ClearFocus(mozIDOMWindowProxy *aWindow) override { return _to ClearFocus(aWindow); } \
  NS_IMETHOD GetFocusedElementForWindow(mozIDOMWindowProxy *aWindow, bool aDeep, mozIDOMWindowProxy **aFocusedWindow, mozilla::dom::Element **_retval) override { return _to GetFocusedElementForWindow(aWindow, aDeep, aFocusedWindow, _retval); } \
  NS_IMETHOD MoveCaretToFocus(mozIDOMWindowProxy *aWindow) override { return _to MoveCaretToFocus(aWindow); } \
  NS_IMETHOD ElementIsFocusable(mozilla::dom::Element *aElement, uint32_t aFlags, bool *_retval) override { return _to ElementIsFocusable(aElement, aFlags, _retval); } \
  NS_IMETHOD WindowRaised(mozIDOMWindowProxy *aWindow) override { return _to WindowRaised(aWindow); } \
  NS_IMETHOD WindowLowered(mozIDOMWindowProxy *aWindow) override { return _to WindowLowered(aWindow); } \
  NS_IMETHOD WindowShown(mozIDOMWindowProxy *aWindow, bool aNeedsFocus) override { return _to WindowShown(aWindow, aNeedsFocus); } \
  NS_IMETHOD WindowHidden(mozIDOMWindowProxy *aWindow) override { return _to WindowHidden(aWindow); } \
  NS_IMETHOD FireDelayedEvents(nsIDocument *aDocument) override { return _to FireDelayedEvents(aDocument); } \
  NS_IMETHOD FocusPlugin(mozilla::dom::Element *aPlugin) override { return _to FocusPlugin(aPlugin); } \
  NS_IMETHOD ParentActivated(mozIDOMWindowProxy *aWindow, bool active) override { return _to ParentActivated(aWindow, active); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFOCUSMANAGER(_to) \
  NS_IMETHOD GetActiveWindow(mozIDOMWindowProxy **aActiveWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveWindow(aActiveWindow); } \
  NS_IMETHOD SetActiveWindow(mozIDOMWindowProxy *aActiveWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetActiveWindow(aActiveWindow); } \
  NS_IMETHOD GetFocusedWindow(mozIDOMWindowProxy **aFocusedWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFocusedWindow(aFocusedWindow); } \
  NS_IMETHOD SetFocusedWindow(mozIDOMWindowProxy *aFocusedWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocusedWindow(aFocusedWindow); } \
  NS_IMETHOD GetFocusedElement(mozilla::dom::Element **aFocusedElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFocusedElement(aFocusedElement); } \
  NS_IMETHOD GetLastFocusMethod(mozIDOMWindowProxy *window, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastFocusMethod(window, _retval); } \
  NS_IMETHOD SetFocus(mozilla::dom::Element *aElement, uint32_t aFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocus(aElement, aFlags); } \
  NS_IMETHOD MoveFocus(mozIDOMWindowProxy *aWindow, mozilla::dom::Element *aStartElement, uint32_t aType, uint32_t aFlags, mozilla::dom::Element **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveFocus(aWindow, aStartElement, aType, aFlags, _retval); } \
  NS_IMETHOD ClearFocus(mozIDOMWindowProxy *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearFocus(aWindow); } \
  NS_IMETHOD GetFocusedElementForWindow(mozIDOMWindowProxy *aWindow, bool aDeep, mozIDOMWindowProxy **aFocusedWindow, mozilla::dom::Element **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFocusedElementForWindow(aWindow, aDeep, aFocusedWindow, _retval); } \
  NS_IMETHOD MoveCaretToFocus(mozIDOMWindowProxy *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveCaretToFocus(aWindow); } \
  NS_IMETHOD ElementIsFocusable(mozilla::dom::Element *aElement, uint32_t aFlags, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ElementIsFocusable(aElement, aFlags, _retval); } \
  NS_IMETHOD WindowRaised(mozIDOMWindowProxy *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WindowRaised(aWindow); } \
  NS_IMETHOD WindowLowered(mozIDOMWindowProxy *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WindowLowered(aWindow); } \
  NS_IMETHOD WindowShown(mozIDOMWindowProxy *aWindow, bool aNeedsFocus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WindowShown(aWindow, aNeedsFocus); } \
  NS_IMETHOD WindowHidden(mozIDOMWindowProxy *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WindowHidden(aWindow); } \
  NS_IMETHOD FireDelayedEvents(nsIDocument *aDocument) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FireDelayedEvents(aDocument); } \
  NS_IMETHOD FocusPlugin(mozilla::dom::Element *aPlugin) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FocusPlugin(aPlugin); } \
  NS_IMETHOD ParentActivated(mozIDOMWindowProxy *aWindow, bool active) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParentActivated(aWindow, active); } 


#endif /* __gen_nsIFocusManager_h__ */