Chromium Code Reviews| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 46 class DictionaryValue; | 46 class DictionaryValue; |
| 47 } | 47 } |
| 48 | 48 |
| 49 | 49 |
| 50 using protocol::Maybe; | 50 using protocol::Maybe; |
| 51 | 51 |
| 52 class InjectedScript final { | 52 class InjectedScript final { |
| 53 public: | 53 public: |
| 54 ~InjectedScript(); | 54 ~InjectedScript(); |
| 55 | 55 |
| 56 void getCollectionEntries(ErrorString*, const String16& objectId, OwnPtr<pro tocol::Array<protocol::Debugger::CollectionEntry>>* result); | |
| 57 void getProperties(ErrorString*, const String16& objectId, bool ownPropertie s, bool accessorPropertiesOnly, bool generatePreview, OwnPtr<protocol::Array<pro tocol::Runtime::PropertyDescriptor>>* result, Maybe<protocol::Runtime::Exception Details>*); | 56 void getProperties(ErrorString*, const String16& objectId, bool ownPropertie s, bool accessorPropertiesOnly, bool generatePreview, OwnPtr<protocol::Array<pro tocol::Runtime::PropertyDescriptor>>* result, Maybe<protocol::Runtime::Exception Details>*); |
| 58 void releaseObject(const String16& objectId); | 57 void releaseObject(const String16& objectId); |
| 59 | 58 |
| 60 PassOwnPtr<protocol::Array<protocol::Debugger::CallFrame>> wrapCallFrames(v8 ::Local<v8::Object>); | 59 PassOwnPtr<protocol::Array<protocol::Debugger::CallFrame>> wrapCallFrames(v8 ::Local<v8::Object>); |
| 61 | 60 |
| 62 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(ErrorString*, v8::Loc al<v8::Value>, const String16& groupName, bool forceValueType = false, bool gene ratePreview = false) const; | 61 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(ErrorString*, v8::Loc al<v8::Value>, const String16& groupName, bool forceValueType = false, bool gene ratePreview = false) const; |
| 63 bool wrapObjectProperty(ErrorString*, v8::Local<v8::Object>, v8::Local<v8::V alue> key, const String16& groupName, bool forceValueType = false, bool generate Preview = false) const; | 62 bool wrapObjectProperty(ErrorString*, v8::Local<v8::Object>, v8::Local<v8::V alue> key, const String16& groupName, bool forceValueType = false, bool generate Preview = false) const; |
| 63 bool wrapObjectsInArray(ErrorString*, v8::Local<v8::Array>, v8::Local<v8::Va lue> property, const String16& groupName, bool forceValueType = false, bool gene ratePreview = false) const; | |
|
dgozman
2016/03/21 17:21:02
v8::Local<v8::String> property
dgozman
2016/03/21 17:21:02
wrapPropertyInArray ?
kozy
2016/03/21 19:45:01
Done.
kozy
2016/03/21 19:45:01
Done.
| |
| 64 | |
| 64 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Value> t able, v8::Local<v8::Value> columns) const; | 65 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Value> t able, v8::Local<v8::Value> columns) const; |
| 65 bool findObject(ErrorString*, const RemoteObjectId&, v8::Local<v8::Value>*) const; | 66 bool findObject(ErrorString*, const RemoteObjectId&, v8::Local<v8::Value>*) const; |
| 66 String16 objectGroupName(const RemoteObjectId&) const; | 67 String16 objectGroupName(const RemoteObjectId&) const; |
| 67 void releaseObjectGroup(const String16&); | 68 void releaseObjectGroup(const String16&); |
| 68 | 69 |
| 69 void setCustomObjectFormatterEnabled(bool); | 70 void setCustomObjectFormatterEnabled(bool); |
| 70 int contextId() { return m_contextId; } | 71 int contextId() { return m_contextId; } |
| 71 String16 origin() const { return m_origin; } | 72 String16 origin() const { return m_origin; } |
| 72 void setOrigin(const String16& origin) { m_origin = origin; } | 73 void setOrigin(const String16& origin) { m_origin = origin; } |
| 73 | 74 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 109 v8::Global<v8::Context> m_context; | 110 v8::Global<v8::Context> m_context; |
| 110 v8::Global<v8::Value> m_value; | 111 v8::Global<v8::Value> m_value; |
| 111 OwnPtr<InjectedScriptNative> m_native; | 112 OwnPtr<InjectedScriptNative> m_native; |
| 112 int m_contextId; | 113 int m_contextId; |
| 113 String16 m_origin; | 114 String16 m_origin; |
| 114 }; | 115 }; |
| 115 | 116 |
| 116 } // namespace blink | 117 } // namespace blink |
| 117 | 118 |
| 118 #endif | 119 #endif |
| OLD | NEW |