| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 void restore() override; | 95 void restore() override; |
| 96 void didCommitLoadForLocalFrame(LocalFrame*) override; | 96 void didCommitLoadForLocalFrame(LocalFrame*) override; |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 void pauseOnNativeEventIfNeeded(std::unique_ptr<protocol::DictionaryValue> e
ventData, bool synchronous); | 99 void pauseOnNativeEventIfNeeded(std::unique_ptr<protocol::DictionaryValue> e
ventData, bool synchronous); |
| 100 std::unique_ptr<protocol::DictionaryValue> preparePauseOnNativeEventData(con
st String& eventName, const String* targetName); | 100 std::unique_ptr<protocol::DictionaryValue> preparePauseOnNativeEventData(con
st String& eventName, const String* targetName); |
| 101 | 101 |
| 102 protocol::DictionaryValue* eventListenerBreakpoints(); | 102 protocol::DictionaryValue* eventListenerBreakpoints(); |
| 103 protocol::DictionaryValue* xhrBreakpoints(); | 103 protocol::DictionaryValue* xhrBreakpoints(); |
| 104 | 104 |
| 105 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion
, protocol::DictionaryValue* description); | 105 void breakProgramOnDOMEvent(Node* target, int breakpointType, bool insertion
); |
| 106 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set); | 106 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set); |
| 107 bool hasBreakpoint(Node*, int type); | 107 bool hasBreakpoint(Node*, int type); |
| 108 void setBreakpoint(ErrorString*, const String& eventName, const String& targ
etName); | 108 void setBreakpoint(ErrorString*, const String& eventName, const String& targ
etName); |
| 109 void removeBreakpoint(ErrorString*, const String& eventName, const String& t
argetName); | 109 void removeBreakpoint(ErrorString*, const String& eventName, const String& t
argetName); |
| 110 | 110 |
| 111 void didAddBreakpoint(); | 111 void didAddBreakpoint(); |
| 112 void didRemoveBreakpoint(); | 112 void didRemoveBreakpoint(); |
| 113 void setEnabled(bool); | 113 void setEnabled(bool); |
| 114 | 114 |
| 115 void eventListeners(v8::Local<v8::Context>, v8::Local<v8::Value>, const Stri
ng16& objectGroup, protocol::Array<protocol::DOMDebugger::EventListener>* listen
ersArray); | 115 void eventListeners(v8::Local<v8::Context>, v8::Local<v8::Value>, const Stri
ng& objectGroup, protocol::Array<protocol::DOMDebugger::EventListener>* listener
sArray); |
| 116 std::unique_ptr<protocol::DOMDebugger::EventListener> buildObjectForEventLis
tener(v8::Local<v8::Context>, const V8EventListenerInfo&, const String16& object
GroupId); | 116 std::unique_ptr<protocol::DOMDebugger::EventListener> buildObjectForEventLis
tener(v8::Local<v8::Context>, const V8EventListenerInfo&, const String& objectGr
oupId); |
| 117 | 117 |
| 118 v8::Isolate* m_isolate; | 118 v8::Isolate* m_isolate; |
| 119 Member<InspectorDOMAgent> m_domAgent; | 119 Member<InspectorDOMAgent> m_domAgent; |
| 120 v8_inspector::V8InspectorSession* m_v8Session; | 120 v8_inspector::V8InspectorSession* m_v8Session; |
| 121 HeapHashMap<Member<Node>, uint32_t> m_domBreakpoints; | 121 HeapHashMap<Member<Node>, uint32_t> m_domBreakpoints; |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 } // namespace blink | 124 } // namespace blink |
| 125 | 125 |
| 126 | 126 |
| 127 #endif // !defined(InspectorDOMDebuggerAgent_h) | 127 #endif // !defined(InspectorDOMDebuggerAgent_h) |
| OLD | NEW |