Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(814)

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/VoidCallbackFunctionModules.h

Issue 2434763002: [wrapper-tracing] Bring remoteplayback up to date (Closed)
Patch Set: Reset bingings results Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 VoidCallbackFunctionModules_h 9 #ifndef VoidCallbackFunctionModules_h
10 #define VoidCallbackFunctionModules_h 10 #define VoidCallbackFunctionModules_h
11 11
12 #include "bindings/core/v8/ScopedPersistent.h" 12 #include "bindings/core/v8/ScopedPersistent.h"
13 #include "bindings/core/v8/ScriptWrappable.h"
13 #include "modules/ModulesExport.h" 14 #include "modules/ModulesExport.h"
14 #include "platform/heap/Handle.h" 15 #include "platform/heap/Handle.h"
15 #include "wtf/text/WTFString.h" 16 #include "wtf/text/WTFString.h"
16 17
17 namespace blink { 18 namespace blink {
18 19
19 class ScriptState; 20 class ScriptState;
20 21
21 class MODULES_EXPORT VoidCallbackFunctionModules final : public GarbageCollected Finalized<VoidCallbackFunctionModules> { 22 class MODULES_EXPORT VoidCallbackFunctionModules final : public GarbageCollected Finalized<VoidCallbackFunctionModules>,
23 public TraceWrapperBase {
22 public: 24 public:
23 static VoidCallbackFunctionModules* create(v8::Isolate* isolate, v8::Local<v 8::Function> callback) 25 static VoidCallbackFunctionModules* create(v8::Isolate* isolate, v8::Local<v 8::Function> callback)
24 { 26 {
25 return new VoidCallbackFunctionModules(isolate, callback); 27 return new VoidCallbackFunctionModules(isolate, callback);
26 } 28 }
27 29
28 ~VoidCallbackFunctionModules() = default; 30 ~VoidCallbackFunctionModules() = default;
29 31
30 DECLARE_TRACE(); 32 DECLARE_TRACE();
33 DECLARE_TRACE_WRAPPERS();
31 34
32 bool call(ScriptState* scriptState, ScriptWrappable* scriptWrappable); 35 bool call(ScriptState* scriptState, ScriptWrappable* scriptWrappable);
33 36
34 v8::Local<v8::Function> v8Value(v8::Isolate* isolate) 37 v8::Local<v8::Function> v8Value(v8::Isolate* isolate)
35 { 38 {
36 return m_callback.newLocal(isolate); 39 return m_callback.newLocal(isolate);
37 } 40 }
38 41
39 void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Obje ct>& wrapper) 42 void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Obje ct>& wrapper)
40 { 43 {
41 DCHECK(!m_callback.isEmpty()); 44 DCHECK(!m_callback.isEmpty());
42 m_callback.setReference(wrapper, isolate); 45 m_callback.setReference(wrapper, isolate);
43 } 46 }
44 47
45 private: 48 private:
46 VoidCallbackFunctionModules(v8::Isolate* isolate, v8::Local<v8::Function>); 49 VoidCallbackFunctionModules(v8::Isolate* isolate, v8::Local<v8::Function>);
47 ScopedPersistent<v8::Function> m_callback; 50 ScopedPersistent<v8::Function> m_callback;
48 }; 51 };
49 52
50 } // namespace blink 53 } // namespace blink
51 54
52 #endif // VoidCallbackFunctionModules_h 55 #endif // VoidCallbackFunctionModules_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698