| Index: grit/tool/preprocess_interface.py
|
| ===================================================================
|
| --- grit/tool/preprocess_interface.py (revision 0)
|
| +++ grit/tool/preprocess_interface.py (revision 0)
|
| @@ -0,0 +1,29 @@
|
| +#!/usr/bin/python2.4
|
| +# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +''' Base class for preprocessing of RC files.
|
| +'''
|
| +
|
| +import sys
|
| +
|
| +class PreProcessor(object):
|
| + ''' Base class for preprocessing of the RC file data before being
|
| + output through the RC2GRD tool. You should implement this class if
|
| + you have specific constructs in your RC files that GRIT cannot handle.'''
|
| +
|
| +
|
| + def Process(self, rctext, rcpath):
|
| + ''' Processes the data in rctext.
|
| + Args:
|
| + rctext: string containing the contents of the RC file being processed
|
| + rcpath: the path used to access the file.
|
| +
|
| + Return:
|
| + The processed text.
|
| + '''
|
| + raise NotImplementedError()
|
| +
|
| +
|
| +
|
|
|
| Property changes on: grit/tool/preprocess_interface.py
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|