| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 public InspectorBackendDispatcher::DOMDebuggerCommandHandler { | 61 public InspectorBackendDispatcher::DOMDebuggerCommandHandler { |
| 62 WTF_MAKE_NONCOPYABLE(InspectorDOMDebuggerAgent); | 62 WTF_MAKE_NONCOPYABLE(InspectorDOMDebuggerAgent); |
| 63 public: | 63 public: |
| 64 static PassOwnPtr<InspectorDOMDebuggerAgent> create(InspectorDOMAgent*, Insp
ectorDebuggerAgent*); | 64 static PassOwnPtr<InspectorDOMDebuggerAgent> create(InspectorDOMAgent*, Insp
ectorDebuggerAgent*); |
| 65 | 65 |
| 66 virtual ~InspectorDOMDebuggerAgent(); | 66 virtual ~InspectorDOMDebuggerAgent(); |
| 67 | 67 |
| 68 // DOMDebugger API for InspectorFrontend | 68 // DOMDebugger API for InspectorFrontend |
| 69 virtual void setXHRBreakpoint(ErrorString*, const String& url) OVERRIDE; | 69 virtual void setXHRBreakpoint(ErrorString*, const String& url) OVERRIDE; |
| 70 virtual void removeXHRBreakpoint(ErrorString*, const String& url) OVERRIDE; | 70 virtual void removeXHRBreakpoint(ErrorString*, const String& url) OVERRIDE; |
| 71 virtual void setEventListenerBreakpoint(ErrorString*, const String& eventNam
e, const String* targetName) OVERRIDE; | 71 virtual void setEventListenerBreakpoint(ErrorString*, const String& eventNam
e) OVERRIDE; |
| 72 virtual void removeEventListenerBreakpoint(ErrorString*, const String& event
Name, const String* targetName) OVERRIDE; | 72 virtual void removeEventListenerBreakpoint(ErrorString*, const String& event
Name) OVERRIDE; |
| 73 virtual void setInstrumentationBreakpoint(ErrorString*, const String& eventN
ame) OVERRIDE; | 73 virtual void setInstrumentationBreakpoint(ErrorString*, const String& eventN
ame) OVERRIDE; |
| 74 virtual void removeInstrumentationBreakpoint(ErrorString*, const String& eve
ntName) OVERRIDE; | 74 virtual void removeInstrumentationBreakpoint(ErrorString*, const String& eve
ntName) OVERRIDE; |
| 75 virtual void setDOMBreakpoint(ErrorString*, int nodeId, const String& type)
OVERRIDE; | 75 virtual void setDOMBreakpoint(ErrorString*, int nodeId, const String& type)
OVERRIDE; |
| 76 virtual void removeDOMBreakpoint(ErrorString*, int nodeId, const String& typ
e) OVERRIDE; | 76 virtual void removeDOMBreakpoint(ErrorString*, int nodeId, const String& typ
e) OVERRIDE; |
| 77 | 77 |
| 78 // InspectorInstrumentation API | 78 // InspectorInstrumentation API |
| 79 void willInsertDOMNode(Node* parent); | 79 void willInsertDOMNode(Node* parent); |
| 80 void didInvalidateStyleAttr(Node*); | 80 void didInvalidateStyleAttr(Node*); |
| 81 void didInsertDOMNode(Node*); | 81 void didInsertDOMNode(Node*); |
| 82 void willRemoveDOMNode(Node*); | 82 void willRemoveDOMNode(Node*); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 97 | 97 |
| 98 void didProcessTask(); | 98 void didProcessTask(); |
| 99 | 99 |
| 100 virtual void clearFrontend() OVERRIDE; | 100 virtual void clearFrontend() OVERRIDE; |
| 101 virtual void discardAgent() OVERRIDE; | 101 virtual void discardAgent() OVERRIDE; |
| 102 | 102 |
| 103 private: | 103 private: |
| 104 InspectorDOMDebuggerAgent(InspectorDOMAgent*, InspectorDebuggerAgent*); | 104 InspectorDOMDebuggerAgent(InspectorDOMAgent*, InspectorDebuggerAgent*); |
| 105 | 105 |
| 106 void pauseOnNativeEventIfNeeded(PassRefPtr<JSONObject> eventData, bool synch
ronous); | 106 void pauseOnNativeEventIfNeeded(PassRefPtr<JSONObject> eventData, bool synch
ronous); |
| 107 PassRefPtr<JSONObject> preparePauseOnNativeEventData(const String& eventName
, const AtomicString* targetName); | 107 PassRefPtr<JSONObject> preparePauseOnNativeEventData(bool isDOMEvent, const
String& eventName); |
| 108 | 108 |
| 109 // InspectorDOMAgent::Listener implementation. | 109 // InspectorDOMAgent::Listener implementation. |
| 110 virtual void domAgentWasEnabled() OVERRIDE; | 110 virtual void domAgentWasEnabled() OVERRIDE; |
| 111 virtual void domAgentWasDisabled() OVERRIDE; | 111 virtual void domAgentWasDisabled() OVERRIDE; |
| 112 | 112 |
| 113 // InspectorDebuggerAgent::Listener implementation. | 113 // InspectorDebuggerAgent::Listener implementation. |
| 114 virtual void debuggerWasEnabled() OVERRIDE; | 114 virtual void debuggerWasEnabled() OVERRIDE; |
| 115 virtual void debuggerWasDisabled() OVERRIDE; | 115 virtual void debuggerWasDisabled() OVERRIDE; |
| 116 virtual void stepInto() OVERRIDE; | 116 virtual void stepInto() OVERRIDE; |
| 117 virtual void didPause() OVERRIDE; | 117 virtual void didPause() OVERRIDE; |
| 118 void disable(); | 118 void disable(); |
| 119 | 119 |
| 120 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion
, JSONObject* description); | 120 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion
, JSONObject* description); |
| 121 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set); | 121 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set); |
| 122 bool hasBreakpoint(Node*, int type); | 122 bool hasBreakpoint(Node*, int type); |
| 123 void setBreakpoint(ErrorString*, const String& eventName, const String* targ
etName); | 123 void setBreakpoint(ErrorString*, const String& eventName); |
| 124 void removeBreakpoint(ErrorString*, const String& eventName, const String* t
argetName); | 124 void removeBreakpoint(ErrorString*, const String& eventName); |
| 125 | 125 |
| 126 void clear(); | 126 void clear(); |
| 127 | 127 |
| 128 InspectorDOMAgent* m_domAgent; | 128 InspectorDOMAgent* m_domAgent; |
| 129 InspectorDebuggerAgent* m_debuggerAgent; | 129 InspectorDebuggerAgent* m_debuggerAgent; |
| 130 HashMap<Node*, uint32_t> m_domBreakpoints; | 130 HashMap<Node*, uint32_t> m_domBreakpoints; |
| 131 bool m_pauseInNextEventListener; | 131 bool m_pauseInNextEventListener; |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 } // namespace WebCore | 134 } // namespace WebCore |
| 135 | 135 |
| 136 | 136 |
| 137 #endif // !defined(InspectorDOMDebuggerAgent_h) | 137 #endif // !defined(InspectorDOMDebuggerAgent_h) |
| OLD | NEW |