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

Unified Diff: Source/core/scripts/templates/InternalRuntimeFlags.h.tmpl

Issue 22546004: Remove .tmpl extension from Jinja templates in core Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/scripts/templates/InternalRuntimeFlags.h.tmpl
diff --git a/Source/core/scripts/templates/InternalRuntimeFlags.h.tmpl b/Source/core/scripts/templates/InternalRuntimeFlags.h.tmpl
deleted file mode 100644
index fe77d0c0b35828a9b7b82ec4fac6378c770b11cf..0000000000000000000000000000000000000000
--- a/Source/core/scripts/templates/InternalRuntimeFlags.h.tmpl
+++ /dev/null
@@ -1,40 +0,0 @@
-{% from "macros.tmpl" import wrap_with_condition, license -%}
-{{ license() }}
-
-#ifndef InternalRuntimeFlags_h
-#define InternalRuntimeFlags_h
-
-#include "RuntimeEnabledFeatures.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefPtr.h"
-#include "wtf/RefCounted.h"
-
-namespace WebCore {
-
-class InternalRuntimeFlags : public RefCounted<InternalRuntimeFlags> {
-public:
- static PassRefPtr<InternalRuntimeFlags> create()
- {
- return adoptRef(new InternalRuntimeFlags);
- }
-
-{#-
- Setting after startup does not work for most runtime flags, but we
- could add an option to print setters for ones which do:
- void set{{feature.name}}Enabled(bool isEnabled) { RuntimeEnabledFeatures::set{{feature.name}}Enabled(isEnabled); }
- If we do that, we also need to respect Internals::resetToConsistentState.
-#}
-{% for feature in features if not feature.custom %}
-{%- call wrap_with_condition(feature.condition) %}
- bool {{feature.first_lowered_name}}Enabled() { return RuntimeEnabledFeatures::{{feature.first_lowered_name}}Enabled(); }
-{%- endcall %}
-{% endfor %}
-
-private:
- InternalRuntimeFlags() { }
-};
-
-} // namespace WebCore
-
-#endif // InternalRuntimeFlags_h
-
« no previous file with comments | « Source/core/scripts/templates/InternalRuntimeFlags.idl ('k') | Source/core/scripts/templates/InternalRuntimeFlags.idl.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698