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

Unified Diff: grit/node/base.py

Issue 443183003: Respect output_all_resource_defines when generating structures in resource (Closed) Base URL: http://grit-i18n.googlecode.com/svn/trunk/
Patch Set: Created 6 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
« no previous file with comments | « grit/format/resource_map_unittest.py ('k') | grit/node/include.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/node/base.py
===================================================================
--- grit/node/base.py (revision 171)
+++ grit/node/base.py (working copy)
@@ -590,7 +590,22 @@
'''Whether we need to expand variables on a given node.'''
return False
+ def IsResourceMapSource(self):
+ '''Whether this node is a resource map source.'''
+ return False
+ def GeneratesResourceMapEntry(self, output_all_resource_defines,
+ is_active_descendant):
+ '''Whether this node should output a resource map entry.
+
+ Args:
+ output_all_resource_defines: The value of output_all_resource_defines for
+ the root node.
+ is_active_descendant: Whether the current node is an active descendant
+ from the root node.'''
+ return False
+
+
class ContentNode(Node):
'''Convenience baseclass for nodes that can have content.'''
def _ContentType(self):
« no previous file with comments | « grit/format/resource_map_unittest.py ('k') | grit/node/include.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698