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

Side by Side Diff: third_party/chrome/tools/json_schema_compiler/preview.py

Issue 12300042: Update idlsync.py to pull in dependencies required for chrome api generation. (Closed) Base URL: git://github.com/dart-lang/bleeding_edge.git@master
Patch Set: From another checkout Created 7 years, 10 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 """Server for viewing the compiled C++ code from tools/json_schema_compiler. 6 """Server for viewing the compiled C++ code from tools/json_schema_compiler.
7 """ 7 """
8 8
9 import cc_generator 9 import cc_generator
10 import code 10 import code
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 highlighters['pygments'] = pygments_highlighter.PygmentsHighlighter() 352 highlighters['pygments'] = pygments_highlighter.PygmentsHighlighter()
353 except ImportError as e: 353 except ImportError as e:
354 pass 354 pass
355 355
356 server = PreviewHTTPServer(('', int(opts.port)), 356 server = PreviewHTTPServer(('', int(opts.port)),
357 CompilerHandler, 357 CompilerHandler,
358 highlighters) 358 highlighters)
359 server.serve_forever() 359 server.serve_forever()
360 except KeyboardInterrupt: 360 except KeyboardInterrupt:
361 server.socket.close() 361 server.socket.close()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698