blob: d30fb8375ba5a495d9ce85a4516f5ea9084a9cbf [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.
module blink.mojom;
import "mojo/public/mojom/base/unguessable_token.mojom";
import "url/mojom/url.mojom";
enum PortalActivationStatus {
// Portal has been successfully activated.
kSuccess,
// Operation is not supported by the embedder.
kNotSupported,
};
// The Portal interface is used by the renderer to interact with the Portal.
interface Portal {
// Navigates the portal to |url|.
Navigate(url.mojom.Url url);
// When a portal is activated, it'll replace the current tab with the portal.
Activate() => (PortalActivationStatus result);
};