blob: 89a1de1c65e7f106c6c6c9fe809a1463a90b60ac [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library chromium.web;
/// Indicates the properties of the NavigationController's visible content
/// which have changed since the last OnNavigationStateChanged() event.
/// Any unchanged properties are left unset.
struct NavigationEvent {
string? url;
string? title;
bool is_error;
/// Interface supplied by the embedder for receiving notifications about
/// navigation events in a Frame.
protocol NavigationEventObserver {
/// Called when user-visible navigation state has changed since Frame
/// creation or the last acknowledgement callback, whichever occurred later.
/// |change| will contain all the differences in navigation state since the
/// last acknowledgement.
OnNavigationStateChanged(NavigationEvent change) -> ();