summaryrefslogtreecommitdiffstats
path: root/webkit/port/bindings/v8/v8_proxy.h
diff options
context:
space:
mode:
authordglazkov@google.com <dglazkov@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-10 17:56:39 +0000
committerdglazkov@google.com <dglazkov@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-10 17:56:39 +0000
commit9b451c0bce7c09d32a1f885f2b86fc388ecd8ee7 (patch)
tree258cddf035cb585b515ee8d69bc58b3e4e9d8620 /webkit/port/bindings/v8/v8_proxy.h
parent81f3095725e27bc914f5ce85d99a929f76a347d3 (diff)
downloadchromium_src-9b451c0bce7c09d32a1f885f2b86fc388ecd8ee7.zip
chromium_src-9b451c0bce7c09d32a1f885f2b86fc388ecd8ee7.tar.gz
chromium_src-9b451c0bce7c09d32a1f885f2b86fc388ecd8ee7.tar.bz2
Landing 37604:38097 merge
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5110 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/bindings/v8/v8_proxy.h')
-rw-r--r--webkit/port/bindings/v8/v8_proxy.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/webkit/port/bindings/v8/v8_proxy.h b/webkit/port/bindings/v8/v8_proxy.h
index 5c2c246..3f69153 100644
--- a/webkit/port/bindings/v8/v8_proxy.h
+++ b/webkit/port/bindings/v8/v8_proxy.h
@@ -64,6 +64,7 @@ class CSSRule;
class CSSRuleList;
class CSSValueList;
class NodeFilter;
+class ScriptExecutionContext;
#if ENABLE(SVG)
class SVGElementInstance;
@@ -210,11 +211,11 @@ class V8Proxy {
static void GCUnprotect(Peerable* dom_object);
// Create a lazy event listener.
- PassRefPtr<EventListener> createHTMLEventHandler(const String& functionName,
- const String& code, Node* node);
+ PassRefPtr<EventListener> createInlineEventListener(
+ const String& functionName, const String& code, Node* node);
#if ENABLE(SVG)
- PassRefPtr<EventListener> createSVGEventHandler(const String& functionName,
- const String& code, Node* node);
+ PassRefPtr<EventListener> createSVGEventHandler(
+ const String& functionName, const String& code, Node* node);
static void SetSVGContext(void* object, SVGElement* context);
static SVGElement* GetSVGContext(void* object);
@@ -241,15 +242,20 @@ class V8Proxy {
// Returns the window object of the currently executing context.
static DOMWindow* retrieveWindow();
+ // Returns the window object associated with a context.
+ static DOMWindow* retrieveWindow(v8::Handle<v8::Context> context);
// Returns V8Proxy object of the currently executing context.
static V8Proxy* retrieve();
// Returns V8Proxy object associated with a frame.
static V8Proxy* retrieve(Frame* frame);
+ // Returns V8Proxy object associated with a script execution context.
+ static V8Proxy* retrieve(ScriptExecutionContext* context);
+
// Returns the frame object of the window object associated
// with the currently executing context.
static Frame* retrieveFrame();
// Returns the frame object of the window object associated with
- // an context.
+ // a context.
static Frame* retrieveFrame(v8::Handle<v8::Context> context);
// Returns the frame that started JS execution.
// NOTE: cannot declare retrieveActiveFrame as inline function,