当前位置: 首页>>代码示例>>C++>>正文


C++ Accessible::GetNativeInterface方法代码示例

本文整理汇总了C++中Accessible::GetNativeInterface方法的典型用法代码示例。如果您正苦于以下问题:C++ Accessible::GetNativeInterface方法的具体用法?C++ Accessible::GetNativeInterface怎么用?C++ Accessible::GetNativeInterface使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Accessible的用法示例。


在下文中一共展示了Accessible::GetNativeInterface方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: ptr

/**
 * @param aCOMProxy COM Proxy to the document in the content process.
 */
void
DocAccessibleParent::SendParentCOMProxy()
{
  // Make sure that we're not racing with a tab shutdown
  auto tab = static_cast<dom::TabParent*>(Manager());
  MOZ_ASSERT(tab);
  if (tab->IsDestroyed()) {
    return;
  }

  Accessible* outerDoc = OuterDocOfRemoteBrowser();
  if (!outerDoc) {
    return;
  }

  IAccessible* rawNative = nullptr;
  outerDoc->GetNativeInterface((void**) &rawNative);
  MOZ_ASSERT(rawNative);

  IAccessibleHolder::COMPtrType ptr(rawNative);
  IAccessibleHolder holder(Move(ptr));
  if (!PDocAccessibleParent::SendParentCOMProxy(holder)) {
    return;
  }

#if defined(MOZ_CONTENT_SANDBOX)
  mParentProxyStream = Move(holder.GetPreservedStream());
#endif // defined(MOZ_CONTENT_SANDBOX)
}
开发者ID:MrAlex94,项目名称:Waterfox,代码行数:32,代码来源:DocAccessibleParent.cpp

示例2: ptr

/**
 * @param aCOMProxy COM Proxy to the document in the content process.
 * @param aParentCOMProxy COM Proxy to the OuterDocAccessible that is
 *        the parent of the document. The content process will use this
 *        proxy when traversing up across the content/chrome boundary.
 */
bool
DocAccessibleParent::RecvCOMProxy(const IAccessibleHolder& aCOMProxy,
                                  IAccessibleHolder* aParentCOMProxy)
{
  RefPtr<IAccessible> ptr(aCOMProxy.Get());
  SetCOMInterface(ptr);

  Accessible* outerDoc = OuterDocOfRemoteBrowser();
  IAccessible* rawNative = nullptr;
  if (outerDoc) {
    outerDoc->GetNativeInterface((void**) &rawNative);
  }

  aParentCOMProxy->Set(IAccessibleHolder::COMPtrType(rawNative));
  return true;
}
开发者ID:subsevenx2001,项目名称:gecko-dev,代码行数:22,代码来源:DocAccessibleParent.cpp

示例3: ptr

/**
 * @param aCOMProxy COM Proxy to the document in the content process.
 */
void
DocAccessibleParent::SendParentCOMProxy()
{
  // Make sure that we're not racing with a tab shutdown
  auto tab = static_cast<dom::TabParent*>(Manager());
  MOZ_ASSERT(tab);
  if (tab->IsDestroyed()) {
    return;
  }

  Accessible* outerDoc = OuterDocOfRemoteBrowser();
  if (!outerDoc) {
    return;
  }

  IAccessible* rawNative = nullptr;
  outerDoc->GetNativeInterface((void**) &rawNative);
  MOZ_ASSERT(rawNative);

  IAccessibleHolder::COMPtrType ptr(rawNative);
  IAccessibleHolder holder(Move(ptr));
  Unused << PDocAccessibleParent::SendParentCOMProxy(holder);
}
开发者ID:jorendorff,项目名称:gecko-dev,代码行数:26,代码来源:DocAccessibleParent.cpp


注:本文中的Accessible::GetNativeInterface方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。