Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: services/js/modules/gl/module.cc

Issue 1374023002: Move JS support code from //mojo/edk/js to //services/js/system (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/js/modules/gl/context.h ('k') | services/js/system/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "gin/arguments.h" 7 #include "gin/arguments.h"
8 #include "gin/object_template_builder.h" 8 #include "gin/object_template_builder.h"
9 #include "gin/per_isolate_data.h" 9 #include "gin/per_isolate_data.h"
10 #include "gin/wrappable.h" 10 #include "gin/wrappable.h"
11 #include "mojo/edk/js/handle.h"
12 #include "services/js/modules/gl/context.h" 11 #include "services/js/modules/gl/context.h"
12 #include "services/js/system/handle.h"
13 13
14 namespace js { 14 namespace js {
15 namespace gl { 15 namespace gl {
16 16
17 namespace { 17 namespace {
18 18
19 gin::WrapperInfo kWrapperInfo = { gin::kEmbedderNativeGin }; 19 gin::WrapperInfo kWrapperInfo = { gin::kEmbedderNativeGin };
20 20
21 gin::Handle<Context> CreateContext( 21 gin::Handle<Context> CreateContext(
22 const gin::Arguments& args, 22 const gin::Arguments& args,
(...skipping 15 matching lines...) Expand all
38 .SetMethod("Context", CreateContext) 38 .SetMethod("Context", CreateContext)
39 .Build(); 39 .Build();
40 data->SetObjectTemplate(&kWrapperInfo, templ); 40 data->SetObjectTemplate(&kWrapperInfo, templ);
41 } 41 }
42 42
43 return templ->NewInstance(); 43 return templ->NewInstance();
44 } 44 }
45 45
46 } // namespace gl 46 } // namespace gl
47 } // namespace js 47 } // namespace js
OLDNEW
« no previous file with comments | « services/js/modules/gl/context.h ('k') | services/js/system/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698