Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: Source/core/inspector/InspectorDOMDebuggerAgent.cpp

Issue 23464095: WTF::notFound looks too much like a local variable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDOMAgent.cpp ('k') | Source/core/inspector/InspectorStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698