| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 // clang-format off | 7 // clang-format off |
| 8 | 8 |
| 9 #ifndef VoidCallbackFunctionInterfaceArg_h | 9 #ifndef VoidCallbackFunctionInterfaceArg_h |
| 10 #define VoidCallbackFunctionInterfaceArg_h | 10 #define VoidCallbackFunctionInterfaceArg_h |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Object
>& wrapper) { | 40 void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Object
>& wrapper) { |
| 41 DCHECK(!m_callback.isEmpty()); | 41 DCHECK(!m_callback.isEmpty()); |
| 42 m_callback.setReference(wrapper, isolate); | 42 m_callback.setReference(wrapper, isolate); |
| 43 } | 43 } |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 VoidCallbackFunctionInterfaceArg(ScriptState*, v8::Local<v8::Function>); | 46 VoidCallbackFunctionInterfaceArg(ScriptState*, v8::Local<v8::Function>); |
| 47 | 47 |
| 48 RefPtr<ScriptState> m_scriptState; | 48 RefPtr<ScriptState> m_scriptState; |
| 49 ScopedPersistent<v8::Function> m_callback; | 49 TraceWrapperV8Reference<v8::Function> m_callback; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace blink | 52 } // namespace blink |
| 53 | 53 |
| 54 #endif // VoidCallbackFunctionInterfaceArg_h | 54 #endif // VoidCallbackFunctionInterfaceArg_h |
| OLD | NEW |