docshell/base/nsIWebPageDescriptor.idl
Scriptable This interface allows content being displayed in one window to be loaded into another window without refetching it from the network. Inherits from:
nsISupports
Last changed in Gecko 1.7
void loadPage(in nsISupports aPageDescriptor, in unsigned long aDisplayType); |
|
currentDescriptor | nsISupports
| Retrieves the page descriptor for the current document. Read only. |
|
DISPLAY_AS_SOURCE | 0x0001 | Generates an optionally syntax-highlighted (for XML/HTML documents) source of the original page. |
DISPLAY_NORMAL | 0x0002 | Just refetches the existing page. Note that if the descriptor is that of the source of another page, this keeps the source view, but uses the current syntax highlighting preference. |
Tells the object to load the page specified by the page descriptor.
void loadPage(
in nsISupports aPageDescriptor,
in unsigned long aDisplayType
);
Parameters
aPageDescriptor
- The page descriptor for the page to load.
aDisplayType
- The display type to use when displaying the loaded page; see Display type constants for possible values.
发布评论