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

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

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDOMAgent.cpp ('k') | Source/core/inspector/InspectorDebuggerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698