Struct xpcom::interfaces::nsIWindowlessBrowser
[−]
[src]
#[repr(C)]pub struct nsIWindowlessBrowser { /* fields omitted */ }
interface nsIWindowlessBrowser : nsIWebNavigation
/**
* This interface represents a nsIWebBrowser instance with no associated OS
* window. Its main function is to manage the lifetimes of those windows.
* A strong reference to this object must be held until the window is
* ready to be destroyed.
*/
Methods
impl nsIWindowlessBrowser
[src]
pub fn coerce<T: nsIWindowlessBrowserCoerce>(&self) -> &T
[src]
Cast this nsIWindowlessBrowser
to one of its base interfaces.
impl nsIWindowlessBrowser
[src]
pub unsafe fn Close(&self) -> nsresult
[src]
/**
* "Closes" the windowless browser and destroys its associated nsIWebBrowser
* and docshell.
*
* This method *must* be called for every windowless browser before its last
* reference is released.
*/
void close ();
Methods from Deref<Target = nsIWebNavigation>
pub fn coerce<T: nsIWebNavigationCoerce>(&self) -> &T
[src]
Cast this nsIWebNavigation
to one of its base interfaces.
pub const LOAD_FLAGS_MASK: i64
pub const LOAD_FLAGS_NONE: i64
pub const LOAD_FLAGS_IS_REFRESH: i64
pub const LOAD_FLAGS_IS_LINK: i64
pub const LOAD_FLAGS_BYPASS_HISTORY: i64
pub const LOAD_FLAGS_REPLACE_HISTORY: i64
pub const LOAD_FLAGS_BYPASS_CACHE: i64
pub const LOAD_FLAGS_BYPASS_PROXY: i64
pub const LOAD_FLAGS_CHARSET_CHANGE: i64
pub const LOAD_FLAGS_STOP_CONTENT: i64
pub const LOAD_FLAGS_FROM_EXTERNAL: i64
pub const LOAD_FLAGS_ALLOW_MIXED_CONTENT: i64
pub const LOAD_FLAGS_FIRST_LOAD: i64
pub const LOAD_FLAGS_ALLOW_POPUPS: i64
pub const LOAD_FLAGS_BYPASS_CLASSIFIER: i64
pub const LOAD_FLAGS_FORCE_ALLOW_COOKIES: i64
pub const LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL: i64
pub const LOAD_FLAGS_DISALLOW_INHERIT_OWNER: i64
pub const LOAD_FLAGS_ERROR_LOAD_CHANGES_RV: i64
pub const LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP: i64
pub const LOAD_FLAGS_FIXUP_SCHEME_TYPOS: i64
pub const LOAD_FLAGS_FORCE_ALLOW_DATA_URI: i64
pub const STOP_NETWORK: i64
pub const STOP_CONTENT: i64
pub const STOP_ALL: i64
pub unsafe fn GetCanGoBack(&self, aCanGoBack: *mut bool) -> nsresult
[src]
/**
* Indicates if the object can go back. If true this indicates that
* there is back session history available for navigation.
*/
readonly attribute boolean canGoBack;
pub unsafe fn GetCanGoForward(&self, aCanGoForward: *mut bool) -> nsresult
[src]
/**
* Indicates if the object can go forward. If true this indicates that
* there is forward session history available for navigation
*/
readonly attribute boolean canGoForward;
pub unsafe fn GoBack(&self) -> nsresult
[src]
/**
* Tells the object to navigate to the previous session history item. When a
* page is loaded from session history, all content is loaded from the cache
* (if available) and page state (such as form values and scroll position) is
* restored.
*
* @throw NS_ERROR_UNEXPECTED
* Indicates that the call was unexpected at this time, which implies
* that canGoBack is false.
*/
void goBack ();
pub unsafe fn GoForward(&self) -> nsresult
[src]
/**
* Tells the object to navigate to the next session history item. When a
* page is loaded from session history, all content is loaded from the cache
* (if available) and page state (such as form values and scroll position) is
* restored.
*
* @throw NS_ERROR_UNEXPECTED
* Indicates that the call was unexpected at this time, which implies
* that canGoForward is false.
*/
void goForward ();
pub unsafe fn GotoIndex(&self, index: int32_t) -> nsresult
[src]
/**
* Tells the object to navigate to the session history item at a given index.
*
* @throw NS_ERROR_UNEXPECTED
* Indicates that the call was unexpected at this time, which implies
* that session history entry at the given index does not exist.
*/
void gotoIndex (in long index);
pub unsafe fn LoadURI(
&self,
aURI: *const int16_t,
aLoadFlags: uint32_t,
aReferrer: *const nsIURI,
aPostData: *const nsIInputStream,
aHeaders: *const nsIInputStream,
aTriggeringPrincipal: *const nsIPrincipal
) -> nsresult
[src]
&self,
aURI: *const int16_t,
aLoadFlags: uint32_t,
aReferrer: *const nsIURI,
aPostData: *const nsIInputStream,
aHeaders: *const nsIInputStream,
aTriggeringPrincipal: *const nsIPrincipal
) -> nsresult
/**
* Loads a given URI. This will give priority to loading the requested URI
* in the object implementing this interface. If it can't be loaded here
* however, the URI dispatcher will go through its normal process of content
* loading.
*
* @param aURI
* The URI string to load. For HTTP and FTP URLs and possibly others,
* characters above U+007F will be converted to UTF-8 and then URL-
* escaped per the rules of RFC 2396.
* @param aLoadFlags
* Flags modifying load behaviour. This parameter is a bitwise
* combination of the load flags defined above. (Undefined bits are
* reserved for future use.) Generally you will pass LOAD_FLAGS_NONE
* for this parameter.
* @param aReferrer
* The referring URI. If this argument is null, then the referring
* URI will be inferred internally.
* @param aPostData
* If the URI corresponds to a HTTP request, then this stream is
* appended directly to the HTTP request headers. It may be prefixed
* with additional HTTP headers. This stream must contain a "\r\n"
* sequence separating any HTTP headers from the HTTP request body.
* This parameter is optional and may be null.
* @param aHeaders
* If the URI corresponds to a HTTP request, then any HTTP headers
* contained in this stream are set on the HTTP request. The HTTP
* header stream is formatted as:
* ( HEADER "\r\n" )*
* This parameter is optional and may be null.
* @param aTriggeringPrincipal
* The principal that initiated the load of aURI. If omitted docShell
* tries to create a codeBasePrincipal from aReferrer if not null. If
* aReferrer is also null docShell peforms a load using the
* SystemPrincipal as the triggeringPrincipal.
*/
void loadURI (in wstring aURI, in unsigned long aLoadFlags, in nsIURI aReferrer, in nsIInputStream aPostData, in nsIInputStream aHeaders, [optional] in nsIPrincipal aTriggeringPrincipal);
pub unsafe fn LoadURIWithOptions(
&self,
aURI: *const int16_t,
aLoadFlags: uint32_t,
aReferrer: *const nsIURI,
aReferrerPolicy: uint32_t,
aPostData: *const nsIInputStream,
aHeaders: *const nsIInputStream,
aBaseURI: *const nsIURI,
aTriggeringPrincipal: *const nsIPrincipal
) -> nsresult
[src]
&self,
aURI: *const int16_t,
aLoadFlags: uint32_t,
aReferrer: *const nsIURI,
aReferrerPolicy: uint32_t,
aPostData: *const nsIInputStream,
aHeaders: *const nsIInputStream,
aBaseURI: *const nsIURI,
aTriggeringPrincipal: *const nsIPrincipal
) -> nsresult
/**
* Loads a given URI. This will give priority to loading the requested URI
* in the object implementing this interface. If it can't be loaded here
* however, the URI dispatcher will go through its normal process of content
* loading.
*
* Behaves like loadURI, but allows passing of additional parameters.
*
* @param aURI
* The URI string to load. For HTTP and FTP URLs and possibly others,
* characters above U+007F will be converted to UTF-8 and then URL-
* escaped per the rules of RFC 2396.
* @param aLoadFlags
* Flags modifying load behaviour. This parameter is a bitwise
* combination of the load flags defined above. (Undefined bits are
* reserved for future use.) Generally you will pass LOAD_FLAGS_NONE
* for this parameter.
* @param aReferrer
* The referring URI. If this argument is null, then the referring
* URI will be inferred internally.
* @param aReferrerPolicy
* One of the REFERRER_POLICY_* constants from nsIHttpChannel.
* Normal case is REFERRER_POLICY_NO_REFERRER_WHEN_DOWNGRADE.
* @param aPostData
* If the URI corresponds to a HTTP request, then this stream is
* appended directly to the HTTP request headers. It may be prefixed
* with additional HTTP headers. This stream must contain a "\r\n"
* sequence separating any HTTP headers from the HTTP request body.
* This parameter is optional and may be null.
* @param aHeaders
* If the URI corresponds to a HTTP request, then any HTTP headers
* contained in this stream are set on the HTTP request. The HTTP
* header stream is formatted as:
* ( HEADER "\r\n" )*
* This parameter is optional and may be null.
* @param aBaseURI
* Set to indicate a base URI to be associated with the load. Note
* that at present this argument is only used with view-source aURIs
* and cannot be used to resolve aURI.
* This parameter is optional and may be null.
* @param aTriggeringPrincipal
* The principal that initiated the load of aURI. If omitted docShell
* tries to create a codeBasePrincipal from aReferrer if not null. If
* aReferrer is also null docShell peforms a load using the
* SystemPrincipal as the triggeringPrincipal.
*/
void loadURIWithOptions (in wstring aURI, in unsigned long aLoadFlags, in nsIURI aReferrer, in unsigned long aReferrerPolicy, in nsIInputStream aPostData, in nsIInputStream aHeaders, in nsIURI aBaseURI, [optional] in nsIPrincipal aTriggeringPrincipal);
pub unsafe fn Reload(&self, aReloadFlags: uint32_t) -> nsresult
[src]
/**
* Tells the Object to reload the current page. There may be cases where the
* user will be asked to confirm the reload (for example, when it is
* determined that the request is non-idempotent).
*
* @param aReloadFlags
* Flags modifying load behaviour. This parameter is a bitwise
* combination of the Load Flags defined above. (Undefined bits are
* reserved for future use.) Generally you will pass LOAD_FLAGS_NONE
* for this parameter.
*
* @throw NS_BINDING_ABORTED
* Indicating that the user canceled the reload.
*/
void reload (in unsigned long aReloadFlags);
pub unsafe fn Stop(&self, aStopFlags: uint32_t) -> nsresult
[src]
/**
* Stops a load of a URI.
*
* @param aStopFlags
* This parameter is one of the stop flags defined above.
*/
void stop (in unsigned long aStopFlags);
pub unsafe fn GetDocument(
&self,
aDocument: *mut *const nsIDOMDocument
) -> nsresult
[src]
&self,
aDocument: *mut *const nsIDOMDocument
) -> nsresult
/**
* Retrieves the current DOM document for the frame, or lazily creates a
* blank document if there is none. This attribute never returns null except
* for unexpected error situations.
*/
readonly attribute nsIDOMDocument document;
pub unsafe fn GetCurrentURI(&self, aCurrentURI: *mut *const nsIURI) -> nsresult
[src]
/**
* The currently loaded URI or null.
*/
readonly attribute nsIURI currentURI;
pub unsafe fn GetReferringURI(
&self,
aReferringURI: *mut *const nsIURI
) -> nsresult
[src]
&self,
aReferringURI: *mut *const nsIURI
) -> nsresult
/**
* The referring URI for the currently loaded URI or null.
*/
readonly attribute nsIURI referringURI;
pub unsafe fn GetSessionHistory(
&self,
aSessionHistory: *mut *const nsISHistory
) -> nsresult
[src]
&self,
aSessionHistory: *mut *const nsISHistory
) -> nsresult
/**
* The session history object used by this web navigation instance.
*/
attribute nsISHistory sessionHistory;
pub unsafe fn SetSessionHistory(
&self,
aSessionHistory: *const nsISHistory
) -> nsresult
[src]
&self,
aSessionHistory: *const nsISHistory
) -> nsresult
/**
* The session history object used by this web navigation instance.
*/
attribute nsISHistory sessionHistory;
Trait Implementations
impl XpCom for nsIWindowlessBrowser
[src]
const IID: nsIID
IID: nsIID = nsID(2880728904, 44028, 16831, [170, 154, 127, 236, 206, 252, 249, 119])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIWindowlessBrowser
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIWindowlessBrowser
[src]
type Target = nsIWebNavigation
The resulting type after dereferencing.
fn deref(&self) -> &nsIWebNavigation
[src]
Dereferences the value.