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

Side by Side Diff: Source/build/scripts/templates/InternalSettingsGenerated.h.tmpl

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
1 {% from "macros.tmpl" import license %} 1 {% from "macros.tmpl" import license %}
2 {{ license() }} 2 {{ license() }}
3 3
4 #ifndef InternalSettingsGenerated_h 4 #ifndef InternalSettingsGenerated_h
5 #define InternalSettingsGenerated_h 5 #define InternalSettingsGenerated_h
6 6
7 #include "bindings/core/v8/ScriptWrappable.h" 7 #include "bindings/core/v8/ScriptWrappable.h"
8 #include "platform/RefCountedSupplement.h" 8 #include "platform/RefCountedSupplement.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "wtf/PassRefPtr.h" 10 #include "wtf/PassRefPtr.h"
11 #include "wtf/RefCounted.h" 11 #include "wtf/RefCounted.h"
12 #include "wtf/text/WTFString.h" 12 #include "wtf/text/WTFString.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class Page; 16 class Page;
17 17
18 class InternalSettingsGenerated : public RefCountedWillBeGarbageCollectedFinaliz ed<InternalSettingsGenerated>, public ScriptWrappable { 18 class InternalSettingsGenerated : public RefCountedWillBeGarbageCollectedFinaliz ed<InternalSettingsGenerated>, public ScriptWrappable {
19 DEFINE_WRAPPERTYPEINFO();
19 public: 20 public:
20 explicit InternalSettingsGenerated(Page*); 21 explicit InternalSettingsGenerated(Page*);
21 virtual ~InternalSettingsGenerated(); 22 virtual ~InternalSettingsGenerated();
22 void resetToConsistentState(); 23 void resetToConsistentState();
23 {% for setting in settings if setting.type|to_idl_type %} 24 {% for setting in settings if setting.type|to_idl_type %}
24 void set{{setting.name|upper_first}}({{setting.type|to_passing_type}} {{sett ing.name}}); 25 void set{{setting.name|upper_first}}({{setting.type|to_passing_type}} {{sett ing.name}});
25 {% endfor %} 26 {% endfor %}
26 27
27 virtual void trace(Visitor*) { } 28 virtual void trace(Visitor*) { }
28 29
29 private: 30 private:
30 Page* m_page; 31 Page* m_page;
31 32
32 {% for setting in settings if setting.type|to_idl_type %} 33 {% for setting in settings if setting.type|to_idl_type %}
33 {{setting.type}} m_{{setting.name}}; 34 {{setting.type}} m_{{setting.name}};
34 {% endfor %} 35 {% endfor %}
35 }; 36 };
36 37
37 } // namespace blink 38 } // namespace blink
38 39
39 #endif // InternalSettingsGenerated_h 40 #endif // InternalSettingsGenerated_h
OLDNEW
« no previous file with comments | « Source/build/scripts/templates/InternalRuntimeFlags.h.tmpl ('k') | Source/core/animation/Animation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698