这篇教程C++ webKitClient函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中webKitClient函数的典型用法代码示例。如果您正苦于以下问题:C++ webKitClient函数的具体用法?C++ webKitClient怎么用?C++ webKitClient使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了webKitClient函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: webKitClientString ChromiumBridge::getFontFamilyForCharacters(const UChar* characters, size_t numCharacters){ if (webKitClient()->sandboxSupport()) return webKitClient()->sandboxSupport()->getFontFamilyForCharacters(characters, numCharacters); WebCString family = WebFontInfo::familyForChars(characters, numCharacters); if (family.data()) return WebString::fromUTF8(family.data()); return WebString();}
开发者ID:jackiekaon,项目名称:owb-mirror,代码行数:11,
示例2: getFileModificationTimebool ChromiumBridge::getFileModificationTime(const String& path, time_t& result){ double modificationTime; if (webKitClient()->fileSystem()) { if (!webKitClient()->fileSystem()->getFileModificationTime(path, modificationTime)) return false; } else { if (!webKitClient()->getFileModificationTime(path, modificationTime)) return false; } result = static_cast<time_t>(modificationTime); return true;}
开发者ID:UIKit0,项目名称:WebkitAIR,代码行数:13,
示例3: adoptPtrvoid SocketStreamHandleInternal::connect(const KURL& url){ m_socket = adoptPtr(webKitClient()->createSocketStreamHandle()); LOG(Network, "connect"); ASSERT(m_socket.get()); m_socket->connect(url, this);}
开发者ID:KDE,项目名称:android-qtwebkit,代码行数:7,
示例4: USELinkHash ChromiumBridge::visitedLinkHash(const KURL& base, const AtomicString& attributeURL){ // Resolve the relative URL using googleurl and pass the absolute URL up to // the embedder. We could create a GURL object from the base and resolve // the relative URL that way, but calling the lower-level functions // directly saves us the string allocation in most cases. url_canon::RawCanonOutput<2048> buffer; url_parse::Parsed parsed;#if USE(GOOGLEURL) const CString& cstr = base.utf8String(); const char* data = cstr.data(); int length = cstr.length(); const url_parse::Parsed& srcParsed = base.parsed();#else // When we're not using GoogleURL, first canonicalize it so we can resolve it // below. url_canon::RawCanonOutput<2048> srcCanon; url_parse::Parsed srcParsed; String str = base.string(); if (!url_util::Canonicalize(str.characters(), str.length(), 0, &srcCanon, &srcParsed)) return 0; const char* data = srcCanon.data(); int length = srcCanon.length();#endif if (!url_util::ResolveRelative(data, length, srcParsed, attributeURL.characters(), attributeURL.length(), 0, &buffer, &parsed)) return 0; // Invalid resolved URL. return webKitClient()->visitedLinkHash(buffer.data(), buffer.length());}
开发者ID:jackiekaon,项目名称:owb-mirror,代码行数:33,
示例5: m_localPortPlatformMessagePortChannel::PlatformMessagePortChannel() : m_localPort(0){ m_webChannel = webKitClient()->createMessagePortChannel(); if (m_webChannel) m_webChannel->setClient(this);}
开发者ID:flwh,项目名称:Alcatel_OT_985_kernel,代码行数:7,
示例6: clipboardReadHTMLvoid ChromiumBridge::clipboardReadHTML( PasteboardPrivate::ClipboardBuffer buffer, String* htmlText, KURL* sourceURL){ WebURL url; *htmlText = webKitClient()->clipboard()->readHTML( static_cast<WebClipboard::Buffer>(buffer), &url); *sourceURL = url;}
开发者ID:jackiekaon,项目名称:owb-mirror,代码行数:9,
示例7: m_providerAudioDestinationChromium::AudioDestinationChromium(AudioSourceProvider& provider, double sampleRate) : m_provider(provider) , m_renderBus(numberOfChannels, renderBufferSize, false) , m_sampleRate(sampleRate) , m_isPlaying(false){ m_audioDevice = adoptPtr(webKitClient()->createAudioDevice(callbackBufferSize, numberOfChannels, sampleRate, this)); ASSERT(m_audioDevice.get());}
开发者ID:0omega,项目名称:platform_external_webkit,代码行数:9,
示例8: getCookieJarstatic WebCookieJar* getCookieJar(const Document* document){ WebFrameImpl* frameImpl = WebFrameImpl::fromFrame(document->frame()); if (!frameImpl || !frameImpl->client()) return 0; WebCookieJar* cookieJar = frameImpl->client()->cookieJar(); if (!cookieJar) cookieJar = webKitClient()->cookieJar(); return cookieJar;}
开发者ID:jackiekaon,项目名称:owb-mirror,代码行数:10,
示例9: webImagevoid ChromiumBridge::clipboardWriteImage(NativeImagePtr image, const KURL& sourceURL, const String& title){#if WEBKIT_USING_SKIA WebImage webImage(*image);#else WebImage webImage(image);#endif webKitClient()->clipboard()->writeImage(webImage, sourceURL, title);}
开发者ID:jackiekaon,项目名称:owb-mirror,代码行数:11,
示例10: CRASHvoid ResourceHandleInternal::start(){ if (m_state != ConnectionStateNew) CRASH(); m_state = ConnectionStateStarted; m_loader.set(webKitClient()->createURLLoader()); ASSERT(m_loader.get()); WrappedResourceRequest wrappedRequest(m_request); wrappedRequest.setAllowStoredCredentials(allowStoredCredentials()); m_loader->loadAsynchronously(wrappedRequest, this);}
开发者ID:mcgrawp,项目名称:webkit-webcl,代码行数:13,
示例11: loader// staticvoid ResourceHandle::loadResourceSynchronously(NetworkingContext* context, const ResourceRequest& request, StoredCredentials storedCredentials, ResourceError& error, ResourceResponse& response, Vector<char>& data){ OwnPtr<WebURLLoader> loader(webKitClient()->createURLLoader()); ASSERT(loader.get()); WrappedResourceRequest requestIn(request); requestIn.setAllowStoredCredentials(storedCredentials == AllowStoredCredentials); WrappedResourceResponse responseOut(response); WebURLError errorOut; WebData dataOut; loader->loadSynchronously(requestIn, responseOut, errorOut, dataOut); error = errorOut; data.clear(); data.append(dataOut.data(), dataOut.size());}
开发者ID:mcgrawp,项目名称:webkit-webcl,代码行数:23,
示例12: memoryUsageMBint ChromiumBridge::memoryUsageMB(){ return static_cast<int>(webKitClient()->memoryUsageMB());}
开发者ID:jackiekaon,项目名称:owb-mirror,代码行数:4,
注:本文中的webKitClient函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ webKitPlatformSupport函数代码示例 C++ wdt_keepalive函数代码示例 |