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

Unified Diff: grit/gather/interface.py

Issue 10386189: Add chrome_html gatherer, which inlines html and automatically generates image set… (Closed) Base URL: http://git.chromium.org/external/grit-i18n.git@master
Patch Set: Add chrome_html_unittest to test_suite_all. Created 8 years, 7 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/gather/chrome_html_unittest.py ('k') | grit/node/structure.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/gather/interface.py
diff --git a/grit/gather/interface.py b/grit/gather/interface.py
index e2e91d87425199556eb7135f68daa5799737158f..02daa0fa85f8a73284c68f8606ed7c3897b0bdb6 100644
--- a/grit/gather/interface.py
+++ b/grit/gather/interface.py
@@ -33,6 +33,17 @@ class GathererBase(object):
'''
pass
+ def SetDefines(self, defines):
+ '''Sets global defines used by the gatherer.
+
+ By default, this does nothing. If special handling is desired, it should be
+ overridden by the child gatherer.
+
+ Args:
+ defines: The mapping of define values.
+ '''
+ pass
+
def SetUberClique(self, uberclique):
'''Overrides the default uberclique so that cliques created by this object
become part of the uberclique supplied by the user.
@@ -49,6 +60,12 @@ class GathererBase(object):
'''Parses the contents of what is being gathered.'''
raise NotImplementedError()
+ def GetData(self, lang, encoding):
+ '''Returns the data to be added to the DataPack for this node or None if
+ this node does not add a DataPack entry.
+ '''
+ return None
+
def GetText(self):
'''Returns the text of what is being gathered.'''
raise NotImplementedError()
« no previous file with comments | « grit/gather/chrome_html_unittest.py ('k') | grit/node/structure.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698