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

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

Issue 236673002: Simplify whitespace handling in build/ Jinja templates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more FIXME Created 6 years, 8 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 "heap/Handle.h" 7 #include "heap/Handle.h"
8 #include "platform/RefCountedSupplement.h" 8 #include "platform/RefCountedSupplement.h"
9 #include "wtf/PassRefPtr.h" 9 #include "wtf/PassRefPtr.h"
10 #include "wtf/RefCounted.h" 10 #include "wtf/RefCounted.h"
11 #include "wtf/text/WTFString.h" 11 #include "wtf/text/WTFString.h"
12 12
13 namespace WebCore { 13 namespace WebCore {
14 14
15 class Page; 15 class Page;
16 16
17 class InternalSettingsGenerated : public RefCountedWillBeGarbageCollectedFinaliz ed<InternalSettingsGenerated> { 17 class InternalSettingsGenerated : public RefCountedWillBeGarbageCollectedFinaliz ed<InternalSettingsGenerated> {
18 public: 18 public:
19 explicit InternalSettingsGenerated(Page*); 19 explicit InternalSettingsGenerated(Page*);
20 virtual ~InternalSettingsGenerated(); 20 virtual ~InternalSettingsGenerated();
21 void resetToConsistentState(); 21 void resetToConsistentState();
22 {%- for setting in settings if setting.type|to_idl_type %} 22 {% for setting in settings if setting.type|to_idl_type %}
23 void set{{setting.name|upper_first}}({{setting.type|to_passing_type}} {{sett ing.name}}); 23 void set{{setting.name|upper_first}}({{setting.type|to_passing_type}} {{sett ing.name}});
24 {%- endfor %} 24 {% endfor %}
25 25
26 virtual void trace(Visitor*) { } 26 virtual void trace(Visitor*) { }
27 27
28 private: 28 private:
29 Page* m_page; 29 Page* m_page;
30 30 {# FIXME: add blank line #}
31 {%- for setting in settings if setting.type|to_idl_type %} 31 {% for setting in settings if setting.type|to_idl_type %}
32 {{setting.type}} m_{{setting.name}}; 32 {{setting.type}} m_{{setting.name}};
33 {%- endfor %} 33 {% endfor %}
34 }; 34 };
35 35
36 } // namespace WebCore 36 } // namespace WebCore
37 37
38 #endif // InternalSettingsGenerated_h 38 #endif // InternalSettingsGenerated_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698