docshell/base/nsIWebPageDescriptor.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/docshell/base/nsIWebPageDescriptor.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +#include "nsISupports.idl"
     1.8 +
     1.9 +/**
    1.10 + * The nsIWebPageDescriptor interface allows content being displayed in one
    1.11 + * window to be loaded into another window without refetching it from the
    1.12 + * network.
    1.13 + */
    1.14 +
    1.15 +[scriptable, uuid(6f30b676-3710-4c2c-80b1-0395fb26516e)]
    1.16 +interface nsIWebPageDescriptor : nsISupports
    1.17 +{
    1.18 +  const unsigned long DISPLAY_AS_SOURCE = 0x0001;
    1.19 +  const unsigned long DISPLAY_NORMAL    = 0x0002;
    1.20 +
    1.21 + /**
    1.22 +  * Tells the object to load the page specified by the page descriptor
    1.23 +  *
    1.24 +  * @throws NS_ERROR_FAILURE - 
    1.25 +  */
    1.26 +  void loadPage(in nsISupports aPageDescriptor, in unsigned long aDisplayType);
    1.27 +
    1.28 +
    1.29 + /**
    1.30 +  * Retrieves the page descriptor for the curent document.
    1.31 +  */
    1.32 +  readonly attribute nsISupports currentDescriptor;
    1.33 +};

mercurial