| OLD | NEW |
| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 public: | 55 public: |
| 56 static std::unique_ptr<InjectedScript> create(InspectedContext*); | 56 static std::unique_ptr<InjectedScript> create(InspectedContext*); |
| 57 ~InjectedScript(); | 57 ~InjectedScript(); |
| 58 | 58 |
| 59 InspectedContext* context() const { return m_context; } | 59 InspectedContext* context() const { return m_context; } |
| 60 | 60 |
| 61 void getProperties(ErrorString*, v8::Local<v8::Object>, const String16& grou
pName, bool ownProperties, bool accessorPropertiesOnly, bool generatePreview, st
d::unique_ptr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* result, M
aybe<protocol::Runtime::ExceptionDetails>*); | 61 void getProperties(ErrorString*, v8::Local<v8::Object>, const String16& grou
pName, bool ownProperties, bool accessorPropertiesOnly, bool generatePreview, st
d::unique_ptr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* result, M
aybe<protocol::Runtime::ExceptionDetails>*); |
| 62 void releaseObject(const String16& objectId); | 62 void releaseObject(const String16& objectId); |
| 63 | 63 |
| 64 std::unique_ptr<protocol::Runtime::RemoteObject> wrapObject(ErrorString*, v8
::Local<v8::Value>, const String16& groupName, bool forceValueType = false, bool
generatePreview = false) const; | 64 std::unique_ptr<protocol::Runtime::RemoteObject> wrapObject(ErrorString*, v8
::Local<v8::Value>, const String16& groupName, bool forceValueType = false, bool
generatePreview = false) const; |
| 65 bool wrapObjectProperty(ErrorString*, v8::Local<v8::Object>, v8::Local<v8::V
alue> key, const String16& groupName, bool forceValueType = false, bool generate
Preview = false) const; | 65 bool wrapObjectProperty(ErrorString*, v8::Local<v8::Object>, v8::Local<v8::N
ame> key, const String16& groupName, bool forceValueType = false, bool generateP
review = false) const; |
| 66 bool wrapPropertyInArray(ErrorString*, v8::Local<v8::Array>, v8::Local<v8::S
tring> property, const String16& groupName, bool forceValueType = false, bool ge
neratePreview = false) const; | 66 bool wrapPropertyInArray(ErrorString*, v8::Local<v8::Array>, v8::Local<v8::S
tring> property, const String16& groupName, bool forceValueType = false, bool ge
neratePreview = false) const; |
| 67 bool wrapObjectsInArray(ErrorString*, v8::Local<v8::Array>, const String16&
groupName, bool forceValueType = false, bool generatePreview = false) const; | 67 bool wrapObjectsInArray(ErrorString*, v8::Local<v8::Array>, const String16&
groupName, bool forceValueType = false, bool generatePreview = false) const; |
| 68 std::unique_ptr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Val
ue> table, v8::Local<v8::Value> columns) const; | 68 std::unique_ptr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Val
ue> table, v8::Local<v8::Value> columns) const; |
| 69 | 69 |
| 70 bool findObject(ErrorString*, const RemoteObjectId&, v8::Local<v8::Value>*)
const; | 70 bool findObject(ErrorString*, const RemoteObjectId&, v8::Local<v8::Value>*)
const; |
| 71 String16 objectGroupName(const RemoteObjectId&) const; | 71 String16 objectGroupName(const RemoteObjectId&) const; |
| 72 void releaseObjectGroup(const String16&); | 72 void releaseObjectGroup(const String16&); |
| 73 void setCustomObjectFormatterEnabled(bool); | 73 void setCustomObjectFormatterEnabled(bool); |
| 74 v8::MaybeLocal<v8::Value> resolveCallArgument(ErrorString*, protocol::Runtim
e::CallArgument*); | 74 v8::MaybeLocal<v8::Value> resolveCallArgument(ErrorString*, protocol::Runtim
e::CallArgument*); |
| 75 | 75 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 InspectedContext* m_context; | 162 InspectedContext* m_context; |
| 163 v8::Global<v8::Value> m_value; | 163 v8::Global<v8::Value> m_value; |
| 164 v8::Global<v8::Value> m_lastEvaluationResult; | 164 v8::Global<v8::Value> m_lastEvaluationResult; |
| 165 std::unique_ptr<InjectedScriptNative> m_native; | 165 std::unique_ptr<InjectedScriptNative> m_native; |
| 166 v8::Global<v8::Object> m_commandLineAPI; | 166 v8::Global<v8::Object> m_commandLineAPI; |
| 167 }; | 167 }; |
| 168 | 168 |
| 169 } // namespace v8_inspector | 169 } // namespace v8_inspector |
| 170 | 170 |
| 171 #endif | 171 #endif |
| OLD | NEW |