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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 namespace { | 43 namespace { |
44 | 44 |
45 enum DOMBreakpointType { | 45 enum DOMBreakpointType { |
46 SubtreeModified = 0, | 46 SubtreeModified = 0, |
47 AttributeModified, | 47 AttributeModified, |
48 NodeRemoved, | 48 NodeRemoved, |
49 DOMBreakpointTypesCount | 49 DOMBreakpointTypesCount |
50 }; | 50 }; |
51 | 51 |
52 static const char* const listenerEventCategoryType = "listener:"; | 52 static const char listenerEventCategoryType[] = "listener:"; |
53 static const char* const instrumentationEventCategoryType = "instrumentation:"; | 53 static const char instrumentationEventCategoryType[] = "instrumentation:"; |
54 | 54 |
55 const uint32_t inheritableDOMBreakpointTypesMask = (1 << SubtreeModified); | 55 const uint32_t inheritableDOMBreakpointTypesMask = (1 << SubtreeModified); |
56 const int domBreakpointDerivedTypeShift = 16; | 56 const int domBreakpointDerivedTypeShift = 16; |
57 | 57 |
58 } | 58 } |
59 | 59 |
60 namespace WebCore { | 60 namespace WebCore { |
61 | 61 |
62 static const char* const requestAnimationFrameEventName = "requestAnimationFrame
"; | 62 static const char requestAnimationFrameEventName[] = "requestAnimationFrame"; |
63 static const char* const cancelAnimationFrameEventName = "cancelAnimationFrame"; | 63 static const char cancelAnimationFrameEventName[] = "cancelAnimationFrame"; |
64 static const char* const animationFrameFiredEventName = "animationFrameFired"; | 64 static const char animationFrameFiredEventName[] = "animationFrameFired"; |
65 static const char* const setTimerEventName = "setTimer"; | 65 static const char setTimerEventName[] = "setTimer"; |
66 static const char* const clearTimerEventName = "clearTimer"; | 66 static const char clearTimerEventName[] = "clearTimer"; |
67 static const char* const timerFiredEventName = "timerFired"; | 67 static const char timerFiredEventName[] = "timerFired"; |
68 static const char* const webglErrorFiredEventName = "webglErrorFired"; | 68 static const char webglErrorFiredEventName[] = "webglErrorFired"; |
69 static const char* const webglWarningFiredEventName = "webglWarningFired"; | 69 static const char webglWarningFiredEventName[] = "webglWarningFired"; |
70 static const char* const webglErrorNameProperty = "webglErrorName"; | 70 static const char webglErrorNameProperty[] = "webglErrorName"; |
71 | 71 |
72 namespace DOMDebuggerAgentState { | 72 namespace DOMDebuggerAgentState { |
73 static const char eventListenerBreakpoints[] = "eventListenerBreakpoints"; | 73 static const char eventListenerBreakpoints[] = "eventListenerBreakpoints"; |
74 static const char pauseOnAllXHRs[] = "pauseOnAllXHRs"; | 74 static const char pauseOnAllXHRs[] = "pauseOnAllXHRs"; |
75 static const char xhrBreakpoints[] = "xhrBreakpoints"; | 75 static const char xhrBreakpoints[] = "xhrBreakpoints"; |
76 } | 76 } |
77 | 77 |
78 PassOwnPtr<InspectorDOMDebuggerAgent> InspectorDOMDebuggerAgent::create(Instrume
ntingAgents* instrumentingAgents, InspectorCompositeState* inspectorState, Inspe
ctorDOMAgent* domAgent, InspectorDebuggerAgent* debuggerAgent) | 78 PassOwnPtr<InspectorDOMDebuggerAgent> InspectorDOMDebuggerAgent::create(Instrume
ntingAgents* instrumentingAgents, InspectorCompositeState* inspectorState, Inspe
ctorDOMAgent* domAgent, InspectorDebuggerAgent* debuggerAgent) |
79 { | 79 { |
80 return adoptPtr(new InspectorDOMDebuggerAgent(instrumentingAgents, inspector
State, domAgent, debuggerAgent)); | 80 return adoptPtr(new InspectorDOMDebuggerAgent(instrumentingAgents, inspector
State, domAgent, debuggerAgent)); |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 } | 514 } |
515 | 515 |
516 void InspectorDOMDebuggerAgent::clear() | 516 void InspectorDOMDebuggerAgent::clear() |
517 { | 517 { |
518 m_domBreakpoints.clear(); | 518 m_domBreakpoints.clear(); |
519 m_pauseInNextEventListener = false; | 519 m_pauseInNextEventListener = false; |
520 } | 520 } |
521 | 521 |
522 } // namespace WebCore | 522 } // namespace WebCore |
523 | 523 |
OLD | NEW |