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

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

Issue 23163010: rollback problem blink merge cl (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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 | « tools/dom/scripts/htmlrenamer.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/systemnative.py
===================================================================
--- tools/dom/scripts/systemnative.py (revision 26337)
+++ tools/dom/scripts/systemnative.py (working copy)
@@ -93,12 +93,6 @@
else:
return set([])
-def array_type(data_type):
- matched = re.match(r'([\w\d_\s]+)\[\]', data_type)
- if not matched:
- return None
- return matched.group(1)
-
def _GetCPPTypeName(interface_name, callback_name, cpp_name):
# TODO(vsm): We need to track the original IDL file name in order to recover
# the proper CPP name.
@@ -720,9 +714,6 @@
requires_script_execution_context = (ext_attrs.get('CallWith') == 'ScriptExecutionContext' or
ext_attrs.get('ConstructorCallWith') == 'ScriptExecutionContext')
-
- requires_document = ext_attrs.get('ConstructorCallWith') == 'Document'
-
if requires_script_execution_context:
raises_exceptions = True
cpp_arguments = ['context']
@@ -734,7 +725,7 @@
cpp_arguments = ['&state']
requires_dom_window = 'NamedConstructor' in ext_attrs
- if requires_dom_window or requires_document:
+ if requires_dom_window:
raises_exceptions = True
cpp_arguments = ['document']
@@ -819,7 +810,7 @@
' }\n'
' ScriptState& state = *currentState;\n\n')
- if requires_dom_window or requires_document:
+ if requires_dom_window:
self._cpp_impl_includes.add('"DOMWindow.h"')
body_emitter.Emit(
' DOMWindow* domWindow = DartUtilities::domWindowForCurrentIsolate();\n'
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698