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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
56 } | 56 } |
57 | 57 |
58 namespace WebCore { | 58 namespace WebCore { |
59 | 59 |
60 static const char requestAnimationFrameEventName[] = "requestAnimationFrame"; | 60 static const char requestAnimationFrameEventName[] = "requestAnimationFrame"; |
61 static const char cancelAnimationFrameEventName[] = "cancelAnimationFrame"; | 61 static const char cancelAnimationFrameEventName[] = "cancelAnimationFrame"; |
62 static const char animationFrameFiredEventName[] = "animationFrameFired"; | 62 static const char animationFrameFiredEventName[] = "animationFrameFired"; |
63 static const char setTimerEventName[] = "setTimer"; | 63 static const char setTimerEventName[] = "setTimer"; |
64 static const char clearTimerEventName[] = "clearTimer"; | 64 static const char clearTimerEventName[] = "clearTimer"; |
65 static const char timerFiredEventName[] = "timerFired"; | 65 static const char timerFiredEventName[] = "timerFired"; |
66 static const char windowCloseEventName[] = "close"; | |
66 static const char customElementCallbackName[] = "customElementCallback"; | 67 static const char customElementCallbackName[] = "customElementCallback"; |
67 static const char webglErrorFiredEventName[] = "webglErrorFired"; | 68 static const char webglErrorFiredEventName[] = "webglErrorFired"; |
68 static const char webglWarningFiredEventName[] = "webglWarningFired"; | 69 static const char webglWarningFiredEventName[] = "webglWarningFired"; |
69 static const char webglErrorNameProperty[] = "webglErrorName"; | 70 static const char webglErrorNameProperty[] = "webglErrorName"; |
70 | 71 |
71 namespace DOMDebuggerAgentState { | 72 namespace DOMDebuggerAgentState { |
72 static const char eventListenerBreakpoints[] = "eventListenerBreakpoints"; | 73 static const char eventListenerBreakpoints[] = "eventListenerBreakpoints"; |
73 static const char eventTargetAny[] = "*"; | 74 static const char eventTargetAny[] = "*"; |
74 static const char pauseOnAllXHRs[] = "pauseOnAllXHRs"; | 75 static const char pauseOnAllXHRs[] = "pauseOnAllXHRs"; |
75 static const char xhrBreakpoints[] = "xhrBreakpoints"; | 76 static const char xhrBreakpoints[] = "xhrBreakpoints"; |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
474 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(animationFrameFired EventName, 0), false); | 475 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(animationFrameFired EventName, 0), false); |
475 } | 476 } |
476 | 477 |
477 void InspectorDOMDebuggerAgent::willHandleEvent(EventTarget* target, Event* even t, EventListener*, bool) | 478 void InspectorDOMDebuggerAgent::willHandleEvent(EventTarget* target, Event* even t, EventListener*, bool) |
478 { | 479 { |
479 Node* node = target->toNode(); | 480 Node* node = target->toNode(); |
480 String targetName = node ? node->nodeName() : target->interfaceName(); | 481 String targetName = node ? node->nodeName() : target->interfaceName(); |
481 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(event->type(), &tar getName), false); | 482 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(event->type(), &tar getName), false); |
482 } | 483 } |
483 | 484 |
485 void InspectorDOMDebuggerAgent::willCloseWindow() | |
486 { | |
487 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(windowCloseEventNam e, nullptr), true); | |
aandrey
2014/07/28 14:08:35
nullptr -> 0
| |
488 } | |
489 | |
484 void InspectorDOMDebuggerAgent::willExecuteCustomElementCallback(Element*) | 490 void InspectorDOMDebuggerAgent::willExecuteCustomElementCallback(Element*) |
485 { | 491 { |
486 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(customElementCallba ckName, 0), false); | 492 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(customElementCallba ckName, 0), false); |
487 } | 493 } |
488 | 494 |
489 void InspectorDOMDebuggerAgent::didFireWebGLError(const String& errorName) | 495 void InspectorDOMDebuggerAgent::didFireWebGLError(const String& errorName) |
490 { | 496 { |
491 RefPtr<JSONObject> eventData = preparePauseOnNativeEventData(webglErrorFired EventName, 0); | 497 RefPtr<JSONObject> eventData = preparePauseOnNativeEventData(webglErrorFired EventName, 0); |
492 if (!eventData) | 498 if (!eventData) |
493 return; | 499 return; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
558 } | 564 } |
559 | 565 |
560 void InspectorDOMDebuggerAgent::clear() | 566 void InspectorDOMDebuggerAgent::clear() |
561 { | 567 { |
562 m_domBreakpoints.clear(); | 568 m_domBreakpoints.clear(); |
563 m_pauseInNextEventListener = false; | 569 m_pauseInNextEventListener = false; |
564 } | 570 } |
565 | 571 |
566 } // namespace WebCore | 572 } // namespace WebCore |
567 | 573 |
OLD | NEW |