Struct xpcom::interfaces::nsIBrowserElementAPI
[−]
[src]
#[repr(C)]pub struct nsIBrowserElementAPI { /* fields omitted */ }
interface nsIBrowserElementAPI : nsISupports
/**
* Interface to the BrowserElementParent implementation. All methods
* but setFrameLoader throw when the remote process is dead.
*/
Methods
impl nsIBrowserElementAPI
[src]
pub fn coerce<T: nsIBrowserElementAPICoerce>(&self) -> &T
[src]
Cast this nsIBrowserElementAPI
to one of its base interfaces.
impl nsIBrowserElementAPI
[src]
pub const FIND_CASE_SENSITIVE: i64
FIND_CASE_SENSITIVE: i64 = 0
pub const FIND_CASE_INSENSITIVE: i64
FIND_CASE_INSENSITIVE: i64 = 1
pub const FIND_FORWARD: i64
FIND_FORWARD: i64 = 0
pub const FIND_BACKWARD: i64
FIND_BACKWARD: i64 = 1
pub unsafe fn DestroyFrameScripts(&self) -> nsresult
[src]
/**
* Notify frame scripts that support the API to destroy.
*/
void destroyFrameScripts ();
pub unsafe fn SetFrameLoader(
&self,
frameLoader: *const nsIFrameLoader
) -> nsresult
[src]
&self,
frameLoader: *const nsIFrameLoader
) -> nsresult
void setFrameLoader (in nsIFrameLoader frameLoader);
pub unsafe fn SendMouseEvent(
&self,
type_: &nsAString,
x: uint32_t,
y: uint32_t,
button: uint32_t,
clickCount: uint32_t,
mifiers: uint32_t
) -> nsresult
[src]
&self,
type_: &nsAString,
x: uint32_t,
y: uint32_t,
button: uint32_t,
clickCount: uint32_t,
mifiers: uint32_t
) -> nsresult
void sendMouseEvent (in DOMString type, in uint32_t x, in uint32_t y, in uint32_t button, in uint32_t clickCount, in uint32_t mifiers);
pub unsafe fn SendTouchEvent(
&self,
aType: &nsAString,
aIdentifiers: *const uint32_t,
aXs: *const int32_t,
aYs: *const int32_t,
aRxs: *const uint32_t,
aRys: *const uint32_t,
aRotationAngles: *const c_float,
aForces: *const c_float,
count: uint32_t,
aModifiers: int32_t
) -> nsresult
[src]
&self,
aType: &nsAString,
aIdentifiers: *const uint32_t,
aXs: *const int32_t,
aYs: *const int32_t,
aRxs: *const uint32_t,
aRys: *const uint32_t,
aRotationAngles: *const c_float,
aForces: *const c_float,
count: uint32_t,
aModifiers: int32_t
) -> nsresult
void sendTouchEvent (in DOMString aType, [array, size_is (count), const] in uint32_t aIdentifiers, [array, size_is (count), const] in int32_t aXs, [array, size_is (count), const] in int32_t aYs, [array, size_is (count), const] in uint32_t aRxs, [array, size_is (count), const] in uint32_t aRys, [array, size_is (count), const] in float aRotationAngles, [array, size_is (count), const] in float aForces, in uint32_t count, in long aModifiers);
pub unsafe fn GoBack(&self) -> nsresult
[src]
void goBack ();
pub unsafe fn GoForward(&self) -> nsresult
[src]
void goForward ();
pub unsafe fn Reload(&self, hardReload: bool) -> nsresult
[src]
void reload (in boolean hardReload);
pub unsafe fn Stop(&self) -> nsresult
[src]
void stop ();
pub unsafe fn PurgeHistory(
&self,
_retval: *mut *const nsIDOMDOMRequest
) -> nsresult
[src]
&self,
_retval: *mut *const nsIDOMDOMRequest
) -> nsresult
nsIDOMDOMRequest purgeHistory ();
pub unsafe fn GetScreenshot(
&self,
width: uint32_t,
height: uint32_t,
mimeType: &nsAString,
_retval: *mut *const nsIDOMDOMRequest
) -> nsresult
[src]
&self,
width: uint32_t,
height: uint32_t,
mimeType: &nsAString,
_retval: *mut *const nsIDOMDOMRequest
) -> nsresult
nsIDOMDOMRequest getScreenshot (in uint32_t width, in uint32_t height, [optional] in DOMString mimeType);
pub unsafe fn Zoom(&self, zoom: c_float) -> nsresult
[src]
void zoom (in float zoom);
pub unsafe fn GetCanGoBack(
&self,
_retval: *mut *const nsIDOMDOMRequest
) -> nsresult
[src]
&self,
_retval: *mut *const nsIDOMDOMRequest
) -> nsresult
nsIDOMDOMRequest getCanGoBack ();
pub unsafe fn GetCanGoForward(
&self,
_retval: *mut *const nsIDOMDOMRequest
) -> nsresult
[src]
&self,
_retval: *mut *const nsIDOMDOMRequest
) -> nsresult
nsIDOMDOMRequest getCanGoForward ();
pub unsafe fn GetContentDimensions(
&self,
_retval: *mut *const nsIDOMDOMRequest
) -> nsresult
[src]
&self,
_retval: *mut *const nsIDOMDOMRequest
) -> nsresult
nsIDOMDOMRequest getContentDimensions ();
pub unsafe fn FindAll(
&self,
searchString: &nsAString,
caseSensitivity: int32_t
) -> nsresult
[src]
&self,
searchString: &nsAString,
caseSensitivity: int32_t
) -> nsresult
void findAll (in DOMString searchString, in long caseSensitivity);
pub unsafe fn FindNext(&self, direction: int32_t) -> nsresult
[src]
void findNext (in long direction);
pub unsafe fn ClearMatch(&self) -> nsresult
[src]
void clearMatch ();
pub unsafe fn AddNextPaintListener(
&self,
listener: *const nsIBrowserElementNextPaintListener
) -> nsresult
[src]
&self,
listener: *const nsIBrowserElementNextPaintListener
) -> nsresult
void addNextPaintListener (in nsIBrowserElementNextPaintListener listener);
pub unsafe fn RemoveNextPaintListener(
&self,
listener: *const nsIBrowserElementNextPaintListener
) -> nsresult
[src]
&self,
listener: *const nsIBrowserElementNextPaintListener
) -> nsresult
void removeNextPaintListener (in nsIBrowserElementNextPaintListener listener);
pub unsafe fn GetWebManifest(
&self,
_retval: *mut *const nsIDOMDOMRequest
) -> nsresult
[src]
&self,
_retval: *mut *const nsIDOMDOMRequest
) -> nsresult
/**
* Returns an object that represents a Web Manifest:
* http://w3c.github.io/manifest/
*/
nsIDOMDOMRequest getWebManifest ();
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIBrowserElementAPI
[src]
const IID: nsIID
IID: nsIID = nsID(1467321360, 24630, 4581, [168, 55, 8, 0, 32, 12, 154, 102])
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 nsIBrowserElementAPI
[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 nsIBrowserElementAPI
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.