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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/JavaScriptCallFrame.cpp

Issue 2246233002: [DevTools] Move platform/v8_inspector classes under v8_inspector namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "platform/v8_inspector/JavaScriptCallFrame.h" 31 #include "platform/v8_inspector/JavaScriptCallFrame.h"
32 32
33 #include "platform/v8_inspector/V8Compat.h" 33 #include "platform/v8_inspector/V8Compat.h"
34 #include "platform/v8_inspector/V8StringUtil.h" 34 #include "platform/v8_inspector/V8StringUtil.h"
35 35
36 #include <v8-debug.h> 36 #include <v8-debug.h>
37 37
38 namespace blink { 38 namespace v8_inspector {
39 39
40 JavaScriptCallFrame::JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext, v8::Local<v8::Object> callFrame) 40 JavaScriptCallFrame::JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext, v8::Local<v8::Object> callFrame)
41 : m_isolate(debuggerContext->GetIsolate()) 41 : m_isolate(debuggerContext->GetIsolate())
42 , m_debuggerContext(m_isolate, debuggerContext) 42 , m_debuggerContext(m_isolate, debuggerContext)
43 , m_callFrame(m_isolate, callFrame) 43 , m_callFrame(m_isolate, callFrame)
44 { 44 {
45 } 45 }
46 46
47 JavaScriptCallFrame::~JavaScriptCallFrame() 47 JavaScriptCallFrame::~JavaScriptCallFrame()
48 { 48 {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 v8::Local<v8::Object> callFrame = v8::Local<v8::Object>::New(m_isolate, m_ca llFrame); 123 v8::Local<v8::Object> callFrame = v8::Local<v8::Object>::New(m_isolate, m_ca llFrame);
124 v8::Local<v8::Function> setVariableValueFunction = v8::Local<v8::Function>:: Cast(callFrame->Get(toV8StringInternalized(m_isolate, "setVariableValue"))); 124 v8::Local<v8::Function> setVariableValueFunction = v8::Local<v8::Function>:: Cast(callFrame->Get(toV8StringInternalized(m_isolate, "setVariableValue")));
125 v8::Local<v8::Value> argv[] = { 125 v8::Local<v8::Value> argv[] = {
126 v8::Local<v8::Value>(v8::Integer::New(m_isolate, scopeNumber)), 126 v8::Local<v8::Value>(v8::Integer::New(m_isolate, scopeNumber)),
127 variableName, 127 variableName,
128 newValue 128 newValue
129 }; 129 };
130 return setVariableValueFunction->Call(m_debuggerContext.Get(m_isolate), call Frame, PROTOCOL_ARRAY_LENGTH(argv), argv); 130 return setVariableValueFunction->Call(m_debuggerContext.Get(m_isolate), call Frame, PROTOCOL_ARRAY_LENGTH(argv), argv);
131 } 131 }
132 132
133 } // namespace blink 133 } // namespace v8_inspector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698