OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2013 Google Inc. All rights reserved. | 2 # Copyright (c) 2013 Google Inc. All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 template_instrumenting_agents_h = string.Template("""// Code generated from Insp
ectorInstrumentation.idl | 105 template_instrumenting_agents_h = string.Template("""// Code generated from Insp
ectorInstrumentation.idl |
106 | 106 |
107 #ifndef InstrumentingAgentsInl_h | 107 #ifndef InstrumentingAgentsInl_h |
108 #define InstrumentingAgentsInl_h | 108 #define InstrumentingAgentsInl_h |
109 | 109 |
110 #include "core/CoreExport.h" | 110 #include "core/CoreExport.h" |
111 #include "platform/heap/Handle.h" | 111 #include "platform/heap/Handle.h" |
112 #include "wtf/Allocator.h" | 112 #include "wtf/Allocator.h" |
113 #include "wtf/Noncopyable.h" | 113 #include "wtf/Noncopyable.h" |
114 #include "wtf/PassRefPtr.h" | 114 #include "wtf/PassRefPtr.h" |
115 #include "wtf/RefCounted.h" | |
116 | 115 |
117 namespace blink { | 116 namespace blink { |
118 | 117 |
119 ${forward_list} | 118 ${forward_list} |
120 | 119 |
121 class CORE_EXPORT InstrumentingAgents : public GarbageCollectedFinalized<Instrum
entingAgents> { | 120 class CORE_EXPORT InstrumentingAgents : public GarbageCollectedFinalized<Instrum
entingAgents> { |
122 WTF_MAKE_NONCOPYABLE(InstrumentingAgents); | 121 WTF_MAKE_NONCOPYABLE(InstrumentingAgents); |
123 public: | 122 public: |
124 static InstrumentingAgents* create() | 123 static InstrumentingAgents* create() |
125 { | 124 { |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 if not output_dirpath: | 535 if not output_dirpath: |
537 raise Exception("Output directory must be specified") | 536 raise Exception("Output directory must be specified") |
538 except Exception: | 537 except Exception: |
539 # Work with python 2 and 3 http://docs.python.org/py3k/howto/pyporting.html | 538 # Work with python 2 and 3 http://docs.python.org/py3k/howto/pyporting.html |
540 exc = sys.exc_info()[1] | 539 exc = sys.exc_info()[1] |
541 sys.stderr.write("Failed to parse command-line arguments: %s\n\n" % exc) | 540 sys.stderr.write("Failed to parse command-line arguments: %s\n\n" % exc) |
542 sys.stderr.write("Usage: <script> --output_dir <output_dir> InspectorInstrum
entation.idl\n") | 541 sys.stderr.write("Usage: <script> --output_dir <output_dir> InspectorInstrum
entation.idl\n") |
543 exit(1) | 542 exit(1) |
544 | 543 |
545 generate(input_path, output_dirpath) | 544 generate(input_path, output_dirpath) |
OLD | NEW |