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

Side by Side Diff: tools/dom/scripts/systemhtml.py

Issue 12274002: Fixing Geolocation on Firefox (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding manual test 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, 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 """This module provides shared functionality for the system to generate 6 """This module provides shared functionality for the system to generate
7 Dart:html APIs from the IDL database.""" 7 Dart:html APIs from the IDL database."""
8 8
9 import emitter 9 import emitter
10 import monitored 10 import monitored
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 'SVGForeignObjectElement', 350 'SVGForeignObjectElement',
351 'SVGSetElement', 351 'SVGSetElement',
352 ] 352 ]
353 353
354 js_support_checks = dict({ 354 js_support_checks = dict({
355 'ArrayBuffer': "JS('bool', 'typeof window.ArrayBuffer != \"undefined\"')", 355 'ArrayBuffer': "JS('bool', 'typeof window.ArrayBuffer != \"undefined\"')",
356 'Database': "JS('bool', '!!(window.openDatabase)')", 356 'Database': "JS('bool', '!!(window.openDatabase)')",
357 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')", 357 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')",
358 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')", 358 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')",
359 'FormData': "JS('bool', '!!(window.FormData)')", 359 'FormData': "JS('bool', '!!(window.FormData)')",
360 'Geolocation': "JS('bool', '!!(window.navigator.geolocation)')",
360 'HashChangeEvent': "Event._isTypeSupported('HashChangeEvent')", 361 'HashChangeEvent': "Event._isTypeSupported('HashChangeEvent')",
361 'HTMLShadowElement': ElemSupportStr('shadow'), 362 'HTMLShadowElement': ElemSupportStr('shadow'),
362 'MediaStreamEvent': "Event._isTypeSupported('MediaStreamEvent')", 363 'MediaStreamEvent': "Event._isTypeSupported('MediaStreamEvent')",
363 'MediaStreamTrackEvent': "Event._isTypeSupported('MediaStreamTrackEvent')", 364 'MediaStreamTrackEvent': "Event._isTypeSupported('MediaStreamTrackEvent')",
364 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')", 365 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')",
365 'Performance': "JS('bool', '!!(window.performance)')", 366 'Performance': "JS('bool', '!!(window.performance)')",
366 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || " 367 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || "
367 "window.webkitSpeechRecognition)')", 368 "window.webkitSpeechRecognition)')",
368 'SVGExternalResourcesRequired': ('supported(SvgElement element)', 369 'SVGExternalResourcesRequired': ('supported(SvgElement element)',
369 "JS('bool', '#.externalResourcesRequired !== undefined && " 370 "JS('bool', '#.externalResourcesRequired !== undefined && "
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 for library_name in libraries: 1111 for library_name in libraries:
1111 self._libraries[library_name] = DartLibrary( 1112 self._libraries[library_name] = DartLibrary(
1112 library_name, template_loader, library_type, output_dir) 1113 library_name, template_loader, library_type, output_dir)
1113 1114
1114 def AddFile(self, basename, library_name, path): 1115 def AddFile(self, basename, library_name, path):
1115 self._libraries[library_name].AddFile(path) 1116 self._libraries[library_name].AddFile(path)
1116 1117
1117 def Emit(self, emitter, auxiliary_dir): 1118 def Emit(self, emitter, auxiliary_dir):
1118 for lib in self._libraries.values(): 1119 for lib in self._libraries.values():
1119 lib.Emit(emitter, auxiliary_dir) 1120 lib.Emit(emitter, auxiliary_dir)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698