1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef WEBGLACTIVEINFO_H_
7 #define WEBGLACTIVEINFO_H_
9 #include "WebGLObjectModel.h"
11 #include "js/TypeDecls.h"
15 class WebGLActiveInfo MOZ_FINAL
18 WebGLActiveInfo(GLint size
, GLenum type
, const nsACString
& name
) :
21 mName(NS_ConvertASCIItoUTF16(name
))
34 void GetName(nsString
& retval
) const {
38 JSObject
* WrapObject(JSContext
*cx
, JS::Handle
<JSObject
*> scope
);
40 NS_INLINE_DECL_REFCOUNTING(WebGLActiveInfo
)
48 } // namespace mozilla