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

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

Issue 1043903003: rAF: Introduce FrameRequestCallbackCollection for managing rAF callbacks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 8 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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 void InspectorDOMDebuggerAgent::didResolvePromise() 481 void InspectorDOMDebuggerAgent::didResolvePromise()
482 { 482 {
483 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(promiseResolvedEven tName, 0), true); 483 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(promiseResolvedEven tName, 0), true);
484 } 484 }
485 485
486 void InspectorDOMDebuggerAgent::didRejectPromise() 486 void InspectorDOMDebuggerAgent::didRejectPromise()
487 { 487 {
488 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(promiseRejectedEven tName, 0), true); 488 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(promiseRejectedEven tName, 0), true);
489 } 489 }
490 490
491 void InspectorDOMDebuggerAgent::didRequestAnimationFrame(Document*, int) 491 void InspectorDOMDebuggerAgent::didRequestAnimationFrame(ExecutionContext*, int)
492 { 492 {
493 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(requestAnimationFra meEventName, 0), true); 493 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(requestAnimationFra meEventName, 0), true);
494 } 494 }
495 495
496 void InspectorDOMDebuggerAgent::didCancelAnimationFrame(Document*, int) 496 void InspectorDOMDebuggerAgent::didCancelAnimationFrame(ExecutionContext*, int)
497 { 497 {
498 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(cancelAnimationFram eEventName, 0), true); 498 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(cancelAnimationFram eEventName, 0), true);
499 } 499 }
500 500
501 void InspectorDOMDebuggerAgent::willFireAnimationFrame(Document*, int) 501 void InspectorDOMDebuggerAgent::willFireAnimationFrame(ExecutionContext*, int)
502 { 502 {
503 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(animationFrameFired EventName, 0), false); 503 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(animationFrameFired EventName, 0), false);
504 } 504 }
505 505
506 void InspectorDOMDebuggerAgent::willHandleEvent(EventTarget* target, Event* even t, EventListener*, bool) 506 void InspectorDOMDebuggerAgent::willHandleEvent(EventTarget* target, Event* even t, EventListener*, bool)
507 { 507 {
508 Node* node = target->toNode(); 508 Node* node = target->toNode();
509 String targetName = node ? node->nodeName() : target->interfaceName(); 509 String targetName = node ? node->nodeName() : target->interfaceName();
510 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(event->type(), &tar getName), false); 510 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(event->type(), &tar getName), false);
511 } 511 }
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 eventData->setString("url", url); 590 eventData->setString("url", url);
591 m_debuggerAgent->breakProgram(InspectorFrontend::Debugger::Reason::XHR, even tData.release()); 591 m_debuggerAgent->breakProgram(InspectorFrontend::Debugger::Reason::XHR, even tData.release());
592 } 592 }
593 593
594 void InspectorDOMDebuggerAgent::clear() 594 void InspectorDOMDebuggerAgent::clear()
595 { 595 {
596 m_domBreakpoints.clear(); 596 m_domBreakpoints.clear();
597 } 597 }
598 598
599 } // namespace blink 599 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDOMDebuggerAgent.h ('k') | Source/core/inspector/InspectorInstrumentation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698