| 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 "services/js/modules/gl/module.h" | 5 #include "services/js/modules/gl/module.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | |
| 8 #include "gin/arguments.h" | 7 #include "gin/arguments.h" |
| 9 #include "gin/object_template_builder.h" | 8 #include "gin/object_template_builder.h" |
| 10 #include "gin/per_isolate_data.h" | 9 #include "gin/per_isolate_data.h" |
| 11 #include "gin/wrappable.h" | 10 #include "gin/wrappable.h" |
| 12 #include "mojo/edk/js/handle.h" | 11 #include "mojo/edk/js/handle.h" |
| 13 #include "services/js/modules/gl/context.h" | 12 #include "services/js/modules/gl/context.h" |
| 14 | 13 |
| 15 namespace js { | 14 namespace js { |
| 16 namespace gl { | 15 namespace gl { |
| 17 | 16 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 39 .SetMethod("Context", CreateContext) | 38 .SetMethod("Context", CreateContext) |
| 40 .Build(); | 39 .Build(); |
| 41 data->SetObjectTemplate(&kWrapperInfo, templ); | 40 data->SetObjectTemplate(&kWrapperInfo, templ); |
| 42 } | 41 } |
| 43 | 42 |
| 44 return templ->NewInstance(); | 43 return templ->NewInstance(); |
| 45 } | 44 } |
| 46 | 45 |
| 47 } // namespace gl | 46 } // namespace gl |
| 48 } // namespace js | 47 } // namespace js |
| OLD | NEW |