本文整理汇总了C++中EventType::getEventUri方法的典型用法代码示例。如果您正苦于以下问题:C++ EventType::getEventUri方法的具体用法?C++ EventType::getEventUri怎么用?C++ EventType::getEventUri使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EventType
的用法示例。
在下文中一共展示了EventType::getEventUri方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: onNavigateComplete
////////////////////////////////////////////////////////////////////////////////
// virtual
void onNavigateComplete(const EventType& event)
{
if(mInitState >= INIT_STATE_NAVIGATE_COMPLETE)
{
if(mInitState < INIT_STATE_RUNNING)
{
setInitState(INIT_STATE_RUNNING);
// Clear the history, so the "back" button doesn't take you back to "about:blank".
LLQtWebKit::getInstance()->clearHistory(mBrowserWindowId);
}
LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER, "navigate_complete");
message.setValue("uri", event.getEventUri());
message.setValueS32("result_code", event.getIntValue());
message.setValue("result_string", event.getStringValue());
message.setValueBoolean("history_back_available", LLQtWebKit::getInstance()->userActionIsEnabled( mBrowserWindowId, LLQtWebKit::UA_NAVIGATE_BACK));
message.setValueBoolean("history_forward_available", LLQtWebKit::getInstance()->userActionIsEnabled( mBrowserWindowId, LLQtWebKit::UA_NAVIGATE_FORWARD));
sendMessage(message);
setStatus(STATUS_LOADED);
}
else if(mInitState == INIT_STATE_NAVIGATING)
{
setInitState(INIT_STATE_NAVIGATE_COMPLETE);
}
}
示例2: onLinkHovered
////////////////////////////////////////////////////////////////////////////////
// virtual
void onLinkHovered( const EventType& eventIn )
{
std::cout
<< "Link hovered, link = " << eventIn.getEventUri()
<< ", title = " << eventIn.getStringValue()
<< ", text = " << eventIn.getStringValue2()
<< std::endl;
};
示例3: onClickLinkHref
////////////////////////////////////////////////////////////////////////////////
// virtual
void onClickLinkHref(const EventType& event)
{
LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER, "click_href");
message.setValue("uri", event.getEventUri());
message.setValue("target", event.getStringValue());
message.setValue("uuid", event.getStringValue2());
sendMessage(message);
}
示例4: onNavigateComplete
////////////////////////////////////////////////////////////////////////////////
// virtual
void LLMediaImplLLMozLib::onNavigateComplete( const EventType& eventIn )
{
// force an update when the page is finished
mNeedsUpdate = true;
// pass in url and HTML response code (200/404 etc.)
LLMediaEvent event( this, eventIn.getEventUri(), eventIn.getIntValue() );
mEventEmitter.update( &LLMediaObserver::onNavigateComplete, event );
}
示例5: onLocationChange
////////////////////////////////////////////////////////////////////////////////
// virtual
void onLocationChange(const EventType& event)
{
if(mInitState >= INIT_STATE_NAVIGATE_COMPLETE)
{
LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER, "location_changed");
message.setValue("uri", event.getEventUri());
sendMessage(message);
}
}
示例6: onClickLinkHref
////////////////////////////////////////////////////////////////////////////////
// virtual
void onClickLinkHref( const EventType& eventIn )
{
std::string uuid = eventIn.getStringValue2();
std::cout << "Event: clicked on link:" << std::endl;
std::cout << " URL:" << eventIn.getEventUri() << std::endl;
std::cout << " target:" << eventIn.getStringValue() << std::endl;
std::cout << " UUID:" << uuid << std::endl;
std::cout << std::endl;
// Since we never actually open the window, send a "proxy window closed" back to webkit to keep it from leaking.
LLQtWebKit::getInstance()->proxyWindowClosed(mBrowserWindowId, uuid);
};
示例7: onNavigateBegin
////////////////////////////////////////////////////////////////////////////////
// virtual
void onNavigateBegin(const EventType& event)
{
if(mInitState >= INIT_STATE_NAVIGATE_COMPLETE)
{
LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER, "navigate_begin");
message.setValue("uri", event.getEventUri());
sendMessage(message);
setStatus(STATUS_LOADING);
}
if(mInitState == INIT_STATE_NAVIGATE_COMPLETE)
{
// Skip the WAIT_REDRAW state now -- with the right background color set, it should no longer be necessary.
// setInitState(INIT_STATE_WAIT_REDRAW);
setInitState(INIT_STATE_WAIT_COMPLETE);
}
}
示例8: onNavigateComplete
////////////////////////////////////////////////////////////////////////////////
// virtual
void onNavigateComplete( const EventType& eventIn )
{
std::cout << "Event: end navigation to " << eventIn.getEventUri() << std::endl;
};
示例9: onNavigateBegin
////////////////////////////////////////////////////////////////////////////////
// virtual
void onNavigateBegin( const EventType& eventIn )
{
std::cout << "Event: begin navigation to " << eventIn.getEventUri() << std::endl;
};
示例10: onNavigateBegin
////////////////////////////////////////////////////////////////////////////////
// virtual
void LLMediaImplLLMozLib::onNavigateBegin( const EventType& eventIn )
{
LLMediaEvent event( this, eventIn.getEventUri() );
mEventEmitter.update( &LLMediaObserver::onNavigateBegin, event );
}
示例11: onLocationChange
////////////////////////////////////////////////////////////////////////////////
// virtual
void LLMediaImplLLMozLib::onLocationChange( const EventType& eventIn )
{
LLMediaEvent event( this, eventIn.getEventUri() );
mEventEmitter.update( &LLMediaObserver::onLocationChange, event );
}
示例12: onClickLinkNoFollow
////////////////////////////////////////////////////////////////////////////////
// virtual
void onClickLinkNoFollow(const EventType& event)
{
LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER, "click_nofollow");
message.setValue("uri", event.getEventUri());
sendMessage(message);
}