OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // This file is for functions that are used only by generated code. | 5 // This file is for functions that are used only by generated code. |
6 // CAUTION: | 6 // CAUTION: |
7 // All functions defined in this file should be used by generated code only. | 7 // All functions defined in this file should be used by generated code only. |
8 // If you want to use them from hand-written code, please find appropriate | 8 // If you want to use them from hand-written code, please find appropriate |
9 // location and move them to that location. | 9 // location and move them to that location. |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 const v8::FunctionCallbackInfo<v8::Value>& info_; | 58 const v8::FunctionCallbackInfo<v8::Value>& info_; |
59 ExceptionState& exception_state_; | 59 ExceptionState& exception_state_; |
60 }; | 60 }; |
61 | 61 |
62 using InstallTemplateFunction = | 62 using InstallTemplateFunction = |
63 void (*)(v8::Isolate* isolate, | 63 void (*)(v8::Isolate* isolate, |
64 const DOMWrapperWorld& world, | 64 const DOMWrapperWorld& world, |
65 v8::Local<v8::FunctionTemplate> interface_template); | 65 v8::Local<v8::FunctionTemplate> interface_template); |
66 | 66 |
67 using InstallRuntimeEnabledFunction = | 67 using InstallRuntimeEnabledFunction = |
68 void (*)(v8::Isolate* isolate, | 68 void (*)(v8::Isolate*, |
69 const DOMWrapperWorld& world, | 69 const DOMWrapperWorld&, |
70 v8::Local<v8::Object> instance, | 70 v8::Local<v8::Object> instance, |
71 v8::Local<v8::Object> prototype, | 71 v8::Local<v8::Object> prototype, |
72 v8::Local<v8::Function> interface); | 72 v8::Local<v8::Function> interface); |
73 | 73 |
| 74 using InstallRuntimeEnabledOnTemplateFunction = InstallTemplateFunction; |
| 75 |
74 } // namespace blink | 76 } // namespace blink |
75 | 77 |
76 #endif // GeneratedCodeHelper_h | 78 #endif // GeneratedCodeHelper_h |
OLD | NEW |