bug 700693 - OCSP stapling PSM changes r=bsmith
[gecko.git] / dom / workers / ImageData.h
blobfe43e13f613a13a40d35d5b496804b8dcd8f3f60
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__
8 #include "Workers.h"
10 BEGIN_WORKERS_NAMESPACE
12 namespace imagedata {
14 bool
15 InitClass(JSContext* aCx, JSObject* aGlobal);
17 JSObject*
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.
26 bool
27 IsImageData(JSObject* aObj);
29 uint32_t
30 GetWidth(JSObject* aObj);
32 uint32_t
33 GetHeight(JSObject* aObj);
35 JSObject*
36 GetData(JSObject* aObj);
38 } // namespace imagedata
40 END_WORKERS_NAMESPACE
42 #endif // mozilla_dom_workers_imagedata_h__