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

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

Issue 10035039: Update fremontcut with current chrome feature defines (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add battery APIs Created 8 years, 8 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 from systemfrog import * 9 from systemfrog import *
10 from systeminterface import * 10 from systeminterface import *
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 'beforecopy': 'beforeCopy', 304 'beforecopy': 'beforeCopy',
305 'beforecut': 'beforeCut', 305 'beforecut': 'beforeCut',
306 'beforepaste': 'beforePaste', 306 'beforepaste': 'beforePaste',
307 'beforeunload': 'beforeUnload', 307 'beforeunload': 'beforeUnload',
308 'blocked': 'blocked', 308 'blocked': 'blocked',
309 'blur': 'blur', 309 'blur': 'blur',
310 'cached': 'cached', 310 'cached': 'cached',
311 'canplay': 'canPlay', 311 'canplay': 'canPlay',
312 'canplaythrough': 'canPlayThrough', 312 'canplaythrough': 'canPlayThrough',
313 'change': 'change', 313 'change': 'change',
314 'chargingchange': 'chargingChange',
315 'chargingtimechange': 'chargingTimeChange',
314 'checking': 'checking', 316 'checking': 'checking',
315 'click': 'click', 317 'click': 'click',
316 'close': 'close', 318 'close': 'close',
317 'complete': 'complete', 319 'complete': 'complete',
318 'connect': 'connect', 320 'connect': 'connect',
319 'connecting': 'connecting', 321 'connecting': 'connecting',
320 'contextmenu': 'contextMenu', 322 'contextmenu': 'contextMenu',
321 'copy': 'copy', 323 'copy': 'copy',
322 'cuechange': 'cueChange', 324 'cuechange': 'cueChange',
323 'cut': 'cut', 325 'cut': 'cut',
324 'dblclick': 'doubleClick', 326 'dblclick': 'doubleClick',
325 'devicemotion': 'deviceMotion', 327 'devicemotion': 'deviceMotion',
326 'deviceorientation': 'deviceOrientation', 328 'deviceorientation': 'deviceOrientation',
329 'dischargingtimechange': 'dischargingTimeChange',
327 'display': 'display', 330 'display': 'display',
328 'downloading': 'downloading', 331 'downloading': 'downloading',
329 'drag': 'drag', 332 'drag': 'drag',
330 'dragend': 'dragEnd', 333 'dragend': 'dragEnd',
331 'dragenter': 'dragEnter', 334 'dragenter': 'dragEnter',
332 'dragleave': 'dragLeave', 335 'dragleave': 'dragLeave',
333 'dragover': 'dragOver', 336 'dragover': 'dragOver',
334 'dragstart': 'dragStart', 337 'dragstart': 'dragStart',
335 'drop': 'drop', 338 'drop': 'drop',
336 'durationchange': 'durationChange', 339 'durationchange': 'durationChange',
337 'emptied': 'emptied', 340 'emptied': 'emptied',
338 'end': 'end', 341 'end': 'end',
339 'ended': 'ended', 342 'ended': 'ended',
340 'enter': 'enter', 343 'enter': 'enter',
341 'error': 'error', 344 'error': 'error',
342 'exit': 'exit', 345 'exit': 'exit',
343 'focus': 'focus', 346 'focus': 'focus',
344 'hashchange': 'hashChange', 347 'hashchange': 'hashChange',
345 'input': 'input', 348 'input': 'input',
346 'invalid': 'invalid', 349 'invalid': 'invalid',
347 'keydown': 'keyDown', 350 'keydown': 'keyDown',
348 'keypress': 'keyPress', 351 'keypress': 'keyPress',
349 'keyup': 'keyUp', 352 'keyup': 'keyUp',
353 'levelchange': 'levelChange',
350 'load': 'load', 354 'load': 'load',
351 'loadeddata': 'loadedData', 355 'loadeddata': 'loadedData',
352 'loadedmetadata': 'loadedMetadata', 356 'loadedmetadata': 'loadedMetadata',
353 'loadend': 'loadEnd', 357 'loadend': 'loadEnd',
354 'loadstart': 'loadStart', 358 'loadstart': 'loadStart',
355 'message': 'message', 359 'message': 'message',
356 'mousedown': 'mouseDown', 360 'mousedown': 'mouseDown',
357 'mousemove': 'mouseMove', 361 'mousemove': 'mouseMove',
358 'mouseout': 'mouseOut', 362 'mouseout': 'mouseOut',
359 'mouseover': 'mouseOver', 363 'mouseover': 'mouseOver',
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 'unload': 'unload', 413 'unload': 'unload',
410 'updateready': 'updateReady', 414 'updateready': 'updateReady',
411 'versionchange': 'versionChange', 415 'versionchange': 'versionChange',
412 'volumechange': 'volumeChange', 416 'volumechange': 'volumeChange',
413 'waiting': 'waiting', 417 'waiting': 'waiting',
414 'webkitAnimationEnd': 'animationEnd', 418 'webkitAnimationEnd': 'animationEnd',
415 'webkitAnimationIteration': 'animationIteration', 419 'webkitAnimationIteration': 'animationIteration',
416 'webkitAnimationStart': 'animationStart', 420 'webkitAnimationStart': 'animationStart',
417 'webkitfullscreenchange': 'fullscreenChange', 421 'webkitfullscreenchange': 'fullscreenChange',
418 'webkitfullscreenerror': 'fullscreenError', 422 'webkitfullscreenerror': 'fullscreenError',
423 'webkitkeyadded': 'keyAdded',
424 'webkitkeyerror': 'keyError',
425 'webkitkeymessage': 'keyMessage',
426 'webkitneedkey': 'needKey',
419 'webkitSpeechChange': 'speechChange', 427 'webkitSpeechChange': 'speechChange',
420 'webkitTransitionEnd': 'transitionEnd', 428 'webkitTransitionEnd': 'transitionEnd',
421 'write': 'write', 429 'write': 'write',
422 'writeend': 'writeEnd', 430 'writeend': 'writeEnd',
423 'writestart': 'writeStart' 431 'writestart': 'writeStart'
424 } 432 }
425 433
426 # These classes require an explicit declaration for the "on" method even though 434 # These classes require an explicit declaration for the "on" method even though
427 # they don't declare any unique events, because the concrete class hierarchy 435 # they don't declare any unique events, because the concrete class hierarchy
428 # doesn't match the interface hierarchy. 436 # doesn't match the interface hierarchy.
(...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1683 # dispatch has removed f(X), leaving only f(Y), but there is no guarantee 1691 # dispatch has removed f(X), leaving only f(Y), but there is no guarantee
1684 # that Y = Z-X, so we need to check for Y. 1692 # that Y = Z-X, so we need to check for Y.
1685 true_code = emitter.Emit( 1693 true_code = emitter.Emit(
1686 '$(INDENT)if ($COND) {\n' 1694 '$(INDENT)if ($COND) {\n'
1687 '$!TRUE' 1695 '$!TRUE'
1688 '$(INDENT)}\n', 1696 '$(INDENT)}\n',
1689 COND=test, INDENT=indent) 1697 COND=test, INDENT=indent)
1690 self.GenerateDispatch( 1698 self.GenerateDispatch(
1691 true_code, info, indent + ' ', position + 1, positive) 1699 true_code, info, indent + ' ', position + 1, positive)
1692 return True 1700 return True
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698