Bug 1257039: Remove the worker descriptor for FileReaderSync. r=bz

This commit is contained in:
Kyle Huey 2016-03-16 11:51:11 -07:00
Родитель 348998b290
Коммит 9b06834782
4 изменённых файлов: 7 добавлений и 12 удалений

Просмотреть файл

@ -505,7 +505,6 @@ DOMInterfaces = {
}, },
'FileReaderSync': { 'FileReaderSync': {
'workers': True,
'wrapperCache': False, 'wrapperCache': False,
}, },

Просмотреть файл

@ -27,7 +27,6 @@
#include "RuntimeService.h" #include "RuntimeService.h"
USING_WORKERS_NAMESPACE
using namespace mozilla; using namespace mozilla;
using namespace mozilla::dom; using namespace mozilla::dom;
using mozilla::dom::Optional; using mozilla::dom::Optional;
@ -47,7 +46,7 @@ FileReaderSync::WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto, JS::Handle<JSObject*> aGivenProto,
JS::MutableHandle<JSObject*> aReflector) JS::MutableHandle<JSObject*> aReflector)
{ {
return FileReaderSyncBinding_workers::Wrap(aCx, this, aGivenProto, aReflector); return FileReaderSyncBinding::Wrap(aCx, this, aGivenProto, aReflector);
} }
void void

Просмотреть файл

@ -4,8 +4,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef mozilla_dom_workers_filereadersync_h__ #ifndef mozilla_dom_filereadersync_h__
#define mozilla_dom_workers_filereadersync_h__ #define mozilla_dom_filereadersync_h__
#include "Workers.h" #include "Workers.h"
@ -18,10 +18,6 @@ namespace dom {
class Blob; class Blob;
class GlobalObject; class GlobalObject;
template<typename> class Optional; template<typename> class Optional;
} // namespace dom
} // namespace mozilla
BEGIN_WORKERS_NAMESPACE
class FileReaderSync final class FileReaderSync final
{ {
@ -51,6 +47,7 @@ public:
void ReadAsDataURL(Blob& aBlob, nsAString& aResult, ErrorResult& aRv); void ReadAsDataURL(Blob& aBlob, nsAString& aResult, ErrorResult& aRv);
}; };
END_WORKERS_NAMESPACE } // namespace dom
} // namespace mozilla
#endif // mozilla_dom_workers_filereadersync_h__ #endif // mozilla_dom_filereadersync_h__

Просмотреть файл

@ -6,6 +6,7 @@
# Public stuff. # Public stuff.
EXPORTS.mozilla.dom += [ EXPORTS.mozilla.dom += [
'FileReaderSync.h',
'ServiceWorkerCommon.h', 'ServiceWorkerCommon.h',
'ServiceWorkerContainer.h', 'ServiceWorkerContainer.h',
'ServiceWorkerEvents.h', 'ServiceWorkerEvents.h',
@ -29,7 +30,6 @@ EXPORTS.mozilla.dom.workers += [
EXPORTS.mozilla.dom.workers.bindings += [ EXPORTS.mozilla.dom.workers.bindings += [
'DataStore.h', 'DataStore.h',
'DataStoreCursor.h', 'DataStoreCursor.h',
'FileReaderSync.h',
'Navigator.h', 'Navigator.h',
'Performance.h', 'Performance.h',
'ServiceWorker.h', 'ServiceWorker.h',