summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkylep@chromium.org <kylep@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-24 22:43:27 +0000
committerkylep@chromium.org <kylep@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-24 22:43:27 +0000
commit4bf158d633bfa5a38505a473abe87d94e21d8da6 (patch)
tree13e2829e580abed6c90dc30d4d1d8b99b6d3864e
parentc281de15c3f71aafb92d25cd043338bc0fbff350 (diff)
downloadchromium_src-4bf158d633bfa5a38505a473abe87d94e21d8da6.zip
chromium_src-4bf158d633bfa5a38505a473abe87d94e21d8da6.tar.gz
chromium_src-4bf158d633bfa5a38505a473abe87d94e21d8da6.tar.bz2
JS Binding for HTMLAudioElement Constructor
Review URL: http://codereview.chromium.org/132036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19191 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--webkit/port/bindings/v8/v8_proxy.cpp5
-rw-r--r--webkit/webkit.gyp1
2 files changed, 6 insertions, 0 deletions
diff --git a/webkit/port/bindings/v8/v8_proxy.cpp b/webkit/port/bindings/v8/v8_proxy.cpp
index 26d727b..5f80a2d 100644
--- a/webkit/port/bindings/v8/v8_proxy.cpp
+++ b/webkit/port/bindings/v8/v8_proxy.cpp
@@ -1612,6 +1612,11 @@ v8::Persistent<v8::FunctionTemplate> V8Proxy::GetTemplate(
case V8ClassIndex::DOMPARSER:
desc->SetCallHandler(USE_CALLBACK(DOMParserConstructor));
break;
+#if ENABLE(VIDEO)
+ case V8ClassIndex::HTMLAUDIOELEMENT:
+ desc->SetCallHandler(USE_CALLBACK(HTMLAudioElementConstructor));
+ break;
+#endif
case V8ClassIndex::HTMLIMAGEELEMENT:
desc->SetCallHandler(USE_CALLBACK(HTMLImageElementConstructor));
break;
diff --git a/webkit/webkit.gyp b/webkit/webkit.gyp
index 364f1b3..b87edea 100644
--- a/webkit/webkit.gyp
+++ b/webkit/webkit.gyp
@@ -1033,6 +1033,7 @@
'../third_party/WebKit/WebCore/bindings/v8/custom/V8DocumentCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8ElementCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8EventCustom.cpp',
+ '../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLAudioElementConstructor.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLCollectionCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLDataGridElementCustom.cpp',