Commit 007c2427 authored by weinig@apple.com's avatar weinig@apple.com

Removed v8 bindings hooks from IDL files

https://bugs.webkit.org/show_bug.cgi?id=114091

Patch by Geoffrey Garen <ggaren@apple.com> on 2013-04-06
Reviewed by Anders Carlsson and Sam Weinig.

Source/JavaScriptCore: 

* heap/HeapStatistics.h:

Source/WebCore: 

* Modules/encryptedmedia/MediaKeySession.idl:
* Modules/filesystem/DOMWindowFileSystem.idl:
* Modules/filesystem/WorkerContextFileSystem.idl:
* Modules/gamepad/NavigatorGamepad.idl:
* Modules/geolocation/NavigatorGeolocation.idl:
* Modules/indexeddb/DOMWindowIndexedDatabase.idl:
* Modules/indexeddb/WorkerContextIndexedDatabase.idl:
* Modules/mediastream/DOMWindowMediaStream.idl:
* Modules/mediastream/NavigatorMediaStream.idl:
* Modules/notifications/DOMWindowNotifications.idl:
* Modules/notifications/NotificationCenter.idl:
* Modules/notifications/WorkerContextNotifications.idl:
* Modules/quota/DOMWindowQuota.idl:
* Modules/speech/DOMWindowSpeech.idl:
* Modules/webaudio/AudioBufferSourceNode.idl:
* Modules/webaudio/AudioContext.idl:
* Modules/webaudio/AudioParam.idl:
* Modules/webaudio/DOMWindowWebAudio.idl:
* Modules/webdatabase/DOMWindowWebDatabase.idl:
* Modules/webdatabase/WorkerContextWebDatabase.idl:
* Modules/websockets/DOMWindowWebSocket.idl:
* Modules/websockets/WorkerContextWebSocket.idl:
* bindings/js/JSDOMBinding.cpp:
* bindings/js/ScriptController.h:
(ScriptController):
* bindings/scripts/test/TestNode.idl:
* bindings/scripts/test/TestObj.idl:
* css/CSSFontFaceLoadEvent.idl:
* css/CSSHostRule.idl:
* css/CSSRule.idl:
* css/CSSRuleList.idl:
* css/CSSStyleDeclaration.idl:
* css/CSSStyleSheet.idl:
* css/CSSValue.idl:
* css/FontLoader.idl:
* css/StyleSheet.idl:
* css/WebKitCSSRegionRule.idl:
* dom/Clipboard.idl:
* dom/CustomElementConstructor.idl:
* dom/CustomEvent.idl:
* dom/DOMNamedFlowCollection.idl:
* dom/DOMStringMap.idl:
* dom/DataTransferItemList.idl:
* dom/Document.idl:
* dom/DocumentFragment.idl:
* dom/Element.idl:
* dom/Event.idl:
* dom/EventTarget.idl:
* dom/MessageChannel.idl:
* dom/MouseEvent.idl:
* dom/MutationRecord.idl:
* dom/NamedNodeMap.idl:
* dom/Node.idl:
* dom/NodeList.idl:
* dom/RequestAnimationFrameCallback.idl:
* dom/ShadowRoot.idl:
* dom/Text.idl:
* history/HistoryItem.cpp:
(WebCore::HistoryItem::encodeBackForwardTreeNode):
(WebCore::HistoryItem::decodeBackForwardTree):
* html/DOMSettableTokenList.idl:
* html/DOMTokenList.idl:
* html/HTMLAllCollection.idl:
* html/HTMLAppletElement.idl:
* html/HTMLCollection.idl:
* html/HTMLDialogElement.idl:
* html/HTMLDivElement.idl:
* html/HTMLDocument.idl:
* html/HTMLElement.idl:
* html/HTMLEmbedElement.idl:
* html/HTMLFormControlsCollection.idl:
* html/HTMLFormElement.idl:
* html/HTMLImageElement.idl:
* html/HTMLInputElement.idl:
* html/HTMLMediaElement.idl:
* html/HTMLObjectElement.idl:
* html/HTMLOptionsCollection.idl:
* html/HTMLSelectElement.idl:
* html/HTMLSpanElement.idl:
* html/HTMLStyleElement.idl:
* html/HTMLTemplateElement.idl:
* html/HTMLTrackElement.idl:
* html/HTMLUnknownElement.idl:
* html/MediaKeyError.idl:
* html/MediaKeyEvent.idl:
* html/MicroDataItemValue.idl:
* html/canvas/CanvasRenderingContext2D.idl:
* html/canvas/DOMPath.idl:
* html/shadow/HTMLContentElement.idl:
* html/shadow/HTMLShadowElement.idl:
* html/track/TextTrack.idl:
* inspector/InjectedScriptHost.idl:
* inspector/InspectorIndexedDBAgent.cpp:
(WebCore::InspectorIndexedDBAgent::requestDatabaseNames):
(WebCore::InspectorIndexedDBAgent::requestDatabase):
(WebCore::InspectorIndexedDBAgent::requestData):
(WebCore::InspectorIndexedDBAgent::clearObjectStore):
(WebCore):
* loader/EmptyClients.h:
(EmptyFrameLoaderClient):
* loader/FrameLoaderClient.h:
(FrameLoaderClient):
* page/Console.idl:
* page/DOMWindow.idl:
* page/DOMWindowPagePopup.idl:
* page/History.idl:
* page/Location.idl:
* platform/graphics/skia/PatternSkia.cpp:
(WebCore::Pattern::platformDestroy):
(WebCore::Pattern::platformPattern):
* testing/Internals.cpp:
(WebCore::Internals::serializeObject):
(WebCore::Internals::deserializeBuffer):

Source/WTF: 

* wtf/ArrayBuffer.h:
(WTF):
(WTF::ArrayBufferContents::ArrayBufferContents):
(WTF::ArrayBufferContents::transfer):
(ArrayBufferContents):
(ArrayBuffer):
(WTF::ArrayBufferContents::~ArrayBufferContents):
* wtf/Platform.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147857 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e14fa4ce
2013-04-06 Geoffrey Garen <ggaren@apple.com>
Removed v8 bindings hooks from IDL files
https://bugs.webkit.org/show_bug.cgi?id=114091
Reviewed by Anders Carlsson and Sam Weinig.
* heap/HeapStatistics.h:
2013-04-03 Roger Fong <roger_fong@apple.com>
Windows VS2010 build fix.
......@@ -26,6 +26,7 @@
#ifndef HeapStatistics_h
#define HeapStatistics_h
#include "JSExportMacros.h"
#include <wtf/Deque.h>
namespace JSC {
......
2013-04-06 Geoffrey Garen <ggaren@apple.com>
Removed v8 bindings hooks from IDL files
https://bugs.webkit.org/show_bug.cgi?id=114091
Reviewed by Anders Carlsson and Sam Weinig.
* wtf/ArrayBuffer.h:
(WTF):
(WTF::ArrayBufferContents::ArrayBufferContents):
(WTF::ArrayBufferContents::transfer):
(ArrayBufferContents):
(ArrayBuffer):
(WTF::ArrayBufferContents::~ArrayBufferContents):
* wtf/Platform.h:
2013-04-05 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
[GTK] Change from PLATFORM(GTK) to USE(GLIB) in WTF/CurrentTime.cpp
......
......@@ -36,25 +36,12 @@ namespace WTF {
class ArrayBuffer;
class ArrayBufferView;
#if defined(WTF_USE_V8)
// The current implementation assumes that the instance of this class is a
// singleton living for the entire process's lifetime.
class ArrayBufferDeallocationObserver {
public:
virtual void ArrayBufferDeallocated(unsigned sizeInBytes) = 0;
};
#endif
class ArrayBufferContents {
WTF_MAKE_NONCOPYABLE(ArrayBufferContents);
public:
ArrayBufferContents()
: m_data(0)
, m_sizeInBytes(0)
#if defined(WTF_USE_V8)
, m_deallocationObserver(0)
#endif
{ }
inline ~ArrayBufferContents();
......@@ -66,9 +53,6 @@ private:
ArrayBufferContents(void* data, unsigned sizeInBytes)
: m_data(data)
, m_sizeInBytes(sizeInBytes)
#if defined(WTF_USE_V8)
, m_deallocationObserver(0)
#endif
{ }
friend class ArrayBuffer;
......@@ -86,21 +70,10 @@ private:
other.m_sizeInBytes = m_sizeInBytes;
m_data = 0;
m_sizeInBytes = 0;
#if defined(WTF_USE_V8)
// Notify the current V8 isolate that the buffer is gone.
if (m_deallocationObserver)
m_deallocationObserver->ArrayBufferDeallocated(other.m_sizeInBytes);
ASSERT(!other.m_deallocationObserver);
m_deallocationObserver = 0;
#endif
}
void* m_data;
unsigned m_sizeInBytes;
#if defined(WTF_USE_V8)
ArrayBufferDeallocationObserver* m_deallocationObserver;
#endif
};
class ArrayBuffer : public RefCounted<ArrayBuffer> {
......@@ -126,13 +99,6 @@ public:
WTF_EXPORT_PRIVATE bool transfer(ArrayBufferContents&, Vector<RefPtr<ArrayBufferView> >& neuteredViews);
bool isNeutered() { return !m_contents.m_data; }
#if defined(WTF_USE_V8)
void setDeallocationObserver(ArrayBufferDeallocationObserver* deallocationObserver)
{
m_contents.m_deallocationObserver = deallocationObserver;
}
#endif
~ArrayBuffer() { }
private:
......@@ -272,10 +238,6 @@ void ArrayBufferContents::tryAllocate(unsigned numElements, unsigned elementByte
ArrayBufferContents::~ArrayBufferContents()
{
#if defined (WTF_USE_V8)
if (m_deallocationObserver)
m_deallocationObserver->ArrayBufferDeallocated(m_sizeInBytes);
#endif
WTF::fastFree(m_data);
}
......
......@@ -1010,11 +1010,6 @@
#define WTF_USE_COREAUDIO 1
#endif
/* Not using V8 implies using JSC and vice versa */
#if !USE(V8)
#define WTF_USE_JSC 1
#endif
#if !defined(WTF_USE_ZLIB) && !PLATFORM(QT)
#define WTF_USE_ZLIB 1
#endif
......
2013-04-06 Geoffrey Garen <ggaren@apple.com>
Removed v8 bindings hooks from IDL files
https://bugs.webkit.org/show_bug.cgi?id=114091
Reviewed by Anders Carlsson and Sam Weinig.
* Modules/encryptedmedia/MediaKeySession.idl:
* Modules/filesystem/DOMWindowFileSystem.idl:
* Modules/filesystem/WorkerContextFileSystem.idl:
* Modules/gamepad/NavigatorGamepad.idl:
* Modules/geolocation/NavigatorGeolocation.idl:
* Modules/indexeddb/DOMWindowIndexedDatabase.idl:
* Modules/indexeddb/WorkerContextIndexedDatabase.idl:
* Modules/mediastream/DOMWindowMediaStream.idl:
* Modules/mediastream/NavigatorMediaStream.idl:
* Modules/notifications/DOMWindowNotifications.idl:
* Modules/notifications/NotificationCenter.idl:
* Modules/notifications/WorkerContextNotifications.idl:
* Modules/quota/DOMWindowQuota.idl:
* Modules/speech/DOMWindowSpeech.idl:
* Modules/webaudio/AudioBufferSourceNode.idl:
* Modules/webaudio/AudioContext.idl:
* Modules/webaudio/AudioParam.idl:
* Modules/webaudio/DOMWindowWebAudio.idl:
* Modules/webdatabase/DOMWindowWebDatabase.idl:
* Modules/webdatabase/WorkerContextWebDatabase.idl:
* Modules/websockets/DOMWindowWebSocket.idl:
* Modules/websockets/WorkerContextWebSocket.idl:
* bindings/js/JSDOMBinding.cpp:
* bindings/js/ScriptController.h:
(ScriptController):
* bindings/scripts/test/TestNode.idl:
* bindings/scripts/test/TestObj.idl:
* css/CSSFontFaceLoadEvent.idl:
* css/CSSHostRule.idl:
* css/CSSRule.idl:
* css/CSSRuleList.idl:
* css/CSSStyleDeclaration.idl:
* css/CSSStyleSheet.idl:
* css/CSSValue.idl:
* css/FontLoader.idl:
* css/StyleSheet.idl:
* css/WebKitCSSRegionRule.idl:
* dom/Clipboard.idl:
* dom/CustomElementConstructor.idl:
* dom/CustomEvent.idl:
* dom/DOMNamedFlowCollection.idl:
* dom/DOMStringMap.idl:
* dom/DataTransferItemList.idl:
* dom/Document.idl:
* dom/DocumentFragment.idl:
* dom/Element.idl:
* dom/Event.idl:
* dom/EventTarget.idl:
* dom/MessageChannel.idl:
* dom/MouseEvent.idl:
* dom/MutationRecord.idl:
* dom/NamedNodeMap.idl:
* dom/Node.idl:
* dom/NodeList.idl:
* dom/RequestAnimationFrameCallback.idl:
* dom/ShadowRoot.idl:
* dom/Text.idl:
* history/HistoryItem.cpp:
(WebCore::HistoryItem::encodeBackForwardTreeNode):
(WebCore::HistoryItem::decodeBackForwardTree):
* html/DOMSettableTokenList.idl:
* html/DOMTokenList.idl:
* html/HTMLAllCollection.idl:
* html/HTMLAppletElement.idl:
* html/HTMLCollection.idl:
* html/HTMLDialogElement.idl:
* html/HTMLDivElement.idl:
* html/HTMLDocument.idl:
* html/HTMLElement.idl:
* html/HTMLEmbedElement.idl:
* html/HTMLFormControlsCollection.idl:
* html/HTMLFormElement.idl:
* html/HTMLImageElement.idl:
* html/HTMLInputElement.idl:
* html/HTMLMediaElement.idl:
* html/HTMLObjectElement.idl:
* html/HTMLOptionsCollection.idl:
* html/HTMLSelectElement.idl:
* html/HTMLSpanElement.idl:
* html/HTMLStyleElement.idl:
* html/HTMLTemplateElement.idl:
* html/HTMLTrackElement.idl:
* html/HTMLUnknownElement.idl:
* html/MediaKeyError.idl:
* html/MediaKeyEvent.idl:
* html/MicroDataItemValue.idl:
* html/canvas/CanvasRenderingContext2D.idl:
* html/canvas/DOMPath.idl:
* html/shadow/HTMLContentElement.idl:
* html/shadow/HTMLShadowElement.idl:
* html/track/TextTrack.idl:
* inspector/InjectedScriptHost.idl:
* inspector/InspectorIndexedDBAgent.cpp:
(WebCore::InspectorIndexedDBAgent::requestDatabaseNames):
(WebCore::InspectorIndexedDBAgent::requestDatabase):
(WebCore::InspectorIndexedDBAgent::requestData):
(WebCore::InspectorIndexedDBAgent::clearObjectStore):
(WebCore):
* loader/EmptyClients.h:
(EmptyFrameLoaderClient):
* loader/FrameLoaderClient.h:
(FrameLoaderClient):
* page/Console.idl:
* page/DOMWindow.idl:
* page/DOMWindowPagePopup.idl:
* page/History.idl:
* page/Location.idl:
* platform/graphics/skia/PatternSkia.cpp:
(WebCore::Pattern::platformDestroy):
(WebCore::Pattern::platformPattern):
* testing/Internals.cpp:
(WebCore::Internals::serializeObject):
(WebCore::Internals::deserializeBuffer):
2013-04-06 Zan Dobersek <zdobersek@igalia.com>
Remove the USE(SKIA_ON_MAC_CHROMIUM) guards
......@@ -41,9 +41,9 @@ interface [
void close();
// EventListeners
attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitkeyadded;
attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitkeyerror;
attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitkeymessage;
attribute EventListener onwebkitkeyadded;
attribute EventListener onwebkitkeyerror;
attribute EventListener onwebkitkeymessage;
// EventTarget interface
void addEventListener(in DOMString type,
......
......@@ -31,9 +31,9 @@
const unsigned short TEMPORARY = 0;
const unsigned short PERSISTENT = 1;
[V8EnabledAtRuntime=FileSystem] void webkitRequestFileSystem(in unsigned short type, in long long size,
void webkitRequestFileSystem(in unsigned short type, in long long size,
in [Callback] FileSystemCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
[V8EnabledAtRuntime=FileSystem] void webkitResolveLocalFileSystemURL(in DOMString url,
void webkitResolveLocalFileSystemURL(in DOMString url,
in [Callback] EntryCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
};
......@@ -31,12 +31,12 @@
const unsigned short TEMPORARY = 0;
const unsigned short PERSISTENT = 1;
[V8EnabledAtRuntime=FileSystem] void webkitRequestFileSystem(in unsigned short type, in long long size, in [Callback, Optional] FileSystemCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
[V8EnabledAtRuntime=FileSystem] DOMFileSystemSync webkitRequestFileSystemSync(in unsigned short type, in long long size) raises (FileException);
[V8EnabledAtRuntime=FileSystem] void webkitResolveLocalFileSystemURL(in DOMString url, in [Callback] EntryCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
[V8EnabledAtRuntime=FileSystem] EntrySync webkitResolveLocalFileSystemSyncURL(in DOMString url) raises (FileException);
void webkitRequestFileSystem(in unsigned short type, in long long size, in [Callback, Optional] FileSystemCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
DOMFileSystemSync webkitRequestFileSystemSync(in unsigned short type, in long long size) raises (FileException);
void webkitResolveLocalFileSystemURL(in DOMString url, in [Callback] EntryCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
EntrySync webkitResolveLocalFileSystemSyncURL(in DOMString url) raises (FileException);
[V8EnabledAtRuntime=FileSystem] attribute FileErrorConstructor FileError;
[V8EnabledAtRuntime=FileSystem] attribute FileExceptionConstructor FileException;
attribute FileErrorConstructor FileError;
attribute FileExceptionConstructor FileException;
};
......@@ -21,6 +21,6 @@
Conditional=GAMEPAD,
Supplemental=Navigator
] interface NavigatorGamepad {
[V8EnabledAtRuntime] GamepadList webkitGetGamepads();
GamepadList webkitGetGamepads();
};
......@@ -21,6 +21,6 @@
Conditional=GEOLOCATION,
Supplemental=Navigator
] interface NavigatorGeolocation {
[V8EnabledAtRuntime] readonly attribute Geolocation geolocation;
readonly attribute Geolocation geolocation;
};
......@@ -28,7 +28,7 @@
Conditional=INDEXED_DATABASE,
Supplemental=DOMWindow
] interface DOMWindowIndexedDatabase {
[ImplementedAs=indexedDB,V8MeasureAs=PrefixedIndexedDB] readonly attribute IDBFactory webkitIndexedDB;
[ImplementedAs=indexedDB] readonly attribute IDBFactory webkitIndexedDB;
attribute IDBCursorConstructor webkitIDBCursor;
attribute IDBDatabaseConstructor webkitIDBDatabase;
......@@ -39,7 +39,7 @@
attribute IDBRequestConstructor webkitIDBRequest;
attribute IDBTransactionConstructor webkitIDBTransaction;
[V8MeasureAs=UnprefixedIndexedDB] readonly attribute IDBFactory indexedDB;
readonly attribute IDBFactory indexedDB;
attribute IDBCursorConstructor IDBCursor;
attribute IDBCursorWithValueConstructor IDBCursorWithValue;
......
......@@ -28,7 +28,7 @@
Conditional=INDEXED_DATABASE,
Supplemental=WorkerContext
] interface WorkerContextIndexedDatabase {
[ImplementedAs=indexedDB,V8EnabledAtRuntime] readonly attribute IDBFactory webkitIndexedDB;
[ImplementedAs=indexedDB] readonly attribute IDBFactory webkitIndexedDB;
attribute IDBCursorConstructor webkitIDBCursor;
attribute IDBDatabaseConstructor webkitIDBDatabase;
......@@ -39,7 +39,7 @@
attribute IDBRequestConstructor webkitIDBRequest;
attribute IDBTransactionConstructor webkitIDBTransaction;
[V8EnabledAtRuntime] readonly attribute IDBFactory indexedDB;
readonly attribute IDBFactory indexedDB;
attribute IDBCursorConstructor IDBCursor;
attribute IDBCursorWithValueConstructor IDBCursorWithValue;
......
......@@ -28,8 +28,8 @@
Conditional=MEDIA_STREAM,
Supplemental=DOMWindow
] interface DOMWindowMediaStream {
[V8EnabledAtRuntime] attribute MediaStreamConstructor webkitMediaStream;
[V8EnabledAtRuntime] attribute RTCPeerConnectionConstructor webkitRTCPeerConnection;
attribute MediaStreamConstructor webkitMediaStream;
attribute RTCPeerConnectionConstructor webkitRTCPeerConnection;
attribute RTCSessionDescriptionConstructor RTCSessionDescription;
attribute RTCIceCandidateConstructor RTCIceCandidate;
attribute MediaStreamEventConstructor MediaStreamEvent;
......
......@@ -21,7 +21,7 @@
Conditional=MEDIA_STREAM,
Supplemental=Navigator
] interface NavigatorMediaStream {
[V8EnabledAtRuntime] void webkitGetUserMedia(in Dictionary options,
void webkitGetUserMedia(in Dictionary options,
in [Callback] NavigatorUserMediaSuccessCallback successCallback,
in [Callback, Optional] NavigatorUserMediaErrorCallback errorCallback)
raises(DOMException);
......
......@@ -29,7 +29,7 @@
Supplemental=DOMWindow
] interface DOMWindowNotifications {
#if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS
[V8EnabledAtRuntime, V8MeasureAs=LegacyNotifications] readonly attribute NotificationCenter webkitNotifications;
readonly attribute NotificationCenter webkitNotifications;
#endif
#if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS
attribute NotificationConstructor Notification;
......
......@@ -35,9 +35,9 @@
OmitConstructor
] interface NotificationCenter {
#if !defined(ENABLE_TEXT_NOTIFICATIONS_ONLY) || !ENABLE_TEXT_NOTIFICATIONS_ONLY
[V8EnabledPerContext=htmlNotifications, V8MeasureAs=LegacyHTMLNotifications] Notification createHTMLNotification(in DOMString url) raises(DOMException);
Notification createHTMLNotification(in DOMString url) raises(DOMException);
#endif
[V8MeasureAs=LegacyTextNotifications] Notification createNotification(in DOMString iconUrl, in DOMString title, in DOMString body) raises(DOMException);
Notification createNotification(in DOMString iconUrl, in DOMString title, in DOMString body) raises(DOMException);
int checkPermission();
void requestPermission(in [Optional, Callback] VoidCallback callback);
......
......@@ -29,7 +29,7 @@
Supplemental=WorkerContext
] interface WorkerContextNotifications {
#if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS
[V8EnabledAtRuntime] readonly attribute NotificationCenter webkitNotifications;
readonly attribute NotificationCenter webkitNotifications;
#endif
};
......@@ -27,6 +27,6 @@
Conditional=QUOTA,
Supplemental=DOMWindow
] interface DOMWindowQuota {
readonly attribute [V8MeasureAs=StorageInfo] StorageInfo webkitStorageInfo;
readonly attribute StorageInfo webkitStorageInfo;
};
......@@ -27,9 +27,9 @@
Conditional=SCRIPTED_SPEECH,
Supplemental=DOMWindow
] interface DOMWindowSpeech {
[V8EnabledAtRuntime] attribute SpeechRecognitionConstructor webkitSpeechRecognition;
[V8EnabledAtRuntime] attribute SpeechRecognitionErrorConstructor webkitSpeechRecognitionError;
[V8EnabledAtRuntime] attribute SpeechRecognitionEventConstructor webkitSpeechRecognitionEvent;
[V8EnabledAtRuntime] attribute SpeechGrammarConstructor webkitSpeechGrammar;
[V8EnabledAtRuntime] attribute SpeechGrammarListConstructor webkitSpeechGrammarList;
attribute SpeechRecognitionConstructor webkitSpeechRecognition;
attribute SpeechRecognitionErrorConstructor webkitSpeechRecognitionError;
attribute SpeechRecognitionEventConstructor webkitSpeechRecognitionEvent;
attribute SpeechGrammarConstructor webkitSpeechGrammar;
attribute SpeechGrammarListConstructor webkitSpeechGrammarList;
};
......@@ -45,16 +45,16 @@
attribute double loopStart;
attribute double loopEnd;
[V8MeasureAs=WebAudioStart] void start(in double when);
[V8MeasureAs=WebAudioStart, ImplementedAs=startGrain] void start(in double when, in double grainOffset);
[V8MeasureAs=WebAudioStart, ImplementedAs=startGrain] void start(in double when, in double grainOffset, in double grainDuration);
void start(in double when);
[ImplementedAs=startGrain] void start(in double when, in double grainOffset);
[ImplementedAs=startGrain] void start(in double when, in double grainOffset, in double grainDuration);
void stop(in double when);
#if defined(ENABLE_LEGACY_WEB_AUDIO) && ENABLE_LEGACY_WEB_AUDIO
attribute boolean looping; // This is an alias for the .loop attribute for backwards compatibility.
[V8MeasureAs=LegacyWebAudio] void noteOn(in double when);
[V8MeasureAs=LegacyWebAudio] void noteGrainOn(in double when, in double grainOffset, in double grainDuration);
void noteOn(in double when);
void noteGrainOn(in double when, in double grainOffset, in double grainDuration);
void noteOff(in double when);
#endif
};
......@@ -95,11 +95,11 @@
void startRendering();
#if defined(ENABLE_LEGACY_WEB_AUDIO) && ENABLE_LEGACY_WEB_AUDIO
[V8MeasureAs=LegacyWebAudio, ImplementedAs=createGain] GainNode createGainNode();
[V8MeasureAs=LegacyWebAudio, ImplementedAs=createDelay] DelayNode createDelayNode(in [Optional] double maxDelayTime)
[ImplementedAs=createGain] GainNode createGainNode();
[ImplementedAs=createDelay] DelayNode createDelayNode(in [Optional] double maxDelayTime)
raises(DOMException);
[V8MeasureAs=LegacyWebAudio, ImplementedAs=createScriptProcessor] ScriptProcessorNode createJavaScriptNode(in unsigned long bufferSize, in [Optional] unsigned long numberOfInputChannels, in [Optional] unsigned long numberOfOutputChannels)
[ImplementedAs=createScriptProcessor] ScriptProcessorNode createJavaScriptNode(in unsigned long bufferSize, in [Optional] unsigned long numberOfInputChannels, in [Optional] unsigned long numberOfOutputChannels)
raises(DOMException);
#endif
......
......@@ -55,7 +55,7 @@
void cancelScheduledValues(in float startTime);
#if defined(ENABLE_LEGACY_WEB_AUDIO) && ENABLE_LEGACY_WEB_AUDIO
[V8MeasureAs=LegacyWebAudio, ImplementedAs=setTargetAtTime] void setTargetValueAtTime(in float targetValue, in float time, in float timeConstant);
[ImplementedAs=setTargetAtTime] void setTargetValueAtTime(in float targetValue, in float time, in float timeConstant);
#endif
};
......@@ -29,11 +29,10 @@
Supplemental=DOMWindow
] interface DOMWindowWebAudio {
#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
[JSCustomGetter, V8EnabledAtRuntime] attribute AudioContextConstructor webkitAudioContext;
[V8EnabledAtRuntime] attribute OfflineAudioContextConstructor webkitOfflineAudioContext;
[JSCustomGetter] attribute AudioContextConstructor webkitAudioContext;
attribute OfflineAudioContextConstructor webkitOfflineAudioContext;
attribute PannerNodeConstructor webkitAudioPannerNode;
attribute AudioProcessingEventConstructor AudioProcessingEvent;
attribute OfflineAudioCompletionEventConstructor OfflineAudioCompletionEvent;
#endif
};
......@@ -28,7 +28,7 @@
Conditional=SQL_DATABASE,
Supplemental=DOMWindow
] interface DOMWindowWebDatabase {
[V8EnabledAtRuntime, V8MeasureAs=OpenWebDatabase] Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
raises(DOMException);
#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
attribute SQLExceptionConstructor SQLException;
......
......@@ -28,10 +28,10 @@
Conditional=SQL_DATABASE,
Supplemental=WorkerContext
] interface WorkerContextWebDatabase {
[V8EnabledAtRuntime] Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
raises(DOMException);
[V8EnabledAtRuntime] DatabaseSync openDatabaseSync(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
DatabaseSync openDatabaseSync(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
raises(DOMException);
};
......@@ -30,7 +30,7 @@
] interface DOMWindowWebSocket {
#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
attribute CloseEventConstructor CloseEvent;
[JSCustomGetter, V8EnabledAtRuntime] attribute WebSocketConstructor WebSocket; // Usable with the new operator
[JSCustomGetter] attribute WebSocketConstructor WebSocket; // Usable with the new operator
#endif
};
......@@ -28,6 +28,6 @@
Conditional=WEB_SOCKETS,
Supplemental=WorkerContext
] interface WorkerContextWebSocket {
[JSCustomGetter,V8EnabledAtRuntime] attribute WebSocketConstructor WebSocket; // Usable with the new operator
[JSCustomGetter] attribute WebSocketConstructor WebSocket; // Usable with the new operator
};
......@@ -8426,6 +8426,10 @@
7C522D4915B477E8009B7C95 /* InspectorOverlay.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorOverlay.cpp; sourceTree = "<group>"; };
7C522D4A15B478B2009B7C95 /* InspectorOverlay.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorOverlay.h; sourceTree = "<group>"; };
7C60128060078BB70E367A95 /* DNSResolveQueue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DNSResolveQueue.cpp; sourceTree = "<group>"; };
7C6136F61710C35200FF4A57 /* Hasher.pm */ = {isa = PBXFileReference; lastKnownFileType = text.script.perl; name = Hasher.pm; path = scripts/Hasher.pm; sourceTree = "<group>"; };
7C6136F71710C35200FF4A57 /* InFilesCompiler.pm */ = {isa = PBXFileReference; lastKnownFileType = text.script.perl; name = InFilesCompiler.pm; path = scripts/InFilesCompiler.pm; sourceTree = "<group>"; };
7C6136F81710C35200FF4A57 /* InFilesParser.pm */ = {isa = PBXFileReference; lastKnownFileType = text.script.perl; name = InFilesParser.pm; path = scripts/InFilesParser.pm; sourceTree = "<group>"; };
7C6136F91710C35200FF4A57 /* StaticString.pm */ = {isa = PBXFileReference; lastKnownFileType = text.script.perl; name = StaticString.pm; path = scripts/StaticString.pm; sourceTree = "<group>"; };
7E12E90D15FA5D3A005E4126 /* CustomFilterMeshGenerator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CustomFilterMeshGenerator.h; path = filters/CustomFilterMeshGenerator.h; sourceTree = "<group>"; };
7E12E90E15FA5D3A005E4126 /* CustomFilterMeshGenerator.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CustomFilterMeshGenerator.cpp; path = filters/CustomFilterMeshGenerator.cpp; sourceTree = "<group>"; };
7E33CD00127F340D00BE8F17 /* PurgePriority.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PurgePriority.h; sourceTree = "<group>"; };
......@@ -18636,14 +18640,18 @@
BC1A3794097C6FC40019F3D8 /* objc */,
93F8B3050A300FE100F61AB8 /* CodeGenerator.pm */,
93F8B3070A300FEA00F61AB8 /* generate-bindings.pl */,
7C6136F61710C35200FF4A57 /* Hasher.pm */,
A83B533814F399BB00720D9D /* IDLAttributes.txt */,
14813BF309EDF88E00F757E1 /* IDLParser.pm */,
7C6136F71710C35200FF4A57 /* InFilesCompiler.pm */,
7C6136F81710C35200FF4A57 /* InFilesParser.pm */,
A83B538014FBB2EC00720D9D /* preprocess-idls.pl */,