OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 import database | 6 import database |
7 import databasebuilder | 7 import databasebuilder |
8 import idlparser | 8 import idlparser |
9 import os.path | 9 import os.path |
10 import logging.config | 10 import logging.config |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 # TODO(vsm): Move this to a README. | 47 # TODO(vsm): Move this to a README. |
48 # This is the Dart SVN revision. | 48 # This is the Dart SVN revision. |
49 webkit_revision = '1060' | 49 webkit_revision = '1060' |
50 | 50 |
51 # TODO(vsm): Reconcile what is exposed here and inside WebKit code | 51 # TODO(vsm): Reconcile what is exposed here and inside WebKit code |
52 # generation. | 52 # generation. |
53 webkit_defines = [ | 53 webkit_defines = [ |
54 'LANGUAGE_DART', | 54 'LANGUAGE_DART', |
55 'LANGUAGE_JAVASCRIPT', | 55 'LANGUAGE_JAVASCRIPT', |
56 'ENABLE_DOM_STORAGE', | 56 'ENABLE_DOM_STORAGE', |
| 57 'ENABLE_FILE_SYSTEM', |
| 58 'ENABLE_FULLSCREEN_API', |
57 'ENABLE_NOTIFICATIONS', | 59 'ENABLE_NOTIFICATIONS', |
58 'ENABLE_OFFLINE_WEB_APPLICATIONS', | 60 'ENABLE_OFFLINE_WEB_APPLICATIONS', |
59 'ENABLE_REQUEST_ANIMATION_FRAME', | 61 'ENABLE_REQUEST_ANIMATION_FRAME', |
60 'ENABLE_WEB_TIMING', | 62 'ENABLE_WEB_TIMING', |
61 ] | 63 ] |
62 webkit_options = databasebuilder.DatabaseBuilderOptions( | 64 webkit_options = databasebuilder.DatabaseBuilderOptions( |
63 idl_syntax=idlparser.WEBKIT_SYNTAX, | 65 idl_syntax=idlparser.WEBKIT_SYNTAX, |
64 # TODO(vsm): What else should we define as on when processing IDL? | 66 # TODO(vsm): What else should we define as on when processing IDL? |
65 idl_defines=webkit_defines, | 67 idl_defines=webkit_defines, |
66 source='WebKit', | 68 source='WebKit', |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 118 |
117 builder.fix_displacements('WebKit') | 119 builder.fix_displacements('WebKit') |
118 | 120 |
119 # Cleanup: | 121 # Cleanup: |
120 builder.normalize_annotations(['WebKit', 'Dart']) | 122 builder.normalize_annotations(['WebKit', 'Dart']) |
121 | 123 |
122 db.Save() | 124 db.Save() |
123 | 125 |
124 if __name__ == '__main__': | 126 if __name__ == '__main__': |
125 sys.exit(main()) | 127 sys.exit(main()) |
OLD | NEW |