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

Unified Diff: client/dom/scripts/systemnative.py

Issue 9460061: Ignore attributes and methods with CheckSecurityForNode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | client/tests/client/client.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/scripts/systemnative.py
diff --git a/client/dom/scripts/systemnative.py b/client/dom/scripts/systemnative.py
index 13a9d92cd5af7da1d9cf9662b455687368e9eacc..208f96ccb8d4120a34ed2741d7c769b4447ca31d 100644
--- a/client/dom/scripts/systemnative.py
+++ b/client/dom/scripts/systemnative.py
@@ -377,6 +377,10 @@ class NativeImplementationGenerator(systemwrapping.WrappingInterfaceGenerator):
if (getter or setter).type.id == 'EventListener':
return
+ if 'CheckSecurityForNode' in (getter or setter).ext_attrs:
+ # FIXME: exclude from interface as well.
+ return
+
# FIXME: support 'ImplementedBy'.
if 'ImplementedBy' in (getter or setter).ext_attrs:
return
@@ -482,6 +486,10 @@ class NativeImplementationGenerator(systemwrapping.WrappingInterfaceGenerator):
info: An OperationInfo object.
"""
+ if 'CheckSecurityForNode' in info.overloads[0].ext_attrs:
+ # FIXME: exclude from interface as well.
+ return
+
if 'Custom' in info.overloads[0].ext_attrs:
parameters = info.ParametersImplementationDeclaration()
dart_declaration = '%s %s(%s)' % (info.type_name, info.name, parameters)
« no previous file with comments | « no previous file | client/tests/client/client.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698