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

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

Issue 2675943003: Remove custom left overs from object grouping (Closed)
Patch Set: Rebase (0 changes) Created 3 years, 10 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. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/callback_function.h.tmpl 9 // third_party/WebKit/Source/bindings/templates/callback_function.h.tmpl
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 DECLARE_TRACE(); 32 DECLARE_TRACE();
33 DECLARE_TRACE_WRAPPERS(); 33 DECLARE_TRACE_WRAPPERS();
34 34
35 bool call(ScriptWrappable* scriptWrappable); 35 bool call(ScriptWrappable* scriptWrappable);
36 36
37 v8::Local<v8::Function> v8Value(v8::Isolate* isolate) { 37 v8::Local<v8::Function> v8Value(v8::Isolate* isolate) {
38 return m_callback.newLocal(isolate); 38 return m_callback.newLocal(isolate);
39 } 39 }
40 40
41 void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Object >& wrapper) {
42 DCHECK(!m_callback.isEmpty());
43 m_callback.setReference(wrapper, isolate);
44 }
45
46 private: 41 private:
47 VoidCallbackFunctionModules(ScriptState*, v8::Local<v8::Function>); 42 VoidCallbackFunctionModules(ScriptState*, v8::Local<v8::Function>);
48 43
49 RefPtr<ScriptState> m_scriptState; 44 RefPtr<ScriptState> m_scriptState;
50 TraceWrapperV8Reference<v8::Function> m_callback; 45 TraceWrapperV8Reference<v8::Function> m_callback;
51 }; 46 };
52 47
53 } // namespace blink 48 } // namespace blink
54 49
55 #endif // VoidCallbackFunctionModules_h 50 #endif // VoidCallbackFunctionModules_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698