Chromium Embedded Framework (CEF)
127.1.0+ga1ec504+chromium-127.0.6533.57
|
Class used to represent a browser. More...
#include "include/cef_browser.h"
Public Member Functions | |
virtual bool | IsValid ()=0 |
True if this object is currently valid. More... | |
virtual CefRefPtr< CefBrowserHost > | GetHost ()=0 |
Returns the browser host object. More... | |
virtual bool | CanGoBack ()=0 |
Returns true if the browser can navigate backwards. More... | |
virtual void | GoBack ()=0 |
Navigate backwards. More... | |
virtual bool | CanGoForward ()=0 |
Returns true if the browser can navigate forwards. More... | |
virtual void | GoForward ()=0 |
Navigate forwards. More... | |
virtual bool | IsLoading ()=0 |
Returns true if the browser is currently loading. More... | |
virtual void | Reload ()=0 |
Reload the current page. More... | |
virtual void | ReloadIgnoreCache ()=0 |
Reload the current page ignoring any cached data. More... | |
virtual void | StopLoad ()=0 |
Stop loading the page. More... | |
virtual int | GetIdentifier ()=0 |
Returns the globally unique identifier for this browser. More... | |
virtual bool | IsSame (CefRefPtr< CefBrowser > that)=0 |
Returns true if this object is pointing to the same handle as |that| object. More... | |
virtual bool | IsPopup ()=0 |
Returns true if the browser is a popup. More... | |
virtual bool | HasDocument ()=0 |
Returns true if a document has been loaded in the browser. More... | |
virtual CefRefPtr< CefFrame > | GetMainFrame ()=0 |
Returns the main (top-level) frame for the browser. More... | |
virtual CefRefPtr< CefFrame > | GetFocusedFrame ()=0 |
Returns the focused frame for the browser. More... | |
virtual CefRefPtr< CefFrame > | GetFrameByIdentifier (const CefString &identifier)=0 |
Returns the frame with the specified identifier, or NULL if not found. More... | |
virtual CefRefPtr< CefFrame > | GetFrameByName (const CefString &name)=0 |
Returns the frame with the specified name, or NULL if not found. More... | |
virtual size_t | GetFrameCount ()=0 |
Returns the number of frames that currently exist. More... | |
virtual void | GetFrameIdentifiers (std::vector< CefString > &identifiers)=0 |
Returns the identifiers of all existing frames. More... | |
virtual void | GetFrameNames (std::vector< CefString > &names)=0 |
Returns the names of all existing frames. More... | |
Public Member Functions inherited from CefBaseRefCounted | |
virtual void | AddRef () const =0 |
Called to increment the reference count for the object. More... | |
virtual bool | Release () const =0 |
Called to decrement the reference count for the object. More... | |
virtual bool | HasOneRef () const =0 |
Returns true if the reference count is 1. More... | |
virtual bool | HasAtLeastOneRef () const =0 |
Returns true if the reference count is at least 1. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CefBaseRefCounted | |
virtual | ~CefBaseRefCounted () |
Class used to represent a browser.
When used in the browser process the methods of this class may be called on any thread unless otherwise indicated in the comments. When used in the render process the methods of this class may only be called on the main thread.
|
pure virtual |
Returns true if the browser can navigate backwards.
|
pure virtual |
Returns true if the browser can navigate forwards.
Returns the focused frame for the browser.
|
pure virtual |
Returns the frame with the specified identifier, or NULL if not found.
Returns the frame with the specified name, or NULL if not found.
|
pure virtual |
Returns the number of frames that currently exist.
|
pure virtual |
Returns the identifiers of all existing frames.
|
pure virtual |
Returns the names of all existing frames.
|
pure virtual |
Returns the browser host object.
This method can only be called in the browser process.
|
pure virtual |
Returns the globally unique identifier for this browser.
This value is also used as the tabId for extension APIs.
Returns the main (top-level) frame for the browser.
In the browser process this will return a valid object until after CefLifeSpanHandler::OnBeforeClose is called. In the renderer process this will return NULL if the main frame is hosted in a different renderer process (e.g. for cross-origin sub-frames). The main frame object will change during cross-origin navigation or re-navigation after renderer process termination (due to crashes, etc).
|
pure virtual |
Navigate backwards.
|
pure virtual |
Navigate forwards.
|
pure virtual |
Returns true if a document has been loaded in the browser.
|
pure virtual |
Returns true if the browser is currently loading.
|
pure virtual |
Returns true if the browser is a popup.
|
pure virtual |
Returns true if this object is pointing to the same handle as |that| object.
|
pure virtual |
True if this object is currently valid.
This will return false after CefLifeSpanHandler::OnBeforeClose is called.
|
pure virtual |
Reload the current page.
|
pure virtual |
Reload the current page ignoring any cached data.
|
pure virtual |
Stop loading the page.