dom/base/nsIFrameLoaderOwner.idl
author Dave Townsend <dtownsend@oxymoronical.com>
Sun, 13 Jan 2019 17:44:29 -0800
changeset 453676 edca8877b0505cd1c31beaf6d907ca32e022aa52
parent 409428 31d28ee06481a1363fc80a14d0b7140d166368fd
permissions -rw-r--r--
Backing out Bug 1518799 (changeset eace4709948c) because the target page is not yet available. a=backout

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */

#include "nsISupports.idl"

interface nsFrameLoader;

%{C++
class nsFrameLoader;
%}

native alreadyAddRefed_nsFrameLoader(already_AddRefed<nsFrameLoader>);

// We define a "native" type for nsFrameLoader so that the rust xpidl
// codegen doesn't try to do anything with it.
[ptr] native nativeFrameLoader(nsFrameLoader);

[scriptable, builtinclass, uuid(adc1b3ba-8deb-4943-8045-e6de0044f2ce)]
interface nsIFrameLoaderOwner : nsISupports
{
  /**
   * The frame loader owned by this nsIFrameLoaderOwner
   */
  [noscript, notxpcom] alreadyAddRefed_nsFrameLoader GetFrameLoader();

  /**
   * This method is used internally by SwapFrameLoaders to set the frame loader
   * on the target nsFrameLoader.
   *
   * Avoid using this method outside of that context, and instead prefer using
   * SwapFrameLoaders.
   */
  [noscript, notxpcom] void
  internalSetFrameLoader(in nativeFrameLoader aNewFrameLoader);
};