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

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

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

Powered by Google App Engine
This is Rietveld 408576698