| 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; |
| 64 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Value> t
able, v8::Local<v8::Value> columns) const; | 63 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; | 64 bool findObject(ErrorString*, const RemoteObjectId&, v8::Local<v8::Value>*)
const; |
| 66 String16 objectGroupName(const RemoteObjectId&) const; | 65 String16 objectGroupName(const RemoteObjectId&) const; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 v8::Global<v8::Context> m_context; | 108 v8::Global<v8::Context> m_context; |
| 110 v8::Global<v8::Value> m_value; | 109 v8::Global<v8::Value> m_value; |
| 111 OwnPtr<InjectedScriptNative> m_native; | 110 OwnPtr<InjectedScriptNative> m_native; |
| 112 int m_contextId; | 111 int m_contextId; |
| 113 String16 m_origin; | 112 String16 m_origin; |
| 114 }; | 113 }; |
| 115 | 114 |
| 116 } // namespace blink | 115 } // namespace blink |
| 117 | 116 |
| 118 #endif | 117 #endif |
| OLD | NEW |