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

Side by Side Diff: mojo/public/bindings/js/core.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/wrapper_info.cc ('k') | no next file » | 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 "mojo/public/bindings/js/core.h" 5 #include "mojo/public/bindings/js/core.h"
6 6
7 #include "gin/arguments.h" 7 #include "gin/arguments.h"
8 #include "gin/array_buffer.h" 8 #include "gin/array_buffer.h"
9 #include "gin/converter.h" 9 #include "gin/converter.h"
10 #include "gin/dictionary.h" 10 #include "gin/dictionary.h"
11 #include "gin/per_isolate_data.h" 11 #include "gin/per_isolate_data.h"
12 #include "gin/wrapper_info.h" 12 #include "gin/public/wrapper_info.h"
13 #include "mojo/public/bindings/js/handle.h" 13 #include "mojo/public/bindings/js/handle.h"
14 14
15 namespace mojo { 15 namespace mojo {
16 namespace js { 16 namespace js {
17 17
18 namespace { 18 namespace {
19 19
20 void Close(const v8::FunctionCallbackInfo<v8::Value>& info) { 20 void Close(const v8::FunctionCallbackInfo<v8::Value>& info) {
21 gin::Arguments args(info); 21 gin::Arguments args(info);
22 22
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 gin::ConvertToV8(isolate, MOJO_READ_MESSAGE_FLAG_MAY_DISCARD)); 213 gin::ConvertToV8(isolate, MOJO_READ_MESSAGE_FLAG_MAY_DISCARD));
214 214
215 data->SetObjectTemplate(&g_core_wrapper_info, templ); 215 data->SetObjectTemplate(&g_core_wrapper_info, templ);
216 } 216 }
217 217
218 return templ; 218 return templ;
219 } 219 }
220 220
221 } // namespace js 221 } // namespace js
222 } // namespace mojo 222 } // namespace mojo
OLDNEW
« no previous file with comments | « gin/wrapper_info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698