Files
tubestation/dom/ipc/NavigationAPIIPCUtils.h
Jan-Niklas Jaeschke 70a6aebbb9 Bug 1942630, part 2 - Navigation API: Implement user navigation involvement in nsDocShellLoadState and nsILoadInfo. r=farre,necko-reviewers,kershaw
This patch introduces `UserNavigationInvolvement`
as an IPDL type, and adds the user navigation
involvement flag to `nsDocShellLoadState` and
`nsILoadInfo`.

Differential Revision: https://phabricator.services.mozilla.com/D234851
2025-01-21 09:19:56 +00:00

21 lines
846 B
C++

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef mozilla_dom_navigation_api_ipc_utils_h__
#define mozilla_dom_navigation_api_ipc_utils_h__
#include "ipc/EnumSerializer.h"
#include "mozilla/dom/UserNavigationInvolvement.h"
namespace IPC {
template <>
struct ParamTraits<mozilla::dom::UserNavigationInvolvement>
: public ContiguousEnumSerializerInclusive<
mozilla::dom::UserNavigationInvolvement,
mozilla::dom::UserNavigationInvolvement::None,
mozilla::dom::UserNavigationInvolvement::BrowserUI> {};
} // namespace IPC
#endif