WebKitWebProcessExtension.WebHitTestResult¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class WebKitWebProcessExtension.WebHitTestResult(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Result of a Hit Test (Web Process Extensions).
WebKitWebProcessExtension.WebHitTestResult
extendsWebKitWebProcessExtension.HitTestResult
to provide information about the #WebKitDOMNode in the coordinates of the Hit Test.New in version 2.8.
- context_is_editable()¶
-
Check whether there is an editable element at the hit test position.
Checks whether
WebKitWebProcessExtension.HitTestResultContext.EDITABLE
flag is present in the context flags.
- context_is_image()¶
-
Check whether there is an image element at the hit test position.
Checks whether
WebKitWebProcessExtension.HitTestResultContext.IMAGE
flag is present in the context flags.
- context_is_link()¶
-
Check whether there is a link element at the hit test position.
Checks whether
WebKitWebProcessExtension.HitTestResultContext.LINK
flag is present in the context flags.
- context_is_media()¶
-
Check whether there is a media element at the hit test position.
Checks whether
WebKitWebProcessExtension.HitTestResultContext.MEDIA
flag is present in the context flags.
- context_is_scrollbar()¶
-
Check whether there is a scrollbar at the hit test position.
Checks whether
WebKitWebProcessExtension.HitTestResultContext.SCROLLBAR
flag is present in the context flags.
- context_is_selection()¶
-
Check whether there is a selected element at the hit test position.
Checks whether
WebKitWebProcessExtension.HitTestResultContext.SELECTION
flag is present in the context flags.
- get_context()¶
- Returns:
a bitmask of
WebKitWebProcessExtension.HitTestResultContext
flags- Return type:
Gets the the context flags for the hit test result.
- get_image_uri()¶
- Returns:
the URI of the image element, or
None
if the hit test does not cover an image element.- Return type:
Obtains the URI associated with the image element at the hit test position.
- get_js_node(world)¶
- Parameters:
world (
WebKitWebProcessExtension.ScriptWorld
orNone
) – aWebKitWebProcessExtension.ScriptWorld
, orNone
to use the default- Returns:
a
JavaScriptCore.Value
for the DOM node, orNone
- Return type:
Get the
JavaScriptCore.Value
for the DOM node in world at the coordinates of the Hit Test.New in version 2.40.
- get_link_label()¶
- Returns:
the label of the link element, or
None
if the hit test does not cover a link element or the link element does not have a label.- Return type:
Obtains the label associated with the link element at the hit test position.
- get_link_title()¶
- Returns:
the title of the link element, or
None
if the hit test does not cover a link element or the link element does not have a title.- Return type:
Obtains the title associated with the link element at the hit test position.