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

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

Issue 14918010: Make inspector objects ScriptWrappable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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
« no previous file with comments | « Source/core/inspector/JavaScriptCallFrame.h ('k') | Source/core/inspector/ScriptProfile.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21 matching lines...) Expand all
32 #include "core/inspector/JavaScriptCallFrame.h" 32 #include "core/inspector/JavaScriptCallFrame.h"
33 33
34 #include "bindings/v8/V8Binding.h" 34 #include "bindings/v8/V8Binding.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 JavaScriptCallFrame::JavaScriptCallFrame(v8::Handle<v8::Context> debuggerContext , v8::Handle<v8::Object> callFrame) 38 JavaScriptCallFrame::JavaScriptCallFrame(v8::Handle<v8::Context> debuggerContext , v8::Handle<v8::Object> callFrame)
39 : m_debuggerContext(debuggerContext) 39 : m_debuggerContext(debuggerContext)
40 , m_callFrame(callFrame) 40 , m_callFrame(callFrame)
41 { 41 {
42 ScriptWrappable::init(this);
42 } 43 }
43 44
44 JavaScriptCallFrame::~JavaScriptCallFrame() 45 JavaScriptCallFrame::~JavaScriptCallFrame()
45 { 46 {
46 } 47 }
47 48
48 JavaScriptCallFrame* JavaScriptCallFrame::caller() 49 JavaScriptCallFrame* JavaScriptCallFrame::caller()
49 { 50 {
50 if (!m_caller) { 51 if (!m_caller) {
51 v8::HandleScope handleScope; 52 v8::HandleScope handleScope;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 v8::Handle<v8::Value> argv[] = { 139 v8::Handle<v8::Value> argv[] = {
139 v8::Handle<v8::Value>(v8::Integer::New(scopeNumber)), 140 v8::Handle<v8::Value>(v8::Integer::New(scopeNumber)),
140 v8String(variableName, m_debuggerContext->GetIsolate()), 141 v8String(variableName, m_debuggerContext->GetIsolate()),
141 newValue 142 newValue
142 }; 143 };
143 return setVariableValueFunction->Call(m_callFrame.get(), 3, argv); 144 return setVariableValueFunction->Call(m_callFrame.get(), 3, argv);
144 } 145 }
145 146
146 } // namespace WebCore 147 } // namespace WebCore
147 148
OLDNEW
« no previous file with comments | « Source/core/inspector/JavaScriptCallFrame.h ('k') | Source/core/inspector/ScriptProfile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698