OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 // DOMDebugger API for InspectorFrontend | 71 // DOMDebugger API for InspectorFrontend |
72 void setXHRBreakpoint(ErrorString*, const String& url) override; | 72 void setXHRBreakpoint(ErrorString*, const String& url) override; |
73 void removeXHRBreakpoint(ErrorString*, const String& url) override; | 73 void removeXHRBreakpoint(ErrorString*, const String& url) override; |
74 void setEventListenerBreakpoint(ErrorString*, const String& eventName, const
String* targetName) override; | 74 void setEventListenerBreakpoint(ErrorString*, const String& eventName, const
String* targetName) override; |
75 void removeEventListenerBreakpoint(ErrorString*, const String& eventName, co
nst String* targetName) override; | 75 void removeEventListenerBreakpoint(ErrorString*, const String& eventName, co
nst String* targetName) override; |
76 void setInstrumentationBreakpoint(ErrorString*, const String& eventName) ove
rride; | 76 void setInstrumentationBreakpoint(ErrorString*, const String& eventName) ove
rride; |
77 void removeInstrumentationBreakpoint(ErrorString*, const String& eventName)
override; | 77 void removeInstrumentationBreakpoint(ErrorString*, const String& eventName)
override; |
78 void setDOMBreakpoint(ErrorString*, int nodeId, const String& type) override
; | 78 void setDOMBreakpoint(ErrorString*, int nodeId, const String& type) override
; |
79 void removeDOMBreakpoint(ErrorString*, int nodeId, const String& type) overr
ide; | 79 void removeDOMBreakpoint(ErrorString*, int nodeId, const String& type) overr
ide; |
80 void getEventListeners(ErrorString*, const String& objectId, RefPtr<TypeBuil
der::Array<TypeBuilder::DOMDebugger::EventListener>>& result) override; | 80 void getEventListeners(ErrorString*, const String& objectId, const bool* res
olveFrameworkHandlers, RefPtr<TypeBuilder::Array<TypeBuilder::DOMDebugger::Event
Listener>>& result) override; |
81 // InspectorInstrumentation API | 81 // InspectorInstrumentation API |
82 void willInsertDOMNode(Node* parent); | 82 void willInsertDOMNode(Node* parent); |
83 void didInvalidateStyleAttr(Node*); | 83 void didInvalidateStyleAttr(Node*); |
84 void didInsertDOMNode(Node*); | 84 void didInsertDOMNode(Node*); |
85 void willRemoveDOMNode(Node*); | 85 void willRemoveDOMNode(Node*); |
86 void didRemoveDOMNode(Node*); | 86 void didRemoveDOMNode(Node*); |
87 void willModifyDOMAttr(Element*, const AtomicString&, const AtomicString&); | 87 void willModifyDOMAttr(Element*, const AtomicString&, const AtomicString&); |
88 void willSetInnerHTML(); | 88 void willSetInnerHTML(); |
89 void willSendXMLHttpRequest(const String& url); | 89 void willSendXMLHttpRequest(const String& url); |
90 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl
eShot); | 90 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl
eShot); |
(...skipping 30 matching lines...) Expand all Loading... |
121 void didCreatePromise() override; | 121 void didCreatePromise() override; |
122 void didResolvePromise() override; | 122 void didResolvePromise() override; |
123 void didRejectPromise() override; | 123 void didRejectPromise() override; |
124 | 124 |
125 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion
, JSONObject* description); | 125 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion
, JSONObject* description); |
126 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set); | 126 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set); |
127 bool hasBreakpoint(Node*, int type); | 127 bool hasBreakpoint(Node*, int type); |
128 void setBreakpoint(ErrorString*, const String& eventName, const String* targ
etName); | 128 void setBreakpoint(ErrorString*, const String& eventName, const String* targ
etName); |
129 void removeBreakpoint(ErrorString*, const String& eventName, const String* t
argetName); | 129 void removeBreakpoint(ErrorString*, const String& eventName, const String* t
argetName); |
130 | 130 |
131 PassRefPtr<TypeBuilder::DOMDebugger::EventListener> buildObjectForEventListe
ner(const RegisteredEventListener&, const AtomicString& eventType, EventTarget*,
const String& objectGroupId); | 131 void eventListeners(ExecutionContext*, InjectedScript&, EventTarget*, v8::Lo
cal<v8::Value>, const String& objectGroup, bool filterFrameworkHandlers, RefPtr<
TypeBuilder::Array<TypeBuilder::DOMDebugger::EventListener>>& listenersArray); |
| 132 void frameworkEventListeners(ExecutionContext*, InjectedScript&, v8::Local<v
8::Value>, const String& objectGroup, RefPtr<TypeBuilder::Array<TypeBuilder::DOM
Debugger::EventListener>>& listenersArray); |
| 133 PassRefPtr<TypeBuilder::DOMDebugger::EventListener> buildObjectForEventListe
ner(v8::Local<v8::Object> handler, bool useCapture, const String& type, Executio
nContext*, const String& objectGroupId); |
132 | 134 |
133 void clear(); | 135 void clear(); |
134 | 136 |
135 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; | 137 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; |
136 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; | 138 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |
137 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; | 139 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; |
138 WillBeHeapHashMap<RawPtrWillBeMember<Node>, uint32_t> m_domBreakpoints; | 140 WillBeHeapHashMap<RawPtrWillBeMember<Node>, uint32_t> m_domBreakpoints; |
139 }; | 141 }; |
140 | 142 |
141 } // namespace blink | 143 } // namespace blink |
142 | 144 |
143 | 145 |
144 #endif // !defined(InspectorDOMDebuggerAgent_h) | 146 #endif // !defined(InspectorDOMDebuggerAgent_h) |
OLD | NEW |