| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |