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

Side by Side Diff: gin/modules/console.cc

Issue 69293015: Add a gin/public directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « gin/gin.gyp ('k') | gin/modules/module_registry.cc » ('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 "gin/modules/console.h" 5 #include "gin/modules/console.h"
6 6
7 #include <iostream> 7 #include <iostream>
8 8
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "gin/arguments.h" 10 #include "gin/arguments.h"
11 #include "gin/converter.h" 11 #include "gin/converter.h"
12 #include "gin/per_isolate_data.h" 12 #include "gin/per_isolate_data.h"
13 #include "gin/wrapper_info.h" 13 #include "gin/public/wrapper_info.h"
14 14
15 using v8::ObjectTemplate; 15 using v8::ObjectTemplate;
16 16
17 namespace gin { 17 namespace gin {
18 18
19 namespace { 19 namespace {
20 20
21 void Log(const v8::FunctionCallbackInfo<v8::Value>& info) { 21 void Log(const v8::FunctionCallbackInfo<v8::Value>& info) {
22 Arguments args(info); 22 Arguments args(info);
23 23
(...skipping 16 matching lines...) Expand all
40 if (templ.IsEmpty()) { 40 if (templ.IsEmpty()) {
41 templ = ObjectTemplate::New(); 41 templ = ObjectTemplate::New();
42 templ->Set(StringToSymbol(isolate, "log"), 42 templ->Set(StringToSymbol(isolate, "log"),
43 v8::FunctionTemplate::New(Log)); 43 v8::FunctionTemplate::New(Log));
44 data->SetObjectTemplate(&g_wrapper_info, templ); 44 data->SetObjectTemplate(&g_wrapper_info, templ);
45 } 45 }
46 return templ; 46 return templ;
47 } 47 }
48 48
49 } // namespace gin 49 } // namespace gin
OLDNEW
« no previous file with comments | « gin/gin.gyp ('k') | gin/modules/module_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698