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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/InjectedScript.h

Issue 1707043002: [DevTools] Support CommandLineAPI in snippets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 RefPtr<protocol::TypeBuilder::Runtime::ExceptionDetails>*); 87 RefPtr<protocol::TypeBuilder::Runtime::ExceptionDetails>*);
88 void restartFrame(ErrorString*, v8::Local<v8::Object> callFrames, const Stri ng& callFrameId); 88 void restartFrame(ErrorString*, v8::Local<v8::Object> callFrames, const Stri ng& callFrameId);
89 void getStepInPositions(ErrorString*, v8::Local<v8::Object> callFrames, cons t String& callFrameId, RefPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder ::Debugger::Location>>& positions); 89 void getStepInPositions(ErrorString*, v8::Local<v8::Object> callFrames, cons t String& callFrameId, RefPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder ::Debugger::Location>>& positions);
90 void setVariableValue(ErrorString*, v8::Local<v8::Object> callFrames, const String* callFrameIdOpt, const String* functionObjectIdOpt, int scopeNumber, cons t String& variableName, const String& newValueStr); 90 void setVariableValue(ErrorString*, v8::Local<v8::Object> callFrames, const String* callFrameIdOpt, const String* functionObjectIdOpt, int scopeNumber, cons t String& variableName, const String& newValueStr);
91 void getFunctionDetails(ErrorString*, const String& functionId, RefPtr<proto col::TypeBuilder::Debugger::FunctionDetails>* result); 91 void getFunctionDetails(ErrorString*, const String& functionId, RefPtr<proto col::TypeBuilder::Debugger::FunctionDetails>* result);
92 void getGeneratorObjectDetails(ErrorString*, const String& functionId, RefPt r<protocol::TypeBuilder::Debugger::GeneratorObjectDetails>* result); 92 void getGeneratorObjectDetails(ErrorString*, const String& functionId, RefPt r<protocol::TypeBuilder::Debugger::GeneratorObjectDetails>* result);
93 void getCollectionEntries(ErrorString*, const String& objectId, RefPtr<proto col::TypeBuilder::Array<protocol::TypeBuilder::Debugger::CollectionEntry>>* resu lt); 93 void getCollectionEntries(ErrorString*, const String& objectId, RefPtr<proto col::TypeBuilder::Array<protocol::TypeBuilder::Debugger::CollectionEntry>>* resu lt);
94 void getProperties(ErrorString*, const String& objectId, bool ownProperties, bool accessorPropertiesOnly, bool generatePreview, RefPtr<protocol::TypeBuilder ::Array<protocol::TypeBuilder::Runtime::PropertyDescriptor>>* result, RefPtr<pro tocol::TypeBuilder::Runtime::ExceptionDetails>*); 94 void getProperties(ErrorString*, const String& objectId, bool ownProperties, bool accessorPropertiesOnly, bool generatePreview, RefPtr<protocol::TypeBuilder ::Array<protocol::TypeBuilder::Runtime::PropertyDescriptor>>* result, RefPtr<pro tocol::TypeBuilder::Runtime::ExceptionDetails>*);
95 void getInternalProperties(ErrorString*, const String& objectId, RefPtr<prot ocol::TypeBuilder::Array<protocol::TypeBuilder::Runtime::InternalPropertyDescrip tor>>* result, RefPtr<protocol::TypeBuilder::Runtime::ExceptionDetails>*); 95 void getInternalProperties(ErrorString*, const String& objectId, RefPtr<prot ocol::TypeBuilder::Array<protocol::TypeBuilder::Runtime::InternalPropertyDescrip tor>>* result, RefPtr<protocol::TypeBuilder::Runtime::ExceptionDetails>*);
96 void releaseObject(const String& objectId); 96 void releaseObject(const String& objectId);
97 v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Script>, bool incl udeCommandLineAPI);
97 98
98 PassRefPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::Cal lFrame>> wrapCallFrames(v8::Local<v8::Object>, int asyncOrdinal); 99 PassRefPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::Cal lFrame>> wrapCallFrames(v8::Local<v8::Object>, int asyncOrdinal);
99 100
100 PassRefPtr<protocol::TypeBuilder::Runtime::RemoteObject> wrapObject(v8::Loca l<v8::Value>, const String& groupName, bool generatePreview = false) const; 101 PassRefPtr<protocol::TypeBuilder::Runtime::RemoteObject> wrapObject(v8::Loca l<v8::Value>, const String& groupName, bool generatePreview = false) const;
101 PassRefPtr<protocol::TypeBuilder::Runtime::RemoteObject> wrapTable(v8::Local <v8::Value> table, v8::Local<v8::Value> columns) const; 102 PassRefPtr<protocol::TypeBuilder::Runtime::RemoteObject> wrapTable(v8::Local <v8::Value> table, v8::Local<v8::Value> columns) const;
102 v8::Local<v8::Value> findObject(const RemoteObjectId&) const; 103 v8::Local<v8::Value> findObject(const RemoteObjectId&) const;
103 String objectGroupName(const RemoteObjectId&) const; 104 String objectGroupName(const RemoteObjectId&) const;
104 void releaseObjectGroup(const String&); 105 void releaseObjectGroup(const String&);
105 106
106 void setCustomObjectFormatterEnabled(bool); 107 void setCustomObjectFormatterEnabled(bool);
(...skipping 22 matching lines...) Expand all
129 v8::Global<v8::Value> m_value; 130 v8::Global<v8::Value> m_value;
130 V8DebuggerClient* m_client; 131 V8DebuggerClient* m_client;
131 RefPtr<InjectedScriptNative> m_native; 132 RefPtr<InjectedScriptNative> m_native;
132 int m_contextId; 133 int m_contextId;
133 String m_origin; 134 String m_origin;
134 }; 135 };
135 136
136 } // namespace blink 137 } // namespace blink
137 138
138 #endif 139 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/protocol.json ('k') | third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698