예제 #1
0
		////////////////////////////////////////////////////////////////////////////////
		// virtual
		void onLinkHovered( const EventType& eventIn )
		{
			std::cout 
				<< "Link hovered, link = " << eventIn.getEventUri() 
				<< ", title = " << eventIn.getStringValue() 
				<< ", text = " << eventIn.getStringValue2() 
			<< std::endl;
		};
 ////////////////////////////////////////////////////////////////////////////////
 // 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);
 }
예제 #3
0
		////////////////////////////////////////////////////////////////////////////////
		// 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);
		};
예제 #4
0
////////////////////////////////////////////////////////////////////////////////
// virtual
void LLMediaImplLLMozLib::onClickLinkHref( const EventType& eventIn )
{
    LLMediaEvent event( this, eventIn.getStringValue(), eventIn.getStringValue2() );
    mEventEmitter.update( &LLMediaObserver::onClickLinkHref, event );
}