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

Side by Side Diff: Source/bindings/templates/callback_interface.cpp

Issue 23470004: Have handleMaxRecursionDepthExceeded() take an isolate in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 return true; 76 return true;
77 } 77 }
78 {% endfor %} 78 {% endfor %}
79 {% if method.arguments %} 79 {% if method.arguments %}
80 v8::Handle<v8::Value> argv[] = { {{method.handles | join(', ')}} }; 80 v8::Handle<v8::Value> argv[] = { {{method.handles | join(', ')}} };
81 {% else %} 81 {% else %}
82 v8::Handle<v8::Value> *argv = 0; 82 v8::Handle<v8::Value> *argv = 0;
83 {% endif %} 83 {% endif %}
84 84
85 bool callbackReturnValue = false; 85 bool callbackReturnValue = false;
86 return !invokeCallback(m_callback.newLocal(isolate), {{method.arguments | le ngth}}, argv, callbackReturnValue, scriptExecutionContext()); 86 return !invokeCallback(m_callback.newLocal(isolate), {{method.arguments | le ngth}}, argv, callbackReturnValue, scriptExecutionContext(), isolate);
87 } 87 }
88 88
89 {% endif %} 89 {% endif %}
90 {% endfor %}{# for method in methods #} 90 {% endfor %}{# for method in methods #}
91 } // namespace WebCore 91 } // namespace WebCore
92 92
93 {% if conditional_string %} 93 {% if conditional_string %}
94 #endif // {{conditional_string}} 94 #endif // {{conditional_string}}
95 {% endif %} 95 {% endif %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698