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 static const char kWebglErrorNameProperty[] = "webglErrorName"; | 70 static const char kWebglErrorNameProperty[] = "webglErrorName"; |
71 static const char kScriptBlockedByCSPEventName[] = "scriptBlockedByCSP"; | 71 static const char kScriptBlockedByCSPEventName[] = "scriptBlockedByCSP"; |
72 static const char kCanvasContextCreatedEventName[] = "canvasContextCreated"; | 72 static const char kCanvasContextCreatedEventName[] = "canvasContextCreated"; |
73 | 73 |
74 namespace DOMDebuggerAgentState { | 74 namespace DOMDebuggerAgentState { |
75 static const char kEventListenerBreakpoints[] = "eventListenerBreakpoints"; | 75 static const char kEventListenerBreakpoints[] = "eventListenerBreakpoints"; |
76 static const char kEventTargetAny[] = "*"; | 76 static const char kEventTargetAny[] = "*"; |
77 static const char kPauseOnAllXHRs[] = "pauseOnAllXHRs"; | 77 static const char kPauseOnAllXHRs[] = "pauseOnAllXHRs"; |
78 static const char kXhrBreakpoints[] = "xhrBreakpoints"; | 78 static const char kXhrBreakpoints[] = "xhrBreakpoints"; |
79 static const char kEnabled[] = "enabled"; | 79 static const char kEnabled[] = "enabled"; |
80 } | 80 } // namespace DOMDebuggerAgentState |
81 | 81 |
82 static void CollectEventListeners(v8::Isolate* isolate, | 82 static void CollectEventListeners(v8::Isolate* isolate, |
83 EventTarget* target, | 83 EventTarget* target, |
84 v8::Local<v8::Value> target_wrapper, | 84 v8::Local<v8::Value> target_wrapper, |
85 Node* target_node, | 85 Node* target_node, |
86 bool report_for_all_contexts, | 86 bool report_for_all_contexts, |
87 V8EventListenerInfoList* event_information) { | 87 V8EventListenerInfoList* event_information) { |
88 if (!target->GetExecutionContext()) | 88 if (!target->GetExecutionContext()) |
89 return; | 89 return; |
90 | 90 |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 state_->remove(DOMDebuggerAgentState::kEnabled); | 798 state_->remove(DOMDebuggerAgentState::kEnabled); |
799 instrumenting_agents_->removeInspectorDOMDebuggerAgent(this); | 799 instrumenting_agents_->removeInspectorDOMDebuggerAgent(this); |
800 } | 800 } |
801 } | 801 } |
802 | 802 |
803 void InspectorDOMDebuggerAgent::DidCommitLoadForLocalFrame(LocalFrame*) { | 803 void InspectorDOMDebuggerAgent::DidCommitLoadForLocalFrame(LocalFrame*) { |
804 dom_breakpoints_.clear(); | 804 dom_breakpoints_.clear(); |
805 } | 805 } |
806 | 806 |
807 } // namespace blink | 807 } // namespace blink |
OLD | NEW |