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

Side by Side Diff: ppapi/generators/apps_example.py

Issue 9359040: WIP IDL-IPC2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Checkpoint before going back to returning ListValue via ExtensionMsg_Response. Created 8 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 | « ppapi/generators/apiidlc.py ('k') | ppapi/generators/idl_lexer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
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
4 # found in the LICENSE file.
5
6 import sys
7
8 from idl_option import ParseOptions
9 from idl_parser import IDLParser
10
11 def Main():
12 filenames = ParseOptions(sys.argv[1:])
13 for filename in filenames:
14 f = open(filename, "r")
15 content = f.read()
16 f.close()
17 parser = IDLParser()
18 result = parser.ParseData(content, filename)
19 if not result:
20 print "No results - bailing out."
21 return
22 index = 1
23 for node in result:
24 print "-------------------- Node %d --------------------" % index
25 index += 1
26 print "Node class: '%s'\n" % node.cls
27 if not hasattr(node, 'Dump'):
28 print " No Dump function - skipping"
29 continue
30 node.Dump()
31
32
33 if __name__ == '__main__':
34 sys.exit(Main())
OLDNEW
« no previous file with comments | « ppapi/generators/apiidlc.py ('k') | ppapi/generators/idl_lexer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698