OLD | NEW |
1 #!/usr/bin/python | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # | |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
4 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 3 # found in the LICENSE file. |
6 | 4 |
7 """Base class for generating wrapper functions for PPAPI methods. | 5 """Base class for generating wrapper functions for PPAPI methods. |
8 """ | 6 """ |
9 | 7 |
10 from datetime import datetime | 8 from datetime import datetime |
11 import os | 9 import os |
12 import sys | 10 import sys |
13 | 11 |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 # Collect all the wrapper functions into interface structs. | 444 # Collect all the wrapper functions into interface structs. |
447 self.GenerateWrapperInterfaces(iface_releases, out) | 445 self.GenerateWrapperInterfaces(iface_releases, out) |
448 | 446 |
449 # Generate a table of the wrapped interface structs that can be looked up. | 447 # Generate a table of the wrapped interface structs that can be looked up. |
450 self.GenerateWrapperInfoAndCollection(iface_releases, out) | 448 self.GenerateWrapperInfoAndCollection(iface_releases, out) |
451 | 449 |
452 # Write out the IDL-invariant functions. | 450 # Write out the IDL-invariant functions. |
453 self.GenerateFixedFunctions(out) | 451 self.GenerateFixedFunctions(out) |
454 out.Close() | 452 out.Close() |
455 return 0 | 453 return 0 |
OLD | NEW |