Use a typedef for ExceptionCode in all header files instead of including ExceptionCode.h
authoradamk@chromium.org <adamk@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Nov 2011 01:51:35 +0000 (01:51 +0000)
committeradamk@chromium.org <adamk@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Nov 2011 01:51:35 +0000 (01:51 +0000)
commit850b0bd5e71775fc4592682ce048cc39b7969f8b
treec180081a24a362c41e7ff753cf279650829ac70f
parentfda722b2deb53bdb29cc9181a785fe9806377a8c
Use a typedef for ExceptionCode in all header files instead of including ExceptionCode.h
https://bugs.webkit.org/show_bug.cgi?id=71845

Reviewed by Adam Barth.

Source/WebCore:

Some headers in WebCore include ExceptionCode.h to get the ExceptionCode typedef,
while others provide the typedef themselves. Per Darin, the latter is preferred,
so this patch updates all references, and fixes up .cpp files that
need the include in order to access the enum.

* bindings/js/JSSVGLengthCustom.cpp:
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation): #include ExceptionCode.h when needed for SVG.
* bindings/scripts/CodeGeneratorObjC.pm:
(GenerateImplementation): #include ExceptionCode.h when needed for SVG.
* bindings/v8/custom/V8NotificationCenterCustom.cpp:
* bindings/v8/custom/V8SVGLengthCustom.cpp:
* css/WebKitCSSMatrix.h:
* fileapi/DirectoryReaderSync.h:
* fileapi/EntrySync.h:
* fileapi/FileReader.h:
* fileapi/FileReaderSync.h:
* fileapi/SyncCallbackHelper.h:
* html/ClassList.h:
* html/DOMSettableTokenList.h:
* html/DOMTokenList.cpp:
* html/DOMTokenList.h:
* html/TextTrack.cpp:
* html/TextTrack.h:
* html/TimeRanges.cpp:
* html/TimeRanges.h:
* html/canvas/ArrayBuffer.cpp:
* html/canvas/ArrayBuffer.h:
* html/canvas/ArrayBufferView.cpp:
* html/canvas/ArrayBufferView.h:
* html/canvas/DataView.cpp:
* html/canvas/DataView.h:
* html/canvas/OESVertexArrayObject.h:
* html/canvas/WebGLDebugShaders.h:
* html/canvas/WebGLRenderingContext.cpp:
* html/canvas/WebGLRenderingContext.h:
* mediastream/MediaStreamFrameController.cpp:
* mediastream/MediaStreamFrameController.h:
* notifications/Notification.h:
* notifications/NotificationCenter.h:
* storage/AbstractDatabase.cpp:
* storage/AbstractDatabase.h:
* storage/Database.h:
* storage/DatabaseSync.h:
* storage/DatabaseTask.h:
* storage/IDBCursor.h:
* storage/IDBCursorBackendInterface.h:
* storage/IDBDatabase.h:
* storage/IDBDatabaseBackendInterface.h:
* storage/IDBFactory.h:
* storage/IDBFactoryBackendInterface.h:
* storage/IDBIndexBackendInterface.h:
* storage/IDBKeyRange.h:
* storage/IDBObjectStoreBackendInterface.h:
* storage/IDBRequest.h:
* storage/IDBTransactionBackendInterface.h:
* storage/SQLResultSet.cpp:
* storage/SQLResultSet.h:
* storage/SQLStatementSync.h:
* storage/SQLTransaction.cpp:
* storage/SQLTransaction.h:
* storage/SQLTransactionSync.h:
* svg/ElementTimeControl.h:
* svg/SVGAngle.cpp:
* svg/SVGAngle.h:
* svg/SVGLength.cpp:
* svg/SVGLength.h:
* svg/SVGLengthContext.cpp:
* svg/SVGLengthContext.h:
* svg/SVGLocatable.h:
* svg/SVGMatrix.h:
* svg/SVGPreserveAspectRatio.cpp:
* svg/SVGPreserveAspectRatio.h:
* testing/Internals.h:
* webaudio/AudioContext.cpp:
* workers/DefaultSharedWorkerRepository.cpp:
* workers/DefaultSharedWorkerRepository.h:
* workers/SharedWorkerRepository.h:

Source/WebKit/chromium:

* src/SharedWorkerRepository.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@99645 268f45cc-cd09-0410-ab3c-d52691b4dbfc
75 files changed:
Source/WebCore/ChangeLog
Source/WebCore/bindings/js/JSSVGLengthCustom.cpp
Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm
Source/WebCore/bindings/v8/custom/V8NotificationCenterCustom.cpp
Source/WebCore/bindings/v8/custom/V8SVGLengthCustom.cpp
Source/WebCore/css/WebKitCSSMatrix.h
Source/WebCore/dom/WebKitMutationObserver.h
Source/WebCore/fileapi/DirectoryReaderSync.h
Source/WebCore/fileapi/EntrySync.h
Source/WebCore/fileapi/FileReader.h
Source/WebCore/fileapi/FileReaderSync.h
Source/WebCore/fileapi/SyncCallbackHelper.h
Source/WebCore/html/ClassList.h
Source/WebCore/html/DOMSettableTokenList.h
Source/WebCore/html/DOMTokenList.cpp
Source/WebCore/html/DOMTokenList.h
Source/WebCore/html/TextTrack.cpp
Source/WebCore/html/TextTrack.h
Source/WebCore/html/TimeRanges.cpp
Source/WebCore/html/TimeRanges.h
Source/WebCore/html/canvas/ArrayBuffer.cpp
Source/WebCore/html/canvas/ArrayBuffer.h
Source/WebCore/html/canvas/ArrayBufferView.cpp
Source/WebCore/html/canvas/ArrayBufferView.h
Source/WebCore/html/canvas/DataView.cpp
Source/WebCore/html/canvas/DataView.h
Source/WebCore/html/canvas/OESVertexArrayObject.h
Source/WebCore/html/canvas/WebGLDebugShaders.h
Source/WebCore/html/canvas/WebGLRenderingContext.cpp
Source/WebCore/html/canvas/WebGLRenderingContext.h
Source/WebCore/mediastream/MediaStreamFrameController.cpp
Source/WebCore/mediastream/MediaStreamFrameController.h
Source/WebCore/notifications/Notification.h
Source/WebCore/notifications/NotificationCenter.h
Source/WebCore/storage/AbstractDatabase.cpp
Source/WebCore/storage/AbstractDatabase.h
Source/WebCore/storage/Database.h
Source/WebCore/storage/DatabaseSync.h
Source/WebCore/storage/DatabaseTask.h
Source/WebCore/storage/IDBCursor.h
Source/WebCore/storage/IDBCursorBackendInterface.h
Source/WebCore/storage/IDBDatabase.h
Source/WebCore/storage/IDBDatabaseBackendInterface.h
Source/WebCore/storage/IDBFactory.h
Source/WebCore/storage/IDBFactoryBackendInterface.h
Source/WebCore/storage/IDBIndexBackendInterface.h
Source/WebCore/storage/IDBKeyRange.h
Source/WebCore/storage/IDBObjectStoreBackendInterface.h
Source/WebCore/storage/IDBRequest.h
Source/WebCore/storage/IDBTransactionBackendInterface.h
Source/WebCore/storage/SQLResultSet.cpp
Source/WebCore/storage/SQLResultSet.h
Source/WebCore/storage/SQLStatementSync.h
Source/WebCore/storage/SQLTransaction.cpp
Source/WebCore/storage/SQLTransaction.h
Source/WebCore/storage/SQLTransactionSync.h
Source/WebCore/svg/ElementTimeControl.h
Source/WebCore/svg/SVGAngle.cpp
Source/WebCore/svg/SVGAngle.h
Source/WebCore/svg/SVGLength.cpp
Source/WebCore/svg/SVGLength.h
Source/WebCore/svg/SVGLengthContext.cpp
Source/WebCore/svg/SVGLengthContext.h
Source/WebCore/svg/SVGLocatable.h
Source/WebCore/svg/SVGMatrix.h
Source/WebCore/svg/SVGPreserveAspectRatio.cpp
Source/WebCore/svg/SVGPreserveAspectRatio.h
Source/WebCore/testing/Internals.h
Source/WebCore/webaudio/AudioContext.cpp
Source/WebCore/workers/DefaultSharedWorkerRepository.cpp
Source/WebCore/workers/DefaultSharedWorkerRepository.h
Source/WebCore/workers/SharedWorkerRepository.h
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/SharedWorkerRepository.cpp