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


C++ EventQueue::enqueueEvent方法代码示例

本文整理汇总了C++中EventQueue::enqueueEvent方法的典型用法代码示例。如果您正苦于以下问题:C++ EventQueue::enqueueEvent方法的具体用法?C++ EventQueue::enqueueEvent怎么用?C++ EventQueue::enqueueEvent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EventQueue的用法示例。


在下文中一共展示了EventQueue::enqueueEvent方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: enqueueEvent

void IDBDatabase::enqueueEvent(PassRefPtr<Event> event)
{
    ASSERT(scriptExecutionContext()->isDocument());
    EventQueue* eventQueue = static_cast<Document*>(scriptExecutionContext())->eventQueue();
    event->setTarget(this);
    eventQueue->enqueueEvent(event.get());
    m_enqueuedEvents.append(event);
}
开发者ID:vizcount,项目名称:work,代码行数:8,代码来源:IDBDatabase.cpp

示例2: enqueueEvent

void IDBDatabase::enqueueEvent(Event* event) {
  DCHECK(!m_contextStopped);
  DCHECK(getExecutionContext());
  EventQueue* eventQueue = getExecutionContext()->getEventQueue();
  event->setTarget(this);
  eventQueue->enqueueEvent(event);
  m_enqueuedEvents.append(event);
}
开发者ID:ollie314,项目名称:chromium,代码行数:8,代码来源:IDBDatabase.cpp

示例3: enqueueEvent

void IDBDatabase::enqueueEvent(PassRefPtr<Event> event)
{
    ASSERT(!m_contextStopped);
    ASSERT(scriptExecutionContext());
    EventQueue* eventQueue = scriptExecutionContext()->eventQueue();
    event->setTarget(this);
    eventQueue->enqueueEvent(event.get());
    m_enqueuedEvents.append(event);
}
开发者ID:KnightSwarm,项目名称:WebKitTi,代码行数:9,代码来源:IDBDatabase.cpp

示例4: enqueueEvent

void IDBTransaction::enqueueEvent(PassRefPtrWillBeRawPtr<Event> event)
{
    ASSERT_WITH_MESSAGE(m_state != Finished, "A finished transaction tried to enqueue an event of type %s.", event->type().utf8().data());
    if (m_contextStopped || !executionContext())
        return;

    EventQueue* eventQueue = executionContext()->eventQueue();
    event->setTarget(this);
    eventQueue->enqueueEvent(event);
}
开发者ID:alexanderbill,项目名称:blink-crosswalk,代码行数:10,代码来源:IDBTransaction.cpp

示例5: enqueueEvent

void IDBTransaction::enqueueEvent(Event* event) {
  DCHECK_NE(m_state, Finished)
      << "A finished transaction tried to enqueue an event of type "
      << event->type() << ".";
  if (!getExecutionContext())
    return;

  EventQueue* eventQueue = getExecutionContext()->getEventQueue();
  event->setTarget(this);
  eventQueue->enqueueEvent(event);
}
开发者ID:mirror,项目名称:chromium,代码行数:11,代码来源:IDBTransaction.cpp

示例6: enqueueEvent

void IDBTransaction::enqueueEvent(PassRefPtr<Event> event)
{
    ASSERT(!m_finished);
    if (!scriptExecutionContext())
        return;

    /// M: scriptExecutionContext can be 'document' or 'worker' context
    EventQueue* eventQueue = scriptExecutionContext()->eventQueue();

    event->setTarget(this);
    eventQueue->enqueueEvent(event);
}
开发者ID:kupyxa4444,项目名称:a3000_kernel_jb,代码行数:12,代码来源:IDBTransaction.cpp

示例7: enqueueEvent

void IDBRequest::enqueueEvent(PassRefPtr<Event> event)
{
    ASSERT(!m_finished);
    ASSERT(m_readyState < DONE);
    if (!scriptExecutionContext())
        return;

    ASSERT(scriptExecutionContext()->isDocument());
    EventQueue* eventQueue = static_cast<Document*>(scriptExecutionContext())->eventQueue();
    event->setTarget(this);
    eventQueue->enqueueEvent(event.get());
    m_enqueuedEvents.append(event);
}
开发者ID:1833183060,项目名称:wke,代码行数:13,代码来源:IDBRequest.cpp

示例8: enqueueEvent

void IDBRequest::enqueueEvent(PassRefPtr<Event> event)
{
    ASSERT(m_readyState == PENDING || m_readyState == DONE);

    if (m_contextStopped || !scriptExecutionContext())
        return;

    ASSERT_WITH_MESSAGE(m_readyState == PENDING || m_didFireUpgradeNeededEvent, "When queueing event %s, m_readyState was %d", event->type().string().utf8().data(), m_readyState);

    EventQueue* eventQueue = scriptExecutionContext()->eventQueue();
    event->setTarget(this);

    if (eventQueue->enqueueEvent(event.get()))
        m_enqueuedEvents.append(event);
}
开发者ID:yoavweiss,项目名称:RespImg-WebKit,代码行数:15,代码来源:IDBRequest.cpp

示例9: enqueueEvent

void IDBRequest::enqueueEvent(PassRefPtr<Event> event)
{
    ASSERT(m_readyState == PENDING || m_readyState == DONE);

    if (m_contextStopped || !executionContext())
        return;

    ASSERT_WITH_MESSAGE(m_readyState == PENDING || m_didFireUpgradeNeededEvent, "When queueing event %s, m_readyState was %d", event->type().string().utf8().data(), m_readyState);

    EventQueue* eventQueue = executionContext()->eventQueue();
    event->setTarget(this);

    // Keep track of enqueued events in case we need to abort prior to dispatch,
    // in which case these must be cancelled. If the events not dispatched for
    // other reasons they must be removed from this list via dequeueEvent().
    if (eventQueue->enqueueEvent(event.get()))
        m_enqueuedEvents.append(event);
}
开发者ID:Metrological,项目名称:chromium,代码行数:18,代码来源:IDBRequest.cpp


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