This repository was archived by the owner on Jul 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +22
-4
lines changed Expand file tree Collapse file tree 3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,6 @@ struct NavigationUpdateCurrentEntryOptions;
20
20
struct NavigationReloadOptions ;
21
21
struct NavigationResult ;
22
22
23
- // See https://bugzilla.mozilla.org/show_bug.cgi?id=1903552.
24
- // https://html.spec.whatwg.org/multipage/browsing-the-web.html#user-navigation-involvement
25
- enum class UserNavigationInvolvement : uint8_t { BrowserUI, Activation, None };
26
-
27
23
class Navigation final : public DOMEventTargetHelper {
28
24
public:
29
25
NS_DECL_ISUPPORTS_INHERITED
Original file line number Diff line number Diff line change
1
+ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
+ /* vim: set ts=2 sts=2 et sw=2 tw=80: */
3
+ /* This Source Code Form is subject to the terms of the Mozilla Public
4
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
5
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
+
7
+ #ifndef mozilla_dom_UserNavigationInvolvement_h___
8
+ #define mozilla_dom_UserNavigationInvolvement_h___
9
+ #include < cstdint>
10
+ namespace mozilla ::dom {
11
+
12
+ // See https://bugzilla.mozilla.org/show_bug.cgi?id=1903552.
13
+ // https://html.spec.whatwg.org/#user-navigation-involvement
14
+ enum class UserNavigationInvolvement : uint8_t {
15
+ None = 0 ,
16
+ Activation = 1 ,
17
+ BrowserUI = 2
18
+ };
19
+ } // namespace mozilla::dom
20
+
21
+ #endif
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ EXPORTS.mozilla.dom += [
13
13
"NavigationDestination.h" ,
14
14
"NavigationHistoryEntry.h" ,
15
15
"NavigationTransition.h" ,
16
+ "UserNavigationInvolvement.h" ,
16
17
]
17
18
18
19
UNIFIED_SOURCES += [
You can’t perform that action at this time.
0 commit comments