1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef mozilla_dom_workers_imagedata_h__
6 #define mozilla_dom_workers_imagedata_h__
10 BEGIN_WORKERS_NAMESPACE
15 InitClass(JSContext
* aCx
, JSObject
* aGlobal
);
18 Create(JSContext
* aCx
, uint32_t aWidth
,
19 uint32_t aHeight
, JS::Handle
<JSObject
*> aData
);
22 * All data members live in private slots on the JS Object. Callers must
23 * first check IsImageData, after which they may call the data accessors.
27 IsImageData(JSObject
* aObj
);
30 GetWidth(JSObject
* aObj
);
33 GetHeight(JSObject
* aObj
);
36 GetData(JSObject
* aObj
);
38 } // namespace imagedata
42 #endif // mozilla_dom_workers_imagedata_h__