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

Side by Side Diff: Source/core/inspector/JavaScriptCallFrame.cpp

Issue 19064004: Support re-reading scope variables in protocol and on backed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: clean Created 7 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 v8::Handle<v8::Object> callFrame = m_callFrame.newLocal(m_isolate); 142 v8::Handle<v8::Object> callFrame = m_callFrame.newLocal(m_isolate);
143 v8::Handle<v8::Function> setVariableValueFunction = v8::Handle<v8::Function> ::Cast(callFrame->Get(v8::String::NewSymbol("setVariableValue"))); 143 v8::Handle<v8::Function> setVariableValueFunction = v8::Handle<v8::Function> ::Cast(callFrame->Get(v8::String::NewSymbol("setVariableValue")));
144 v8::Handle<v8::Value> argv[] = { 144 v8::Handle<v8::Value> argv[] = {
145 v8::Handle<v8::Value>(v8::Integer::New(scopeNumber)), 145 v8::Handle<v8::Value>(v8::Integer::New(scopeNumber)),
146 v8String(variableName, m_isolate), 146 v8String(variableName, m_isolate),
147 newValue 147 newValue
148 }; 148 };
149 return setVariableValueFunction->Call(callFrame, 3, argv); 149 return setVariableValueFunction->Call(callFrame, 3, argv);
150 } 150 }
151 151
152 void JavaScriptCallFrame::rereadScopes()
153 {
154 v8::Handle<v8::Object> callFrame = m_callFrame.newLocal(m_isolate);
155 v8::Handle<v8::Function> rereadScopesFunction = v8::Handle<v8::Function>::Ca st(callFrame->Get(v8::String::NewSymbol("rereadScopes")));
156 rereadScopesFunction->Call(callFrame, 0, 0);
157 }
158
152 } // namespace WebCore 159 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698