Struct xpcom::interfaces::nsIPrintProgress
[−]
[src]
#[repr(C)]pub struct nsIPrintProgress { /* fields omitted */ }
interface nsIPrintProgress : nsIWebProgressListener
Methods
impl nsIPrintProgress
[src]
pub fn coerce<T: nsIPrintProgressCoerce>(&self) -> &T
[src]
Cast this nsIPrintProgress
to one of its base interfaces.
impl nsIPrintProgress
[src]
pub unsafe fn OpenProgressDialog(
&self,
parent: *const mozIDOMWindowProxy,
dialogURL: *const c_char,
parameters: *const nsISupports,
openDialogObserver: *const nsIObserver,
notifyOnOpen: *mut bool
) -> nsresult
[src]
&self,
parent: *const mozIDOMWindowProxy,
dialogURL: *const c_char,
parameters: *const nsISupports,
openDialogObserver: *const nsIObserver,
notifyOnOpen: *mut bool
) -> nsresult
void openProgressDialog (in mozIDOMWindowProxy parent, in string dialogURL, in nsISupports parameters, in nsIObserver openDialogObserver, out boolean notifyOnOpen);
pub unsafe fn CloseProgressDialog(&self, forceClose: bool) -> nsresult
[src]
void closeProgressDialog (in boolean forceClose);
pub unsafe fn RegisterListener(
&self,
listener: *const nsIWebProgressListener
) -> nsresult
[src]
&self,
listener: *const nsIWebProgressListener
) -> nsresult
void registerListener (in nsIWebProgressListener listener);
pub unsafe fn UnregisterListener(
&self,
listener: *const nsIWebProgressListener
) -> nsresult
[src]
&self,
listener: *const nsIWebProgressListener
) -> nsresult
void unregisterListener (in nsIWebProgressListener listener);
pub unsafe fn DoneIniting(&self) -> nsresult
[src]
void doneIniting ();
pub unsafe fn GetPrompter(&self, _retval: *mut *const nsIPrompt) -> nsresult
[src]
nsIPrompt getPrompter ();
pub unsafe fn GetProcessCanceledByUser(
&self,
aProcessCanceledByUser: *mut bool
) -> nsresult
[src]
&self,
aProcessCanceledByUser: *mut bool
) -> nsresult
attribute boolean processCanceledByUser;
pub unsafe fn SetProcessCanceledByUser(
&self,
aProcessCanceledByUser: bool
) -> nsresult
[src]
&self,
aProcessCanceledByUser: bool
) -> nsresult
attribute boolean processCanceledByUser;
Methods from Deref<Target = nsIWebProgressListener>
pub fn coerce<T: nsIWebProgressListenerCoerce>(&self) -> &T
[src]
Cast this nsIWebProgressListener
to one of its base interfaces.
pub const STATE_START: i64
pub const STATE_REDIRECTING: i64
pub const STATE_TRANSFERRING: i64
pub const STATE_NEGOTIATING: i64
pub const STATE_STOP: i64
pub const STATE_IS_REQUEST: i64
pub const STATE_IS_DOCUMENT: i64
pub const STATE_IS_NETWORK: i64
pub const STATE_IS_WINDOW: i64
pub const STATE_IS_REDIRECTED_DOCUMENT: i64
pub const STATE_RESTORING: i64
pub const STATE_IS_INSECURE: i64
pub const STATE_IS_BROKEN: i64
pub const STATE_IS_SECURE: i64
pub const STATE_BLOCKED_MIXED_ACTIVE_CONTENT: i64
pub const STATE_LOADED_MIXED_ACTIVE_CONTENT: i64
pub const STATE_BLOCKED_MIXED_DISPLAY_CONTENT: i64
pub const STATE_LOADED_MIXED_DISPLAY_CONTENT: i64
pub const STATE_BLOCKED_TRACKING_CONTENT: i64
pub const STATE_LOADED_TRACKING_CONTENT: i64
pub const STATE_BLOCKED_UNSAFE_CONTENT: i64
pub const STATE_CERT_DISTRUST_IMMINENT: i64
pub const STATE_SECURE_HIGH: i64
pub const STATE_SECURE_MED: i64
pub const STATE_SECURE_LOW: i64
pub const STATE_IDENTITY_EV_TOPLEVEL: i64
pub const STATE_USES_SSL_3: i64
pub const STATE_USES_WEAK_CRYPTO: i64
pub const STATE_CERT_USER_OVERRIDDEN: i64
pub const LOCATION_CHANGE_SAME_DOCUMENT: i64
pub const LOCATION_CHANGE_ERROR_PAGE: i64
pub unsafe fn OnStateChange(
&self,
aWebProgress: *const nsIWebProgress,
aRequest: *const nsIRequest,
aStateFlags: uint32_t,
aStatus: nsresult
) -> nsresult
[src]
&self,
aWebProgress: *const nsIWebProgress,
aRequest: *const nsIRequest,
aStateFlags: uint32_t,
aStatus: nsresult
) -> nsresult
/**
* Notification indicating the state has changed for one of the requests
* associated with aWebProgress.
*
* @param aWebProgress
* The nsIWebProgress instance that fired the notification
* @param aRequest
* The nsIRequest that has changed state.
* @param aStateFlags
* Flags indicating the new state. This value is a combination of one
* of the State Transition Flags and one or more of the State Type
* Flags defined above. Any undefined bits are reserved for future
* use.
* @param aStatus
* Error status code associated with the state change. This parameter
* should be ignored unless aStateFlags includes the STATE_STOP bit.
* The status code indicates success or failure of the request
* associated with the state change. NOTE: aStatus may be a success
* code even for server generated errors, such as the HTTP 404 error.
* In such cases, the request itself should be queried for extended
* error information (e.g., for HTTP requests see nsIHttpChannel).
*/
void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aStateFlags, in nsresult aStatus);
pub unsafe fn OnProgressChange(
&self,
aWebProgress: *const nsIWebProgress,
aRequest: *const nsIRequest,
aCurSelfProgress: int32_t,
aMaxSelfProgress: int32_t,
aCurTotalProgress: int32_t,
aMaxTotalProgress: int32_t
) -> nsresult
[src]
&self,
aWebProgress: *const nsIWebProgress,
aRequest: *const nsIRequest,
aCurSelfProgress: int32_t,
aMaxSelfProgress: int32_t,
aCurTotalProgress: int32_t,
aMaxTotalProgress: int32_t
) -> nsresult
/**
* Notification that the progress has changed for one of the requests
* associated with aWebProgress. Progress totals are reset to zero when all
* requests in aWebProgress complete (corresponding to onStateChange being
* called with aStateFlags including the STATE_STOP and STATE_IS_WINDOW
* flags).
*
* @param aWebProgress
* The nsIWebProgress instance that fired the notification.
* @param aRequest
* The nsIRequest that has new progress.
* @param aCurSelfProgress
* The current progress for aRequest.
* @param aMaxSelfProgress
* The maximum progress for aRequest.
* @param aCurTotalProgress
* The current progress for all requests associated with aWebProgress.
* @param aMaxTotalProgress
* The total progress for all requests associated with aWebProgress.
*
* NOTE: If any progress value is unknown, or if its value would exceed the
* maximum value of type long, then its value is replaced with -1.
*
* NOTE: If the object also implements nsIWebProgressListener2 and the caller
* knows about that interface, this function will not be called. Instead,
* nsIWebProgressListener2::onProgressChange64 will be called.
*/
void onProgressChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aCurSelfProgress, in long aMaxSelfProgress, in long aCurTotalProgress, in long aMaxTotalProgress);
pub unsafe fn OnLocationChange(
&self,
aWebProgress: *const nsIWebProgress,
aRequest: *const nsIRequest,
aLocation: *const nsIURI,
aFlags: uint32_t
) -> nsresult
[src]
&self,
aWebProgress: *const nsIWebProgress,
aRequest: *const nsIRequest,
aLocation: *const nsIURI,
aFlags: uint32_t
) -> nsresult
/**
* Called when the location of the window being watched changes. This is not
* when a load is requested, but rather once it is verified that the load is
* going to occur in the given window. For instance, a load that starts in a
* window might send progress and status messages for the new site, but it
* will not send the onLocationChange until we are sure that we are loading
* this new page here.
*
* @param aWebProgress
* The nsIWebProgress instance that fired the notification.
* @param aRequest
* The associated nsIRequest. This may be null in some cases.
* @param aLocation
* The URI of the location that is being loaded.
* @param aFlags
* This is a value which explains the situation or the reason why
* the location has changed.
*/
void onLocationChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsIURI aLocation, [optional] in unsigned long aFlags);
pub unsafe fn OnStatusChange(
&self,
aWebProgress: *const nsIWebProgress,
aRequest: *const nsIRequest,
aStatus: nsresult,
aMessage: *const int16_t
) -> nsresult
[src]
&self,
aWebProgress: *const nsIWebProgress,
aRequest: *const nsIRequest,
aStatus: nsresult,
aMessage: *const int16_t
) -> nsresult
/**
* Notification that the status of a request has changed. The status message
* is intended to be displayed to the user (e.g., in the status bar of the
* browser).
*
* @param aWebProgress
* The nsIWebProgress instance that fired the notification.
* @param aRequest
* The nsIRequest that has new status.
* @param aStatus
* This value is not an error code. Instead, it is a numeric value
* that indicates the current status of the request. This interface
* does not define the set of possible status codes. NOTE: Some
* status values are defined by nsITransport and nsISocketTransport.
* @param aMessage
* Localized text corresponding to aStatus.
*/
void onStatusChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsresult aStatus, in wstring aMessage);
pub unsafe fn OnSecurityChange(
&self,
aWebProgress: *const nsIWebProgress,
aRequest: *const nsIRequest,
aState: uint32_t
) -> nsresult
[src]
&self,
aWebProgress: *const nsIWebProgress,
aRequest: *const nsIRequest,
aState: uint32_t
) -> nsresult
/**
* Notification called for security progress. This method will be called on
* security transitions (eg HTTP -> HTTPS, HTTPS -> HTTP, FOO -> HTTPS) and
* after document load completion. It might also be called if an error
* occurs during network loading.
*
* @param aWebProgress
* The nsIWebProgress instance that fired the notification.
* @param aRequest
* The nsIRequest that has new security state.
* @param aState
* A value composed of the Security State Flags and the Security
* Strength Flags listed above. Any undefined bits are reserved for
* future use.
*
* NOTE: These notifications will only occur if a security package is
* installed.
*/
void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aState);
Trait Implementations
impl XpCom for nsIPrintProgress
[src]
const IID: nsIID
IID: nsIID = nsID(99941256, 58728, 19765, [179, 148, 206, 10, 163, 238, 166, 252])
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 nsIPrintProgress
[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 nsIPrintProgress
[src]
type Target = nsIWebProgressListener
The resulting type after dereferencing.
fn deref(&self) -> &nsIWebProgressListener
[src]
Dereferences the value.