| 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 } | 390 } |
| 391 | 391 |
| 392 PassRefPtr<JSONObject> InspectorDOMDebuggerAgent::preparePauseOnNativeEventData(
bool isDOMEvent, const String& eventName) | 392 PassRefPtr<JSONObject> InspectorDOMDebuggerAgent::preparePauseOnNativeEventData(
bool isDOMEvent, const String& eventName) |
| 393 { | 393 { |
| 394 String fullEventName = (isDOMEvent ? listenerEventCategoryType : instrumenta
tionEventCategoryType) + eventName; | 394 String fullEventName = (isDOMEvent ? listenerEventCategoryType : instrumenta
tionEventCategoryType) + eventName; |
| 395 if (m_pauseInNextEventListener) | 395 if (m_pauseInNextEventListener) |
| 396 m_pauseInNextEventListener = false; | 396 m_pauseInNextEventListener = false; |
| 397 else { | 397 else { |
| 398 RefPtr<JSONObject> eventListenerBreakpoints = m_state->getObject(DOMDebu
ggerAgentState::eventListenerBreakpoints); | 398 RefPtr<JSONObject> eventListenerBreakpoints = m_state->getObject(DOMDebu
ggerAgentState::eventListenerBreakpoints); |
| 399 if (eventListenerBreakpoints->find(fullEventName) == eventListenerBreakp
oints->end()) | 399 if (eventListenerBreakpoints->find(fullEventName) == eventListenerBreakp
oints->end()) |
| 400 return 0; | 400 return nullptr; |
| 401 } | 401 } |
| 402 | 402 |
| 403 RefPtr<JSONObject> eventData = JSONObject::create(); | 403 RefPtr<JSONObject> eventData = JSONObject::create(); |
| 404 eventData->setString("eventName", fullEventName); | 404 eventData->setString("eventName", fullEventName); |
| 405 return eventData.release(); | 405 return eventData.release(); |
| 406 } | 406 } |
| 407 | 407 |
| 408 void InspectorDOMDebuggerAgent::didInstallTimer(ExecutionContext*, int, int, boo
l) | 408 void InspectorDOMDebuggerAgent::didInstallTimer(ExecutionContext*, int, int, boo
l) |
| 409 { | 409 { |
| 410 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(false, setTimerEven
tName), true); | 410 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(false, setTimerEven
tName), true); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 } | 517 } |
| 518 | 518 |
| 519 void InspectorDOMDebuggerAgent::clear() | 519 void InspectorDOMDebuggerAgent::clear() |
| 520 { | 520 { |
| 521 m_domBreakpoints.clear(); | 521 m_domBreakpoints.clear(); |
| 522 m_pauseInNextEventListener = false; | 522 m_pauseInNextEventListener = false; |
| 523 } | 523 } |
| 524 | 524 |
| 525 } // namespace WebCore | 525 } // namespace WebCore |
| 526 | 526 |
| OLD | NEW |