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

Side by Side Diff: trunk/src/chrome/browser/chromeos/input_method/gen_input_methods.py

Issue 12453021: Revert 190596 "Extract input_method_whitelist.{h|cc} from c/b/ch..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 9 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 | « no previous file | trunk/src/chrome/browser/chromeos/input_method/ibus_controller_impl.h » ('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 """Generate a C++ header from ibus_input_methods.txt. 6 """Generate a C++ header from ibus_input_methods.txt.
7 7
8 This program generates a C++ header file containing the information on 8 This program generates a C++ header file containing the information on
9 available input methods. It parses input_methods.txt, and then generates a 9 available input methods. It parses input_methods.txt, and then generates a
10 static array definition from the information extracted. The input and output 10 static array definition from the information extracted. The input and output
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 engine['if'] = columns[3] 114 engine['if'] = columns[3]
115 engines.append(engine) 115 engines.append(engine)
116 116
117 output = CreateEngineHeader(engines) 117 output = CreateEngineHeader(engines)
118 output_file = open(sys.argv[2], 'w') 118 output_file = open(sys.argv[2], 'w')
119 output_file.write(output) 119 output_file.write(output)
120 120
121 121
122 if __name__ == '__main__': 122 if __name__ == '__main__':
123 main(sys.argv) 123 main(sys.argv)
OLDNEW
« no previous file with comments | « no previous file | trunk/src/chrome/browser/chromeos/input_method/ibus_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698