Add CefFrame::GetV8Context() method for retrieving the V8 context of a frame (issue #344).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@345 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-10-28 20:30:19 +00:00
parent 5147a4c7a0
commit 0ec9541b78
13 changed files with 154 additions and 16 deletions

View File

@@ -1022,6 +1022,13 @@ public:
///
/*--cef()--*/
virtual void VisitDOM(CefRefPtr<CefDOMVisitor> visitor) =0;
///
// Get the V8 context associated with the frame. This method should only be
// called on the UI thread.
///
/*--cef()--*/
virtual CefRefPtr<CefV8Context> GetV8Context() =0;
};

View File

@@ -854,6 +854,13 @@ typedef struct _cef_frame_t
void (CEF_CALLBACK *visit_dom)(struct _cef_frame_t* self,
struct _cef_domvisitor_t* visitor);
///
// Get the V8 context associated with the frame. This function should only be
// called on the UI thread.
///
struct _cef_v8context_t* (CEF_CALLBACK *get_v8context)(
struct _cef_frame_t* self);
} cef_frame_t;