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

Side by Side Diff: grit/node/base.py

Issue 444053003: Respect output_all_resource_defines when generating resource maps. (Closed) Base URL: http://grit-i18n.googlecode.com/svn/trunk/
Patch Set: refactor 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « grit/format/resource_map_unittest.py ('k') | grit/node/include.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 '''Base types for nodes in a GRIT resource tree. 6 '''Base types for nodes in a GRIT resource tree.
7 ''' 7 '''
8 8
9 import ast 9 import ast
10 import os 10 import os
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 583
584 def SetWhitelistMarkedAsSkip(self, mark_skipped): 584 def SetWhitelistMarkedAsSkip(self, mark_skipped):
585 '''Sets WhitelistMarkedAsSkip. 585 '''Sets WhitelistMarkedAsSkip.
586 ''' 586 '''
587 self._whitelist_marked_as_skip = mark_skipped 587 self._whitelist_marked_as_skip = mark_skipped
588 588
589 def ExpandVariables(self): 589 def ExpandVariables(self):
590 '''Whether we need to expand variables on a given node.''' 590 '''Whether we need to expand variables on a given node.'''
591 return False 591 return False
592 592
593 def IsResourceMapSource(self):
594 '''Whether this node is a resource map source.'''
595 return False
596
597 def GeneratesResourceMapEntry(self, output_all_resource_defines,
598 is_active_descendant):
599 '''Whether this node should output a resource map entry.
600
601 Args:
602 output_all_resource_defines: The value of output_all_resource_defines for
603 the root node.
604 is_active_descendant: Whether the current node is an active descendant
605 from the root node.'''
606 return False
607
593 608
594 class ContentNode(Node): 609 class ContentNode(Node):
595 '''Convenience baseclass for nodes that can have content.''' 610 '''Convenience baseclass for nodes that can have content.'''
596 def _ContentType(self): 611 def _ContentType(self):
597 return self._CONTENT_TYPE_MIXED 612 return self._CONTENT_TYPE_MIXED
598 613
OLDNEW
« 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