Chromium Code Reviews| Index: third_party/WebKit/Source/platform/v8_inspector/InjectedScript.h |
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.h b/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.h |
| index c26013bb04b52468b9c2b0f7cf86073e7c48baee..0e7c095ebe95c9ae44f8f32cb46c0e5f5550e398 100644 |
| --- a/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.h |
| +++ b/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.h |
| @@ -72,29 +72,16 @@ public: |
| bool generatePreview, |
| OwnPtr<protocol::Runtime::RemoteObject>* result, |
| Maybe<bool>* wasThrown); |
| - void evaluateOnCallFrame( |
| - ErrorString*, |
| - v8::Local<v8::Object> callFrames, |
| - const String16& callFrameId, |
| - const String16& expression, |
| - const String16& objectGroup, |
| - bool includeCommandLineAPI, |
| - bool returnByValue, |
| - bool generatePreview, |
| - OwnPtr<protocol::Runtime::RemoteObject>* result, |
| - Maybe<bool>* wasThrown, |
| - Maybe<protocol::Runtime::ExceptionDetails>*); |
| void getFunctionDetails(ErrorString*, const String16& functionId, OwnPtr<protocol::Debugger::FunctionDetails>* result); |
| void getCollectionEntries(ErrorString*, const String16& objectId, OwnPtr<protocol::Array<protocol::Debugger::CollectionEntry>>* result); |
| void getProperties(ErrorString*, const String16& objectId, bool ownProperties, bool accessorPropertiesOnly, bool generatePreview, OwnPtr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* result, Maybe<protocol::Runtime::ExceptionDetails>*); |
| void getInternalProperties(ErrorString*, const String16& objectId, Maybe<protocol::Array<protocol::Runtime::InternalPropertyDescriptor>>* result, Maybe<protocol::Runtime::ExceptionDetails>*); |
| void releaseObject(const String16& objectId); |
| - v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Script>, bool includeCommandLineAPI); |
| PassOwnPtr<protocol::Array<protocol::Debugger::CallFrame>> wrapCallFrames(v8::Local<v8::Object>); |
| - PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8::Value>, const String16& groupName, bool generatePreview = false) const; |
| - bool wrapObjectProperty(ErrorString*, v8::Local<v8::Object>, v8::Local<v8::Value> key, const String16& groupName, bool generatePreview = false) const; |
| + PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(ErrorString*, v8::Local<v8::Value>, const String16& groupName, bool forceValueType = false, bool generatePreview = false) const; |
| + bool wrapObjectProperty(ErrorString*, v8::Local<v8::Object>, v8::Local<v8::Value> key, const String16& groupName, bool forceValueType = false, bool generatePreview = false) const; |
| PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Value> table, v8::Local<v8::Value> columns) const; |
| v8::Local<v8::Value> findObject(const RemoteObjectId&) const; |
| String16 objectGroupName(const RemoteObjectId&) const; |
| @@ -108,20 +95,23 @@ public: |
| v8::Isolate* isolate() { return m_isolate; } |
| v8::Local<v8::Context> context() const; |
| void dispose(); |
| + bool canAccessInspectedWindow() const; |
| + bool setLastEvaluationResult(ErrorString*, v8::Local<v8::Value>); |
| v8::MaybeLocal<v8::Value> resolveCallArgument(ErrorString*, protocol::Runtime::CallArgument*); |
| private: |
| friend InjectedScript* InjectedScriptManager::injectedScriptFor(v8::Local<v8::Context>); |
| + friend InjectedScriptManager::InjectScopeExtensionByName; |
| InjectedScript(InjectedScriptManager*, v8::Local<v8::Context>, v8::Local<v8::Object>, PassOwnPtr<InjectedScriptNative>, int contextId); |
| - bool canAccessInspectedWindow() const; |
| v8::Local<v8::Value> v8Value() const; |
| v8::Local<v8::Value> callFunctionWithEvalEnabled(V8FunctionCall&, bool& hadException) const; |
| PassOwnPtr<protocol::Value> makeCall(V8FunctionCall&); |
| PassOwnPtr<protocol::Runtime::RemoteObject> makeEvalCall(ErrorString*, V8FunctionCall&, Maybe<bool>* wasThrown, Maybe<protocol::Runtime::ExceptionDetails>* = 0); |
| PassOwnPtr<protocol::Value> makeCallWithExceptionDetails(V8FunctionCall&, Maybe<protocol::Runtime::ExceptionDetails>*); |
| - v8::MaybeLocal<v8::Value> wrapValue(ErrorString*, v8::Local<v8::Value>, const String16& groupName, bool generatePreview) const; |
| + v8::MaybeLocal<v8::Value> wrapValue(ErrorString*, v8::Local<v8::Value>, const String16& groupName, bool forceValueType, bool generatePreview) const; |
| + v8::MaybeLocal<v8::Object> scopeExtensionByName(ErrorString*, const String16& name); |
|
dgozman
2016/03/17 19:16:11
Make two methods here.
kozy
2016/03/17 20:48:56
Done.
|
| InjectedScriptManager* m_manager; |
| v8::Isolate* m_isolate; |