当前位置: 首页>>代码示例>>C++>>正文


C++ retrieveTimelineAgent函数代码示例

本文整理汇总了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;
}
开发者ID:dslab-epfl,项目名称:warr,代码行数:7,代码来源:InspectorInstrumentation.cpp

示例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);
}
开发者ID:dslab-epfl,项目名称:warr,代码行数:7,代码来源:InspectorInstrumentation.cpp

示例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();
}
开发者ID:xiaolu31,项目名称:webkit-node,代码行数:7,代码来源:InspectorInstrumentation.cpp

示例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);
}
开发者ID:dslab-epfl,项目名称:warr,代码行数:9,代码来源:InspectorInstrumentation.cpp

示例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();
}
开发者ID:dslab-epfl,项目名称:warr,代码行数:10,代码来源:InspectorInstrumentation.cpp

示例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();
}
开发者ID:xiaolu31,项目名称:webkit-node,代码行数:11,代码来源:InspectorInstrumentation.cpp

示例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);
}
开发者ID:dslab-epfl,项目名称:warr,代码行数:12,代码来源:InspectorInstrumentation.cpp


注:本文中的retrieveTimelineAgent函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。