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 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*, v8::Local<v8::Object>, const String16& grou
pName, bool ownProperties, bool accessorPropertiesOnly, bool generatePreview, Ow
nPtr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* result, Maybe<prot
ocol::Runtime::ExceptionDetails>*); |
57 void releaseObject(const String16& objectId); | 57 void releaseObject(const String16& objectId); |
58 | 58 |
59 PassOwnPtr<protocol::Array<protocol::Debugger::CallFrame>> wrapCallFrames(v8
::Local<v8::Object>); | 59 PassOwnPtr<protocol::Array<protocol::Debugger::CallFrame>> wrapCallFrames(v8
::Local<v8::Object>); |
60 | 60 |
61 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; |
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; | 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 wrapPropertyInArray(ErrorString*, v8::Local<v8::Array>, v8::Local<v8::S
tring> property, const String16& groupName, bool forceValueType = false, bool ge
neratePreview = false) const; | 63 bool wrapPropertyInArray(ErrorString*, v8::Local<v8::Array>, v8::Local<v8::S
tring> property, const String16& groupName, bool forceValueType = false, bool ge
neratePreview = false) const; |
64 | 64 |
65 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; |
66 bool findObject(ErrorString*, const RemoteObjectId&, v8::Local<v8::Value>*)
const; | 66 bool findObject(ErrorString*, const RemoteObjectId&, v8::Local<v8::Value>*)
const; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 v8::Global<v8::Context> m_context; | 110 v8::Global<v8::Context> m_context; |
111 v8::Global<v8::Value> m_value; | 111 v8::Global<v8::Value> m_value; |
112 OwnPtr<InjectedScriptNative> m_native; | 112 OwnPtr<InjectedScriptNative> m_native; |
113 int m_contextId; | 113 int m_contextId; |
114 String16 m_origin; | 114 String16 m_origin; |
115 }; | 115 }; |
116 | 116 |
117 } // namespace blink | 117 } // namespace blink |
118 | 118 |
119 #endif | 119 #endif |
OLD | NEW |