mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Expose unique identifiers for frames and the ability to retrieve a frame's parent frame (issue #450).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@410 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -134,6 +134,8 @@ public:
|
||||
const CefString& jsCode,
|
||||
const CefString& scriptUrl,
|
||||
int startLine);
|
||||
long long GetIdentifier(CefRefPtr<CefFrame> frame);
|
||||
CefRefPtr<CefFrame> GetParent(CefRefPtr<CefFrame> frame);
|
||||
CefString GetURL(CefRefPtr<CefFrame> frame);
|
||||
|
||||
// CefFrames are light-weight objects managed by the browser and loosely
|
||||
@@ -444,6 +446,10 @@ public:
|
||||
virtual bool IsMain() OVERRIDE { return name_.empty(); }
|
||||
virtual bool IsFocused() OVERRIDE;
|
||||
virtual CefString GetName() OVERRIDE { return name_; }
|
||||
virtual long long GetIdentifier() OVERRIDE
|
||||
{ return browser_->GetIdentifier(this); }
|
||||
virtual CefRefPtr<CefFrame> GetParent() OVERRIDE
|
||||
{ return browser_->GetParent(this); }
|
||||
virtual CefString GetURL() OVERRIDE { return browser_->GetURL(this); }
|
||||
virtual CefRefPtr<CefBrowser> GetBrowser() OVERRIDE { return browser_.get(); }
|
||||
virtual void VisitDOM(CefRefPtr<CefDOMVisitor> visitor) OVERRIDE;
|
||||
|
Reference in New Issue
Block a user