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

Side by Side Diff: sky/engine/bindings/templates/dictionary_impl.h

Issue 655083003: Remove GarbageCollectedFinalized (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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}}. DO NOT MODIFY! 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY!
6 6
7 #ifndef {{cpp_class}}_h 7 #ifndef {{cpp_class}}_h
8 #define {{cpp_class}}_h 8 #define {{cpp_class}}_h
9 9
10 {% for filename in header_includes %} 10 {% for filename in header_includes %}
11 #include "{{filename}}" 11 #include "{{filename}}"
12 {% endfor %} 12 {% endfor %}
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class {{cpp_class}} final : public GarbageCollectedFinalized<{{cpp_class}}> { 16 class {{cpp_class}} final {
17 public: 17 public:
18 static {{cpp_class}}* create() 18 static {{cpp_class}}* create()
19 { 19 {
20 return new {{cpp_class}}; 20 return new {{cpp_class}};
21 } 21 }
22 22
23 {% for member in members %} 23 {% for member in members %}
24 bool {{member.has_method_name}}() const { return {{member.has_method_express ion}}; } 24 bool {{member.has_method_name}}() const { return {{member.has_method_express ion}}; }
25 {{member.rvalue_cpp_type}} {{member.name}}() const { return {{member.getter_ expression}}; } 25 {{member.rvalue_cpp_type}} {{member.name}}() const { return {{member.getter_ expression}}; }
26 void {{member.setter_name}}({{member.rvalue_cpp_type}} value) { m_{{member.n ame}} = value; } 26 void {{member.setter_name}}({{member.rvalue_cpp_type}} value) { m_{{member.n ame}} = value; }
27 {% endfor %} 27 {% endfor %}
28 28
29 void trace(Visitor*);
30
31 private: 29 private:
32 {{cpp_class}}(); 30 {{cpp_class}}();
33 31
34 {% for member in members %} 32 {% for member in members %}
35 {{member.member_cpp_type}} m_{{member.name}}; 33 {{member.member_cpp_type}} m_{{member.name}};
36 {% endfor %} 34 {% endfor %}
37 35
38 friend class V8{{cpp_class}}; 36 friend class V8{{cpp_class}};
39 }; 37 };
40 38
41 } // namespace blink 39 } // namespace blink
42 40
43 #endif // {{cpp_class}}_h 41 #endif // {{cpp_class}}_h
OLDNEW
« no previous file with comments | « sky/engine/bindings/core/v8/ScriptPromisePropertyBase.h ('k') | sky/engine/bindings/templates/dictionary_impl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698