OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2532 }; | 2532 }; |
2533 | 2533 |
2534 /** | 2534 /** |
2535 * Ignore | 2535 * Ignore |
2536 */ | 2536 */ |
2537 class V8EXPORT Extension { // NOLINT | 2537 class V8EXPORT Extension { // NOLINT |
2538 public: | 2538 public: |
2539 // Note that the strings passed into this constructor must live as long | 2539 // Note that the strings passed into this constructor must live as long |
2540 // as the Extension itself. | 2540 // as the Extension itself. |
2541 Extension(const char* name, | 2541 Extension(const char* name, |
2542 const char* source, | 2542 const char* source = 0, |
2543 int dep_count = 0, | 2543 int dep_count = 0, |
2544 const char** deps = 0, | 2544 const char** deps = 0, |
2545 int source_length = -1); | 2545 int source_length = -1); |
2546 virtual ~Extension() { } | 2546 virtual ~Extension() { } |
2547 virtual v8::Handle<v8::FunctionTemplate> | 2547 virtual v8::Handle<v8::FunctionTemplate> |
2548 GetNativeFunction(v8::Handle<v8::String> name) { | 2548 GetNativeFunction(v8::Handle<v8::String> name) { |
2549 return v8::Handle<v8::FunctionTemplate>(); | 2549 return v8::Handle<v8::FunctionTemplate>(); |
2550 } | 2550 } |
2551 | 2551 |
2552 const char* name() const { return name_; } | 2552 const char* name() const { return name_; } |
(...skipping 2057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4610 | 4610 |
4611 | 4611 |
4612 } // namespace v8 | 4612 } // namespace v8 |
4613 | 4613 |
4614 | 4614 |
4615 #undef V8EXPORT | 4615 #undef V8EXPORT |
4616 #undef TYPE_CHECK | 4616 #undef TYPE_CHECK |
4617 | 4617 |
4618 | 4618 |
4619 #endif // V8_H_ | 4619 #endif // V8_H_ |
OLD | NEW |