Stop using "in" keyword in IDL files

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

Reviewed by Kentaro Hara.

Source/WebCore:

Stop using "in" keyword in IDL files as this is no longer part of the
Web IDL specification and it brings no additional information.

For now, the IDL parser will still accept the "in" keyword for operation
argument to not break anything. However, we should remove support for it
later on.

No new tests, no behavior change.

* Modules/battery/BatteryManager.idl:
* Modules/encryptedmedia/MediaKeySession.idl:
* Modules/encryptedmedia/MediaKeys.idl:
* Modules/filesystem/DOMWindowFileSystem.idl:
* Modules/filesystem/DirectoryEntry.idl:
* Modules/filesystem/DirectoryEntrySync.idl:
* Modules/filesystem/DirectoryReader.idl:
* Modules/filesystem/EntriesCallback.idl:
* Modules/filesystem/Entry.idl:
* Modules/filesystem/EntryArray.idl:
* Modules/filesystem/EntryArraySync.idl:
* Modules/filesystem/EntryCallback.idl:
* Modules/filesystem/EntrySync.idl:
* Modules/filesystem/ErrorCallback.idl:
* Modules/filesystem/FileCallback.idl:
* Modules/filesystem/FileEntry.idl:
* Modules/filesystem/FileSystemCallback.idl:
* Modules/filesystem/FileWriter.idl:
* Modules/filesystem/FileWriterCallback.idl:
* Modules/filesystem/FileWriterSync.idl:
* Modules/filesystem/MetadataCallback.idl:
* Modules/filesystem/WorkerContextFileSystem.idl:
* Modules/gamepad/GamepadList.idl:
* Modules/geolocation/Geolocation.idl:
* Modules/geolocation/PositionCallback.idl:
* Modules/geolocation/PositionErrorCallback.idl:
* Modules/indexeddb/IDBCursor.idl:
* Modules/indexeddb/IDBDatabase.idl:
* Modules/indexeddb/IDBFactory.idl:
* Modules/indexeddb/IDBIndex.idl:
* Modules/indexeddb/IDBKeyRange.idl:
* Modules/indexeddb/IDBObjectStore.idl:
* Modules/indexeddb/IDBRequest.idl:
* Modules/indexeddb/IDBTransaction.idl:
* Modules/mediasource/MediaSource.idl:
* Modules/mediasource/SourceBuffer.idl:
* Modules/mediasource/SourceBufferList.idl:
* Modules/mediastream/MediaStream.idl:
* Modules/mediastream/MediaStreamTrack.idl:
* Modules/mediastream/NavigatorMediaStream.idl:
* Modules/mediastream/NavigatorUserMediaErrorCallback.idl:
* Modules/mediastream/NavigatorUserMediaSuccessCallback.idl:
* Modules/mediastream/RTCDTMFSender.idl:
* Modules/mediastream/RTCDataChannel.idl:
* Modules/mediastream/RTCErrorCallback.idl:
* Modules/mediastream/RTCIceCandidate.idl:
* Modules/mediastream/RTCPeerConnection.idl:
* Modules/mediastream/RTCSessionDescription.idl:
* Modules/mediastream/RTCSessionDescriptionCallback.idl:
* Modules/mediastream/RTCStatsCallback.idl:
* Modules/mediastream/RTCStatsReport.idl:
* Modules/mediastream/RTCStatsResponse.idl:
* Modules/navigatorcontentutils/NavigatorContentUtils.idl:
* Modules/networkinfo/NetworkInfoConnection.idl:
* Modules/notifications/Notification.idl:
* Modules/notifications/NotificationCenter.idl:
* Modules/notifications/NotificationPermissionCallback.idl:
* Modules/quota/StorageErrorCallback.idl:
* Modules/quota/StorageInfo.idl:
* Modules/quota/StorageQuota.idl:
* Modules/quota/StorageQuotaCallback.idl:
* Modules/quota/StorageUsageCallback.idl:
* Modules/speech/SpeechGrammarList.idl:
* Modules/speech/SpeechRecognition.idl:
* Modules/speech/SpeechRecognitionResult.idl:
* Modules/speech/SpeechRecognitionResultList.idl:
* Modules/speech/SpeechSynthesisUtterance.idl:
* Modules/vibration/NavigatorVibration.idl:
* Modules/webaudio/AnalyserNode.idl:
* Modules/webaudio/AudioBuffer.idl:
* Modules/webaudio/AudioBufferCallback.idl:
* Modules/webaudio/AudioBufferSourceNode.idl:
* Modules/webaudio/AudioContext.idl:
* Modules/webaudio/AudioListener.idl:
* Modules/webaudio/AudioNode.idl:
* Modules/webaudio/AudioParam.idl:
* Modules/webaudio/BiquadFilterNode.idl:
* Modules/webaudio/OfflineAudioContext.idl:
* Modules/webaudio/OscillatorNode.idl:
* Modules/webaudio/PannerNode.idl:
* Modules/webdatabase/DOMWindowWebDatabase.idl:
* Modules/webdatabase/Database.idl:
* Modules/webdatabase/DatabaseCallback.idl:
* Modules/webdatabase/DatabaseSync.idl:
* Modules/webdatabase/SQLResultSetRowList.idl:
* Modules/webdatabase/SQLStatementCallback.idl:
* Modules/webdatabase/SQLStatementErrorCallback.idl:
* Modules/webdatabase/SQLTransaction.idl:
* Modules/webdatabase/SQLTransactionCallback.idl:
* Modules/webdatabase/SQLTransactionErrorCallback.idl:
* Modules/webdatabase/SQLTransactionSync.idl:
* Modules/webdatabase/SQLTransactionSyncCallback.idl:
* Modules/webdatabase/WorkerContextWebDatabase.idl:
* Modules/websockets/WebSocket.idl:
* bindings/scripts/test/TestCallback.idl:
* bindings/scripts/test/TestCustomNamedGetter.idl:
* bindings/scripts/test/TestDomainSecurity.idl:
* bindings/scripts/test/TestEventTarget.idl:
* bindings/scripts/test/TestInterface.idl:
* bindings/scripts/test/TestMediaQueryListListener.idl:
* bindings/scripts/test/TestNamedConstructor.idl:
* bindings/scripts/test/TestObj.idl:
* bindings/scripts/test/TestOverloadedConstructors.idl:
* bindings/scripts/test/TestSerializedScriptValueInterface.idl:
* bindings/scripts/test/TestSupplemental.idl:
* bindings/scripts/test/TestTypedArray.idl:
* bindings/scripts/test/TestTypedefs.idl:
* css/CSSHostRule.idl:
* css/CSSMediaRule.idl:
* css/CSSPrimitiveValue.idl:
* css/CSSRuleList.idl:
* css/CSSStyleDeclaration.idl:
* css/CSSStyleSheet.idl:
* css/CSSSupportsRule.idl:
* css/CSSValueList.idl:
* css/FontLoader.idl:
* css/MediaList.idl:
* css/MediaQueryList.idl:
* css/MediaQueryListListener.idl:
* css/StyleMedia.idl:
* css/StyleSheetList.idl:
* css/WebKitCSSKeyframesRule.idl:
* css/WebKitCSSMatrix.idl:
* dom/CharacterData.idl:
* dom/ClientRectList.idl:
* dom/Clipboard.idl:
* dom/CompositionEvent.idl:
* dom/CustomEvent.idl:
* dom/DOMImplementation.idl:
* dom/DOMNamedFlowCollection.idl:
* dom/DOMStringList.idl:
* dom/DataTransferItem.idl:
* dom/DataTransferItemList.idl:
* dom/DeviceMotionEvent.idl:
* dom/DeviceOrientationEvent.idl:
* dom/Document.idl:
* dom/DocumentFragment.idl:
* dom/Element.idl:
* dom/Event.idl:
* dom/EventListener.idl:
* dom/EventTarget.idl:
* dom/HashChangeEvent.idl:
* dom/KeyboardEvent.idl:
* dom/MessageEvent.idl:
* dom/MessagePort.idl:
* dom/MouseEvent.idl:
* dom/MutationEvent.idl:
* dom/MutationObserver.idl:
* dom/NamedNodeMap.idl:
* dom/Node.idl:
* dom/NodeFilter.idl:
* dom/NodeList.idl:
* dom/OverflowEvent.idl:
* dom/PropertyNodeList.idl:
* dom/Range.idl:
* dom/RequestAnimationFrameCallback.idl:
* dom/ShadowRoot.idl:
* dom/StringCallback.idl:
* dom/Text.idl:
* dom/TextEvent.idl:
* dom/TouchEvent.idl:
* dom/TouchList.idl:
* dom/UIEvent.idl:
* dom/WebKitNamedFlow.idl:
* dom/WheelEvent.idl:
* fileapi/Blob.idl:
* fileapi/FileList.idl:
* fileapi/FileReader.idl:
* fileapi/FileReaderSync.idl:
* html/DOMFormData.idl:
* html/DOMTokenList.idl:
* html/DOMURL.idl:
* html/HTMLAllCollection.idl:
* html/HTMLAudioElement.idl:
* html/HTMLButtonElement.idl:
* html/HTMLCanvasElement.idl:
* html/HTMLCollection.idl:
* html/HTMLDocument.idl:
* html/HTMLElement.idl:
* html/HTMLFieldSetElement.idl:
* html/HTMLFormControlsCollection.idl:
* html/HTMLInputElement.idl:
* html/HTMLKeygenElement.idl:
* html/HTMLMediaElement.idl:
* html/HTMLObjectElement.idl:
* html/HTMLOptionElement.idl:
* html/HTMLOptionsCollection.idl:
* html/HTMLOutputElement.idl:
* html/HTMLPropertiesCollection.idl:
* html/HTMLSelectElement.idl:
* html/HTMLTableElement.idl:
* html/HTMLTableRowElement.idl:
* html/HTMLTableSectionElement.idl:
* html/HTMLTextAreaElement.idl:
* html/MediaController.idl:
* html/TimeRanges.idl:
* html/canvas/ArrayBuffer.idl:
* html/canvas/CanvasGradient.idl:
* html/canvas/CanvasRenderingContext2D.idl:
* html/canvas/DOMPath.idl:
* html/canvas/DataView.idl:
* html/canvas/EXTDrawBuffers.idl:
* html/canvas/Float32Array.idl:
* html/canvas/Float64Array.idl:
* html/canvas/Int16Array.idl:
* html/canvas/Int32Array.idl:
* html/canvas/Int8Array.idl:
* html/canvas/OESVertexArrayObject.idl:
* html/canvas/Uint16Array.idl:
* html/canvas/Uint32Array.idl:
* html/canvas/Uint8Array.idl:
* html/canvas/Uint8ClampedArray.idl:
* html/canvas/WebGLDebugShaders.idl:
* html/canvas/WebGLRenderingContext.idl:
* html/track/AudioTrackList.idl:
* html/track/TextTrack.idl:
* html/track/TextTrackCue.idl:
* html/track/TextTrackCueList.idl:
* html/track/TextTrackList.idl:
* html/track/TextTrackRegionList.idl:
* html/track/VideoTrackList.idl:
* inspector/InjectedScriptHost.idl:
* inspector/InspectorFrontendHost.idl:
* inspector/JavaScriptCallFrame.idl:
* loader/appcache/DOMApplicationCache.idl:
* page/Console.idl:
* page/Crypto.idl:
* page/DOMSecurityPolicy.idl:
* page/DOMSelection.idl:
* page/DOMWindow.idl:
* page/EventSource.idl:
* page/History.idl:
* page/Location.idl:
* page/PagePopupController.idl:
* page/Performance.idl:
* page/PerformanceEntryList.idl:
* page/SpeechInputResultList.idl:
* plugins/DOMMimeTypeArray.idl:
* plugins/DOMPlugin.idl:
* plugins/DOMPluginArray.idl:
* storage/Storage.idl:
* storage/StorageEvent.idl:
* svg/ElementTimeControl.idl:
* svg/SVGAngle.idl:
* svg/SVGColor.idl:
* svg/SVGDocument.idl:
* svg/SVGElementInstanceList.idl:
* svg/SVGFEDropShadowElement.idl:
* svg/SVGFEGaussianBlurElement.idl:
* svg/SVGFEMorphologyElement.idl:
* svg/SVGFilterElement.idl:
* svg/SVGLength.idl:
* svg/SVGLengthList.idl:
* svg/SVGLocatable.idl:
* svg/SVGMarkerElement.idl:
* svg/SVGMatrix.idl:
* svg/SVGNumberList.idl:
* svg/SVGPaint.idl:
* svg/SVGPathElement.idl:
* svg/SVGPathSegList.idl:
* svg/SVGPoint.idl:
* svg/SVGPointList.idl:
* svg/SVGSVGElement.idl:
* svg/SVGStringList.idl:
* svg/SVGStyledElement.idl:
* svg/SVGTests.idl:
* svg/SVGTextContentElement.idl:
* svg/SVGTransform.idl:
* svg/SVGTransformList.idl:
* testing/InternalSettings.idl:
* testing/Internals.idl:
* workers/AbstractWorker.idl:
* workers/DedicatedWorkerContext.idl:
* workers/SharedWorker.idl:
* workers/Worker.idl:
* workers/WorkerContext.idl:
* xml/DOMParser.idl:
* xml/XMLHttpRequest.idl:
* xml/XMLHttpRequestUpload.idl:
* xml/XMLSerializer.idl:
* xml/XPathEvaluator.idl:
* xml/XPathExpression.idl:
* xml/XPathNSResolver.idl:
* xml/XPathResult.idl:
* xml/XSLTProcessor.idl:

Source/WebKit/win:

Remove "in" keyword from IDL files as this is no longer part of the Web
IDL specification.

* Interfaces/DOMEvents.idl:
* Interfaces/DOMPrivate.idl:
* Interfaces/DOMWindow.idl:

Tools:

Remove "in" keyword from IDL files as this is no longer part of the Web
IDL specification.

* WebKitTestRunner/InjectedBundle/Bindings/AccessibilityController.idl:
* WebKitTestRunner/InjectedBundle/Bindings/AccessibilityTextMarker.idl:
* WebKitTestRunner/InjectedBundle/Bindings/AccessibilityTextMarkerRange.idl:
* WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
* WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl:
* WebKitTestRunner/InjectedBundle/Bindings/GCController.idl:
* WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
* WebKitTestRunner/InjectedBundle/Bindings/TextInputController.idl:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 34531b91
This diff is collapsed.
......@@ -34,13 +34,13 @@
attribute EventListener onlevelchange;
// EventTarget interface
void addEventListener(in DOMString type,
in EventListener listener,
in optional boolean useCapture);
void removeEventListener(in DOMString type,
in EventListener listener,
in optional boolean useCapture);
boolean dispatchEvent(in Event event)
void addEventListener(DOMString type,
EventListener listener,
optional boolean useCapture);
void removeEventListener(DOMString type,
EventListener listener,
optional boolean useCapture);
boolean dispatchEvent(Event event)
raises(EventException);
};
......@@ -35,7 +35,7 @@ interface [
readonly attribute DOMString sessionId;
// session operations
void update(in Uint8Array key)
void update(Uint8Array key)
raises(DOMException);
void close();
......@@ -45,12 +45,12 @@ interface [
attribute EventListener onwebkitkeymessage;
// EventTarget interface
void addEventListener(in DOMString type,
in EventListener listener,
in optional boolean useCapture);
void removeEventListener(in DOMString type,
in EventListener listener,
in optional boolean useCapture);
boolean dispatchEvent(in Event evt)
void addEventListener(DOMString type,
EventListener listener,
optional boolean useCapture);
void removeEventListener(DOMString type,
EventListener listener,
optional boolean useCapture);
boolean dispatchEvent(Event evt)
raises(EventException);
};
......@@ -25,10 +25,10 @@
interface [
Conditional=ENCRYPTED_MEDIA_V2,
Constructor(in DOMString keySystem),
Constructor(DOMString keySystem),
ConstructorRaisesException,
] MediaKeys {
[CallWith=ScriptExecutionContext] MediaKeySession createSession(in [Default=Undefined] optional DOMString type, in [Default=Undefined] optional Uint8Array initData)
[CallWith=ScriptExecutionContext] MediaKeySession createSession([Default=Undefined] optional DOMString type, [Default=Undefined] optional Uint8Array initData)
raises(DOMException);
readonly attribute DOMString keySystem;
......
......@@ -30,9 +30,9 @@
const unsigned short TEMPORARY = 0;
const unsigned short PERSISTENT = 1;
void webkitRequestFileSystem(in unsigned short type, in long long size,
in FileSystemCallback successCallback, in optional ErrorCallback errorCallback);
void webkitResolveLocalFileSystemURL(in DOMString url,
in EntryCallback successCallback, in optional ErrorCallback errorCallback);
void webkitRequestFileSystem(unsigned short type, long long size,
FileSystemCallback successCallback, optional ErrorCallback errorCallback);
void webkitResolveLocalFileSystemURL(DOMString url,
EntryCallback successCallback, optional ErrorCallback errorCallback);
};
......@@ -35,7 +35,7 @@
JSNoStaticTables
] interface DirectoryEntry : Entry {
DirectoryReader createReader();
void getFile(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString path, in optional Dictionary options, in optional EntryCallback successCallback, in optional ErrorCallback errorCallback);
void getDirectory(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString path, in optional Dictionary options, in optional EntryCallback successCallback, in optional ErrorCallback errorCallback);
void removeRecursively(in VoidCallback successCallback, in optional ErrorCallback errorCallback);
void getFile([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString path, optional Dictionary options, optional EntryCallback successCallback, optional ErrorCallback errorCallback);
void getDirectory([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString path, optional Dictionary options, optional EntryCallback successCallback, optional ErrorCallback errorCallback);
void removeRecursively(VoidCallback successCallback, optional ErrorCallback errorCallback);
};
......@@ -35,7 +35,7 @@
JSNoStaticTables
] interface DirectoryEntrySync : EntrySync {
DirectoryReaderSync createReader() raises (FileException);
FileEntrySync getFile(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString path, in Dictionary flags) raises (FileException);
DirectoryEntrySync getDirectory(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString path, in Dictionary flags) raises (FileException);
FileEntrySync getFile([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString path, Dictionary flags) raises (FileException);
DirectoryEntrySync getDirectory([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString path, Dictionary flags) raises (FileException);
void removeRecursively() raises (FileException);
};
......@@ -33,5 +33,5 @@
JSNoStaticTables,
ImplementationLacksVTable
] interface DirectoryReader {
void readEntries(in EntriesCallback successCallback, in optional ErrorCallback errorCallback);
void readEntries(EntriesCallback successCallback, optional ErrorCallback errorCallback);
};
......@@ -31,5 +31,5 @@
[
Conditional=FILE_SYSTEM,
] callback interface EntriesCallback {
boolean handleEvent(in EntryArray entries);
boolean handleEvent(EntryArray entries);
};
......@@ -39,10 +39,10 @@
readonly attribute DOMString fullPath;
readonly attribute DOMFileSystem filesystem;
void getMetadata(in MetadataCallback successCallback, in optional ErrorCallback errorCallback);
void moveTo(in DirectoryEntry parent, in [TreatNullAs=NullString, TreatUndefinedAs=NullString] optional DOMString name, in optional EntryCallback successCallback, in optional ErrorCallback errorCallback);
void copyTo(in DirectoryEntry parent, in [TreatNullAs=NullString, TreatUndefinedAs=NullString] optional DOMString name, in optional EntryCallback successCallback, in optional ErrorCallback errorCallback);
void getMetadata(MetadataCallback successCallback, optional ErrorCallback errorCallback);
void moveTo(DirectoryEntry parent, [TreatNullAs=NullString, TreatUndefinedAs=NullString] optional DOMString name, optional EntryCallback successCallback, optional ErrorCallback errorCallback);
void copyTo(DirectoryEntry parent, [TreatNullAs=NullString, TreatUndefinedAs=NullString] optional DOMString name, optional EntryCallback successCallback, optional ErrorCallback errorCallback);
DOMString toURL();
void remove(in VoidCallback successCallback, in optional ErrorCallback errorCallback);
void getParent(in optional EntryCallback successCallback, in optional ErrorCallback errorCallback);
void remove(VoidCallback successCallback, optional ErrorCallback errorCallback);
void getParent(optional EntryCallback successCallback, optional ErrorCallback errorCallback);
};
......@@ -35,5 +35,5 @@
ImplementationLacksVTable
] interface EntryArray {
readonly attribute unsigned long length;
Entry item(in [IsIndex] unsigned long index);
Entry item([IsIndex] unsigned long index);
};
......@@ -35,5 +35,5 @@
ImplementationLacksVTable
] interface EntryArraySync {
readonly attribute unsigned long length;
EntrySync item(in [IsIndex] unsigned long index);
EntrySync item([IsIndex] unsigned long index);
};
......@@ -31,5 +31,5 @@
[
Conditional=FILE_SYSTEM,
] callback interface EntryCallback {
boolean handleEvent(in Entry entry);
boolean handleEvent(Entry entry);
};
......@@ -40,8 +40,8 @@
readonly attribute DOMFileSystemSync filesystem;
Metadata getMetadata() raises (FileException);
EntrySync moveTo(in DirectoryEntrySync parent, in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString name) raises (FileException);
EntrySync copyTo(in DirectoryEntrySync parent, in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString name) raises (FileException);
EntrySync moveTo(DirectoryEntrySync parent, [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString name) raises (FileException);
EntrySync copyTo(DirectoryEntrySync parent, [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString name) raises (FileException);
DOMString toURL();
void remove() raises (FileException);
DirectoryEntrySync getParent();
......
......@@ -31,5 +31,5 @@
[
Conditional=FILE_SYSTEM,
] callback interface ErrorCallback {
boolean handleEvent(in FileError error);
boolean handleEvent(FileError error);
};
......@@ -31,5 +31,5 @@
[
Conditional=FILE_SYSTEM,
] callback interface FileCallback {
boolean handleEvent(in File file);
boolean handleEvent(File file);
};
......@@ -34,6 +34,6 @@
JSGenerateToJSObject,
JSNoStaticTables
] interface FileEntry : Entry {
void createWriter(in FileWriterCallback successCallback, in optional ErrorCallback errorCallback);
void file(in FileCallback successCallback, in optional ErrorCallback errorCallback);
void createWriter(FileWriterCallback successCallback, optional ErrorCallback errorCallback);
void file(FileCallback successCallback, optional ErrorCallback errorCallback);
};
......@@ -31,5 +31,5 @@
[
Conditional=FILE_SYSTEM,
] callback interface FileSystemCallback {
boolean handleEvent(in DOMFileSystem fileSystem);
boolean handleEvent(DOMFileSystem fileSystem);
};
......@@ -43,9 +43,9 @@
readonly attribute unsigned short readyState;
// async write/modify methods
void write(in Blob data) raises (FileException);
void seek(in long long position) raises (FileException);
void truncate(in long long size) raises (FileException);
void write(Blob data) raises (FileException);
void seek(long long position) raises (FileException);
void truncate(long long size) raises (FileException);
void abort() raises (FileException);
......@@ -61,12 +61,12 @@
attribute EventListener onwriteend;
// EventTarget interface
void addEventListener(in DOMString type,
in EventListener listener,
in optional boolean useCapture);
void removeEventListener(in DOMString type,
in EventListener listener,
in optional boolean useCapture);
boolean dispatchEvent(in Event evt)
void addEventListener(DOMString type,
EventListener listener,
optional boolean useCapture);
void removeEventListener(DOMString type,
EventListener listener,
optional boolean useCapture);
boolean dispatchEvent(Event evt)
raises(EventException);
};
......@@ -31,5 +31,5 @@
[
Conditional=FILE_SYSTEM,
] callback interface FileWriterCallback {
boolean handleEvent(in FileWriter fileWriter);
boolean handleEvent(FileWriter fileWriter);
};
......@@ -33,9 +33,9 @@
JSNoStaticTables
] interface FileWriterSync {
// synchronous write/modify methods
void write(in Blob data) raises (FileException);
void seek(in long long position) raises (FileException);
void truncate(in long long size) raises (FileException);
void write(Blob data) raises (FileException);
void seek(long long position) raises (FileException);
void truncate(long long size) raises (FileException);
readonly attribute long long position;
readonly attribute long long length;
......
......@@ -31,5 +31,5 @@
[
Conditional=FILE_SYSTEM,
] callback interface MetadataCallback {
boolean handleEvent(in Metadata metadata);
boolean handleEvent(Metadata metadata);
};
......@@ -30,10 +30,10 @@
const unsigned short TEMPORARY = 0;
const unsigned short PERSISTENT = 1;
void webkitRequestFileSystem(in unsigned short type, in long long size, in optional FileSystemCallback successCallback, in optional ErrorCallback errorCallback);
DOMFileSystemSync webkitRequestFileSystemSync(in unsigned short type, in long long size) raises (FileException);
void webkitResolveLocalFileSystemURL(in DOMString url, in EntryCallback successCallback, in optional ErrorCallback errorCallback);
EntrySync webkitResolveLocalFileSystemSyncURL(in DOMString url) raises (FileException);
void webkitRequestFileSystem(unsigned short type, long long size, optional FileSystemCallback successCallback, optional ErrorCallback errorCallback);
DOMFileSystemSync webkitRequestFileSystemSync(unsigned short type, long long size) raises (FileException);
void webkitResolveLocalFileSystemURL(DOMString url, EntryCallback successCallback, optional ErrorCallback errorCallback);
EntrySync webkitResolveLocalFileSystemSyncURL(DOMString url) raises (FileException);
attribute FileErrorConstructor FileError;
attribute FileExceptionConstructor FileException;
......
......@@ -29,6 +29,6 @@
ImplementationLacksVTable
] interface GamepadList {
readonly attribute unsigned long length;
Gamepad item(in [Default=Undefined] optional unsigned long index);
Gamepad item([Default=Undefined] optional unsigned long index);
};
......@@ -29,14 +29,14 @@
GenerateIsReachable=ImplFrame,
OmitConstructor
] interface Geolocation {
[Custom] void getCurrentPosition(in PositionCallback successCallback,
in optional PositionErrorCallback errorCallback,
in optional PositionOptions options);
[Custom] void getCurrentPosition(PositionCallback successCallback,
optional PositionErrorCallback errorCallback,
optional PositionOptions options);
[Custom] long watchPosition(in PositionCallback successCallback,
in optional PositionErrorCallback errorCallback,
in optional PositionOptions options);
[Custom] long watchPosition(PositionCallback successCallback,
optional PositionErrorCallback errorCallback,
optional PositionOptions options);
void clearWatch(in long watchID);
void clearWatch(long watchID);
};
......@@ -25,5 +25,5 @@
[
Conditional=GEOLOCATION,
] callback interface PositionCallback {
boolean handleEvent(in Geoposition position);
boolean handleEvent(Geoposition position);
};
......@@ -25,5 +25,5 @@
[
Conditional=GEOLOCATION,
] callback interface PositionErrorCallback {
boolean handleEvent(in PositionError error);
boolean handleEvent(PositionError error);
};
......@@ -33,11 +33,11 @@
readonly attribute any primaryKey;
readonly attribute IDBAny source;
[CallWith=ScriptState] IDBRequest update(in any value)
[CallWith=ScriptState] IDBRequest update(any value)
raises (DOMException);
void advance(in [EnforceRange] unsigned long count)
void advance([EnforceRange] unsigned long count)
raises (DOMException);
[CallWith=ScriptExecutionContext, ImplementedAs=continueFunction] void continue(in optional any key)
[CallWith=ScriptExecutionContext, ImplementedAs=continueFunction] void continue(optional any key)
raises (DOMException);
[CallWith=ScriptExecutionContext, ImplementedAs=deleteFunction] IDBRequest delete()
raises (DOMException);
......
......@@ -38,27 +38,27 @@
attribute EventListener onerror;
attribute EventListener onversionchange;
[Custom] IDBObjectStore createObjectStore(in DOMString name, in optional Dictionary options)
[Custom] IDBObjectStore createObjectStore(DOMString name, optional Dictionary options)
raises (DOMException);
void deleteObjectStore(in DOMString name)
void deleteObjectStore(DOMString name)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBTransaction transaction(in DOMStringList storeNames, in [Default=NullString] optional DOMString mode)
[CallWith=ScriptExecutionContext] IDBTransaction transaction(DOMStringList storeNames, [Default=NullString] optional DOMString mode)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBTransaction transaction(in sequence<DOMString> storeNames, in [Default=NullString] optional DOMString mode)
[CallWith=ScriptExecutionContext] IDBTransaction transaction(sequence<DOMString> storeNames, [Default=NullString] optional DOMString mode)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBTransaction transaction(in DOMString storeName, in [Default=NullString] optional DOMString mode)
[CallWith=ScriptExecutionContext] IDBTransaction transaction(DOMString storeName, [Default=NullString] optional DOMString mode)
raises (DOMException);
void close();
// EventTarget interface
void addEventListener(in DOMString type,
in EventListener listener,
in optional boolean useCapture);
void removeEventListener(in DOMString type,
in EventListener listener,
in optional boolean useCapture);
boolean dispatchEvent(in Event evt)
void addEventListener(DOMString type,
EventListener listener,
optional boolean useCapture);
void removeEventListener(DOMString type,
EventListener listener,
optional boolean useCapture);
boolean dispatchEvent(Event evt)
raises(EventException);
};
......@@ -31,12 +31,12 @@
[CallWith=ScriptExecutionContext, ImplementedAs=getDatabaseNames] IDBRequest webkitGetDatabaseNames()
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBOpenDBRequest open(in DOMString name, in [EnforceRange] optional unsigned long long version)
[CallWith=ScriptExecutionContext] IDBOpenDBRequest open(DOMString name, [EnforceRange] optional unsigned long long version)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBOpenDBRequest deleteDatabase(in DOMString name)
[CallWith=ScriptExecutionContext] IDBOpenDBRequest deleteDatabase(DOMString name)
raises (DOMException);
[CallWith=ScriptExecutionContext] short cmp(in any first, in any second)
[CallWith=ScriptExecutionContext] short cmp(any first, any second)
raises (DOMException);
};
......@@ -34,27 +34,27 @@
readonly attribute boolean unique;
readonly attribute boolean multiEntry;
[CallWith=ScriptExecutionContext] IDBRequest openCursor(in optional IDBKeyRange? range, in optional DOMString direction)
[CallWith=ScriptExecutionContext] IDBRequest openCursor(optional IDBKeyRange? range, optional DOMString direction)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest openCursor(in any key, in optional DOMString direction)
[CallWith=ScriptExecutionContext] IDBRequest openCursor(any key, optional DOMString direction)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest openKeyCursor(in optional IDBKeyRange? range, in optional DOMString direction)
[CallWith=ScriptExecutionContext] IDBRequest openKeyCursor(optional IDBKeyRange? range, optional DOMString direction)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest openKeyCursor(in any key, in optional DOMString direction)
[CallWith=ScriptExecutionContext] IDBRequest openKeyCursor(any key, optional DOMString direction)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest get(in IDBKeyRange? key)
[CallWith=ScriptExecutionContext] IDBRequest get(IDBKeyRange? key)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest get(in any key)
[CallWith=ScriptExecutionContext] IDBRequest get(any key)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest getKey(in IDBKeyRange? key)
[CallWith=ScriptExecutionContext] IDBRequest getKey(IDBKeyRange? key)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest getKey(in any key)
[CallWith=ScriptExecutionContext] IDBRequest getKey(any key)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest count(in optional IDBKeyRange? range)
[CallWith=ScriptExecutionContext] IDBRequest count(optional IDBKeyRange? range)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest count(in any key)
[CallWith=ScriptExecutionContext] IDBRequest count(any key)
raises (DOMException);
};
......@@ -33,13 +33,13 @@
readonly attribute boolean lowerOpen;
readonly attribute boolean upperOpen;
[CallWith=ScriptExecutionContext] static IDBKeyRange only(in any value)
[CallWith=ScriptExecutionContext] static IDBKeyRange only(any value)
raises (DOMException);
[CallWith=ScriptExecutionContext] static IDBKeyRange lowerBound(in any bound, in optional boolean open)
[CallWith=ScriptExecutionContext] static IDBKeyRange lowerBound(any bound, optional boolean open)
raises (DOMException);
[CallWith=ScriptExecutionContext] static IDBKeyRange upperBound(in any bound, in optional boolean open)
[CallWith=ScriptExecutionContext] static IDBKeyRange upperBound(any bound, optional boolean open)
raises (DOMException);
[CallWith=ScriptExecutionContext] static IDBKeyRange bound(in any lower, in any upper, in optional boolean lowerOpen, in optional boolean upperOpen)
[CallWith=ScriptExecutionContext] static IDBKeyRange bound(any lower, any upper, optional boolean lowerOpen, optional boolean upperOpen)
raises (DOMException);
};
......@@ -34,35 +34,35 @@
readonly attribute IDBTransaction transaction;