-
Notifications
You must be signed in to change notification settings - Fork 0
Frame
Execute copy in this frame.
Execute cut in this frame.
Execute delete in this frame.
Call javascript function asynchronously. This can also call object's methods, just pass "object.method" as
funcName. Any valid javascript syntax is allowed asfuncName, you could even pass an anonymous function here.
For a list of allowed types for
mixedsee JavascriptBindings.IsValueAllowed() (except function, method and instance).
Passing a python function here is not allowed, it is only possible through JavascriptCallback object.
Execute a string of JavaScript code in this frame. The
sciptURLparameter is the URL where the script in question can be found, if any. The renderer may request this URL to show the developer the source of the error. ThestartLineparameter is the base line number to use for error reporting.
This function executes asynchronously so there is no way to get the returned value.
Calling javascript from native code synchronously is not possible in CEF 3. It is also not possible doing it synchronously the other way around ie. js->native.
Returns the browser that this frame belongs to.
Returns the parent of this frame or None if this is the main (top-level) frame.
Frame identifiers are unique per render process, they are not globally unique.
Returns the globally unique identifier for the browser hosting this frame.
Returns the name for this frame. If the frame has an assigned name (for example, set via the iframe "name" attribute) then that value will be returned. Otherwise a unique name will be constructed based on the frame parent hierarchy. The main (top-level) frame will always have an empty name value.
Not yet implemented. Returns the parent of this frame or None if this is the main (top-level) frame. This method should only be called on the UI thread.
Get property of the
windowobject in javascript.
For a list of allowed types for
mixedsee JavascriptBindings.IsValueAllowed() (except function, method and instance).
If you try to get some javascript native property that its value cannot be converted to the python types above, you will get an error.
CEF 3. Retrieve this frame's HTML source as a string sent to the specified visitor. See StringVisitor interface.
CEF 3. Retrieve this frame's display text as a string sent to the specified visitor. See StringVisitor interface.
CEF 1. Returns this frame's HTML source as a string. This method should only be called on the UI thread.
CEF 1. Returns this frame's display text as a string. This method should only be called on the UI thread.
Returns the url currently loaded in this frame.
Returns true if this is the focused frame. This method should only be called on the UI thread.
Returns true if this is the main (top-level) frame.
Available only in CEF 3.
True if this object is currently attached to a valid frame.
Not yet ported.
Load the request represented by the |request| object. This is similar to
LoadUrl(), but gives you possibility to set custom headears, make a POST request and set the post data. See the Request class.
Not yet ported.
Load the contents of |stream| with the optional dummy target |url|.
Load the contents of |value| with the specified dummy |url|. |url| should have a standard scheme (for example, http scheme) or behaviors like link clicks and web security restrictions may not behave as expected.
In CEF 3
LoadString()can be called only after the Renderer process has been created.
Load the specified |url|.
Execute paste in this frame.
Available only in CEF 1. In CEF 3 use Browser.
Print().
Execute printing in the this frame. The user will be prompted with the print dialog appropriate to the operating system.
Execute redo in this frame.
Execute select all in this frame.
Set property of the
windowobject in javascript. You can also set properties before browser is created by using JavascriptBindings.SetProperty().
For a list of allowed types for
mixedsee JavascriptBindings.IsValueAllowed() (except instance).
Execute undo in this frame.
Save this frame's HTML source to a temporary file and open it in the default text viewing application.
Not yet ported. CEF DOM handling is prone to memory leaks, thus this function most probably won't be ported. It is recommended to the DOM management through javascript and communicate with the native code through javascript bindings.
Visit the DOM document.