| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 const String& callFrameId, | 71 const String& callFrameId, |
| 72 const String& expression, | 72 const String& expression, |
| 73 const String& objectGroup, | 73 const String& objectGroup, |
| 74 bool includeCommandLineAPI, | 74 bool includeCommandLineAPI, |
| 75 bool returnByValue, | 75 bool returnByValue, |
| 76 bool generatePreview, | 76 bool generatePreview, |
| 77 RefPtr<TypeBuilder::Runtime::RemoteObject>* result, | 77 RefPtr<TypeBuilder::Runtime::RemoteObject>* result, |
| 78 TypeBuilder::OptOutput<bool>* wasThrown); | 78 TypeBuilder::OptOutput<bool>* wasThrown); |
| 79 void restartFrame(ErrorString*, const ScriptValue& callFrames, const String&
callFrameId, RefPtr<JSONObject>* result); | 79 void restartFrame(ErrorString*, const ScriptValue& callFrames, const String&
callFrameId, RefPtr<JSONObject>* result); |
| 80 void setVariableValue(ErrorString*, const ScriptValue& callFrames, const Str
ing* callFrameIdOpt, const String* functionObjectIdOpt, int scopeNumber, const S
tring& variableName, const String& newValueStr); | 80 void setVariableValue(ErrorString*, const ScriptValue& callFrames, const Str
ing* callFrameIdOpt, const String* functionObjectIdOpt, int scopeNumber, const S
tring& variableName, const String& newValueStr); |
| 81 void getCallFrameScopes(ErrorString*, const ScriptValue& callFrames, const S
tring& callFrameId, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::Scope> >* r
esult); |
| 81 void getFunctionDetails(ErrorString*, const String& functionId, RefPtr<TypeB
uilder::Debugger::FunctionDetails>* result); | 82 void getFunctionDetails(ErrorString*, const String& functionId, RefPtr<TypeB
uilder::Debugger::FunctionDetails>* result); |
| 82 void getProperties(ErrorString*, const String& objectId, bool ownProperties,
bool accessorPropertiesOnly, RefPtr<TypeBuilder::Array<TypeBuilder::Runtime::Pr
opertyDescriptor> >* result); | 83 void getProperties(ErrorString*, const String& objectId, bool ownProperties,
bool accessorPropertiesOnly, RefPtr<TypeBuilder::Array<TypeBuilder::Runtime::Pr
opertyDescriptor> >* result); |
| 83 void getInternalProperties(ErrorString*, const String& objectId, RefPtr<Type
Builder::Array<TypeBuilder::Runtime::InternalPropertyDescriptor> >* result); | 84 void getInternalProperties(ErrorString*, const String& objectId, RefPtr<Type
Builder::Array<TypeBuilder::Runtime::InternalPropertyDescriptor> >* result); |
| 84 Node* nodeForObjectId(const String& objectId); | 85 Node* nodeForObjectId(const String& objectId); |
| 85 void releaseObject(const String& objectId); | 86 void releaseObject(const String& objectId); |
| 86 | 87 |
| 87 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > wrapCallFr
ames(const ScriptValue&); | 88 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > wrapCallFr
ames(const ScriptValue&); |
| 88 | 89 |
| 89 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapObject(const ScriptValue&
, const String& groupName, bool generatePreview = false) const; | 90 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapObject(const ScriptValue&
, const String& groupName, bool generatePreview = false) const; |
| 90 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapTable(const ScriptValue&
table, const ScriptValue& columns) const; | 91 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapTable(const ScriptValue&
table, const ScriptValue& columns) const; |
| 91 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapNode(Node*, const String&
groupName); | 92 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapNode(Node*, const String&
groupName); |
| 92 ScriptValue findObjectById(const String& objectId) const; | 93 ScriptValue findObjectById(const String& objectId) const; |
| 93 | 94 |
| 94 void inspectNode(Node*); | 95 void inspectNode(Node*); |
| 95 void releaseObjectGroup(const String&); | 96 void releaseObjectGroup(const String&); |
| 96 | 97 |
| 97 private: | 98 private: |
| 98 friend class InjectedScriptModule; | 99 friend class InjectedScriptModule; |
| 99 friend InjectedScript InjectedScriptManager::injectedScriptFor(ScriptState*)
; | 100 friend InjectedScript InjectedScriptManager::injectedScriptFor(ScriptState*)
; |
| 100 InjectedScript(ScriptObject, InspectedStateAccessCheck); | 101 InjectedScript(ScriptObject, InspectedStateAccessCheck); |
| 101 | 102 |
| 102 ScriptValue nodeAsScriptValue(Node*); | 103 ScriptValue nodeAsScriptValue(Node*); |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 | 106 |
| 106 } // namespace WebCore | 107 } // namespace WebCore |
| 107 | 108 |
| 108 #endif | 109 #endif |
| OLD | NEW |