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

Unified Diff: lib/html/scripts/systemnative.py

Issue 10965044: Remove Webkit prefix for RequestAnimationFrame. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/html/scripts/systemhtml.py ('k') | lib/html/templates/html/dart2js/impl_Window.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/scripts/systemnative.py
===================================================================
--- lib/html/scripts/systemnative.py (revision 12808)
+++ lib/html/scripts/systemnative.py (working copy)
@@ -11,6 +11,10 @@
import systembase
from generator import *
+_dart_custom_members = set([
+ 'Window.webkitCancelAnimationFrame',
+ 'Window.webkitRequestAnimationFrame',
+ ])
class NativeImplementationSystem(systembase.System):
@@ -542,12 +546,19 @@
self._GenerateNativeBinding('numericIndexSetter', 3, dart_declaration,
'Callback', True)
+ def _HasCustomImplementation(self, member_name):
+ member_name = '%s.%s' % (self._html_interface_name, member_name)
+ return member_name in _dart_custom_members
+
def AddOperation(self, info, html_name):
"""
Arguments:
info: An OperationInfo object.
"""
+ if self._HasCustomImplementation(info.name):
+ return
+
operation = info.operations[0]
if 'CheckSecurityForNode' in operation.ext_attrs:
« no previous file with comments | « lib/html/scripts/systemhtml.py ('k') | lib/html/templates/html/dart2js/impl_Window.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698