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

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

Issue 2159633002: [DevTools] Generate public versions of protocol classes to be exposed in v8_inspector/public. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed extra files 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/v8_inspector/V8InspectorSessionImpl.h" 5 #include "platform/v8_inspector/V8InspectorSessionImpl.h"
6 6
7 #include "platform/inspector_protocol/Parser.h" 7 #include "platform/inspector_protocol/Parser.h"
8 #include "platform/v8_inspector/InjectedScript.h" 8 #include "platform/v8_inspector/InjectedScript.h"
9 #include "platform/v8_inspector/InspectedContext.h" 9 #include "platform/v8_inspector/InspectedContext.h"
10 #include "platform/v8_inspector/RemoteObjectId.h" 10 #include "platform/v8_inspector/RemoteObjectId.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 injectedScript->findObject(errorString, *remoteId, &objectValue); 202 injectedScript->findObject(errorString, *remoteId, &objectValue);
203 if (objectValue.IsEmpty()) 203 if (objectValue.IsEmpty())
204 return v8::Local<v8::Value>(); 204 return v8::Local<v8::Value>();
205 if (context) 205 if (context)
206 *context = injectedScript->context()->context(); 206 *context = injectedScript->context()->context();
207 if (groupName) 207 if (groupName)
208 *groupName = injectedScript->objectGroupName(*remoteId); 208 *groupName = injectedScript->objectGroupName(*remoteId);
209 return objectValue; 209 return objectValue;
210 } 210 }
211 211
212 std::unique_ptr<protocol::Runtime::API::RemoteObject> V8InspectorSessionImpl::wr apObject(v8::Local<v8::Context> context, v8::Local<v8::Value> value, const Strin g16& groupName)
213 {
214 return wrapObject(context, value, groupName, false);
215 }
216
212 std::unique_ptr<protocol::Runtime::RemoteObject> V8InspectorSessionImpl::wrapObj ect(v8::Local<v8::Context> context, v8::Local<v8::Value> value, const String16& groupName, bool generatePreview) 217 std::unique_ptr<protocol::Runtime::RemoteObject> V8InspectorSessionImpl::wrapObj ect(v8::Local<v8::Context> context, v8::Local<v8::Value> value, const String16& groupName, bool generatePreview)
213 { 218 {
214 ErrorString errorString; 219 ErrorString errorString;
215 InjectedScript* injectedScript = findInjectedScript(&errorString, V8Debugger Impl::contextId(context)); 220 InjectedScript* injectedScript = findInjectedScript(&errorString, V8Debugger Impl::contextId(context));
216 if (!injectedScript) 221 if (!injectedScript)
217 return nullptr; 222 return nullptr;
218 return injectedScript->wrapObject(&errorString, value, groupName, false, gen eratePreview); 223 return injectedScript->wrapObject(&errorString, value, groupName, false, gen eratePreview);
219 } 224 }
220 225
221 std::unique_ptr<protocol::Runtime::RemoteObject> V8InspectorSessionImpl::wrapTab le(v8::Local<v8::Context> context, v8::Local<v8::Value> table, v8::Local<v8::Val ue> columns) 226 std::unique_ptr<protocol::Runtime::RemoteObject> V8InspectorSessionImpl::wrapTab le(v8::Local<v8::Context> context, v8::Local<v8::Value> table, v8::Local<v8::Val ue> columns)
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 m_debuggerAgent->resume(&errorString); 305 m_debuggerAgent->resume(&errorString);
301 } 306 }
302 307
303 void V8InspectorSessionImpl::stepOver() 308 void V8InspectorSessionImpl::stepOver()
304 { 309 {
305 ErrorString errorString; 310 ErrorString errorString;
306 m_debuggerAgent->stepOver(&errorString); 311 m_debuggerAgent->stepOver(&errorString);
307 } 312 }
308 313
309 } // namespace blink 314 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698