| 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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 pauseOnNativeEventIfNeeded(eventData.release(), m_debuggerAgent->canBreakPro
gram()); | 452 pauseOnNativeEventIfNeeded(eventData.release(), m_debuggerAgent->canBreakPro
gram()); |
| 453 } | 453 } |
| 454 | 454 |
| 455 void InspectorDOMDebuggerAgent::didFireWebGLWarning() | 455 void InspectorDOMDebuggerAgent::didFireWebGLWarning() |
| 456 { | 456 { |
| 457 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(false, webglWarning
FiredEventName), m_debuggerAgent->canBreakProgram()); | 457 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(false, webglWarning
FiredEventName), m_debuggerAgent->canBreakProgram()); |
| 458 } | 458 } |
| 459 | 459 |
| 460 void InspectorDOMDebuggerAgent::didFireWebGLErrorOrWarning(const String& message
) | 460 void InspectorDOMDebuggerAgent::didFireWebGLErrorOrWarning(const String& message
) |
| 461 { | 461 { |
| 462 if (message.findIgnoringCase("error") != WTF::notFound) | 462 if (message.findIgnoringCase("error") != WTF::kNotFound) |
| 463 didFireWebGLError(String()); | 463 didFireWebGLError(String()); |
| 464 else | 464 else |
| 465 didFireWebGLWarning(); | 465 didFireWebGLWarning(); |
| 466 } | 466 } |
| 467 | 467 |
| 468 void InspectorDOMDebuggerAgent::setXHRBreakpoint(ErrorString*, const String& url
) | 468 void InspectorDOMDebuggerAgent::setXHRBreakpoint(ErrorString*, const String& url
) |
| 469 { | 469 { |
| 470 if (url.isEmpty()) { | 470 if (url.isEmpty()) { |
| 471 m_state->setBoolean(DOMDebuggerAgentState::pauseOnAllXHRs, true); | 471 m_state->setBoolean(DOMDebuggerAgentState::pauseOnAllXHRs, true); |
| 472 return; | 472 return; |
| (...skipping 41 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 |