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

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

Issue 2411583002: bindings: Stop passing ExceptionState to callback function (Closed)
Patch Set: 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/ExceptionState.h"
13 #include "bindings/core/v8/ScopedPersistent.h" 12 #include "bindings/core/v8/ScopedPersistent.h"
14 #include "modules/ModulesExport.h" 13 #include "modules/ModulesExport.h"
15 #include "platform/heap/Handle.h" 14 #include "platform/heap/Handle.h"
16 #include "wtf/text/WTFString.h" 15 #include "wtf/text/WTFString.h"
17 16
18 namespace blink { 17 namespace blink {
19 18
20 class ScriptState; 19 class ScriptState;
21 20
22 class MODULES_EXPORT VoidCallbackFunctionModules final : public GarbageCollected Finalized<VoidCallbackFunctionModules> { 21 class MODULES_EXPORT VoidCallbackFunctionModules final : public GarbageCollected Finalized<VoidCallbackFunctionModules> {
23 public: 22 public:
24 static VoidCallbackFunctionModules* create(v8::Isolate* isolate, v8::Local<v 8::Function> callback) 23 static VoidCallbackFunctionModules* create(v8::Isolate* isolate, v8::Local<v 8::Function> callback)
25 { 24 {
26 return new VoidCallbackFunctionModules(isolate, callback); 25 return new VoidCallbackFunctionModules(isolate, callback);
27 } 26 }
28 27
29 ~VoidCallbackFunctionModules() = default; 28 ~VoidCallbackFunctionModules() = default;
30 29
31 DECLARE_TRACE(); 30 DECLARE_TRACE();
32 31
33 bool call(ScriptState* scriptState, ScriptWrappable* scriptWrappable, Except ionState& exceptionState); 32 bool call(ScriptState* scriptState, ScriptWrappable* scriptWrappable);
34 33
35 v8::Local<v8::Function> v8Value(v8::Isolate* isolate) 34 v8::Local<v8::Function> v8Value(v8::Isolate* isolate)
36 { 35 {
37 return m_callback.newLocal(isolate); 36 return m_callback.newLocal(isolate);
38 } 37 }
39 38
40 void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Obje ct>& wrapper) 39 void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Obje ct>& wrapper)
41 { 40 {
42 DCHECK(!m_callback.isEmpty()); 41 DCHECK(!m_callback.isEmpty());
43 m_callback.setReference(wrapper, isolate); 42 m_callback.setReference(wrapper, isolate);
44 } 43 }
45 44
46 private: 45 private:
47 VoidCallbackFunctionModules(v8::Isolate* isolate, v8::Local<v8::Function>); 46 VoidCallbackFunctionModules(v8::Isolate* isolate, v8::Local<v8::Function>);
48 ScopedPersistent<v8::Function> m_callback; 47 ScopedPersistent<v8::Function> m_callback;
49 }; 48 };
50 49
51 } // namespace blink 50 } // namespace blink
52 51
53 #endif // VoidCallbackFunctionModules_h 52 #endif // VoidCallbackFunctionModules_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698