summaryrefslogtreecommitdiffstats
path: root/dom/base/nsIContent.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /dom/base/nsIContent.h
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/base/nsIContent.h')
-rw-r--r--dom/base/nsIContent.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/dom/base/nsIContent.h b/dom/base/nsIContent.h
index 700855370f..e6fc8fc430 100644
--- a/dom/base/nsIContent.h
+++ b/dom/base/nsIContent.h
@@ -16,6 +16,7 @@ class nsTextFragment;
class nsIFrame;
namespace mozilla {
+enum class IsFocusableFlags : uint8_t;
class EventChainPreVisitor;
class HTMLEditor;
struct URLExtraData;
@@ -274,13 +275,14 @@ class nsIContent : public nsINode {
* some widgets may be focusable but removed from the tab order.
* @return whether the content is focusable via mouse, kbd or script.
*/
- virtual Focusable IsFocusableWithoutStyle(bool aWithMouse = false);
+ virtual Focusable IsFocusableWithoutStyle(
+ mozilla::IsFocusableFlags = mozilla::IsFocusableFlags(0));
// https://html.spec.whatwg.org/multipage/interaction.html#focus-delegate
- mozilla::dom::Element* GetFocusDelegate(bool aWithMouse) const;
+ mozilla::dom::Element* GetFocusDelegate(mozilla::IsFocusableFlags) const;
// https://html.spec.whatwg.org/multipage/interaction.html#autofocus-delegate
- mozilla::dom::Element* GetAutofocusDelegate(bool aWithMouse) const;
+ mozilla::dom::Element* GetAutofocusDelegate(mozilla::IsFocusableFlags) const;
/*
* Get desired IME state for the content.
@@ -753,21 +755,6 @@ class nsIContent : public nsINode {
virtual void DumpContent(FILE* out = stdout, int32_t aIndent = 0,
bool aDumpAll = true) const = 0;
#endif
-
- enum ETabFocusType {
- eTabFocus_textControlsMask =
- (1 << 0), // textboxes and lists always tabbable
- eTabFocus_formElementsMask = (1 << 1), // non-text form elements
- eTabFocus_linksMask = (1 << 2), // links
- eTabFocus_any = 1 + (1 << 1) + (1 << 2) // everything that can be focused
- };
-
- // Tab focus model bit field:
- static int32_t sTabFocusModel;
-
- // accessibility.tabfocus_applies_to_xul pref - if it is set to true,
- // the tabfocus bit field applies to xul elements.
- static bool sTabFocusModelAppliesToXUL;
};
NON_VIRTUAL_ADDREF_RELEASE(nsIContent)