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 "gin/object_template_builder.h" | 5 #include "gin/object_template_builder.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "gin/interceptor.h" | 9 #include "gin/interceptor.h" |
8 #include "gin/per_isolate_data.h" | 10 #include "gin/per_isolate_data.h" |
9 #include "gin/public/wrapper_info.h" | 11 #include "gin/public/wrapper_info.h" |
10 | 12 |
11 namespace gin { | 13 namespace gin { |
12 | 14 |
13 namespace { | 15 namespace { |
14 | 16 |
15 WrappableBase* WrappableFromV8(v8::Isolate* isolate, | 17 WrappableBase* WrappableFromV8(v8::Isolate* isolate, |
16 v8::Local<v8::Value> val) { | 18 v8::Local<v8::Value> val) { |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 return *this; | 180 return *this; |
179 } | 181 } |
180 | 182 |
181 v8::Local<v8::ObjectTemplate> ObjectTemplateBuilder::Build() { | 183 v8::Local<v8::ObjectTemplate> ObjectTemplateBuilder::Build() { |
182 v8::Local<v8::ObjectTemplate> result = template_; | 184 v8::Local<v8::ObjectTemplate> result = template_; |
183 template_.Clear(); | 185 template_.Clear(); |
184 return result; | 186 return result; |
185 } | 187 } |
186 | 188 |
187 } // namespace gin | 189 } // namespace gin |
OLD | NEW |