本文整理汇总了C++中retrieveTimelineAgent函数的典型用法代码示例。如果您正苦于以下问题:C++ retrieveTimelineAgent函数的具体用法?C++ retrieveTimelineAgent怎么用?C++ retrieveTimelineAgent使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了retrieveTimelineAgent函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: retrieveTimelineAgent
InspectorTimelineAgent* InspectorInstrumentation::retrieveTimelineAgent(const InspectorInstrumentationCookie& cookie)
{
InspectorTimelineAgent* timelineAgent = retrieveTimelineAgent(cookie.first);
if (timelineAgent && timelineAgent->id() == cookie.second)
return timelineAgent;
return 0;
}
示例2: didFinishLoadingImpl
void InspectorInstrumentation::didFinishLoadingImpl(InspectorController* ic, unsigned long identifier, double finishTime)
{
if (InspectorTimelineAgent* timelineAgent = retrieveTimelineAgent(ic))
timelineAgent->didFinishLoadingResource(identifier, false, finishTime);
if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(ic))
resourceAgent->didFinishLoading(identifier, finishTime);
}
示例3: didPaintImpl
void InspectorInstrumentation::didPaintImpl(const InspectorInstrumentationCookie& cookie)
{
if (InspectorTimelineAgent* timelineAgent = retrieveTimelineAgent(cookie))
timelineAgent->didPaint();
if (InspectorPageAgent* pageAgent = cookie.first ? cookie.first->inspectorPageAgent() : 0)
pageAgent->didPaint();
}
示例4: didFailLoadingImpl
void InspectorInstrumentation::didFailLoadingImpl(InspectorController* ic, unsigned long identifier, const ResourceError& error)
{
// FIXME(52282): move this to console agent.
ic->didFailLoading(identifier, error);
if (InspectorTimelineAgent* timelineAgent = retrieveTimelineAgent(ic))
timelineAgent->didFinishLoadingResource(identifier, true, 0);
if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(ic))
resourceAgent->didFailLoading(identifier, error);
}
示例5: didReceiveResourceResponseImpl
void InspectorInstrumentation::didReceiveResourceResponseImpl(const InspectorInstrumentationCookie& cookie, unsigned long identifier, DocumentLoader* loader, const ResourceResponse& response)
{
InspectorController* ic = cookie.first;
if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(ic))
resourceAgent->didReceiveResponse(identifier, loader, response);
// FIXME(52282): move this to console agent.
ic->didReceiveResponse(identifier, response);
if (InspectorTimelineAgent* timelineAgent = retrieveTimelineAgent(cookie))
timelineAgent->didReceiveResourceResponse();
}
示例6: didLayoutImpl
void InspectorInstrumentation::didLayoutImpl(const InspectorInstrumentationCookie& cookie)
{
if (!cookie.first)
return;
if (InspectorTimelineAgent* timelineAgent = retrieveTimelineAgent(cookie))
timelineAgent->didLayout();
if (InspectorPageAgent* pageAgent = cookie.first->inspectorPageAgent())
pageAgent->didLayout();
}
示例7: pauseOnNativeEventIfNeeded
InspectorInstrumentationCookie InspectorInstrumentation::willDispatchEventImpl(InspectorController* inspectorController, const Event& event, DOMWindow* window, Node* node, const Vector<EventContext>& ancestors)
{
pauseOnNativeEventIfNeeded(inspectorController, listenerEventCategoryType, event.type(), false);
int timelineAgentId = 0;
InspectorTimelineAgent* timelineAgent = retrieveTimelineAgent(inspectorController);
if (timelineAgent && eventHasListeners(event.type(), window, node, ancestors)) {
timelineAgent->willDispatchEvent(event);
timelineAgentId = timelineAgent->id();
}
return InspectorInstrumentationCookie(inspectorController, timelineAgentId);
}