| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 class InjectedScriptModule; | 43 class InjectedScriptModule; |
| 44 class Node; | 44 class Node; |
| 45 class SerializedScriptValue; | 45 class SerializedScriptValue; |
| 46 | 46 |
| 47 | 47 |
| 48 class InjectedScript : public InjectedScriptBase { | 48 class InjectedScript : public InjectedScriptBase { |
| 49 public: | 49 public: |
| 50 InjectedScript(); | 50 InjectedScript(); |
| 51 ~InjectedScript() { } | 51 ~InjectedScript() { } |
| 52 | 52 |
| 53 void evaluate(ErrorString*, | 53 void evaluate(ErrorString*, const String& expression, const String& objectGr
oup, bool includeCommandLineAPI, bool returnByValue, bool forceObjectId, bool ge
neratePreview, RefPtr<TypeBuilder::Runtime::RemoteObject>* result, TypeBuilder::
OptOutput<bool>* wasThrown); |
| 54 const String& expression, | 54 void callFunctionOn(ErrorString*, const String& objectId, const String& expr
ession, const String& arguments, bool returnByValue, bool forceObjectId, bool ge
neratePreview, RefPtr<TypeBuilder::Runtime::RemoteObject>* result, TypeBuilder::
OptOutput<bool>* wasThrown); |
| 55 const String& objectGroup, | 55 void evaluateOnCallFrame(ErrorString*, const ScriptValue& callFrames, const
String& callFrameId, const String& expression, const String& objectGroup, bool i
ncludeCommandLineAPI, bool returnByValue, bool forceObjectId, bool generatePrevi
ew, RefPtr<TypeBuilder::Runtime::RemoteObject>* result, TypeBuilder::OptOutput<b
ool>* wasThrown); |
| 56 bool includeCommandLineAPI, | |
| 57 bool returnByValue, | |
| 58 bool generatePreview, | |
| 59 RefPtr<TypeBuilder::Runtime::RemoteObject>* result, | |
| 60 TypeBuilder::OptOutput<bool>* wasThrown); | |
| 61 void callFunctionOn(ErrorString*, | |
| 62 const String& objectId, | |
| 63 const String& expression, | |
| 64 const String& arguments, | |
| 65 bool returnByValue, | |
| 66 bool generatePreview, | |
| 67 RefPtr<TypeBuilder::Runtime::RemoteObject>* result, | |
| 68 TypeBuilder::OptOutput<bool>* wasThrown); | |
| 69 void evaluateOnCallFrame(ErrorString*, | |
| 70 const ScriptValue& callFrames, | |
| 71 const String& callFrameId, | |
| 72 const String& expression, | |
| 73 const String& objectGroup, | |
| 74 bool includeCommandLineAPI, | |
| 75 bool returnByValue, | |
| 76 bool generatePreview, | |
| 77 RefPtr<TypeBuilder::Runtime::RemoteObject>* result, | |
| 78 TypeBuilder::OptOutput<bool>* wasThrown); | |
| 79 void restartFrame(ErrorString*, const ScriptValue& callFrames, const String&
callFrameId, RefPtr<JSONObject>* result); | 56 void restartFrame(ErrorString*, const ScriptValue& callFrames, const String&
callFrameId, RefPtr<JSONObject>* result); |
| 80 void getStepInPositions(ErrorString*, const ScriptValue& callFrames, const S
tring& callFrameId, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::Location> >
& positions); | 57 void getStepInPositions(ErrorString*, const ScriptValue& callFrames, const S
tring& callFrameId, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::Location> >
& positions); |
| 81 void setVariableValue(ErrorString*, const ScriptValue& callFrames, const Str
ing* callFrameIdOpt, const String* functionObjectIdOpt, int scopeNumber, const S
tring& variableName, const String& newValueStr); | 58 void setVariableValue(ErrorString*, const ScriptValue& callFrames, const Str
ing* callFrameIdOpt, const String* functionObjectIdOpt, int scopeNumber, const S
tring& variableName, const String& newValueStr); |
| 82 void getFunctionDetails(ErrorString*, const String& functionId, RefPtr<TypeB
uilder::Debugger::FunctionDetails>* result); | 59 void getFunctionDetails(ErrorString*, const String& functionId, RefPtr<TypeB
uilder::Debugger::FunctionDetails>* result); |
| 83 void getProperties(ErrorString*, const String& objectId, bool ownProperties,
bool accessorPropertiesOnly, RefPtr<TypeBuilder::Array<TypeBuilder::Runtime::Pr
opertyDescriptor> >* result); | 60 void getProperties(ErrorString*, const String& objectId, bool ownProperties,
bool accessorPropertiesOnly, RefPtr<TypeBuilder::Array<TypeBuilder::Runtime::Pr
opertyDescriptor> >* result); |
| 84 void getInternalProperties(ErrorString*, const String& objectId, RefPtr<Type
Builder::Array<TypeBuilder::Runtime::InternalPropertyDescriptor> >* result); | 61 void getInternalProperties(ErrorString*, const String& objectId, RefPtr<Type
Builder::Array<TypeBuilder::Runtime::InternalPropertyDescriptor> >* result); |
| 85 Node* nodeForObjectId(const String& objectId); | 62 Node* nodeForObjectId(const String& objectId); |
| 86 void releaseObject(const String& objectId); | 63 void releaseObject(const String& objectId); |
| 87 | 64 |
| 88 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > wrapCallFr
ames(const ScriptValue&); | 65 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > wrapCallFr
ames(const ScriptValue&); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 101 friend InjectedScript InjectedScriptManager::injectedScriptFor(ScriptState*)
; | 78 friend InjectedScript InjectedScriptManager::injectedScriptFor(ScriptState*)
; |
| 102 InjectedScript(ScriptObject, InspectedStateAccessCheck); | 79 InjectedScript(ScriptObject, InspectedStateAccessCheck); |
| 103 | 80 |
| 104 ScriptValue nodeAsScriptValue(Node*); | 81 ScriptValue nodeAsScriptValue(Node*); |
| 105 }; | 82 }; |
| 106 | 83 |
| 107 | 84 |
| 108 } // namespace WebCore | 85 } // namespace WebCore |
| 109 | 86 |
| 110 #endif | 87 #endif |
| OLD | NEW |