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 #ifndef GIN_ARGUMENTS_H_ | 5 #ifndef GIN_ARGUMENTS_H_ |
6 #define GIN_ARGUMENTS_H_ | 6 #define GIN_ARGUMENTS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "gin/converter.h" | 8 #include "gin/converter.h" |
10 #include "gin/gin_export.h" | 9 #include "gin/gin_export.h" |
11 | 10 |
12 namespace gin { | 11 namespace gin { |
13 | 12 |
14 // Arguments is a wrapper around v8::FunctionCallbackInfo that integrates | 13 // Arguments is a wrapper around v8::FunctionCallbackInfo that integrates |
15 // with Converter to make it easier to marshall arguments and return values | 14 // with Converter to make it easier to marshall arguments and return values |
16 // between V8 and C++. | 15 // between V8 and C++. |
17 class GIN_EXPORT Arguments { | 16 class GIN_EXPORT Arguments { |
18 public: | 17 public: |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 private: | 90 private: |
92 v8::Isolate* isolate_; | 91 v8::Isolate* isolate_; |
93 const v8::FunctionCallbackInfo<v8::Value>* info_; | 92 const v8::FunctionCallbackInfo<v8::Value>* info_; |
94 int next_; | 93 int next_; |
95 bool insufficient_arguments_; | 94 bool insufficient_arguments_; |
96 }; | 95 }; |
97 | 96 |
98 } // namespace gin | 97 } // namespace gin |
99 | 98 |
100 #endif // GIN_ARGUMENTS_H_ | 99 #endif // GIN_ARGUMENTS_H_ |
OLD | NEW |