michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: #include "nsISupports.idl" michael@0: michael@0: /** michael@0: * The nsIWebPageDescriptor interface allows content being displayed in one michael@0: * window to be loaded into another window without refetching it from the michael@0: * network. michael@0: */ michael@0: michael@0: [scriptable, uuid(6f30b676-3710-4c2c-80b1-0395fb26516e)] michael@0: interface nsIWebPageDescriptor : nsISupports michael@0: { michael@0: const unsigned long DISPLAY_AS_SOURCE = 0x0001; michael@0: const unsigned long DISPLAY_NORMAL = 0x0002; michael@0: michael@0: /** michael@0: * Tells the object to load the page specified by the page descriptor michael@0: * michael@0: * @throws NS_ERROR_FAILURE - michael@0: */ michael@0: void loadPage(in nsISupports aPageDescriptor, in unsigned long aDisplayType); michael@0: michael@0: michael@0: /** michael@0: * Retrieves the page descriptor for the curent document. michael@0: */ michael@0: readonly attribute nsISupports currentDescriptor; michael@0: };