#include "third_party/blink/renderer/core/view_transition/page_swap_event.h"
#include "third_party/blink/public/common/page_state/page_state.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_page_swap_event_init.h"
#include "third_party/blink/renderer/core/event_interface_names.h"
#include "third_party/blink/renderer/core/event_type_names.h"
#include "third_party/blink/renderer/core/frame/dom_window.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/loader/history_item.h"
#include "third_party/blink/renderer/core/navigation_api/navigation_activation.h"
#include "third_party/blink/renderer/core/navigation_api/navigation_api.h"
#include "third_party/blink/renderer/core/view_transition/dom_view_transition.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
namespace blink {
namespace {
String TypeToString(mojom::blink::NavigationTypeForNavigationApi type) { … }
}
PageSwapEvent::PageSwapEvent(
Document& document,
mojom::blink::PageSwapEventParamsPtr page_swap_event_params,
DOMViewTransition* view_transition)
: … { … }
PageSwapEvent::PageSwapEvent(const AtomicString& type,
const PageSwapEventInit* initializer)
: … { … }
PageSwapEvent::~PageSwapEvent() = default;
const AtomicString& PageSwapEvent::InterfaceName() const { … }
void PageSwapEvent::Trace(Visitor* visitor) const { … }
DOMViewTransition* PageSwapEvent::viewTransition() const { … }
NavigationActivation* PageSwapEvent::activation() const { … }
}