CefFrame - nomi-san/luacef GitHub Wiki
IsValid() -> <bool>
- Returns true if this object is currently attached to a valid frame.
Undo()
- Execute undo in this frame.
Redo()
- Execute redo in this frame.
Cut()
- Execute cut in this frame.
Copy()
- Execute copy in this frame.
Paste()
- Execute paste in this frame.
Delete()
- Execute delete in this frame.
SelectAll()
- Execute select all in this frame.
ViewSource()
- Save this frame's HTML source to a temporary file and open it in the default text viewing application. This method can only be called from the browser process.
GetSource(<CefStringVisitor> visitor)
;
- Retrieve this frame's HTML source as a string sent to the specified visitor.
GetText(<CefStringVisitor> visitor)
- Retrieve this frame's display text as a string sent to the specified visitor.
LoadRequest(<CefRequest> request)
- Load the request represented by the |request| object.
LoadURL(<str> url)
- Load the specified |url|.
LoadString(<str> string_val, <str> url)
- Load the contents of |string_val| 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.
ExecuteJavaScript(<str> code, <str> script_url, <int> line)
- Execute a string of JavaScript code in this frame. The |script_url| parameter 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. The |start_line| parameter is the base line number to use for error reporting.
IsMain() -> <bool>
- Returns true if this is the main (top-level) frame.
IsFocused() -> <bool>
- Returns true if this is the focused frame.
GetName() -> <str>
- 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.
GetIdentifier() -> <int>
- Returns the globally unique identifier for this frame or < 0 if the underlying frame does not yet exist.
GetParent() -> <CefFrame>
- Returns the parent of this frame or NULL if this is the main (top-level) frame.
GetURL() -> <str>
- Returns the URL currently loaded in this frame.
GetBrowser() -> <CefBrowser>
- Returns the browser that this frame belongs to.
GetV8Context() -> <CefV8Context>
- Get the V8 context associated with the frame. This method can only be called from the render process.
VisitDOM() -> <CefDOMVisitor>
- Visit the DOM document. This method can only be called from the render process.