OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "mojo/apps/js/bindings/gl/module.h" | 5 #include "services/js/modules/gl/module.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "gin/arguments.h" | 8 #include "gin/arguments.h" |
9 #include "gin/object_template_builder.h" | 9 #include "gin/object_template_builder.h" |
10 #include "gin/per_isolate_data.h" | 10 #include "gin/per_isolate_data.h" |
11 #include "gin/wrappable.h" | 11 #include "gin/wrappable.h" |
12 #include "mojo/apps/js/bindings/gl/context.h" | |
13 #include "mojo/edk/js/handle.h" | 12 #include "mojo/edk/js/handle.h" |
| 13 #include "services/js/modules/gl/context.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 namespace js { | 16 namespace js { |
17 namespace gl { | 17 namespace gl { |
18 | 18 |
19 const char* kModuleName = "mojo/apps/js/bindings/gl"; | 19 const char* kModuleName = "services/js/modules/gl"; |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 gin::WrapperInfo kWrapperInfo = { gin::kEmbedderNativeGin }; | 23 gin::WrapperInfo kWrapperInfo = { gin::kEmbedderNativeGin }; |
24 | 24 |
25 gin::Handle<Context> CreateContext( | 25 gin::Handle<Context> CreateContext( |
26 const gin::Arguments& args, | 26 const gin::Arguments& args, |
27 mojo::Handle handle, | 27 mojo::Handle handle, |
28 v8::Handle<v8::Function> context_lost_callback) { | 28 v8::Handle<v8::Function> context_lost_callback) { |
29 return Context::Create(args.isolate(), handle, context_lost_callback); | 29 return Context::Create(args.isolate(), handle, context_lost_callback); |
(...skipping 11 matching lines...) Expand all Loading... |
41 .Build(); | 41 .Build(); |
42 data->SetObjectTemplate(&kWrapperInfo, templ); | 42 data->SetObjectTemplate(&kWrapperInfo, templ); |
43 } | 43 } |
44 | 44 |
45 return templ->NewInstance(); | 45 return templ->NewInstance(); |
46 } | 46 } |
47 | 47 |
48 } // namespace gl | 48 } // namespace gl |
49 } // namespace js | 49 } // namespace js |
50 } // namespace mojo | 50 } // namespace mojo |
OLD | NEW |