Struct xpcom::interfaces::nsIDOMWindowUtils
[−]
[src]
#[repr(C)]pub struct nsIDOMWindowUtils { /* fields omitted */ }
interface nsIDOMWindowUtils : nsISupports
Methods
impl nsIDOMWindowUtils
[src]
pub fn coerce<T: nsIDOMWindowUtilsCoerce>(&self) -> &T
[src]
Cast this nsIDOMWindowUtils
to one of its base interfaces.
impl nsIDOMWindowUtils
[src]
pub const MODIFIER_ALT: i64
MODIFIER_ALT: i64 = 1
/**
* Following modifiers are for sent*Event() except sendNative*Event().
* NOTE: MODIFIER_ALT, MODIFIER_CONTROL, MODIFIER_SHIFT and MODIFIER_META
* are must be same values as nsIDOMNSEvent::*_MASK for backward
* compatibility.
*/
pub const MODIFIER_CONTROL: i64
MODIFIER_CONTROL: i64 = 2
pub const MODIFIER_SHIFT: i64
MODIFIER_SHIFT: i64 = 4
pub const MODIFIER_META: i64
MODIFIER_META: i64 = 8
pub const MODIFIER_ALTGRAPH: i64
MODIFIER_ALTGRAPH: i64 = 16
pub const MODIFIER_CAPSLOCK: i64
MODIFIER_CAPSLOCK: i64 = 32
pub const MODIFIER_FN: i64
MODIFIER_FN: i64 = 64
pub const MODIFIER_FNLOCK: i64
MODIFIER_FNLOCK: i64 = 128
pub const MODIFIER_NUMLOCK: i64
MODIFIER_NUMLOCK: i64 = 256
pub const MODIFIER_SCROLLLOCK: i64
MODIFIER_SCROLLLOCK: i64 = 512
pub const MODIFIER_SYMBOL: i64
MODIFIER_SYMBOL: i64 = 1024
pub const MODIFIER_SYMBOLLOCK: i64
MODIFIER_SYMBOLLOCK: i64 = 2048
pub const MODIFIER_OS: i64
MODIFIER_OS: i64 = 4096
pub const WHEEL_EVENT_CAUSED_BY_NO_LINE_OR_PAGE_DELTA_DEVICE: i64
WHEEL_EVENT_CAUSED_BY_NO_LINE_OR_PAGE_DELTA_DEVICE: i64 = 1
/** Synthesize a wheel event for a window. The event types supported is only
* wheel.
*
* Events are sent in coordinates offset by aX and aY from the window.
*
* Cannot be accessed from unprivileged context (not content-accessible)
* Will throw a DOM security error if called without chrome privileges.
*
* @param aX x offset in CSS pixels
* @param aY y offset in CSS pixels
* @param aDeltaX deltaX value.
* @param aDeltaY deltaY value.
* @param aDeltaZ deltaZ value.
* @param aDeltaMode deltaMode value which must be one of
* nsIDOMWheelEvent::DOM_DELTA_*.
* @param aModifiers modifiers pressed, using constants defined as
* MODIFIER_*
* @param aLineOrPageDeltaX If you set this value non-zero for
* DOM_DELTA_PIXEL event, EventStateManager will
* dispatch NS_MOUSE_SCROLL event for horizontal
* scroll.
* @param aLineOrPageDeltaY If you set this value non-zero for
* DOM_DELTA_PIXEL event, EventStateManager will
* dispatch NS_MOUSE_SCROLL event for vertical
* scroll.
* @param aOptions Set following flags.
*/
pub const WHEEL_EVENT_CAUSED_BY_MOMENTUM: i64
WHEEL_EVENT_CAUSED_BY_MOMENTUM: i64 = 2
pub const WHEEL_EVENT_CUSTOMIZED_BY_USER_PREFS: i64
WHEEL_EVENT_CUSTOMIZED_BY_USER_PREFS: i64 = 4
pub const WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_X_ZERO: i64
WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_X_ZERO: i64 = 16
pub const WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_X_POSITIVE: i64
WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_X_POSITIVE: i64 = 32
pub const WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_X_NEGATIVE: i64
WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_X_NEGATIVE: i64 = 64
pub const WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_Y_ZERO: i64
WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_Y_ZERO: i64 = 256
pub const WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_Y_POSITIVE: i64
WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_Y_POSITIVE: i64 = 512
pub const WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_Y_NEGATIVE: i64
WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_Y_NEGATIVE: i64 = 1024
pub const KEY_FLAG_PREVENT_DEFAULT: i64
KEY_FLAG_PREVENT_DEFAULT: i64 = 1
/**
* Synthesize a key event to the window. The event types supported are:
* keydown, keyup, keypress
*
* Key events generally end up being sent to the focused node.
*
* Cannot be accessed from unprivileged context (not content-accessible)
* Will throw a DOM security error if called without chrome privileges.
*
* @param aType event type
* @param aKeyCode key code
* @param aCharCode character code
* @param aModifiers modifiers pressed, using constants defined as MODIFIER_*
* @param aAdditionalFlags special flags for the key event, see KEY_FLAG_*.
*
* @return false if the event had preventDefault() called on it,
* true otherwise. In other words, true if and only if the
* default action was taken.
*/
pub const KEY_FLAG_NOT_SYNTHESIZED_FOR_TESTS: i64
KEY_FLAG_NOT_SYNTHESIZED_FOR_TESTS: i64 = 2
pub const KEY_FLAG_LOCATION_STANDARD: i64
KEY_FLAG_LOCATION_STANDARD: i64 = 16
pub const KEY_FLAG_LOCATION_LEFT: i64
KEY_FLAG_LOCATION_LEFT: i64 = 32
pub const KEY_FLAG_LOCATION_RIGHT: i64
KEY_FLAG_LOCATION_RIGHT: i64 = 64
pub const KEY_FLAG_LOCATION_NUMPAD: i64
KEY_FLAG_LOCATION_NUMPAD: i64 = 128
pub const MOUSESCROLL_PREFER_WIDGET_AT_POINT: i64
MOUSESCROLL_PREFER_WIDGET_AT_POINT: i64 = 1
/**
* The values for sendNativeMouseScrollEvent's aAdditionalFlags.
*/
/**
* If MOUSESCROLL_PREFER_WIDGET_AT_POINT is set, widget will dispatch
* the event to a widget which is under the cursor. Otherwise, dispatch to
* a default target on the platform. E.g., on Windows, it's focused window.
*/
pub const MOUSESCROLL_SCROLL_LINES: i64
MOUSESCROLL_SCROLL_LINES: i64 = 2
/**
* Interpret the scroll delta values as lines rather than pixels.
*/
pub const MOUSESCROLL_WIN_SCROLL_LPARAM_NOT_NULL: i64
MOUSESCROLL_WIN_SCROLL_LPARAM_NOT_NULL: i64 = 65536
/**
* The platform specific values of aAdditionalFlags. Must be over 0x00010000.
*/
/**
* If MOUSESCROLL_WIN_SCROLL_LPARAM_NOT_NULL is set and aNativeMessage is
* WM_VSCROLL or WM_HSCROLL, widget will set the window handle to the lParam
* instead of NULL.
*/
pub const TOUCH_HOVER: i64
TOUCH_HOVER: i64 = 1
/**
* Touch states for sendNativeTouchPoint. These values match
* nsIWidget's TouchPointerState.
*/
pub const TOUCH_CONTACT: i64
TOUCH_CONTACT: i64 = 2
pub const TOUCH_REMOVE: i64
TOUCH_REMOVE: i64 = 4
pub const TOUCH_CANCEL: i64
TOUCH_CANCEL: i64 = 8
pub const FLUSH_NONE: i64
FLUSH_NONE: i64 = -1
pub const FLUSH_STYLE: i64
FLUSH_STYLE: i64 = 0
pub const FLUSH_LAYOUT: i64
FLUSH_LAYOUT: i64 = 1
pub const FLUSH_DISPLAY: i64
FLUSH_DISPLAY: i64 = 2
pub const IME_STATUS_DISABLED: i64
IME_STATUS_DISABLED: i64 = 0
/**
* WARNING: These values must be same as nsIWidget's values.
*/
/**
* DISABLED means users cannot use IME completely.
* Note that this state is *not* same as |ime-mode: disabled;|.
*/
pub const IME_STATUS_ENABLED: i64
IME_STATUS_ENABLED: i64 = 1
/**
* ENABLED means users can use all functions of IME. This state is same as
* |ime-mode: normal;|.
*/
pub const IME_STATUS_PASSWORD: i64
IME_STATUS_PASSWORD: i64 = 2
/**
* PASSWORD means users cannot use most functions of IME. But on GTK2,
* users can use "Simple IM" which only supports dead key inputting.
* The behavior is same as the behavior of the native password field.
* This state is same as |ime-mode: disabled;|.
*/
pub const IME_STATUS_PLUGIN: i64
IME_STATUS_PLUGIN: i64 = 3
/**
* PLUGIN means a plug-in has focus. At this time we should not touch to
* controlling the IME state.
*/
pub const QUERY_CONTENT_FLAG_USE_NATIVE_LINE_BREAK: i64
QUERY_CONTENT_FLAG_USE_NATIVE_LINE_BREAK: i64 = 0
/**
* If sendQueryContentEvent()'s aAdditionalFlags argument is
* QUERY_CONTENT_FLAG_USE_XP_LINE_BREAK, plain text generated from content
* is created with "\n".
* Otherwise, platform dependent. E.g., on Windows, "\r\n" is used.
* aOffset and aLength are offset and length in/of the plain text content.
* This flag also affects the result values such as offset, length and string.
*/
pub const QUERY_CONTENT_FLAG_USE_XP_LINE_BREAK: i64
QUERY_CONTENT_FLAG_USE_XP_LINE_BREAK: i64 = 1
pub const QUERY_CONTENT_FLAG_SELECTION_SPELLCHECK: i64
QUERY_CONTENT_FLAG_SELECTION_SPELLCHECK: i64 = 2
/**
* sendQueryContentEvent()'s aAdditionalFlags may have one of following
* flags when aType is QUERY_SELECTED_TEXT. If one of them is set,
* the result is the first range of the selection type. See also
* nsISelectionController::SELECTION_*.
*/
pub const QUERY_CONTENT_FLAG_SELECTION_IME_RAWINPUT: i64
QUERY_CONTENT_FLAG_SELECTION_IME_RAWINPUT: i64 = 4
pub const QUERY_CONTENT_FLAG_SELECTION_IME_SELECTEDRAWTEXT: i64
QUERY_CONTENT_FLAG_SELECTION_IME_SELECTEDRAWTEXT: i64 = 8
pub const QUERY_CONTENT_FLAG_SELECTION_IME_CONVERTEDTEXT: i64
QUERY_CONTENT_FLAG_SELECTION_IME_CONVERTEDTEXT: i64 = 16
pub const QUERY_CONTENT_FLAG_SELECTION_IME_SELECTEDCONVERTEDTEXT: i64
QUERY_CONTENT_FLAG_SELECTION_IME_SELECTEDCONVERTEDTEXT: i64 = 32
pub const QUERY_CONTENT_FLAG_SELECTION_ACCESSIBILITY: i64
QUERY_CONTENT_FLAG_SELECTION_ACCESSIBILITY: i64 = 64
pub const QUERY_CONTENT_FLAG_SELECTION_FIND: i64
QUERY_CONTENT_FLAG_SELECTION_FIND: i64 = 128
pub const QUERY_CONTENT_FLAG_SELECTION_URLSECONDARY: i64
QUERY_CONTENT_FLAG_SELECTION_URLSECONDARY: i64 = 256
pub const QUERY_CONTENT_FLAG_SELECTION_URLSTRIKEOUT: i64
QUERY_CONTENT_FLAG_SELECTION_URLSTRIKEOUT: i64 = 512
pub const QUERY_CONTENT_FLAG_OFFSET_RELATIVE_TO_INSERTION_POINT: i64
QUERY_CONTENT_FLAG_OFFSET_RELATIVE_TO_INSERTION_POINT: i64 = 1024
/**
* One of sendQueryContentEvent()'s aAdditionalFlags. If this is specified,
* aOffset is relative to start of selection or composition.
* Note that this is supported only when QUERY_CONTENT_FLAG_USE_XP_LINE_BREAK
* is not specified for now.
*/
pub const QUERY_SELECTED_TEXT: i64
QUERY_SELECTED_TEXT: i64 = 3200
/**
* QUERY_SELECTED_TEXT queries the first selection range's information.
*
* @param aOffset Not used.
* @param aLength Not used.
* @param aX Not used.
* @param aY Not used.
*
* @return offset, reversed and text properties of the result are available.
*/
pub const QUERY_TEXT_CONTENT: i64
QUERY_TEXT_CONTENT: i64 = 3201
/**
* QUERY_TEXT_CONTENT queries the text at the specified range.
*
* @param aOffset The first character's offset. 0 is the first character.
* @param aLength The length of getting text. If the aLength is too long,
* the result text is shorter than this value.
* @param aX Not used.
* @param aY Not used.
*
* @return text property of the result is available.
*/
pub const QUERY_CARET_RECT: i64
QUERY_CARET_RECT: i64 = 3203
/**
* QUERY_CARET_RECT queries the (collapsed) caret rect of the offset.
* If the actual caret is there at the specified offset, this returns the
* actual caret rect. Otherwise, this guesses the caret rect from the
* metrics of the text.
*
* @param aOffset The caret offset. 0 is the left side of the first
* caracter in LTR text.
* @param aLength Not used.
* @param aX Not used.
* @param aY Not used.
*
* @return left, top, width and height properties of the result are available.
* The left and the top properties are offset in the client area of
* the DOM window.
*/
pub const QUERY_TEXT_RECT: i64
QUERY_TEXT_RECT: i64 = 3204
/**
* QUERY_TEXT_RECT queries the specified text's rect.
*
* @param aOffset The first character's offset. 0 is the first character.
* @param aLength The length of getting text. If the aLength is too long,
* the extra length is ignored.
* @param aX Not used.
* @param aY Not used.
*
* @return left, top, width and height properties of the result are available.
* The left and the top properties are offset in the client area of
* the DOM window.
*/
pub const QUERY_EDITOR_RECT: i64
QUERY_EDITOR_RECT: i64 = 3205
/**
* QUERY_TEXT_RECT queries the focused editor's rect.
*
* @param aOffset Not used.
* @param aLength Not used.
* @param aX Not used.
* @param aY Not used.
*
* @return left, top, width and height properties of the result are available.
*/
pub const QUERY_CHARACTER_AT_POINT: i64
QUERY_CHARACTER_AT_POINT: i64 = 3208
/**
* QUERY_CHARACTER_AT_POINT queries the character information at the
* specified point. The point is offset in the window.
* NOTE: If there are some panels at the point, this method send the query
* event to the panel's widget automatically.
*
* @param aOffset Not used.
* @param aLength Not used.
* @param aX X offset in the widget.
* @param aY Y offset in the widget.
*
* @return offset, notFound, left, top, width and height properties of the
* result are available.
*/
pub const QUERY_TEXT_RECT_ARRAY: i64
QUERY_TEXT_RECT_ARRAY: i64 = 3209
/**
* QUERY_TEXT_RECT_ARRAY queries the rects per character
*
* @param aOffset The first character's offset. 0 is the first character.
* @param aLength The length of getting text. If the aLength is too long,
* the extra length is ignored.
* @param aX Not used.
* @param aY Not used.
*/
pub const SELECTION_SET_FLAG_USE_NATIVE_LINE_BREAK: i64
SELECTION_SET_FLAG_USE_NATIVE_LINE_BREAK: i64 = 0
/**
* If sendQueryContentEvent()'s aAdditionalFlags argument is
* SELECTION_SET_FLAG_USE_NATIVE_LINE_BREAK, aOffset and aLength are offset
* and length in/of plain text generated from content is created with "\n".
* Otherwise, platform dependent. E.g., on Windows, "\r\n" is used.
*/
pub const SELECTION_SET_FLAG_USE_XP_LINE_BREAK: i64
SELECTION_SET_FLAG_USE_XP_LINE_BREAK: i64 = 1
pub const SELECTION_SET_FLAG_REVERSE: i64
SELECTION_SET_FLAG_REVERSE: i64 = 2
/**
* If SELECTION_SET_FLAG_REVERSE is set, the selection is set from
* |aOffset + aLength| to |aOffset|. Otherwise, it's set from |aOffset| to
* |aOffset + aLength|.
*/
pub const SELECT_CHARACTER: i64
SELECT_CHARACTER: i64 = 0
pub const SELECT_CLUSTER: i64
SELECT_CLUSTER: i64 = 1
pub const SELECT_WORD: i64
SELECT_WORD: i64 = 2
pub const SELECT_LINE: i64
SELECT_LINE: i64 = 3
pub const SELECT_BEGINLINE: i64
SELECT_BEGINLINE: i64 = 4
pub const SELECT_ENDLINE: i64
SELECT_ENDLINE: i64 = 5
pub const SELECT_PARAGRAPH: i64
SELECT_PARAGRAPH: i64 = 6
pub const SELECT_WORDNOSPACE: i64
SELECT_WORDNOSPACE: i64 = 7
pub const AUDIO_INPUT: i64
AUDIO_INPUT: i64 = 0
/**
* Returns all the audio input/output devices.
*/
pub const AUDIO_OUTPUT: i64
AUDIO_OUTPUT: i64 = 1
pub const AGENT_SHEET: i64
AGENT_SHEET: i64 = 0
pub const USER_SHEET: i64
USER_SHEET: i64 = 1
pub const AUTHOR_SHEET: i64
AUTHOR_SHEET: i64 = 2
pub const DEFAULT_MOUSE_POINTER_ID: i64
DEFAULT_MOUSE_POINTER_ID: i64 = 0
pub const DEFAULT_PEN_POINTER_ID: i64
DEFAULT_PEN_POINTER_ID: i64 = 1
pub const DEFAULT_TOUCH_POINTER_ID: i64
DEFAULT_TOUCH_POINTER_ID: i64 = 2
pub const MOUSE_BUTTON_LEFT_BUTTON: i64
MOUSE_BUTTON_LEFT_BUTTON: i64 = 0
pub const MOUSE_BUTTON_MIDDLE_BUTTON: i64
MOUSE_BUTTON_MIDDLE_BUTTON: i64 = 1
pub const MOUSE_BUTTON_RIGHT_BUTTON: i64
MOUSE_BUTTON_RIGHT_BUTTON: i64 = 2
pub const MOUSE_BUTTONS_NO_BUTTON: i64
MOUSE_BUTTONS_NO_BUTTON: i64 = 0
pub const MOUSE_BUTTONS_LEFT_BUTTON: i64
MOUSE_BUTTONS_LEFT_BUTTON: i64 = 1
pub const MOUSE_BUTTONS_RIGHT_BUTTON: i64
MOUSE_BUTTONS_RIGHT_BUTTON: i64 = 2
pub const MOUSE_BUTTONS_MIDDLE_BUTTON: i64
MOUSE_BUTTONS_MIDDLE_BUTTON: i64 = 4
pub const MOUSE_BUTTONS_4TH_BUTTON: i64
MOUSE_BUTTONS_4TH_BUTTON: i64 = 8
pub const MOUSE_BUTTONS_5TH_BUTTON: i64
MOUSE_BUTTONS_5TH_BUTTON: i64 = 16
pub const MOUSE_BUTTONS_NOT_SPECIFIED: i64
MOUSE_BUTTONS_NOT_SPECIFIED: i64 = -1
pub const DIRECTION_LTR: i64
DIRECTION_LTR: i64 = 0
pub const DIRECTION_RTL: i64
DIRECTION_RTL: i64 = 1
pub const DIRECTION_NOT_SET: i64
DIRECTION_NOT_SET: i64 = 2
pub unsafe fn GetImageAnimationMode(
&self,
aImageAnimationMode: *mut uint16_t
) -> nsresult
[src]
&self,
aImageAnimationMode: *mut uint16_t
) -> nsresult
/**
* Image animation mode of the window. When this attribute's value
* is changed, the implementation should set all images in the window
* to the given value. That is, when set to kDontAnimMode, all images
* will stop animating. The attribute's value must be one of the
* animationMode values from imgIContainer.
* @note Images may individually override the window's setting after
* the window's mode is set. Therefore images given different modes
* since the last setting of the window's mode may behave
* out of line with the window's overall mode.
* @note The attribute's value is the window's overall mode. It may
* for example continue to report kDontAnimMode after all images
* have subsequently been individually animated.
* @note Only images immediately in this window are affected;
* this is not recursive to subwindows.
* @see imgIContainer
*/
attribute unsigned short imageAnimationMode;
pub unsafe fn SetImageAnimationMode(
&self,
aImageAnimationMode: uint16_t
) -> nsresult
[src]
&self,
aImageAnimationMode: uint16_t
) -> nsresult
/**
* Image animation mode of the window. When this attribute's value
* is changed, the implementation should set all images in the window
* to the given value. That is, when set to kDontAnimMode, all images
* will stop animating. The attribute's value must be one of the
* animationMode values from imgIContainer.
* @note Images may individually override the window's setting after
* the window's mode is set. Therefore images given different modes
* since the last setting of the window's mode may behave
* out of line with the window's overall mode.
* @note The attribute's value is the window's overall mode. It may
* for example continue to report kDontAnimMode after all images
* have subsequently been individually animated.
* @note Only images immediately in this window are affected;
* this is not recursive to subwindows.
* @see imgIContainer
*/
attribute unsigned short imageAnimationMode;
pub unsafe fn GetDocCharsetIsForced(
&self,
aDocCharsetIsForced: *mut bool
) -> nsresult
[src]
&self,
aDocCharsetIsForced: *mut bool
) -> nsresult
/**
* Whether the charset of the window's current document has been forced by
* the user.
* Cannot be accessed from unprivileged context (not content-accessible)
*/
readonly attribute boolean docCharsetIsForced;
pub unsafe fn GetPhysicalMillimeterInCSSPixels(
&self,
aPhysicalMillimeterInCSSPixels: *mut c_float
) -> nsresult
[src]
&self,
aPhysicalMillimeterInCSSPixels: *mut c_float
) -> nsresult
/**
* Return the conversion of a physical millimeter in CSS pixels.
*/
readonly attribute float physicalMillimeterInCSSPixels;
pub unsafe fn GetDocumentMetadata(
&self,
aName: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aName: &nsAString,
_retval: &mut nsAString
) -> nsresult
/**
* Function to get metadata associated with the window's current document
* @param aName the name of the metadata. This should be all lowercase.
* @return the value of the metadata, or the empty string if it's not set
*
* Will throw a DOM security error if called without chrome privileges.
*/
AString getDocumentMetadata (in AString aName);
pub unsafe fn Redraw(
&self,
aCount: uint32_t,
_retval: *mut uint32_t
) -> nsresult
[src]
&self,
aCount: uint32_t,
_retval: *mut uint32_t
) -> nsresult
/**
* Force an immediate redraw of this window. The parameter specifies
* the number of times to redraw, and the return value is the length,
* in milliseconds, that the redraws took. If aCount is not specified
* or is 0, it is taken to be 1.
*/
unsigned long redraw ([optional] in unsigned long aCount);
pub unsafe fn UpdateLayerTree(&self) -> nsresult
[src]
/**
* Force a synchronous layer transaction for this window if necessary.
*/
void updateLayerTree ();
pub unsafe fn GetLastTransactionId(
&self,
aLastTransactionId: *mut uint64_t
) -> nsresult
[src]
&self,
aLastTransactionId: *mut uint64_t
) -> nsresult
/**
* Get the last used layer transaction id for this window's refresh driver.
*/
readonly attribute unsigned long long lastTransactionId;
pub unsafe fn GetViewportInfo(
&self,
aDisplayWidth: uint32_t,
aDisplayHeight: uint32_t,
aDefaultZoom: *mut c_double,
aAllowZoom: *mut bool,
aMinZoom: *mut c_double,
aMaxZoom: *mut c_double,
aWidth: *mut uint32_t,
aHeight: *mut uint32_t,
aAutoSize: *mut bool
) -> nsresult
[src]
&self,
aDisplayWidth: uint32_t,
aDisplayHeight: uint32_t,
aDefaultZoom: *mut c_double,
aAllowZoom: *mut bool,
aMinZoom: *mut c_double,
aMaxZoom: *mut c_double,
aWidth: *mut uint32_t,
aHeight: *mut uint32_t,
aAutoSize: *mut bool
) -> nsresult
/**
* Information retrieved from the <meta name="viewport"> tag.
* See nsContentUtils::GetViewportInfo for more information.
*/
void getViewportInfo (in uint32_t aDisplayWidth, in uint32_t aDisplayHeight, out double aDefaultZoom, out boolean aAllowZoom, out double aMinZoom, out double aMaxZoom, out uint32_t aWidth, out uint32_t aHeight, out boolean aAutoSize);
pub unsafe fn GetContentViewerSize(
&self,
aDisplayWidth: *mut uint32_t,
aDisplayHeight: *mut uint32_t
) -> nsresult
[src]
&self,
aDisplayWidth: *mut uint32_t,
aDisplayHeight: *mut uint32_t
) -> nsresult
/**
* Information about the window size in device pixels.
*/
void getContentViewerSize (out uint32_t aDisplayWidth, out uint32_t aDisplayHeight);
pub unsafe fn SetDisplayPortForElement(
&self,
aXPx: c_float,
aYPx: c_float,
aWidthPx: c_float,
aHeightPx: c_float,
aElement: *const nsIDOMElement,
aPriority: uint32_t
) -> nsresult
[src]
&self,
aXPx: c_float,
aYPx: c_float,
aWidthPx: c_float,
aHeightPx: c_float,
aElement: *const nsIDOMElement,
aPriority: uint32_t
) -> nsresult
/**
* For any scrollable element, this allows you to override the
* visible region and draw more than what is visible, which is
* useful for asynchronous drawing. The "displayport" will be
* <xPx, yPx, widthPx, heightPx> in units of CSS pixels,
* regardless of the size of the enclosing container. This
* will *not* trigger reflow.
*
* For the root scroll area, pass in the root document element.
* For scrollable elements, pass in the container element (for
* instance, the element with overflow: scroll).
*
* <x, y> is relative to the top-left of what would normally be
* the visible area of the element. This means that the pixels
* rendered to the displayport take scrolling into account,
* for example.
*
* It's legal to set a displayport that extends beyond the overflow
* area in any direction (left/right/top/bottom).
*
* It's also legal to set a displayport that extends beyond the
* area's bounds. No pixels are rendered outside the area bounds.
*
* The caller of this method must have chrome privileges.
*
* Calling this will always force a recomposite, so it should be
* avoided if at all possible. Client code should do checks before
* calling this so that duplicate sets are not made with the same
* displayport.
*
* aPriority is recorded along with the displayport rectangle. If this
* method is called with a lower priority than the current priority, the
* call is ignored.
*/
void setDisplayPortForElement (in float aXPx, in float aYPx, in float aWidthPx, in float aHeightPx, in nsIDOMElement aElement, in uint32_t aPriority);
pub unsafe fn SetDisplayPortMarginsForElement(
&self,
aLeftMargin: c_float,
aTopMargin: c_float,
aRightMargin: c_float,
aBottomMargin: c_float,
aElement: *const nsIDOMElement,
aPriority: uint32_t
) -> nsresult
[src]
&self,
aLeftMargin: c_float,
aTopMargin: c_float,
aRightMargin: c_float,
aBottomMargin: c_float,
aElement: *const nsIDOMElement,
aPriority: uint32_t
) -> nsresult
/**
* An alternate way to represent a displayport rect as a set of margins and a
* base rect to apply those margins to. A consumer of pixels may ask for as
* many extra pixels as it would like in each direction. Layout then sets
* the base rect to the "visible rect" of the element, which is just the
* subrect of the element that is drawn (it does not take in account content
* covering the element).
*
* If both a displayport rect and displayport margins with corresponding base
* rect are set with the same priority then the margins will take precendence.
*
* Specifying an alignment value will ensure that after the base rect has
* been expanded by the displayport margins, it will be further expanded so
* that each edge is located at a multiple of the "alignment" value.
*
* Note that both the margin values and alignment are treated as values in
* ScreenPixels. Refer to layout/base/Units.h for a description of this unit.
* The base rect values are in app units.
*/
void setDisplayPortMarginsForElement (in float aLeftMargin, in float aTopMargin, in float aRightMargin, in float aBottomMargin, in nsIDOMElement aElement, in uint32_t aPriority);
pub unsafe fn SetDisplayPortBaseForElement(
&self,
aX: int32_t,
aY: int32_t,
aWidth: int32_t,
aHeight: int32_t,
aElement: *const nsIDOMElement
) -> nsresult
[src]
&self,
aX: int32_t,
aY: int32_t,
aWidth: int32_t,
aHeight: int32_t,
aElement: *const nsIDOMElement
) -> nsresult
void setDisplayPortBaseForElement (in int32_t aX, in int32_t aY, in int32_t aWidth, in int32_t aHeight, in nsIDOMElement aElement);
pub unsafe fn SetResolution(&self, aResolution: c_float) -> nsresult
[src]
/**
* Get/set the resolution at which rescalable web content is drawn.
*
* Setting a new resolution does *not* trigger reflow. This API is
* entirely separate from textZoom and fullZoom; a resolution scale
* can be applied together with both textZoom and fullZoom.
*
* The effect of this API is for gfx code to allocate more or fewer
* pixels for rescalable content by a factor of |resolution| in
* both dimensions. The scale at which the content is displayed does
* not change; if that is desired, use setResolutionAndScaleTo() instead.
*
* The caller of this method must have chrome privileges.
*/
void setResolution (in float aResolution);
pub unsafe fn GetResolution(&self, aResolution: *mut c_float) -> nsresult
[src]
void getResolution (out float aResolution);
pub unsafe fn SetResolutionAndScaleTo(&self, aResolution: c_float) -> nsresult
[src]
/**
* Similar to setResolution(), but also scales the content by the
* amount of the resolution, so that it is displayed at a
* correspondingly larger or smaller size, without the need for
* the caller to set an additional transform.
*
* This can be used to implement a non-reflowing scale-zoom, e.g.
* for pinch-zoom on mobile platforms.
*
* The caller of this method must have chrome privileges.
*/
void setResolutionAndScaleTo (in float aResolution);
pub unsafe fn SetRestoreResolution(
&self,
aResolution: c_float,
aDisplayWidth: uint32_t,
aDisplayHeight: uint32_t
) -> nsresult
[src]
&self,
aResolution: c_float,
aDisplayWidth: uint32_t,
aDisplayHeight: uint32_t
) -> nsresult
/**
* Set a resolution on the presShell which is the "restored" from history.
* The display dimensions are compared to their current values and used
* to scale the resolution value if necessary, e.g. if the device was
* rotated between saving and restoring of the session data.
* This resolution should be used when painting for the first time. Calling
* this too late may have no effect.
*/
void setRestoreResolution (in float aResolution, in uint32_t aDisplayWidth, in uint32_t aDisplayHeight);
pub unsafe fn GetIsResolutionSet(&self, aIsResolutionSet: *mut bool) -> nsresult
[src]
/**
* Whether the resolution has been set by the user.
* This gives a way to check whether the provided resolution is the default
* value or restored from a previous session.
*
* Can only be accessed with chrome privileges.
*/
readonly attribute boolean isResolutionSet;
pub unsafe fn GetIsFirstPaint(&self, aIsFirstPaint: *mut bool) -> nsresult
[src]
/**
* Whether the next paint should be flagged as the first paint for a document.
* This gives a way to track the next paint that occurs after the flag is
* set. The flag gets cleared after the next paint.
*
* Can only be accessed with chrome privileges.
*/
attribute boolean isFirstPaint;
pub unsafe fn SetIsFirstPaint(&self, aIsFirstPaint: bool) -> nsresult
[src]
/**
* Whether the next paint should be flagged as the first paint for a document.
* This gives a way to track the next paint that occurs after the flag is
* set. The flag gets cleared after the next paint.
*
* Can only be accessed with chrome privileges.
*/
attribute boolean isFirstPaint;
pub unsafe fn GetPresShellId(&self, _retval: *mut uint32_t) -> nsresult
[src]
uint32_t getPresShellId ();
pub unsafe fn SendTouchEvent(
&self,
aType: &nsAString,
aIdentifiers: *mut uint32_t,
aXs: *mut int32_t,
aYs: *mut int32_t,
aRxs: *mut uint32_t,
aRys: *mut uint32_t,
aRotationAngles: *mut c_float,
aForces: *mut c_float,
count: uint32_t,
aModifiers: int32_t,
aIgnoreRootScrollFrame: bool,
_retval: *mut bool
) -> nsresult
[src]
&self,
aType: &nsAString,
aIdentifiers: *mut uint32_t,
aXs: *mut int32_t,
aYs: *mut int32_t,
aRxs: *mut uint32_t,
aRys: *mut uint32_t,
aRotationAngles: *mut c_float,
aForces: *mut c_float,
count: uint32_t,
aModifiers: int32_t,
aIgnoreRootScrollFrame: bool,
_retval: *mut bool
) -> nsresult
/** Synthesize a touch event. The event types supported are:
* touchstart, touchend, touchmove, and touchcancel
*
* Events are sent in coordinates offset by aX and aY from the window.
*
* Cannot be accessed from unprivileged context (not content-accessible)
* Will throw a DOM security error if called without chrome privileges.
*
* The event is dispatched via the toplevel window, so it could go to any
* window under the toplevel window, in some cases it could never reach this
* window at all.
*
* @param aType event type
* @param xs array of offsets in CSS pixels for each touch to be sent
* @param ys array of offsets in CSS pixels for each touch to be sent
* @param rxs array of radii in CSS pixels for each touch to be sent
* @param rys array of radii in CSS pixels for each touch to be sent
* @param rotationAngles array of angles in degrees for each touch to be sent
* @param forces array of forces (floats from 0 to 1) for each touch to be sent
* @param count number of touches in this set
* @param aModifiers modifiers pressed, using constants defined as MODIFIER_*
* @param aIgnoreRootScrollFrame whether the event should ignore viewport bounds
* during dispatch
*
* returns true if the page called prevent default on this touch event
*/
boolean sendTouchEvent (in AString aType, [array, size_is (count)] in uint32_t aIdentifiers, [array, size_is (count)] in int32_t aXs, [array, size_is (count)] in int32_t aYs, [array, size_is (count)] in uint32_t aRxs, [array, size_is (count)] in uint32_t aRys, [array, size_is (count)] in float aRotationAngles, [array, size_is (count)] in float aForces, in uint32_t count, in long aModifiers, [optional] in boolean aIgnoreRootScrollFrame);
pub unsafe fn SendTouchEventToWindow(
&self,
aType: &nsAString,
aIdentifiers: *mut uint32_t,
aXs: *mut int32_t,
aYs: *mut int32_t,
aRxs: *mut uint32_t,
aRys: *mut uint32_t,
aRotationAngles: *mut c_float,
aForces: *mut c_float,
count: uint32_t,
aModifiers: int32_t,
aIgnoreRootScrollFrame: bool,
_retval: *mut bool
) -> nsresult
[src]
&self,
aType: &nsAString,
aIdentifiers: *mut uint32_t,
aXs: *mut int32_t,
aYs: *mut int32_t,
aRxs: *mut uint32_t,
aRys: *mut uint32_t,
aRotationAngles: *mut c_float,
aForces: *mut c_float,
count: uint32_t,
aModifiers: int32_t,
aIgnoreRootScrollFrame: bool,
_retval: *mut bool
) -> nsresult
/** The same as sendTouchEvent but ensures that the event is dispatched to
* this DOM window or one of its children.
*/
boolean sendTouchEventToWindow (in AString aType, [array, size_is (count)] in uint32_t aIdentifiers, [array, size_is (count)] in int32_t aXs, [array, size_is (count)] in int32_t aYs, [array, size_is (count)] in uint32_t aRxs, [array, size_is (count)] in uint32_t aRys, [array, size_is (count)] in float aRotationAngles, [array, size_is (count)] in float aForces, in uint32_t count, in long aModifiers, [optional] in boolean aIgnoreRootScrollFrame);
pub unsafe fn SendWheelEvent(
&self,
aX: c_float,
aY: c_float,
aDeltaX: c_double,
aDeltaY: c_double,
aDeltaZ: c_double,
aDeltaMode: uint32_t,
aModifiers: int32_t,
aLineOrPageDeltaX: int32_t,
aLineOrPageDeltaY: int32_t,
aOptions: uint32_t
) -> nsresult
[src]
&self,
aX: c_float,
aY: c_float,
aDeltaX: c_double,
aDeltaY: c_double,
aDeltaZ: c_double,
aDeltaMode: uint32_t,
aModifiers: int32_t,
aLineOrPageDeltaX: int32_t,
aLineOrPageDeltaY: int32_t,
aOptions: uint32_t
) -> nsresult
void sendWheelEvent (in float aX, in float aY, in double aDeltaX, in double aDeltaY, in double aDeltaZ, in unsigned long aDeltaMode, in long aModifiers, in long aLineOrPageDeltaX, in long aLineOrPageDeltaY, in unsigned long aOptions);
pub unsafe fn SendKeyEvent(
&self,
aType: &nsAString,
aKeyCode: int32_t,
aCharCode: int32_t,
aModifiers: int32_t,
aAdditionalFlags: uint32_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
aType: &nsAString,
aKeyCode: int32_t,
aCharCode: int32_t,
aModifiers: int32_t,
aAdditionalFlags: uint32_t,
_retval: *mut bool
) -> nsresult
boolean sendKeyEvent (in AString aType, in long aKeyCode, in long aCharCode, in long aModifiers, [optional] in unsigned long aAdditionalFlags);
pub unsafe fn SendNativeKeyEvent(
&self,
aNativeKeyboardLayout: int32_t,
aNativeKeyCode: int32_t,
aModifierFlags: int32_t,
aCharacters: &nsAString,
aUnmodifiedCharacters: &nsAString,
aObserver: *const nsIObserver
) -> nsresult
[src]
&self,
aNativeKeyboardLayout: int32_t,
aNativeKeyCode: int32_t,
aModifierFlags: int32_t,
aCharacters: &nsAString,
aUnmodifiedCharacters: &nsAString,
aObserver: *const nsIObserver
) -> nsresult
/**
* See nsIWidget::SynthesizeNativeKeyEvent
*
* Cannot be accessed from unprivileged context (not content-accessible)
* Will throw a DOM security error if called without chrome privileges.
*
* When you use this for tests, use the constants defined in NativeKeyCodes.js
*
* NOTE: The synthesized native event will be fired asynchronously, and upon
* completion the observer, if provided, will be notified with a "keyevent"
* topic.
*/
void sendNativeKeyEvent (in long aNativeKeyboardLayout, in long aNativeKeyCode, in long aModifierFlags, in AString aCharacters, in AString aUnmodifiedCharacters, [optional] in nsIObserver aObserver);
pub unsafe fn SendNativeMouseEvent(
&self,
aScreenX: int32_t,
aScreenY: int32_t,
aNativeMessage: int32_t,
aModifierFlags: int32_t,
aElement: *const nsIDOMElement,
aObserver: *const nsIObserver
) -> nsresult
[src]
&self,
aScreenX: int32_t,
aScreenY: int32_t,
aNativeMessage: int32_t,
aModifierFlags: int32_t,
aElement: *const nsIDOMElement,
aObserver: *const nsIObserver
) -> nsresult
/**
* See nsIWidget::SynthesizeNativeMouseEvent
*
* Will be called on the widget that contains aElement.
* Cannot be accessed from unprivileged context (not content-accessible)
* Will throw a DOM security error if called without chrome privileges.
*
* NOTE: The synthesized native event will be fired asynchronously, and upon
* completion the observer, if provided, will be notified with a "mouseevent"
* topic.
*/
void sendNativeMouseEvent (in long aScreenX, in long aScreenY, in long aNativeMessage, in long aModifierFlags, in nsIDOMElement aElement, [optional] in nsIObserver aObserver);
pub unsafe fn SendNativeMouseMove(
&self,
aScreenX: int32_t,
aScreenY: int32_t,
aElement: *const nsIDOMElement,
aObserver: *const nsIObserver
) -> nsresult
[src]
&self,
aScreenX: int32_t,
aScreenY: int32_t,
aElement: *const nsIDOMElement,
aObserver: *const nsIObserver
) -> nsresult
/**
* See nsIWidget::SynthesizeNativeMouseMove and sendNativeMouseEvent
*/
void sendNativeMouseMove (in long aScreenX, in long aScreenY, in nsIDOMElement aElement, [optional] in nsIObserver aObserver);
pub unsafe fn SuppressAnimation(&self, aSuppress: bool) -> nsresult
[src]
/**
* Suppress animations that are applied to a window by OS when
* resizing, moving, changing size mode, ...
*/
void suppressAnimation (in boolean aSuppress);
pub unsafe fn SendNativeMouseScrollEvent(
&self,
aScreenX: int32_t,
aScreenY: int32_t,
aNativeMessage: uint32_t,
aDeltaX: c_double,
aDeltaY: c_double,
aDeltaZ: c_double,
aModifierFlags: uint32_t,
aAdditionalFlags: uint32_t,
aElement: *const nsIDOMElement,
aObserver: *const nsIObserver
) -> nsresult
[src]
&self,
aScreenX: int32_t,
aScreenY: int32_t,
aNativeMessage: uint32_t,
aDeltaX: c_double,
aDeltaY: c_double,
aDeltaZ: c_double,
aModifierFlags: uint32_t,
aAdditionalFlags: uint32_t,
aElement: *const nsIDOMElement,
aObserver: *const nsIObserver
) -> nsresult
/**
* See nsIWidget::SynthesizeNativeMouseScrollEvent
*
* Will be called on the widget that contains aElement.
* Cannot be accessed from unprivileged context (not content-accessible)
* Will throw a DOM security error if called without chrome privileges.
*
* NOTE: The synthesized native event will be fired asynchronously, and upon
* completion the observer, if provided, will be notified with a
* "mousescrollevent" topic.
*
* @param aNativeMessage
* On Windows: WM_MOUSEWHEEL (0x020A), WM_MOUSEHWHEEL(0x020E),
* WM_VSCROLL (0x0115) or WM_HSCROLL (0x114).
*/
void sendNativeMouseScrollEvent (in long aScreenX, in long aScreenY, in unsigned long aNativeMessage, in double aDeltaX, in double aDeltaY, in double aDeltaZ, in unsigned long aModifierFlags, in unsigned long aAdditionalFlags, in nsIDOMElement aElement, [optional] in nsIObserver aObserver);
pub unsafe fn SendNativeTouchPoint(
&self,
aPointerId: uint32_t,
aTouchState: uint32_t,
aScreenX: int32_t,
aScreenY: int32_t,
aPressure: c_double,
aOrientation: uint32_t,
aObserver: *const nsIObserver
) -> nsresult
[src]
&self,
aPointerId: uint32_t,
aTouchState: uint32_t,
aScreenX: int32_t,
aScreenY: int32_t,
aPressure: c_double,
aOrientation: uint32_t,
aObserver: *const nsIObserver
) -> nsresult
/**
* Create a new or update an existing touch point on the digitizer.
* To trigger os level gestures, individual touch points should
* transition through a complete set of touch states which should be
* sent as individual calls. For example:
* tap - msg1:TOUCH_CONTACT, msg2:TOUCH_REMOVE
* drag - msg1-n:TOUCH_CONTACT (moving), msgn+1:TOUCH_REMOVE
* hover drag - msg1-n:TOUCH_HOVER (moving), msgn+1:TOUCH_REMOVE
*
* Widget support: Windows 8.0+, Winrt/Win32. Other widgets will throw.
*
* NOTE: The synthesized native event will be fired asynchronously, and upon
* completion the observer, if provided, will be notified with a "touchpoint"
* topic.
*
* @param aPointerId The touch point id to create or update.
* @param aTouchState one or more of the touch states listed above
* @param aScreenX, aScreenY screen coords of this event
* @param aPressure 0.0 -> 1.0 float val indicating pressure
* @param aOrientation 0 -> 359 degree value indicating the
* orientation of the pointer. Use 90 for normal taps.
*/
void sendNativeTouchPoint (in unsigned long aPointerId, in unsigned long aTouchState, in long aScreenX, in long aScreenY, in double aPressure, in unsigned long aOrientation, [optional] in nsIObserver aObserver);
pub unsafe fn SendNativeTouchTap(
&self,
aScreenX: int32_t,
aScreenY: int32_t,
aLongTap: bool,
aObserver: *const nsIObserver
) -> nsresult
[src]
&self,
aScreenX: int32_t,
aScreenY: int32_t,
aLongTap: bool,
aObserver: *const nsIObserver
) -> nsresult
/**
* Simulates native touch based taps on the input digitizer. Events
* triggered by this call are injected at the os level. Events do not
* bypass widget level input processing and as such can be used to
* test widget event logic and async pan-zoom controller functionality.
* Cannot be accessed from an unprivileged context.
*
* Long taps (based on the aLongTap parameter) will be completed
* asynchrnously after the call returns. Long tap delay is based on
* the ui.click_hold_context_menus.delay pref or 1500 msec if pref
* is not set.
*
* Widget support: Windows 8.0+, Winrt/Win32. Other widgets will
* throw.
*
* NOTE: The synthesized native event will be fired asynchronously, and upon
* completion the observer, if provided, will be notified, with a "touchtap"
* topic.
*
* @param aScreenX, aScreenY screen coords of this event
* @param aLongTap true if the tap should be long, false for a short
* tap.
*/
void sendNativeTouchTap (in long aScreenX, in long aScreenY, in boolean aLongTap, [optional] in nsIObserver aObserver);
pub unsafe fn ClearNativeTouchSequence(
&self,
aObserver: *const nsIObserver
) -> nsresult
[src]
&self,
aObserver: *const nsIObserver
) -> nsresult
/**
* Cancel any existing touch points or long tap delays. Calling this is safe
* even if you're sure there aren't any pointers recorded. You should call
* this when tests shut down to reset the digitizer driver. Not doing so can
* leave the digitizer in an undetermined state which can screw up subsequent
* tests and native input.
*
* NOTE: The synthesized native event will be fired asynchronously, and upon
* completion the observer, if provided, will be notified with a "cleartouch"
* topic.
*/
void clearNativeTouchSequence ([optional] in nsIObserver aObserver);
pub unsafe fn ActivateNativeMenuItemAt(
&self,
indexString: &nsAString
) -> nsresult
[src]
&self,
indexString: &nsAString
) -> nsresult
/**
* See nsIWidget::ActivateNativeMenuItemAt
*
* Cannot be accessed from unprivileged context (not content-accessible)
* Will throw a DOM security error if called without chrome privileges.
*/
void activateNativeMenuItemAt (in AString indexString);
pub unsafe fn ForceUpdateNativeMenuAt(
&self,
indexString: &nsAString
) -> nsresult
[src]
&self,
indexString: &nsAString
) -> nsresult
/**
* See nsIWidget::ForceUpdateNativeMenuAt
*
* Cannot be accessed from unprivileged context (not content-accessible)
* Will throw a DOM security error if called without chrome privileges.
*/
void forceUpdateNativeMenuAt (in AString indexString);
pub unsafe fn GetSelectionAsPlaintext(
&self,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
_retval: &mut nsAString
) -> nsresult
/**
* Returns the current selection as plaintext. Note that the result may be
* different from the result of sendQueryContentEvent(QUERY_SELECTED_TEXT).
* This result is computed by native API with transferable data. In other
* words, when the OS treats the selection as plaintext, it treats current
* selection as this result.
*/
AString GetSelectionAsPlaintext ();
pub unsafe fn Focus(&self, aElement: *const nsIDOMElement) -> nsresult
[src]
/**
* Focus the element aElement. The element should be in the same document
* that the window is displaying. Pass null to blur the element, if any,
* that currently has focus, and focus the document.
*
* Cannot be accessed from unprivileged context (not content-accessible)
* Will throw a DOM security error if called without chrome privileges.
*
* @param aElement the element to focus
*
* Do not use this method. Just use element.focus if available or
* nsIFocusManager::SetFocus instead.
*
*/
void focus (in nsIDOMElement aElement);
pub unsafe fn GarbageCollect(
&self,
aListener: *const nsICycleCollectorListener
) -> nsresult
[src]
&self,
aListener: *const nsICycleCollectorListener
) -> nsresult
/**
* Force a garbage collection followed by a cycle collection.
*
* Will throw a DOM security error if called without chrome privileges in
* non-debug builds. Available to all callers in debug builds.
*
* @param aListener listener that receives information about the CC graph
* (see @mozilla.org/cycle-collector-logger;1 for a logger
* component)
*/
void garbageCollect ([optional] in nsICycleCollectorListener aListener);
pub unsafe fn CycleCollect(
&self,
aListener: *const nsICycleCollectorListener
) -> nsresult
[src]
&self,
aListener: *const nsICycleCollectorListener
) -> nsresult
/**
* Force a cycle collection without garbage collection.
*
* Will throw a DOM security error if called without chrome privileges in
* non-debug builds. Available to all callers in debug builds.
*
* @param aListener listener that receives information about the CC graph
* (see @mozilla.org/cycle-collector-logger;1 for a logger
* component)
*/
void cycleCollect ([optional] in nsICycleCollectorListener aListener);
pub unsafe fn RunNextCollectorTimer(&self) -> nsresult
[src]
/**
* Trigger whichever GC or CC timer is currently active and waiting to fire.
* Don't do this too much for initiating heavy actions, like the start of a IGC.
*/
void runNextCollectorTimer ();
pub unsafe fn SendSimpleGestureEvent(
&self,
aType: &nsAString,
aX: c_float,
aY: c_float,
aDirection: uint32_t,
aDelta: c_double,
aModifiers: int32_t,
aClickCount: uint32_t
) -> nsresult
[src]
&self,
aType: &nsAString,
aX: c_float,
aY: c_float,
aDirection: uint32_t,
aDelta: c_double,
aModifiers: int32_t,
aClickCount: uint32_t
) -> nsresult
/** Synthesize a simple gesture event for a window. The event types
* supported are: MozSwipeGestureMayStart, MozSwipeGestureStart,
* MozSwipeGestureUpdate, MozSwipeGestureEnd, MozSwipeGesture,
* MozMagnifyGestureStart, MozMagnifyGestureUpdate, MozMagnifyGesture,
* MozRotateGestureStart, MozRotateGestureUpdate, MozRotateGesture,
* MozPressTapGesture, MozTapGesture, and MozEdgeUIGesture.
*
* Cannot be accessed from unprivileged context (not
* content-accessible) Will throw a DOM security error if called
* without chrome privileges.
*
* @param aType event type
* @param aX x offset in CSS pixels
* @param aY y offset in CSS pixels
* @param aDirection direction, using constants defined in nsIDOMSimpleGestureEvent
* @param aDelta amount of magnification or rotation for magnify and rotation events
* @param aModifiers modifiers pressed, using constants defined in nsIDOMNSEvent
* @param aClickCount For tap gestures, the number of taps.
*/
void sendSimpleGestureEvent (in AString aType, in float aX, in float aY, in unsigned long aDirection, in double aDelta, in long aModifiers, [optional] in unsigned long aClickCount);
pub unsafe fn ElementFromPoint(
&self,
aX: c_float,
aY: c_float,
aIgnoreRootScrollFrame: bool,
aFlushLayout: bool,
_retval: *mut *const nsIDOMElement
) -> nsresult
[src]
&self,
aX: c_float,
aY: c_float,
aIgnoreRootScrollFrame: bool,
aFlushLayout: bool,
_retval: *mut *const nsIDOMElement
) -> nsresult
/**
* Retrieve the element at point aX, aY in the window's document.
*
* @param aIgnoreRootScrollFrame whether or not to ignore the root scroll
* frame when retrieving the element. If false, this method returns
* null for coordinates outside of the viewport.
* @param aFlushLayout flushes layout if true. Otherwise, no flush occurs.
*/
nsIDOMElement elementFromPoint (in float aX, in float aY, in boolean aIgnoreRootScrollFrame, in boolean aFlushLayout);
pub unsafe fn NodesFromRect(
&self,
aX: c_float,
aY: c_float,
aTopSize: c_float,
aRightSize: c_float,
aBottomSize: c_float,
aLeftSize: c_float,
aIgnoreRootScrollFrame: bool,
aFlushLayout: bool,
_retval: *mut *const nsIDOMNodeList
) -> nsresult
[src]
&self,
aX: c_float,
aY: c_float,
aTopSize: c_float,
aRightSize: c_float,
aBottomSize: c_float,
aLeftSize: c_float,
aIgnoreRootScrollFrame: bool,
aFlushLayout: bool,
_retval: *mut *const nsIDOMNodeList
) -> nsresult
/**
* Retrieve all nodes that intersect a rect in the window's document.
*
* @param aX x reference for the rectangle in CSS pixels
* @param aY y reference for the rectangle in CSS pixels
* @param aTopSize How much to expand up the rectangle
* @param aRightSize How much to expand right the rectangle
* @param aBottomSize How much to expand down the rectangle
* @param aLeftSize How much to expand left the rectangle
* @param aIgnoreRootScrollFrame whether or not to ignore the root scroll
* frame when retrieving the element. If false, this method returns
* null for coordinates outside of the viewport.
* @param aFlushLayout flushes layout if true. Otherwise, no flush occurs.
*/
nsIDOMNodeList nodesFromRect (in float aX, in float aY, in float aTopSize, in float aRightSize, in float aBottomSize, in float aLeftSize, in boolean aIgnoreRootScrollFrame, in boolean aFlushLayout);
pub unsafe fn GetTranslationNodes(
&self,
aRoot: *const nsIDOMNode,
_retval: *mut *const nsITranslationNodeList
) -> nsresult
[src]
&self,
aRoot: *const nsIDOMNode,
_retval: *mut *const nsITranslationNodeList
) -> nsresult
/**
* Get a list of nodes that have meaningful textual content to
* be translated. The implementation of this algorithm is in flux
* as we experiment and refine which approach works best.
*
* This method requires chrome privileges.
*/
nsITranslationNodeList getTranslationNodes (in nsIDOMNode aRoot);
pub unsafe fn CompareCanvases(
&self,
aCanvas1: *const nsISupports,
aCanvas2: *const nsISupports,
aMaxDifference: *mut uint32_t,
_retval: *mut uint32_t
) -> nsresult
[src]
&self,
aCanvas1: *const nsISupports,
aCanvas2: *const nsISupports,
aMaxDifference: *mut uint32_t,
_retval: *mut uint32_t
) -> nsresult
/**
* Compare the two canvases, returning the number of differing pixels and
* the maximum difference in a channel. This will throw an error if
* the dimensions of the two canvases are different.
*
* This method requires chrome privileges.
*/
uint32_t compareCanvases (in nsISupports aCanvas1, in nsISupports aCanvas2, out unsigned long aMaxDifference);
pub unsafe fn GetIsMozAfterPaintPending(
&self,
aIsMozAfterPaintPending: *mut bool
) -> nsresult
[src]
&self,
aIsMozAfterPaintPending: *mut bool
) -> nsresult
/**
* Returns true if a MozAfterPaint event has been queued but not yet
* fired.
*/
readonly attribute boolean isMozAfterPaintPending;
pub unsafe fn SuppressEventHandling(&self, aSuppress: bool) -> nsresult
[src]
/**
* Suppresses/unsuppresses user initiated event handling in window's document
* and subdocuments.
*
* @throw NS_ERROR_DOM_SECURITY_ERR if called without chrome privileges and
* NS_ERROR_FAILURE if window doesn't have a document.
*/
void suppressEventHandling (in boolean aSuppress);
pub unsafe fn DisableNonTestMouseEvents(&self, aDisable: bool) -> nsresult
[src]
/**
* Disable or enable non synthetic test mouse events on *all* windows.
*
* Cannot be accessed from unprivileged context (not content-accessible).
* Will throw a DOM security error if called without chrome privileges.
*
* @param aDisable If true, disable all non synthetic test mouse events
* on all windows. Otherwise, enable them.
*/
void disableNonTestMouseEvents (in boolean aDisable);
pub unsafe fn GetScrollXY(
&self,
aFlushLayout: bool,
aScrollX: *mut int32_t,
aScrollY: *mut int32_t
) -> nsresult
[src]
&self,
aFlushLayout: bool,
aScrollX: *mut int32_t,
aScrollY: *mut int32_t
) -> nsresult
/**
* Returns the scroll position of the window's currently loaded document.
*
* @param aFlushLayout flushes layout if true. Otherwise, no flush occurs.
* @see nsIDOMWindow::scrollX/Y
*/
void getScrollXY (in boolean aFlushLayout, out long aScrollX, out long aScrollY);
pub unsafe fn GetScrollXYFloat(
&self,
aFlushLayout: bool,
aScrollX: *mut c_float,
aScrollY: *mut c_float
) -> nsresult
[src]
&self,
aFlushLayout: bool,
aScrollX: *mut c_float,
aScrollY: *mut c_float
) -> nsresult
/**
* Returns the scroll position of the window's currently loaded document.
*
* @param aFlushLayout flushes layout if true. Otherwise, no flush occurs.
* @see nsIDOMWindow::scrollX/Y
*/
void getScrollXYFloat (in boolean aFlushLayout, out float aScrollX, out float aScrollY);
pub unsafe fn GetScrollbarSize(
&self,
aFlushLayout: bool,
aWidth: *mut int32_t,
aHeight: *mut int32_t
) -> nsresult
[src]
&self,
aFlushLayout: bool,
aWidth: *mut int32_t,
aHeight: *mut int32_t
) -> nsresult
/**
* Returns the scrollbar width of the window's scroll frame.
*
* @param aFlushLayout flushes layout if true. Otherwise, no flush occurs.
*/
void getScrollbarSize (in boolean aFlushLayout, out long aWidth, out long aHeight);
pub unsafe fn GetBoundsWithoutFlushing(
&self,
aElement: *const nsIDOMElement,
_retval: *mut *const nsIDOMClientRect
) -> nsresult
[src]
&self,
aElement: *const nsIDOMElement,
_retval: *mut *const nsIDOMClientRect
) -> nsresult
/**
* Returns the given element's bounds without flushing pending layout changes.
*/
nsIDOMClientRect getBoundsWithoutFlushing (in nsIDOMElement aElement);
pub unsafe fn NeedsFlush(
&self,
aFlushtype: int32_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
aFlushtype: int32_t,
_retval: *mut bool
) -> nsresult
/**
* Returns true if a flush of the given type is needed.
*/
bool needsFlush (in long aFlushtype);
pub unsafe fn GetRootBounds(
&self,
_retval: *mut *const nsIDOMClientRect
) -> nsresult
[src]
&self,
_retval: *mut *const nsIDOMClientRect
) -> nsresult
/**
* Returns the bounds of the window's currently loaded document. This will
* generally be (0, 0, pageWidth, pageHeight) but in some cases (e.g. RTL
* documents) may have a negative left value.
*/
nsIDOMClientRect getRootBounds ();
pub unsafe fn GetIMEIsOpen(&self, aIMEIsOpen: *mut bool) -> nsresult
[src]
/**
* Get IME open state. TRUE means 'Open', otherwise, 'Close'.
* This property works only when IMEEnabled is IME_STATUS_ENABLED.
*/
readonly attribute boolean IMEIsOpen;
pub unsafe fn GetIMEStatus(&self, aIMEStatus: *mut uint32_t) -> nsresult
[src]
/**
* Get IME status, see above IME_STATUS_* definitions.
*/
readonly attribute unsigned long IMEStatus;
pub unsafe fn GetScreenPixelsPerCSSPixel(
&self,
aScreenPixelsPerCSSPixel: *mut c_float
) -> nsresult
[src]
&self,
aScreenPixelsPerCSSPixel: *mut c_float
) -> nsresult
/**
* Get the number of screen pixels per CSS pixel.
*/
readonly attribute float screenPixelsPerCSSPixel;
pub unsafe fn GetFullZoom(&self, aFullZoom: *mut c_float) -> nsresult
[src]
/**
* Get the current zoom factor.
* This is _approximately_ the same as nsIContentViewer.fullZoom,
* but takes into account Gecko's quantization of the zoom factor, which is
* implemented by adjusting the (integer) number of appUnits per devPixel.
*/
readonly attribute float fullZoom;
pub unsafe fn DispatchDOMEventViaPresShell(
&self,
aTarget: *const nsIDOMNode,
aEvent: *const nsIDOMEvent,
aTrusted: bool,
_retval: *mut bool
) -> nsresult
[src]
&self,
aTarget: *const nsIDOMNode,
aEvent: *const nsIDOMEvent,
aTrusted: bool,
_retval: *mut bool
) -> nsresult
/**
* Dispatches aEvent via the nsIPresShell object of the window's document.
* The event is dispatched to aTarget, which should be an object
* which implements nsIContent interface (#element, #text, etc).
*
* Cannot be accessed from unprivileged context (not
* content-accessible) Will throw a DOM security error if called
* without chrome privileges.
*
* @note Event handlers won't get aEvent as parameter, but a similar event.
* Also, aEvent should not be reused.
*/
boolean dispatchDOMEventViaPresShell (in nsIDOMNode aTarget, in nsIDOMEvent aEvent, in boolean aTrusted);
pub unsafe fn DispatchEventToChromeOnly(
&self,
aTarget: *const nsIDOMEventTarget,
aEvent: *const nsIDOMEvent,
_retval: *mut bool
) -> nsresult
[src]
&self,
aTarget: *const nsIDOMEventTarget,
aEvent: *const nsIDOMEvent,
_retval: *mut bool
) -> nsresult
/**
* Sets WidgetEvent::mFlags::mOnlyChromeDispatch to true to ensure that
* the event is propagated only to chrome.
* Event's .target property will be aTarget.
* Returns the same value as what EventTarget.dispatchEvent does.
*/
boolean dispatchEventToChromeOnly (in nsIDOMEventTarget aTarget, in nsIDOMEvent aEvent);
pub unsafe fn SendContentCommandEvent(
&self,
aType: &nsAString,
aTransferable: *const nsITransferable
) -> nsresult
[src]
&self,
aType: &nsAString,
aTransferable: *const nsITransferable
) -> nsresult
/**
* Generate a content command event.
*
* Cannot be accessed from unprivileged context (not content-accessible)
* Will throw a DOM security error if called without chrome privileges.
*
* @param aType Type of command content event to send. Can be one of "cut",
* "copy", "paste", "delete", "undo", "redo", or "pasteTransferable".
* @param aTransferable an instance of nsITransferable when aType is
* "pasteTransferable"
*/
void sendContentCommandEvent (in AString aType, [optional] in nsITransferable aTransferable);
pub unsafe fn SendQueryContentEvent(
&self,
aType: uint32_t,
aOffset: int64_t,
aLength: uint32_t,
aX: int32_t,
aY: int32_t,
aAdditionalFlags: uint32_t,
_retval: *mut *const nsIQueryContentEventResult
) -> nsresult
[src]
&self,
aType: uint32_t,
aOffset: int64_t,
aLength: uint32_t,
aX: int32_t,
aY: int32_t,
aAdditionalFlags: uint32_t,
_retval: *mut *const nsIQueryContentEventResult
) -> nsresult
/**
* Synthesize a query content event. Note that the result value returned here
* is in LayoutDevice pixels rather than CSS pixels.
*
* @param aType One of the following const values. And see also each comment
* for the other parameters and the result.
* @param aAdditionalFlags See the description of QUERY_CONTENT_FLAG_*.
*/
nsIQueryContentEventResult sendQueryContentEvent (in unsigned long aType, in long long aOffset, in unsigned long aLength, in long aX, in long aY, [optional] in unsigned long aAdditionalFlags);
pub unsafe fn RemoteFrameFullscreenChanged(
&self,
aFrameElement: *const nsIDOMElement
) -> nsresult
[src]
&self,
aFrameElement: *const nsIDOMElement
) -> nsresult
/**
* Called when the remote child frame has changed its fullscreen state,
* when entering fullscreen, and when the origin which is fullscreen changes.
* aFrameElement is the iframe element which contains the child-process
* fullscreen document.
*/
void remoteFrameFullscreenChanged (in nsIDOMElement aFrameElement);
pub unsafe fn RemoteFrameFullscreenReverted(&self) -> nsresult
[src]
/**
* Called when the remote frame has popped all fullscreen elements off its
* stack, so that the operation can complete on the parent side.
*/
void remoteFrameFullscreenReverted ();
pub unsafe fn HandleFullscreenRequests(&self, _retval: *mut bool) -> nsresult
[src]
/**
* Calls the document to handle any pending fullscreen requests.
* It is called when the parent document has entered fullscreen, and
* we want to put the current document into fullscreen as well.
* The return value indicates whether there is any fullscreen request
* handled by this call.
*/
boolean handleFullscreenRequests ();
pub unsafe fn ExitFullscreen(&self) -> nsresult
[src]
/**
* Called when the child frame has fully exit fullscreen, so that the parent
* process can also fully exit.
*/
void exitFullscreen ();
pub unsafe fn SendSelectionSetEvent(
&self,
aOffset: uint32_t,
aLength: uint32_t,
aAdditionalFlags: uint32_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
aOffset: uint32_t,
aLength: uint32_t,
aAdditionalFlags: uint32_t,
_retval: *mut bool
) -> nsresult
/**
* Synthesize a selection set event to the window.
*
* This sets the selection as the specified information.
*
* @param aOffset The caret offset of the selection start.
* @param aLength The length of the selection. If this is too long, the
* extra length is ignored.
* @param aAdditionalFlags See the description of SELECTION_SET_FLAG_*.
* @return True, if succeeded. Otherwise, false.
*/
boolean sendSelectionSetEvent (in unsigned long aOffset, in unsigned long aLength, [optional] in unsigned long aAdditionalFlags);
pub unsafe fn SelectAtPoint(
&self,
aX: c_float,
aY: c_float,
aSelectBehavior: uint32_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
aX: c_float,
aY: c_float,
aSelectBehavior: uint32_t,
_retval: *mut bool
) -> nsresult
/**
* Select content at a client point based on a selection behavior if the
* underlying content is selectable. Selection will accumulate with any
* existing selection, callers should clear selection prior if needed.
* May fire selection changed events. Calls nsFrame's SelectByTypeAtPoint.
*
* @param aX, aY The selection point in client coordinates.
* @param aSelectType The selection behavior requested.
* @return True if a selection occured, false otherwise.
* @throw NS_ERROR_DOM_SECURITY_ERR, NS_ERROR_UNEXPECTED for utils
* issues, and NS_ERROR_INVALID_ARG for coordinates that are outside
* this window.
*/
boolean selectAtPoint (in float aX, in float aY, in unsigned long aSelectBehavior);
pub unsafe fn GetVisitedDependentComputedStyle(
&self,
aElement: *const nsIDOMElement,
aPseudoElement: &nsAString,
aPropertyName: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aElement: *const nsIDOMElement,
aPseudoElement: &nsAString,
aPropertyName: &nsAString,
_retval: &mut nsAString
) -> nsresult
/**
* Perform the equivalent of:
* window.getComputedStyle(aElement, aPseudoElement).
* getPropertyValue(aPropertyName)
* except that, when the link whose presence in history is allowed to
* influence aElement's style is visited, get the value the property
* would have if allowed all properties to change as a result of
* :visited selectors (except for cases where getComputedStyle uses
* data from the frame).
*
* This is easier to implement than adding our property restrictions
* to this API, and is sufficient for the present testing
* requirements (which are essentially testing 'color').
*/
AString getVisitedDependentComputedStyle (in nsIDOMElement aElement, in AString aPseudoElement, in AString aPropertyName);
pub unsafe fn GetOuterWindowID(&self, aOuterWindowID: *mut uint64_t) -> nsresult
[src]
/**
* Get the id of the outer window of this window. This will never throw.
*/
readonly attribute unsigned long long outerWindowID;
pub unsafe fn GetCurrentInnerWindowID(
&self,
aCurrentInnerWindowID: *mut uint64_t
) -> nsresult
[src]
&self,
aCurrentInnerWindowID: *mut uint64_t
) -> nsresult
/**
* Get the id of the current inner window of this window. If there
* is no current inner window, throws NS_ERROR_NOT_AVAILABLE.
*/
readonly attribute unsigned long long currentInnerWindowID;
pub unsafe fn EnterModalState(&self) -> nsresult
[src]
/**
* Put the window into a state where scripts are frozen and events
* suppressed, for use when the window has launched a modal prompt.
*/
void enterModalState ();
pub unsafe fn LeaveModalState(&self) -> nsresult
[src]
/**
* Resume normal window state, where scripts can run and events are
* delivered.
*/
void leaveModalState ();
pub unsafe fn IsInModalState(&self, _retval: *mut bool) -> nsresult
[src]
/**
* Is the window is in a modal state? [See enterModalState()]
*/
[noscript] boolean isInModalState ();
pub unsafe fn SetDesktopModeViewport(
&self,
aDesktopModeViewport: bool
) -> nsresult
[src]
&self,
aDesktopModeViewport: bool
) -> nsresult
/**
* Request set internal desktopMode flag change.
*/
void setDesktopModeViewport (in boolean aDesktopModeViewport);
pub unsafe fn SuspendTimeouts(&self) -> nsresult
[src]
/**
* Suspend/resume timeouts on this window and its descendant windows.
*/
void suspendTimeouts ();
pub unsafe fn ResumeTimeouts(&self) -> nsresult
[src]
void resumeTimeouts ();
pub unsafe fn GetLayerManagerType(
&self,
aLayerManagerType: &mut nsAString
) -> nsresult
[src]
&self,
aLayerManagerType: &mut nsAString
) -> nsresult
/**
* What type of layer manager the widget associated with this window is
* using. "Basic" is unaccelerated; other types are accelerated. Throws an
* error if there is no widget associated with this window.
*/
readonly attribute AString layerManagerType;
pub unsafe fn GetLayerManagerRemote(
&self,
aLayerManagerRemote: *mut bool
) -> nsresult
[src]
&self,
aLayerManagerRemote: *mut bool
) -> nsresult
/**
* True if the layer manager for the widget associated with this window is
* forwarding layers to a remote compositor, false otherwise. Throws an
* error if there is no widget associated with this window.
*/
readonly attribute boolean layerManagerRemote;
pub unsafe fn GetUsingAdvancedLayers(
&self,
aUsingAdvancedLayers: *mut bool
) -> nsresult
[src]
&self,
aUsingAdvancedLayers: *mut bool
) -> nsresult
/**
* True if advanced layers is enabled on this window, false otherwise.
*/
readonly attribute boolean usingAdvancedLayers;
pub unsafe fn GetIsWebRenderRequested(
&self,
aIsWebRenderRequested: *mut bool
) -> nsresult
[src]
&self,
aIsWebRenderRequested: *mut bool
) -> nsresult
/**
* True if webrender was requested by the user (via pref or env-var), false
* otherwise. Note that this doesn't represent whether or not webrender is
* *actually* enabled, just whether or not it was requested.
*/
readonly attribute boolean isWebRenderRequested;
pub unsafe fn GetCurrentAudioBackend(
&self,
aCurrentAudioBackend: &mut nsAString
) -> nsresult
[src]
&self,
aCurrentAudioBackend: &mut nsAString
) -> nsresult
/**
* Returns the current audio backend as a free-form string.
*/
readonly attribute AString currentAudioBackend;
pub unsafe fn GetCurrentMaxAudioChannels(
&self,
aCurrentMaxAudioChannels: *mut uint32_t
) -> nsresult
[src]
&self,
aCurrentMaxAudioChannels: *mut uint32_t
) -> nsresult
/**
* Returns the max channel counts of the current audio device.
*/
readonly attribute unsigned long currentMaxAudioChannels;
pub unsafe fn GetCurrentPreferredChannelLayout(
&self,
aCurrentPreferredChannelLayout: &mut nsAString
) -> nsresult
[src]
&self,
aCurrentPreferredChannelLayout: &mut nsAString
) -> nsresult
/**
* Returns the preferred channel layout of the current audio device.
*/
readonly attribute AString currentPreferredChannelLayout;
pub unsafe fn GetCurrentPreferredSampleRate(
&self,
aCurrentPreferredSampleRate: *mut uint32_t
) -> nsresult
[src]
&self,
aCurrentPreferredSampleRate: *mut uint32_t
) -> nsresult
/**
* Returns the preferred sample rate of the current audio device.
*/
readonly attribute unsigned long currentPreferredSampleRate;
pub unsafe fn AudioDevices(
&self,
aSide: uint16_t,
_retval: *mut *const nsIArray
) -> nsresult
[src]
&self,
aSide: uint16_t,
_retval: *mut *const nsIArray
) -> nsresult
nsIArray audioDevices (in unsigned short aSide);
pub unsafe fn StartFrameTimeRecording(
&self,
startIndex: *mut uint32_t
) -> nsresult
[src]
&self,
startIndex: *mut uint32_t
) -> nsresult
/**
* Record (and return) frame-intervals for frames which were presented
* between calling StartFrameTimeRecording and StopFrameTimeRecording.
*
* - Uses a cyclic buffer and serves concurrent consumers, so if Stop is called too late
* (elements were overwritten since Start), result is considered invalid and hence empty.
* - Buffer is capable of holding 10 seconds @ 60fps (or more if frames were less frequent).
* Can be changed (up to 1 hour) via pref: toolkit.framesRecording.bufferSize.
* - Note: the first frame-interval may be longer than expected because last frame
* might have been presented some time before calling StartFrameTimeRecording.
*/
/**
* Returns a handle which represents current recording start position.
*/
void startFrameTimeRecording ([retval] out unsigned long startIndex);
pub unsafe fn StopFrameTimeRecording(
&self,
startIndex: uint32_t,
frameCount: *mut uint32_t,
frameIntervals: *mut *mut c_float
) -> nsresult
[src]
&self,
startIndex: uint32_t,
frameCount: *mut uint32_t,
frameIntervals: *mut *mut c_float
) -> nsresult
/**
* Returns number of recorded frames since startIndex was issued,
* and allocates+populates 2 arraye with the recorded data.
* - Allocation is infallible. Should be released even if size is 0.
*/
void stopFrameTimeRecording (in unsigned long startIndex, [optional] out unsigned long frameCount, [array, size_is (frameCount), retval] out float frameIntervals);
pub unsafe fn GetDisplayDPI(&self, aDisplayDPI: *mut c_float) -> nsresult
[src]
/**
* The DPI of the display
*/
readonly attribute float displayDPI;
pub unsafe fn GetContainerElement(
&self,
aContainerElement: *mut *const nsIDOMElement
) -> nsresult
[src]
&self,
aContainerElement: *mut *const nsIDOMElement
) -> nsresult
/**
* Return this window's frame element.
* Ignores all chrome/content or mozbrowser boundaries.
*/
readonly attribute nsIDOMElement containerElement;
pub unsafe fn AdvanceTimeAndRefresh(&self, aMilliseconds: int64_t) -> nsresult
[src]
/**
* advanceTimeAndRefresh allows the caller to take over the refresh
* driver timing for a window. A call to advanceTimeAndRefresh does
* three things:
* (1) It marks the refresh driver for this presentation so that it
* no longer refreshes on its own, but is instead driven entirely
* by the caller (except for the refresh that happens when a
* document comes out of the bfcache).
* (2) It advances the refresh driver's current refresh time by the
* argument given. Negative advances are permitted.
* (3) It does a refresh (i.e., notifies refresh observers) at that
* new time.
*
* Note that this affects other connected docshells of the same type
* in the same docshell tree, such as parent frames.
*
* When callers have completed their use of advanceTimeAndRefresh,
* they must call restoreNormalRefresh.
*/
void advanceTimeAndRefresh (in long long aMilliseconds);
pub unsafe fn RestoreNormalRefresh(&self) -> nsresult
[src]
/**
* Undoes the effects of advanceTimeAndRefresh.
*/
void restoreNormalRefresh ();
pub unsafe fn GetIsTestControllingRefreshes(
&self,
aIsTestControllingRefreshes: *mut bool
) -> nsresult
[src]
&self,
aIsTestControllingRefreshes: *mut bool
) -> nsresult
/**
* Reports whether the current state is test-controlled refreshes
* (see advanceTimeAndRefresh and restoreNormalRefresh above).
*/
readonly attribute bool isTestControllingRefreshes;
pub unsafe fn GetAsyncPanZoomEnabled(
&self,
aAsyncPanZoomEnabled: *mut bool
) -> nsresult
[src]
&self,
aAsyncPanZoomEnabled: *mut bool
) -> nsresult
/**
* Reports whether APZ is enabled on the widget that this window is attached
* to. If there is no widget it will report the default platform value of
* whether or not APZ is enabled.
*/
readonly attribute bool asyncPanZoomEnabled;
pub unsafe fn SetAsyncScrollOffset(
&self,
aNode: *const nsIDOMNode,
aX: c_float,
aY: c_float
) -> nsresult
[src]
&self,
aNode: *const nsIDOMNode,
aX: c_float,
aY: c_float
) -> nsresult
/**
* Set async scroll offset on an element. The next composite will render
* with that offset if async scrolling is enabled, and then the offset
* will be removed. Only call this while test-controlled refreshes is enabled.
*/
void setAsyncScrollOffset (in nsIDOMNode aNode, in float aX, in float aY);
pub unsafe fn SetAsyncZoom(
&self,
aRootElement: *const nsIDOMNode,
aValue: c_float
) -> nsresult
[src]
&self,
aRootElement: *const nsIDOMNode,
aValue: c_float
) -> nsresult
/**
* Set async zoom value. aRootElement should be the document element of our
* document. The next composite will render with that zoom added to any
* existing zoom if async scrolling is enabled, and then the zoom will be
* removed. Only call this while test-controlled refreshes is enabled.
*/
void setAsyncZoom (in nsIDOMNode aRootElement, in float aValue);
pub unsafe fn FlushApzRepaints(&self, _retval: *mut bool) -> nsresult
[src]
/**
* Do a round-trip to the compositor to ensure any pending APZ repaint requests
* get flushed to the main thread. If the function returns true, the flush was
* triggered and an "apz-repaints-flushed" notification will be dispatched via
* the observer service once the flush is complete. If the function returns
* false, an error occurred or a flush is not needed, and the notification
* will not fire. This is intended to be used by test code only!
*/
bool flushApzRepaints ();
pub unsafe fn ZoomToFocusedInput(&self) -> nsresult
[src]
/**
* Ask APZ to pan and zoom to the focused input element.
*/
void zoomToFocusedInput ();
pub unsafe fn ComputeAnimationDistance(
&self,
element: *const nsIDOMElement,
property: &nsAString,
value1: &nsAString,
value2: &nsAString,
_retval: *mut c_double
) -> nsresult
[src]
&self,
element: *const nsIDOMElement,
property: &nsAString,
value1: &nsAString,
value2: &nsAString,
_retval: *mut c_double
) -> nsresult
/**
* Method for testing StyleAnimationValue::ComputeDistance.
*
* Returns the distance between the two values as reported by
* StyleAnimationValue::ComputeDistance for the given element and
* property.
*/
double computeAnimationDistance (in nsIDOMElement element, in AString property, in AString value1, in AString value2);
pub unsafe fn GetAnimationTypeForLonghand(
&self,
aProperty: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aProperty: &nsAString,
_retval: &mut nsAString
) -> nsresult
/**
* Returns the animation type of the specified property (e.g. 'coord').
*
* @param aProperty A longhand CSS property (e.g. 'background-color').
*/
AString getAnimationTypeForLonghand (in AString aProperty);
pub unsafe fn GetUnanimatedComputedStyle(
&self,
aElement: *const nsIDOMElement,
aPseudoElement: &nsAString,
aProperty: &nsAString,
aFlushType: int32_t,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aElement: *const nsIDOMElement,
aPseudoElement: &nsAString,
aProperty: &nsAString,
aFlushType: int32_t,
_retval: &mut nsAString
) -> nsresult
/**
* Returns the computed style for the specified property of given pseudo type
* on the given element after removing styles from declarative animations.
* @param aElement - A target element
* @param aPseudoElement - A pseudo type (e.g. '::before' or null)
* @param aProperty - A longhand CSS property (e.g. 'background-color')
* @param aFlushType - FLUSH_NONE if any pending styles should not happen,
* FLUSH_STYLE to flush pending styles.
*/
AString getUnanimatedComputedStyle (in nsIDOMElement aElement, in AString aPseudoElement, in AString aProperty, in long aFlushType);
pub unsafe fn GetFocusedInputType(
&self,
aFocusedInputType: *mut *const c_char
) -> nsresult
[src]
&self,
aFocusedInputType: *mut *const c_char
) -> nsresult
/**
* Get the type of the currently focused html input, if any.
*/
readonly attribute string focusedInputType;
pub unsafe fn GetViewId(
&self,
aElement: *const nsIDOMElement,
_retval: *mut nsViewID
) -> nsresult
[src]
&self,
aElement: *const nsIDOMElement,
_retval: *mut nsViewID
) -> nsresult
/**
* Find the view ID for a given element. This is the reverse of
* findElementWithViewId().
*/
nsViewID getViewId (in nsIDOMElement aElement);
pub unsafe fn LeafLayersPartitionWindow(&self, _retval: *mut bool) -> nsresult
[src]
/**
* Checks the layer tree for this window and returns true
* if all layers have transforms that are translations by integers,
* no leaf layers overlap, and the union of the leaf layers is exactly
* the bounds of the window. Always returns true in non-DEBUG builds.
*/
boolean leafLayersPartitionWindow ();
pub unsafe fn CheckAndClearPaintedState(
&self,
aElement: *const nsIDOMElement,
_retval: *mut bool
) -> nsresult
[src]
&self,
aElement: *const nsIDOMElement,
_retval: *mut bool
) -> nsresult
/**
* Check if any PaintedLayer painting has been done for this element,
* clears the painted flags if they have.
*/
boolean checkAndClearPaintedState (in nsIDOMElement aElement);
pub unsafe fn CheckAndClearDisplayListState(
&self,
aElement: *const nsIDOMElement,
_retval: *mut bool
) -> nsresult
[src]
&self,
aElement: *const nsIDOMElement,
_retval: *mut bool
) -> nsresult
/**
* Check if any display list building has been done for this element,
* clears the display list flags if they have.
*/
boolean checkAndClearDisplayListState (in nsIDOMElement aElement);
pub unsafe fn IsPartOfOpaqueLayer(
&self,
aElement: *const nsIDOMElement,
_retval: *mut bool
) -> nsresult
[src]
&self,
aElement: *const nsIDOMElement,
_retval: *mut bool
) -> nsresult
/**
* Check whether all display items of the primary frame of aElement have been
* assigned to the same single PaintedLayer in the last paint. If that is the
* case, returns whether that PaintedLayer is opaque; if it's not the case, an
* exception is thrown.
*/
boolean isPartOfOpaqueLayer (in nsIDOMElement aElement);
pub unsafe fn NumberOfAssignedPaintedLayers(
&self,
aElements: *mut *const nsIDOMElement,
count: uint32_t,
_retval: *mut uint32_t
) -> nsresult
[src]
&self,
aElements: *mut *const nsIDOMElement,
count: uint32_t,
_retval: *mut uint32_t
) -> nsresult
/**
* Count the number of different PaintedLayers that the supplied elements have
* been assigned to in the last paint. Throws an exception if any of the
* elements doesn't have a primary frame, or if that frame's display items are
* assigned to any other layers than just a single PaintedLayer per element.
*/
unsigned long numberOfAssignedPaintedLayers ([array, size_is (count)] in nsIDOMElement aElements, in uint32_t count);
pub unsafe fn FlushPendingFileDeletions(&self) -> nsresult
[src]
void flushPendingFileDeletions ();
pub unsafe fn GetPaintingSuppressed(
&self,
aPaintingSuppressed: *mut bool
) -> nsresult
[src]
&self,
aPaintingSuppressed: *mut bool
) -> nsresult
/**
* Returns true if painting is suppressed for this window and false
* otherwise.
*/
readonly attribute boolean paintingSuppressed;
pub unsafe fn SetScrollPositionClampingScrollPortSize(
&self,
aWidth: c_float,
aHeight: c_float
) -> nsresult
[src]
&self,
aWidth: c_float,
aHeight: c_float
) -> nsresult
/**
* Set the scrollport size for the purposes of clamping scroll positions for
* the root scroll frame of this document to be (aWidth,aHeight) in CSS pixels.
*
* The caller of this method must have chrome privileges.
*/
void setScrollPositionClampingScrollPortSize (in float aWidth, in float aHeight);
pub unsafe fn DisableDialogs(&self) -> nsresult
[src]
/**
* These are used to control whether dialogs (alert, prompt, confirm) are
* allowed.
*/
void disableDialogs ();
pub unsafe fn EnableDialogs(&self) -> nsresult
[src]
void enableDialogs ();
pub unsafe fn AreDialogsEnabled(&self, _retval: *mut bool) -> nsresult
[src]
bool areDialogsEnabled ();
pub unsafe fn LoadSheet(
&self,
sheetURI: *const nsIURI,
type_: uint32_t
) -> nsresult
[src]
&self,
sheetURI: *const nsIURI,
type_: uint32_t
) -> nsresult
/**
* Synchronously loads a style sheet from |sheetURI| and adds it to the list
* of additional style sheets of the document.
*
* These additional style sheets are very much like user/agent sheets loaded
* with loadAndRegisterSheet. The only difference is that they are applied only
* on the document owned by this window.
*
* Sheets added via this API take effect immediately on the document.
*/
void loadSheet (in nsIURI sheetURI, in unsigned long type);
pub unsafe fn LoadSheetUsingURIString(
&self,
sheetURI: &nsACString,
type_: uint32_t
) -> nsresult
[src]
&self,
sheetURI: &nsACString,
type_: uint32_t
) -> nsresult
/**
* Same as the above method but allows passing the URI as a string.
*/
void loadSheetUsingURIString (in ACString sheetURI, in unsigned long type);
pub unsafe fn AddSheet(
&self,
sheet: *const nsIPreloadedStyleSheet,
type_: uint32_t
) -> nsresult
[src]
&self,
sheet: *const nsIPreloadedStyleSheet,
type_: uint32_t
) -> nsresult
/**
* Adds a style sheet to the list of additional style sheets of the document.
*
* Style sheets can be preloaded with nsIStyleSheetService.preloadSheet.
*
* Sheets added via this API take effect immediately on the document.
*/
void addSheet (in nsIPreloadedStyleSheet sheet, in unsigned long type);
pub unsafe fn RemoveSheet(
&self,
sheetURI: *const nsIURI,
type_: uint32_t
) -> nsresult
[src]
&self,
sheetURI: *const nsIURI,
type_: uint32_t
) -> nsresult
/**
* Remove the document style sheet at |sheetURI| from the list of additional
* style sheets of the document. The removal takes effect immediately.
*/
void removeSheet (in nsIURI sheetURI, in unsigned long type);
pub unsafe fn RemoveSheetUsingURIString(
&self,
sheetURI: &nsACString,
type_: uint32_t
) -> nsresult
[src]
&self,
sheetURI: &nsACString,
type_: uint32_t
) -> nsresult
/**
* Same as the above method but allows passing the URI as a string.
*/
void removeSheetUsingURIString (in ACString sheetURI, in unsigned long type);
pub unsafe fn GetIsHandlingUserInput(
&self,
aIsHandlingUserInput: *mut bool
) -> nsresult
[src]
&self,
aIsHandlingUserInput: *mut bool
) -> nsresult
/**
* Returns true if a user input is being handled.
*
* This calls EventStateManager::IsHandlingUserInput().
*/
readonly attribute boolean isHandlingUserInput;
pub unsafe fn GetMillisSinceLastUserInput(
&self,
aMillisSinceLastUserInput: *mut c_double
) -> nsresult
[src]
&self,
aMillisSinceLastUserInput: *mut c_double
) -> nsresult
/**
* Returns milliseconds elapsed since last user input was started
*
* This relies on EventStateManager::LatestUserInputStart()
*/
readonly attribute double millisSinceLastUserInput;
pub unsafe fn AllowScriptsToClose(&self) -> nsresult
[src]
/**
* After calling the method, the window for which this DOMWindowUtils
* was created can be closed using scripts.
*/
void allowScriptsToClose ();
pub unsafe fn GetIsParentWindowMainWidgetVisible(
&self,
aIsParentWindowMainWidgetVisible: *mut bool
) -> nsresult
[src]
&self,
aIsParentWindowMainWidgetVisible: *mut bool
) -> nsresult
/**
* Is the parent window's main widget visible? If it isn't, we probably
* don't want to display any dialogs etc it may request. This corresponds
* to the visibility check in nsWindowWatcher::OpenWindowInternal().
*
* Will throw a DOM security error if called without chrome privileges or
* NS_ERROR_NOT_AVAILABLE in the unlikely event that the parent window's
* main widget can't be reached.
*/
readonly attribute boolean isParentWindowMainWidgetVisible;
pub unsafe fn IsNodeDisabledForEvents(
&self,
aNode: *const nsIDOMNode,
_retval: *mut bool
) -> nsresult
[src]
&self,
aNode: *const nsIDOMNode,
_retval: *mut bool
) -> nsresult
/**
* In certain cases the event handling of nodes, form controls in practice,
* may be disabled. Such cases are for example the existence of disabled
* attribute or -moz-user-input: none/disabled.
*/
boolean isNodeDisabledForEvents (in nsIDOMNode aNode);
pub unsafe fn GetPaintFlashing(&self, aPaintFlashing: *mut bool) -> nsresult
[src]
/**
* Setting paintFlashing to true will flash newly painted area.
*/
attribute boolean paintFlashing;
pub unsafe fn SetPaintFlashing(&self, aPaintFlashing: bool) -> nsresult
[src]
/**
* Setting paintFlashing to true will flash newly painted area.
*/
attribute boolean paintFlashing;
pub unsafe fn GetOMTAStyle(
&self,
aElement: *const nsIDOMElement,
aProperty: &nsAString,
aPseudoElement: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aElement: *const nsIDOMElement,
aProperty: &nsAString,
aPseudoElement: &nsAString,
_retval: &mut nsAString
) -> nsresult
AString getOMTAStyle (in nsIDOMElement aElement, in AString aProperty, [optional] in AString aPseudoElement);
pub unsafe fn RequestCompositorProperty(
&self,
aProperty: &nsAString,
_retval: *mut c_float
) -> nsresult
[src]
&self,
aProperty: &nsAString,
_retval: *mut c_float
) -> nsresult
/**
* Special function that gets a property syncronously from the last composite
* that occured.
*
* Supported properties:
* "overdraw": Report a percentage between 0 and 999 indicate how many times
* each pixels on the destination window have been touched.
*/
float requestCompositorProperty (in AString aProperty);
pub unsafe fn SetHandlingUserInput(
&self,
aHandlingInput: bool,
_retval: *mut *const nsIJSRAIIHelper
) -> nsresult
[src]
&self,
aHandlingInput: bool,
_retval: *mut *const nsIJSRAIIHelper
) -> nsresult
/**
* If aHandlingInput is true, this informs the event state manager that
* we're handling user input. Otherwise, this is a no-op (as by default
* we're not handling user input).
* Remember to call destruct() on the return value!
* See also nsIDOMWindowUtils::isHandlingUserInput.
*/
nsIJSRAIIHelper setHandlingUserInput (in boolean aHandlingInput);
pub unsafe fn PostRestyleSelfEvent(
&self,
aElement: *const nsIDOMElement
) -> nsresult
[src]
&self,
aElement: *const nsIDOMElement
) -> nsresult
/**
* Posts an eRestyle_Self restyle event for the given element.
*/
void postRestyleSelfEvent (in nsIDOMElement aElement);
pub unsafe fn GetMediaSuspend(&self, aMediaSuspend: *mut uint32_t) -> nsresult
[src]
/**
* Used to pause or resume all media in this window. Use-cases are audio
* competing, remote media control and to prevent auto-playing media.
*/
attribute uint32_t mediaSuspend;
pub unsafe fn SetMediaSuspend(&self, aMediaSuspend: uint32_t) -> nsresult
[src]
/**
* Used to pause or resume all media in this window. Use-cases are audio
* competing, remote media control and to prevent auto-playing media.
*/
attribute uint32_t mediaSuspend;
pub unsafe fn GetAudioMuted(&self, aAudioMuted: *mut bool) -> nsresult
[src]
/**
* With this it's possible to mute all the MediaElements in this window.
* We have audioMuted and audioVolume to preserve the volume across
* mute/umute.
*/
attribute boolean audioMuted;
pub unsafe fn SetAudioMuted(&self, aAudioMuted: bool) -> nsresult
[src]
/**
* With this it's possible to mute all the MediaElements in this window.
* We have audioMuted and audioVolume to preserve the volume across
* mute/umute.
*/
attribute boolean audioMuted;
pub unsafe fn GetAudioVolume(&self, aAudioVolume: *mut c_float) -> nsresult
[src]
/**
* range: greater or equal to 0. The real volume level is affected by the
* volume of all ancestor windows.
*/
attribute float audioVolume;
pub unsafe fn SetAudioVolume(&self, aAudioVolume: c_float) -> nsresult
[src]
/**
* range: greater or equal to 0. The real volume level is affected by the
* volume of all ancestor windows.
*/
attribute float audioVolume;
pub unsafe fn XpconnectArgument(
&self,
aThis: *const nsIDOMWindowUtils
) -> nsresult
[src]
&self,
aThis: *const nsIDOMWindowUtils
) -> nsresult
/**
* This method doesn't do anything useful. It was solely added for the
* purpose of the test for bug 503926.
*/
void xpconnectArgument (in nsIDOMWindowUtils aThis);
pub unsafe fn AskPermission(
&self,
aRequest: *const nsIContentPermissionRequest
) -> nsresult
[src]
&self,
aRequest: *const nsIContentPermissionRequest
) -> nsresult
/**
* Helper for JS components that need to send permission requests with
* e10s support properly.
*/
void askPermission (in nsIContentPermissionRequest aRequest);
pub unsafe fn GetRestyleGeneration(
&self,
aRestyleGeneration: *mut uint64_t
) -> nsresult
[src]
&self,
aRestyleGeneration: *mut uint64_t
) -> nsresult
/**
* Restyle generation for the current document.
*
* May throw NS_ERROR_NOT_AVAILABLE.
*/
readonly attribute unsigned long long restyleGeneration;
pub unsafe fn GetFramesConstructed(
&self,
aFramesConstructed: *mut uint64_t
) -> nsresult
[src]
&self,
aFramesConstructed: *mut uint64_t
) -> nsresult
/**
* Number of frames constructed (excluding breaking) for the curent
* document.
*
* May throw NS_ERROR_NOT_AVAILABLE.
*/
readonly attribute unsigned long long framesConstructed;
pub unsafe fn GetFramesReflowed(
&self,
aFramesReflowed: *mut uint64_t
) -> nsresult
[src]
&self,
aFramesReflowed: *mut uint64_t
) -> nsresult
/**
* Number of frames reflowed for the curent document.
*
* May throw NS_ERROR_NOT_AVAILABLE.
*/
readonly attribute unsigned long long framesReflowed;
pub unsafe fn SetChromeMargin(
&self,
aTop: int32_t,
aRight: int32_t,
aBottom: int32_t,
aLeft: int32_t
) -> nsresult
[src]
&self,
aTop: int32_t,
aRight: int32_t,
aBottom: int32_t,
aLeft: int32_t
) -> nsresult
/**
* Controls the amount of chrome that should be visible on each side of
* the window. Works like the chromemargin xul:window attribute.
* This should only be used with non-XUL windows.
*/
void setChromeMargin (in int32_t aTop, in int32_t aRight, in int32_t aBottom, in int32_t aLeft);
pub unsafe fn GetServiceWorkersTestingEnabled(
&self,
aServiceWorkersTestingEnabled: *mut bool
) -> nsresult
[src]
&self,
aServiceWorkersTestingEnabled: *mut bool
) -> nsresult
/**
* Enable some service workers testing features.
*/
attribute boolean serviceWorkersTestingEnabled;
pub unsafe fn SetServiceWorkersTestingEnabled(
&self,
aServiceWorkersTestingEnabled: bool
) -> nsresult
[src]
&self,
aServiceWorkersTestingEnabled: bool
) -> nsresult
/**
* Enable some service workers testing features.
*/
attribute boolean serviceWorkersTestingEnabled;
pub unsafe fn EnterChaosMode(&self) -> nsresult
[src]
void enterChaosMode ();
pub unsafe fn LeaveChaosMode(&self) -> nsresult
[src]
/**
* Decrease the chaos mode activation level. See enterChaosMode().
*/
void leaveChaosMode ();
pub unsafe fn TriggerDeviceReset(&self) -> nsresult
[src]
/**
* Alerts Gecko of a device reset
*/
void triggerDeviceReset ();
pub unsafe fn HasRuleProcessorUsedByMultipleStyleSets(
&self,
aSheetType: uint32_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
aSheetType: uint32_t,
_retval: *mut bool
) -> nsresult
/**
* Returns whether the document's style set's rule processor for the
* specified level of the cascade is shared by multiple style sets.
* (Used by tests to ensure that certain optimizations do not regress.)
*
* @param aSheetType One of the nsIStyleSheetService.*_SHEET constants.
*/
bool hasRuleProcessorUsedByMultipleStyleSets (in unsigned long aSheetType);
pub unsafe fn ForceUseCounterFlush(&self, aNode: *const nsIDOMNode) -> nsresult
[src]
void forceUseCounterFlush (in nsIDOMNode aNode);
pub unsafe fn RespectDisplayPortSuppression(&self, aEnabled: bool) -> nsresult
[src]
/**
* Enable or disable displayport suppression. This is intended to be used by
* testing code, to provide more deterministic behaviour over the displayport
* suppression during tests. Note that this updates a flag, so whatever value
* was last provided is what will be used.
*/
void respectDisplayPortSuppression (in boolean aEnabled);
pub unsafe fn ForceReflowInterrupt(&self) -> nsresult
[src]
/**
* Set a flag that forces the next reflow interrupt check to return true. This
* can be used by tests to force execution of the interrupted reflow codepaths.
*/
void forceReflowInterrupt ();
pub unsafe fn TerminateGPUProcess(&self) -> nsresult
[src]
/**
* Terminate the GPU process. Used for testing GPU process restarts.
*/
void terminateGPUProcess ();
pub unsafe fn GetGpuProcessPid(&self, aGpuProcessPid: *mut int32_t) -> nsresult
[src]
/**
* Returns the GPU process pid, or -1 if there is no GPU process.
*/
readonly attribute int32_t gpuProcessPid;
pub unsafe fn IsTimeoutTracking(
&self,
timeoutId: uint32_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
timeoutId: uint32_t,
_retval: *mut bool
) -> nsresult
/**
* Returns true if the given timeout ID is in the list of tracking
* timeouts.
*/
boolean isTimeoutTracking (in unsigned long timeoutId);
pub unsafe fn AddManuallyManagedState(
&self,
element: *const nsIDOMElement,
state: &nsAString
) -> nsresult
[src]
&self,
element: *const nsIDOMElement,
state: &nsAString
) -> nsresult
/**
* Adds an EventStates bit to the element.
*
* The state string must be one of the following:
* * (none yet; but for example "higlighted" for NS_EVENT_STATE_HIGHLIGHTED)
*
* The supported state strings are defined in kManuallyManagedStates
* in nsDOMWindowUtils.cpp.
*/
void addManuallyManagedState (in nsIDOMElement element, in AString state);
pub unsafe fn RemoveManuallyManagedState(
&self,
element: *const nsIDOMElement,
state: &nsAString
) -> nsresult
[src]
&self,
element: *const nsIDOMElement,
state: &nsAString
) -> nsresult
/**
* Removes the specified EventStates bits from the element.
*
* See above for the strings that can be passed for |state|.
*/
void removeManuallyManagedState (in nsIDOMElement element, in AString state);
pub unsafe fn GetStorageUsage(
&self,
aStorage: *const nsIDOMStorage,
_retval: *mut int64_t
) -> nsresult
[src]
&self,
aStorage: *const nsIDOMStorage,
_retval: *mut int64_t
) -> nsresult
/**
* Returns usage data for a given storage object.
*
* @param aStorage
* The storage object to get usage data for.
*/
int64_t getStorageUsage (in nsIDOMStorage aStorage);
pub unsafe fn GetDirectionFromText(
&self,
aString: &nsAString,
_retval: *mut int32_t
) -> nsresult
[src]
&self,
aString: &nsAString,
_retval: *mut int32_t
) -> nsresult
/**
* Returns the directionality of a string using the first-strong character
* algorithm defined in http://unicode.org/reports/tr9/#P2.
*
* @param aString the string to retrieve the direction for.
* @return one of DIRECTION_LTR, DIRECTION_RTL or DIRECTION_NOT_SET depending
* on the first-strong character found in the string.
*/
long getDirectionFromText (in AString aString);
pub unsafe fn EnsureDirtyRootFrame(&self) -> nsresult
[src]
/**
* Calls FrameNeedsReflow on that root frame so that a layout flush
* will be necessary.
*
* This should only be used for testing.
*/
void ensureDirtyRootFrame ();
pub unsafe fn GetIsStyledByServo(&self, aIsStyledByServo: *mut bool) -> nsresult
[src]
/**
* Whether the current document is styled by Servo's style engine.
*
* This calls nsIDocument::IsStyledByServo().
*/
readonly attribute boolean isStyledByServo;
pub unsafe fn AddToStyloBlocklist(
&self,
aBlockedDomain: &nsACString
) -> nsresult
[src]
&self,
aBlockedDomain: &nsACString
) -> nsresult
/**
* Add a domain to the existing stylo blocklist.
*
* This calls nsLayoutUtils::AddToStyloBlocklist().
*/
void addToStyloBlocklist (in ACString aBlockedDomain);
pub unsafe fn RemoveFromStyloBlocklist(
&self,
aBlockedDomain: &nsACString
) -> nsresult
[src]
&self,
aBlockedDomain: &nsACString
) -> nsresult
/**
* Remove a domain from the existing stylo blocklist.
*
* This calls nsLayoutUtils::RemoveFromStyloBlocklist().
*/
void removeFromStyloBlocklist (in ACString aBlockedDomain);
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 nsIDOMWindowUtils
[src]
const IID: nsIID
IID: nsIID = nsID(1298608842, 40359, 16758, [184, 161, 141, 222, 21, 205, 11, 249])
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 nsIDOMWindowUtils
[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 nsIDOMWindowUtils
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.