本文整理汇总了C++中HTMLPlugInImageElement::getAttribute方法的典型用法代码示例。如果您正苦于以下问题:C++ HTMLPlugInImageElement::getAttribute方法的具体用法?C++ HTMLPlugInImageElement::getAttribute怎么用?C++ HTMLPlugInImageElement::getAttribute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTMLPlugInImageElement
的用法示例。
在下文中一共展示了HTMLPlugInImageElement::getAttribute方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: unavailablePluginButtonClicked
void WebChromeClient::unavailablePluginButtonClicked(Element* element, RenderEmbeddedObject::PluginUnavailabilityReason pluginUnavailabilityReason) const
{
#if ENABLE(NETSCAPE_PLUGIN_API)
ASSERT(element->hasTagName(objectTag) || element->hasTagName(embedTag) || element->hasTagName(appletTag));
ASSERT(pluginUnavailabilityReason == RenderEmbeddedObject::PluginMissing || pluginUnavailabilityReason == RenderEmbeddedObject::InsecurePluginVersion || pluginUnavailabilityReason);
HTMLPlugInImageElement* pluginElement = static_cast<HTMLPlugInImageElement*>(element);
String frameURLString = pluginElement->document().frame()->loader().documentLoader()->responseURL().string();
String pageURLString = m_page->mainFrame()->loader().documentLoader()->responseURL().string();
String pluginURLString = pluginElement->document().completeURL(pluginElement->url()).string();
URL pluginspageAttributeURL = element->document().completeURL(stripLeadingAndTrailingHTMLSpaces(pluginElement->getAttribute(pluginspageAttr)));
if (!pluginspageAttributeURL.protocolIsInHTTPFamily())
pluginspageAttributeURL = URL();
m_page->send(Messages::WebPageProxy::UnavailablePluginButtonClicked(pluginUnavailabilityReason, pluginElement->serviceType(), pluginURLString, pluginspageAttributeURL.string(), frameURLString, pageURLString));
#else
UNUSED_PARAM(element);
UNUSED_PARAM(pluginUnavailabilityReason);
#endif // ENABLE(NETSCAPE_PLUGIN_API)
}
示例2: unavailablePluginButtonClicked
void WebChromeClient::unavailablePluginButtonClicked(Element* element, RenderEmbeddedObject::PluginUnavailabilityReason pluginUnavailabilityReason) const
{
ASSERT(element->hasTagName(objectTag) || element->hasTagName(embedTag));
ASSERT(pluginUnavailabilityReason == RenderEmbeddedObject::PluginMissing || pluginUnavailabilityReason == RenderEmbeddedObject::InsecurePluginVersion);
HTMLPlugInImageElement* pluginElement = static_cast<HTMLPlugInImageElement*>(element);
m_page->send(Messages::WebPageProxy::UnavailablePluginButtonClicked(pluginUnavailabilityReason, pluginElement->serviceType(), pluginElement->url(), pluginElement->getAttribute(pluginspageAttr)));
}
示例3: missingPluginButtonClicked
void WebChromeClient::missingPluginButtonClicked(Element* element) const
{
ASSERT(element->hasTagName(objectTag) || element->hasTagName(embedTag));
HTMLPlugInImageElement* pluginElement = static_cast<HTMLPlugInImageElement*>(element);
m_page->send(Messages::WebPageProxy::MissingPluginButtonClicked(pluginElement->serviceType(), pluginElement->url(), pluginElement->getAttribute(pluginspageAttr)));
}