本文整理汇总了C++中coreipc::ArgumentDecoder类的典型用法代码示例。如果您正苦于以下问题:C++ ArgumentDecoder类的具体用法?C++ ArgumentDecoder怎么用?C++ ArgumentDecoder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ArgumentDecoder类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: decode
bool NPIdentifierData::decode(CoreIPC::ArgumentDecoder& decoder, NPIdentifierData& result)
{
if (!decoder.decode(result.m_isString))
return false;
if (result.m_isString)
return decoder.decode(result.m_string);
return decoder.decode(result.m_number);
}
开发者ID:ZeusbaseWeb,项目名称:webkit,代码行数:10,代码来源:NPIdentifierData.cpp
示例2:
bool ShareableResource::Handle::decode(CoreIPC::ArgumentDecoder& decoder, Handle& handle)
{
if (!decoder.decode(handle.m_handle))
return false;
if (!decoder.decode(handle.m_offset))
return false;
if (!decoder.decode(handle.m_size))
return false;
return true;
}
开发者ID:ZeusbaseWeb,项目名称:webkit,代码行数:10,代码来源:ShareableResource.cpp
示例3: decode
bool Size::decode(CoreIPC::ArgumentDecoder& decoder, RefPtr<API::Object>& result)
{
WKSize size;
if (!decoder.decode(size.width))
return false;
if (!decoder.decode(size.height))
return false;
result = Size::create(size);
return true;
}
开发者ID:EliBing,项目名称:webkit,代码行数:11,代码来源:APIGeometry.cpp
示例4: decode
bool WebGestureEvent::decode(CoreIPC::ArgumentDecoder& decoder, WebGestureEvent& t)
{
if (!WebEvent::decode(decoder, t))
return false;
if (!decoder.decode(t.m_position))
return false;
if (!decoder.decode(t.m_globalPosition))
return false;
if (!decoder.decode(t.m_area))
return false;
if (!decoder.decode(t.m_delta))
return false;
return true;
}
开发者ID:3163504123,项目名称:phantomjs,代码行数:14,代码来源:WebGestureEvent.cpp
示例5: KURL
bool Plugin::Parameters::decode(CoreIPC::ArgumentDecoder& decoder, Parameters& parameters)
{
String urlString;
if (!decoder.decode(urlString))
return false;
// FIXME: We can't assume that the url passed in here is valid.
parameters.url = KURL(ParsedURLString, urlString);
if (!decoder.decode(parameters.names))
return false;
if (!decoder.decode(parameters.values))
return false;
if (!decoder.decode(parameters.mimeType))
return false;
if (!decoder.decode(parameters.isFullFramePlugin))
return false;
if (!decoder.decode(parameters.shouldUseManualLoader))
return false;
#if PLATFORM(MAC)
if (!decoder.decodeEnum(parameters.layerHostingMode))
return false;
#endif
if (parameters.names.size() != parameters.values.size()) {
decoder.markInvalid();
return false;
}
return true;
}
开发者ID:SchleunigerAG,项目名称:WinEC7_Qt5.3.1_Fixes,代码行数:29,代码来源:Plugin.cpp
示例6: didReceiveSyncMessage
void WebPageProxy::didReceiveSyncMessage(CoreIPC::Connection*, CoreIPC::MessageID messageID, CoreIPC::ArgumentDecoder& arguments, CoreIPC::ArgumentEncoder& reply)
{
switch (messageID.get<WebPageProxyMessage::Kind>()) {
case WebPageProxyMessage::CreateNewPage: {
WebPageProxy* newPage = createNewPage();
if (newPage) {
// FIXME: Pass the real size.
reply.encode(CoreIPC::In(newPage->pageID(), IntSize(100, 100),
newPage->pageNamespace()->context()->preferences()->store(),
*(newPage->m_drawingArea.get())));
} else {
// FIXME: We should encode a drawing area type here instead.
reply.encode(CoreIPC::In(static_cast<uint64_t>(0), IntSize(), WebPreferencesStore(), 0));
}
break;
}
case WebPageProxyMessage::RunJavaScriptAlert: {
uint64_t frameID;
String alertText;
if (!arguments.decode(CoreIPC::Out(frameID, alertText)))
return;
runJavaScriptAlert(webFrame(frameID), alertText);
break;
}
default:
ASSERT_NOT_REACHED();
break;
}
}
开发者ID:UIKit0,项目名称:WebkitAIR,代码行数:29,代码来源:WebPageProxy.cpp
示例7: USE
bool WebCoordinatedSurface::Handle::decode(CoreIPC::ArgumentDecoder& decoder, Handle& handle)
{
if (!decoder.decode(handle.m_size))
return false;
if (!decoder.decode(handle.m_flags))
return false;
#if USE(GRAPHICS_SURFACE)
if (!decoder.decode(handle.m_graphicsSurfaceToken))
return false;
if (handle.m_graphicsSurfaceToken.isValid())
return true;
#endif
if (!decoder.decode(handle.m_bitmapHandle))
return false;
return true;
}
开发者ID:harlanlewis,项目名称:webkit,代码行数:17,代码来源:WebCoordinatedSurface.cpp
示例8: decode
bool PlatformPopupMenuData::decode(CoreIPC::ArgumentDecoder& decoder, PlatformPopupMenuData& data)
{
#if PLATFORM(MAC)
if (!decoder.decode(data.fontInfo))
return false;
if (!decoder.decode(data.shouldPopOver))
return false;
#elif PLATFORM(QT)
if (!decoder.decode(data.multipleSelections))
return false;
#else
UNUSED_PARAM(decoder);
UNUSED_PARAM(data);
#endif
return true;
}
开发者ID:harlanlewis,项目名称:webkit,代码行数:17,代码来源:PlatformPopupMenuData.cpp
示例9: decode
bool SecItemRequestData::decode(CoreIPC::ArgumentDecoder& decoder, SecItemRequestData& secItemRequestData)
{
if (!decoder.decodeEnum(secItemRequestData.m_type))
return false;
if (!CoreIPC::decode(decoder, secItemRequestData.m_queryDictionary))
return false;
bool expectAttributes;
if (!decoder.decode(expectAttributes))
return false;
if (expectAttributes && !CoreIPC::decode(decoder, secItemRequestData.m_attributesToMatch))
return false;
return true;
}
开发者ID:SchleunigerAG,项目名称:WinEC7_Qt5.3.1_Fixes,代码行数:17,代码来源:SecItemRequestData.cpp
示例10: decode
bool WebTouchEvent::decode(CoreIPC::ArgumentDecoder& decoder, WebTouchEvent& result)
{
if (!WebEvent::decode(decoder, result))
return false;
if (!decoder.decode(result.m_touchPoints))
return false;
return true;
}
开发者ID:3163504123,项目名称:phantomjs,代码行数:10,代码来源:WebTouchEvent.cpp
示例11: decode
bool PrintInfo::decode(CoreIPC::ArgumentDecoder& decoder, PrintInfo& info)
{
if (!decoder.decode(info.pageSetupScaleFactor))
return false;
if (!decoder.decode(info.availablePaperWidth))
return false;
if (!decoder.decode(info.availablePaperHeight))
return false;
#if PLATFORM(GTK)
if (!CoreIPC::decode(decoder, info.printSettings))
return false;
if (!CoreIPC::decode(decoder, info.pageSetup))
return false;
if (!decoder.decodeEnum(info.printMode))
return false;
#endif
return true;
}
开发者ID:ZeusbaseWeb,项目名称:webkit,代码行数:20,代码来源:PrintInfo.cpp
示例12:
bool SharedMemory::Handle::decode(CoreIPC::ArgumentDecoder& decoder, Handle& handle)
{
ASSERT_ARG(handle, !handle.m_size);
ASSERT_ARG(handle, handle.isNull());
CoreIPC::Attachment attachment;
if (!decoder.decode(attachment))
return false;
handle.adoptFromAttachment(attachment.releaseFileDescriptor(), attachment.size());
return true;
}
开发者ID:harlanlewis,项目名称:webkit,代码行数:12,代码来源:SharedMemoryUnix.cpp
示例13: decode
bool WebMouseEvent::decode(CoreIPC::ArgumentDecoder& decoder, WebMouseEvent& result)
{
if (!WebEvent::decode(decoder, result))
return false;
if (!decoder.decode(result.m_button))
return false;
if (!decoder.decode(result.m_position))
return false;
if (!decoder.decode(result.m_globalPosition))
return false;
if (!decoder.decode(result.m_deltaX))
return false;
if (!decoder.decode(result.m_deltaY))
return false;
if (!decoder.decode(result.m_deltaZ))
return false;
if (!decoder.decode(result.m_clickCount))
return false;
return true;
}
开发者ID:3163504123,项目名称:phantomjs,代码行数:22,代码来源:WebMouseEvent.cpp
示例14: decode
bool WebContextMenuItemData::decode(CoreIPC::ArgumentDecoder& decoder, WebContextMenuItemData& item)
{
WebCore::ContextMenuItemType type;
if (!decoder.decodeEnum(type))
return false;
WebCore::ContextMenuAction action;
if (!decoder.decodeEnum(action))
return false;
String title;
if (!decoder.decode(title))
return false;
bool checked;
if (!decoder.decode(checked))
return false;
bool enabled;
if (!decoder.decode(enabled))
return false;
Vector<WebContextMenuItemData> submenu;
if (!decoder.decode(submenu))
return false;
switch (type) {
case WebCore::ActionType:
case WebCore::SeparatorType:
case WebCore::CheckableActionType:
item = WebContextMenuItemData(type, action, title, enabled, checked);
break;
case WebCore::SubmenuType:
item = WebContextMenuItemData(action, title, enabled, submenu);
break;
default:
ASSERT_NOT_REACHED();
return false;
}
return true;
}
开发者ID:ZeusbaseWeb,项目名称:webkit,代码行数:42,代码来源:WebContextMenuItemData.cpp
示例15: decode
bool WebWheelEvent::decode(CoreIPC::ArgumentDecoder& decoder, WebWheelEvent& t)
{
if (!WebEvent::decode(decoder, t))
return false;
if (!decoder.decode(t.m_position))
return false;
if (!decoder.decode(t.m_globalPosition))
return false;
if (!decoder.decode(t.m_delta))
return false;
if (!decoder.decode(t.m_wheelTicks))
return false;
if (!decoder.decode(t.m_granularity))
return false;
if (!decoder.decode(t.m_directionInvertedFromDevice))
return false;
#if PLATFORM(MAC)
if (!decoder.decode(t.m_phase))
return false;
if (!decoder.decode(t.m_momentumPhase))
return false;
if (!decoder.decode(t.m_hasPreciseScrollingDeltas))
return false;
if (!decoder.decode(t.m_scrollCount))
return false;
if (!decoder.decode(t.m_unacceleratedScrollingDelta))
return false;
#endif
return true;
}
开发者ID:SchleunigerAG,项目名称:WinEC7_Qt5.3.1_Fixes,代码行数:30,代码来源:WebWheelEvent.cpp
示例16: decodeMessageBody
bool WebConnectionToUIProcess::decodeMessageBody(CoreIPC::ArgumentDecoder& decoder, RefPtr<API::Object>& messageBody)
{
InjectedBundleUserMessageDecoder messageBodyDecoder(messageBody);
return decoder.decode(messageBodyDecoder);
}
开发者ID:ZeusbaseWeb,项目名称:webkit,代码行数:5,代码来源:WebConnectionToUIProcess.cpp
示例17: decode
bool WebProcessCreationParameters::decode(CoreIPC::ArgumentDecoder& decoder, WebProcessCreationParameters& parameters)
{
if (!decoder.decode(parameters.injectedBundlePath))
return false;
if (!decoder.decode(parameters.injectedBundlePathExtensionHandle))
return false;
if (!decoder.decode(parameters.applicationCacheDirectory))
return false;
if (!decoder.decode(parameters.applicationCacheDirectoryExtensionHandle))
return false;
if (!decoder.decode(parameters.databaseDirectory))
return false;
if (!decoder.decode(parameters.databaseDirectoryExtensionHandle))
return false;
if (!decoder.decode(parameters.localStorageDirectory))
return false;
if (!decoder.decode(parameters.localStorageDirectoryExtensionHandle))
return false;
if (!decoder.decode(parameters.diskCacheDirectory))
return false;
if (!decoder.decode(parameters.diskCacheDirectoryExtensionHandle))
return false;
if (!decoder.decode(parameters.cookieStorageDirectory))
return false;
if (!decoder.decode(parameters.cookieStorageDirectoryExtensionHandle))
return false;
if (!decoder.decode(parameters.shouldUseTestingNetworkSession))
return false;
if (!decoder.decode(parameters.urlSchemesRegistererdAsEmptyDocument))
return false;
if (!decoder.decode(parameters.urlSchemesRegisteredAsSecure))
return false;
if (!decoder.decode(parameters.urlSchemesForWhichDomainRelaxationIsForbidden))
return false;
if (!decoder.decode(parameters.urlSchemesRegisteredAsLocal))
return false;
if (!decoder.decode(parameters.urlSchemesRegisteredAsNoAccess))
return false;
if (!decoder.decode(parameters.urlSchemesRegisteredAsDisplayIsolated))
return false;
if (!decoder.decode(parameters.urlSchemesRegisteredAsCORSEnabled))
return false;
#if ENABLE(CUSTOM_PROTOCOLS)
if (!decoder.decode(parameters.urlSchemesRegisteredForCustomProtocols))
return false;
#endif
#if USE(SOUP)
if (!decoder.decode(parameters.urlSchemesRegistered))
return false;
if (!decoder.decode(parameters.cookiePersistentStoragePath))
return false;
if (!decoder.decode(parameters.cookiePersistentStorageType))
return false;
if (!decoder.decodeEnum(parameters.cookieAcceptPolicy))
return false;
if (!decoder.decode(parameters.ignoreTLSErrors))
return false;
#endif
if (!decoder.decodeEnum(parameters.cacheModel))
return false;
if (!decoder.decode(parameters.shouldTrackVisitedLinks))
return false;
if (!decoder.decode(parameters.shouldAlwaysUseComplexTextCodePath))
return false;
if (!decoder.decode(parameters.shouldUseFontSmoothing))
return false;
if (!decoder.decode(parameters.iconDatabaseEnabled))
return false;
if (!decoder.decode(parameters.terminationTimeout))
return false;
if (!decoder.decode(parameters.languages))
return false;
if (!decoder.decode(parameters.textCheckerState))
return false;
if (!decoder.decode(parameters.fullKeyboardAccessEnabled))
return false;
if (!decoder.decode(parameters.defaultRequestTimeoutInterval))
return false;
#if PLATFORM(MAC) || USE(CFNETWORK)
if (!decoder.decode(parameters.uiProcessBundleIdentifier))
return false;
#endif
#if PLATFORM(MAC)
if (!decoder.decode(parameters.presenterApplicationPid))
return false;
if (!decoder.decode(parameters.accessibilityEnhancedUserInterfaceEnabled))
return false;
if (!decoder.decode(parameters.nsURLCacheMemoryCapacity))
return false;
if (!decoder.decode(parameters.nsURLCacheDiskCapacity))
return false;
if (!decoder.decode(parameters.acceleratedCompositingPort))
return false;
if (!decoder.decode(parameters.uiProcessBundleResourcePath))
return false;
if (!decoder.decode(parameters.uiProcessBundleResourcePathExtensionHandle))
return false;
if (!decoder.decode(parameters.shouldForceScreenFontSubstitution))
return false;
//.........这里部分代码省略.........
开发者ID:ZeusbaseWeb,项目名称:webkit,代码行数:101,代码来源:WebProcessCreationParameters.cpp
示例18: didReceiveMessage
void WebPageProxy::didReceiveMessage(CoreIPC::Connection* connection, CoreIPC::MessageID messageID, CoreIPC::ArgumentDecoder& arguments)
{
if (messageID.is<CoreIPC::MessageClassDrawingAreaProxy>()) {
m_drawingArea->didReceiveMessage(connection, messageID, arguments);
return;
}
switch (messageID.get<WebPageProxyMessage::Kind>()) {
case WebPageProxyMessage::DidCreateMainFrame: {
uint64_t frameID;
if (!arguments.decode(frameID))
return;
didCreateMainFrame(frameID);
break;
}
case WebPageProxyMessage::DidCreateSubFrame: {
uint64_t frameID;
if (!arguments.decode(frameID))
return;
didCreateSubFrame(frameID);
break;
}
case WebPageProxyMessage::DidStartProvisionalLoadForFrame: {
uint64_t frameID;
String url;
if (!arguments.decode(CoreIPC::Out(frameID, url)))
return;
didStartProvisionalLoadForFrame(webFrame(frameID), url);
break;
}
case WebPageProxyMessage::DidReceiveServerRedirectForProvisionalLoadForFrame: {
uint64_t frameID;
if (!arguments.decode(frameID))
return;
didReceiveServerRedirectForProvisionalLoadForFrame(webFrame(frameID));
break;
}
case WebPageProxyMessage::DidFailProvisionalLoadForFrame: {
uint64_t frameID;
if (!arguments.decode(frameID))
return;
didFailProvisionalLoadForFrame(webFrame(frameID));
break;
}
case WebPageProxyMessage::DidCommitLoadForFrame: {
uint64_t frameID;
if (!arguments.decode(frameID))
return;
didCommitLoadForFrame(webFrame(frameID));
break;
}
case WebPageProxyMessage::DidFinishLoadForFrame: {
uint64_t frameID;
if (!arguments.decode(frameID))
return;
didFinishLoadForFrame(webFrame(frameID));
break;
}
case WebPageProxyMessage::DidFailLoadForFrame: {
uint64_t frameID;
if (!arguments.decode(frameID))
return;
didFailLoadForFrame(webFrame(frameID));
break;
}
case WebPageProxyMessage::DidReceiveTitleForFrame: {
uint64_t frameID;
String title;
if (!arguments.decode(CoreIPC::Out(frameID, title)))
return;
didReceiveTitleForFrame(webFrame(frameID), title);
break;
}
case WebPageProxyMessage::DidFirstLayoutForFrame: {
uint64_t frameID;
if (!arguments.decode(frameID))
return;
didFirstLayoutForFrame(webFrame(frameID));
break;
}
case WebPageProxyMessage::DidFirstVisuallyNonEmptyLayoutForFrame: {
uint64_t frameID;
if (!arguments.decode(frameID))
return;
didFirstVisuallyNonEmptyLayoutForFrame(webFrame(frameID));
break;
}
case WebPageProxyMessage::DidStartProgress:
didStartProgress();
break;
case WebPageProxyMessage::DidChangeProgress: {
double value;
if (!arguments.decode(value))
return;
didChangeProgress(value);
break;
}
case WebPageProxyMessage::DidFinishProgress:
didFinishProgress();
break;
//.........这里部分代码省略.........
开发者ID:UIKit0,项目名称:WebkitAIR,代码行数:101,代码来源:WebPageProxy.cpp
示例19: decode
bool WebPageCreationParameters::decode(CoreIPC::ArgumentDecoder& decoder, WebPageCreationParameters& parameters)
{
if (!decoder.decode(parameters.viewSize))
return false;
if (!decoder.decode(parameters.isActive))
return false;
if (!decoder.decode(parameters.isFocused))
return false;
if (!decoder.decode(parameters.isVisible))
return false;
if (!decoder.decode(parameters.isInWindow))
return false;
if (!decoder.decode(parameters.store))
return false;
if (!decoder.decodeEnum(parameters.drawingAreaType))
return false;
if (!decoder.decode(parameters.pageGroupData))
return false;
if (!decoder.decode(parameters.drawsBackground))
return false;
if (!decoder.decode(parameters.drawsTransparentBackground))
return false;
if (!decoder.decode(parameters.underlayColor))
return false;
if (!decoder.decode(parameters.areMemoryCacheClientCallsEnabled))
return false;
if (!decoder.decode(parameters.useFixedLayout))
return false;
if (!decoder.decode(parameters.fixedLayoutSize))
return false;
if (!decoder.decodeEnum(parameters.paginationMode))
return false;
if (!decoder.decode(parameters.paginationBehavesLikeColumns))
return false;
if (!decoder.decode(parameters.pageLength))
return false;
if (!decoder.decode(parameters.gapBetweenPages))
return false;
if (!decoder.decode(parameters.userAgent))
return false;
if (!decoder.decode(parameters.sessionState))
return false;
if (!decoder.decode(parameters.highestUsedBackForwardItemID))
return false;
if (!decoder.decode(parameters.canRunBeforeUnloadConfirmPanel))
return false;
if (!decoder.decode(parameters.canRunModal))
return false;
if (!decoder.decode(parameters.deviceScaleFactor))
return false;
if (!decoder.decode(parameters.mediaVolume))
return false;
if (!decoder.decode(parameters.mayStartMediaWhenInWindow))
return false;
#if PLATFORM(MAC)
if (!decoder.decodeEnum(parameters.layerHostingMode))
return false;
if (!decoder.decode(parameters.colorSpace))
return false;
#endif
return true;
}
开发者ID:jbat100,项目名称:webkit,代码行数:64,代码来源:WebPageCreationParameters.cpp
示例20: decode
bool NetworkResourceLoadParameters::decode(CoreIPC::ArgumentDecoder& decoder, NetworkResourceLoadParameters& result)
{
if (!decoder.decode(result.m_identifier))
return false;
if (!decoder.decode(result.m_webPageID))
return false;
if (!decoder.decode(result.m_webFrameID))
return false;
if (!decoder.decode(result.m_request))
return false;
bool hasHTTPBody;
if (!decoder.decode(hasHTTPBody))
return false;
if (hasHTTPBody) {
CoreIPC::DataReference formData;
if (!decoder.decode(formData))
return false;
DecoderAdapter httpBodyDecoderAdapter(formData.data(), formData.size());
result.m_request.setHTTPBody(FormData::decode(httpBodyDecoderAdapter));
if (!decoder.decode(result.m_requestBodySandboxExtensions))
return false;
}
if (result.m_request.url().isLocalFile()) {
if (!decoder.decode(result.m_resourceSandboxExtension))
return false;
}
if (!decoder.decodeEnum(result.m_priority))
return false;
if (!decoder.decodeEnum(result.m_contentSniffingPolicy))
return false;
if (!decoder.decodeEnum(result.m_allowStoredCredentials))
return false;
if (!decoder.decode(result.m_inPrivateBrowsingMode))
return false;
if (!decoder.decode(result.m_shouldClearReferrerOnHTTPSToHTTPRedirect))
return false;
return true;
}
开发者ID:harlanlewis,项目名称:webkit,代码行数:47,代码来源:NetworkResourceLoadParameters.cpp
注:本文中的coreipc::ArgumentDecoder类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论