OLD | NEW |
| (Empty) |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "mojo/apps/js/bindings/gl/opaque.h" | |
6 | |
7 #include "gin/object_template_builder.h" | |
8 | |
9 namespace mojo { | |
10 namespace js { | |
11 namespace gl { | |
12 | |
13 gin::WrapperInfo Opaque::kWrapperInfo = { gin::kEmbedderNativeGin }; | |
14 | |
15 gin::Handle<Opaque> Opaque::Create(v8::Isolate* isolate, GLuint value) { | |
16 return gin::CreateHandle(isolate, new Opaque(value)); | |
17 } | |
18 | |
19 Opaque::Opaque(GLuint value) : value_(value) { | |
20 } | |
21 | |
22 } // namespace gl | |
23 } // namespace js | |
24 } // namespace mojo | |
OLD | NEW |