Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Side by Side Diff: Source/core/inspector/InjectedScript.h

Issue 1042853004: [DevTools] Event Listeners Sidebar shows window listeners (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed test Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 RefPtr<TypeBuilder::Debugger::ExceptionDetails>*); 83 RefPtr<TypeBuilder::Debugger::ExceptionDetails>*);
84 void restartFrame(ErrorString*, const ScriptValue& callFrames, const String& callFrameId, RefPtr<JSONObject>* result); 84 void restartFrame(ErrorString*, const ScriptValue& callFrames, const String& callFrameId, RefPtr<JSONObject>* result);
85 void getStepInPositions(ErrorString*, const ScriptValue& callFrames, const S tring& callFrameId, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::Location> > & positions); 85 void getStepInPositions(ErrorString*, const ScriptValue& callFrames, const S tring& callFrameId, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::Location> > & positions);
86 void setVariableValue(ErrorString*, const ScriptValue& callFrames, const Str ing* callFrameIdOpt, const String* functionObjectIdOpt, int scopeNumber, const S tring& variableName, const String& newValueStr); 86 void setVariableValue(ErrorString*, const ScriptValue& callFrames, const Str ing* callFrameIdOpt, const String* functionObjectIdOpt, int scopeNumber, const S tring& variableName, const String& newValueStr);
87 void getFunctionDetails(ErrorString*, const String& functionId, RefPtr<TypeB uilder::Debugger::FunctionDetails>* result); 87 void getFunctionDetails(ErrorString*, const String& functionId, RefPtr<TypeB uilder::Debugger::FunctionDetails>* result);
88 void getGeneratorObjectDetails(ErrorString*, const String& functionId, RefPt r<TypeBuilder::Debugger::GeneratorObjectDetails>* result); 88 void getGeneratorObjectDetails(ErrorString*, const String& functionId, RefPt r<TypeBuilder::Debugger::GeneratorObjectDetails>* result);
89 void getCollectionEntries(ErrorString*, const String& objectId, RefPtr<TypeB uilder::Array<TypeBuilder::Debugger::CollectionEntry> >* result); 89 void getCollectionEntries(ErrorString*, const String& objectId, RefPtr<TypeB uilder::Array<TypeBuilder::Debugger::CollectionEntry> >* result);
90 void getProperties(ErrorString*, const String& objectId, bool ownProperties, bool accessorPropertiesOnly, bool generatePreview, RefPtr<TypeBuilder::Array<Ty peBuilder::Runtime::PropertyDescriptor>>* result); 90 void getProperties(ErrorString*, const String& objectId, bool ownProperties, bool accessorPropertiesOnly, bool generatePreview, RefPtr<TypeBuilder::Array<Ty peBuilder::Runtime::PropertyDescriptor>>* result);
91 void getInternalProperties(ErrorString*, const String& objectId, RefPtr<Type Builder::Array<TypeBuilder::Runtime::InternalPropertyDescriptor> >* result); 91 void getInternalProperties(ErrorString*, const String& objectId, RefPtr<Type Builder::Array<TypeBuilder::Runtime::InternalPropertyDescriptor> >* result);
92 Node* nodeForObjectId(const String& objectId); 92 Node* nodeForObjectId(const String& objectId);
93 EventTarget* eventTargetForObjectId(const String& objectId);
93 void releaseObject(const String& objectId); 94 void releaseObject(const String& objectId);
94 95
95 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > wrapCallFr ames(const ScriptValue&, int asyncOrdinal); 96 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > wrapCallFr ames(const ScriptValue&, int asyncOrdinal);
96 97
97 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapObject(const ScriptValue& , const String& groupName, bool generatePreview = false) const; 98 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapObject(const ScriptValue& , const String& groupName, bool generatePreview = false) const;
98 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapTable(const ScriptValue& table, const ScriptValue& columns) const; 99 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapTable(const ScriptValue& table, const ScriptValue& columns) const;
99 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapNode(Node*, const String& groupName); 100 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapNode(Node*, const String& groupName);
100 ScriptValue findObjectById(const String& objectId) const; 101 ScriptValue findObjectById(const String& objectId) const;
101 102
102 void releaseObjectGroup(const String&); 103 void releaseObjectGroup(const String&);
103 104
104 void setCustomObjectFormatterEnabled(bool); 105 void setCustomObjectFormatterEnabled(bool);
105 106
106 private: 107 private:
107 friend class InjectedScriptModule; 108 friend class InjectedScriptModule;
108 friend InjectedScript InjectedScriptManager::injectedScriptFor(ScriptState*) ; 109 friend InjectedScript InjectedScriptManager::injectedScriptFor(ScriptState*) ;
109 InjectedScript(ScriptValue, InspectedStateAccessCheck, PassRefPtr<InjectedSc riptNative>); 110 InjectedScript(ScriptValue, InspectedStateAccessCheck, PassRefPtr<InjectedSc riptNative>);
110 111
111 ScriptValue nodeAsScriptValue(Node*); 112 ScriptValue nodeAsScriptValue(Node*);
112 113
113 RefPtr<InjectedScriptNative> m_native; 114 RefPtr<InjectedScriptNative> m_native;
114 }; 115 };
115 116
116 } // namespace blink 117 } // namespace blink
117 118
118 #endif 119 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698