本文整理汇总了C++中provideTo函数的典型用法代码示例。如果您正苦于以下问题:C++ provideTo函数的具体用法?C++ provideTo怎么用?C++ provideTo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了provideTo函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: ASSERT
void PagePopupSupplement::install(LocalFrame& frame,
PagePopup& popup,
PagePopupClient* popupClient) {
ASSERT(popupClient);
provideTo(frame, supplementName(),
new PagePopupSupplement(popup, popupClient));
}
开发者ID:mirror,项目名称:chromium,代码行数:7,代码来源:PagePopupSupplement.cpp
示例2: supplementName
NavigatorBattery* NavigatorBattery::from(Navigator* navigator)
{
NavigatorBattery* supplement = static_cast<NavigatorBattery*>(Supplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new NavigatorBattery();
provideTo(navigator, supplementName(), adoptPtr(supplement));
}
return supplement;
}
开发者ID:SchleunigerAG,项目名称:WinEC7_Qt5.3.1_Fixes,代码行数:9,代码来源:NavigatorBattery.cpp
示例3: supplementName
WorkerGlobalScopeCrypto* WorkerGlobalScopeCrypto::from(ScriptExecutionContext* context)
{
WorkerGlobalScopeCrypto* supplement = static_cast<WorkerGlobalScopeCrypto*>(Supplement<ScriptExecutionContext>::from(context, supplementName()));
if (!supplement) {
supplement = new WorkerGlobalScopeCrypto();
provideTo(context, supplementName(), adoptPtr(supplement));
}
return supplement;
}
开发者ID:IllusionRom-deprecated,项目名称:android_platform_external_chromium_org_third_party_WebKit,代码行数:9,代码来源:WorkerGlobalScopeCrypto.cpp
示例4: supplementName
IDBPendingTransactionMonitor& IDBPendingTransactionMonitor::from(Supplementable<ExecutionContext>& context)
{
IDBPendingTransactionMonitor* supplement = static_cast<IDBPendingTransactionMonitor*>(Supplement<ExecutionContext>::from(context, supplementName()));
if (!supplement) {
supplement = new IDBPendingTransactionMonitor();
provideTo(context, supplementName(), adoptPtr(supplement));
}
return *supplement;
}
开发者ID:venkatarajasekhar,项目名称:Qt,代码行数:9,代码来源:IDBPendingTransactionMonitor.cpp
示例5: supplementName
WorkerGlobalScopeCrypto& WorkerGlobalScopeCrypto::from(WillBeHeapSupplementable<WorkerGlobalScope>& context)
{
WorkerGlobalScopeCrypto* supplement = static_cast<WorkerGlobalScopeCrypto*>(WillBeHeapSupplement<WorkerGlobalScope>::from(context, supplementName()));
if (!supplement) {
supplement = new WorkerGlobalScopeCrypto();
provideTo(context, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}
开发者ID:howardroark2018,项目名称:chromium,代码行数:9,代码来源:WorkerGlobalScopeCrypto.cpp
示例6: supplementName
ScreenOrientation& ScreenOrientation::from(Screen& screen)
{
ScreenOrientation* supplement = static_cast<ScreenOrientation*>(Supplement<Screen>::from(screen, supplementName()));
if (!supplement) {
supplement = new ScreenOrientation(screen);
provideTo(screen, supplementName(), adoptPtr(supplement));
}
return *supplement;
}
开发者ID:kublaj,项目名称:blink,代码行数:9,代码来源:ScreenOrientation.cpp
示例7: supplementName
NavigatorShare& NavigatorShare::from(Navigator& navigator) {
NavigatorShare* supplement = static_cast<NavigatorShare*>(
Supplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new NavigatorShare();
provideTo(navigator, supplementName(), supplement);
}
return *supplement;
}
开发者ID:mirror,项目名称:chromium,代码行数:9,代码来源:NavigatorShare.cpp
示例8: supplementName
NavigatorWebMIDI& NavigatorWebMIDI::from(Navigator& navigator) {
NavigatorWebMIDI* supplement = static_cast<NavigatorWebMIDI*>(
Supplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new NavigatorWebMIDI(navigator.frame());
provideTo(navigator, supplementName(), supplement);
}
return *supplement;
}
开发者ID:mirror,项目名称:chromium,代码行数:9,代码来源:NavigatorWebMIDI.cpp
示例9: supplementName
DOMWindowIndexedDatabase& DOMWindowIndexedDatabase::from(LocalDOMWindow& window)
{
DOMWindowIndexedDatabase* supplement = static_cast<DOMWindowIndexedDatabase*>(WillBeHeapSupplement<LocalDOMWindow>::from(window, supplementName()));
if (!supplement) {
supplement = new DOMWindowIndexedDatabase(window);
provideTo(window, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}
开发者ID:darktears,项目名称:blink-crosswalk,代码行数:9,代码来源:DOMWindowIndexedDatabase.cpp
示例10: supplementName
NavigatorBluetooth& NavigatorBluetooth::from(Navigator& navigator) {
NavigatorBluetooth* supplement = static_cast<NavigatorBluetooth*>(
Supplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new NavigatorBluetooth();
provideTo(navigator, supplementName(), supplement);
}
return *supplement;
}
开发者ID:mirror,项目名称:chromium,代码行数:9,代码来源:NavigatorBluetooth.cpp
示例11: supplementName
NavigatorBluetooth& NavigatorBluetooth::from(Navigator& navigator)
{
NavigatorBluetooth* supplement = static_cast<NavigatorBluetooth*>(WillBeHeapSupplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new NavigatorBluetooth();
provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}
开发者ID:kjthegod,项目名称:WebKit,代码行数:9,代码来源:NavigatorBluetooth.cpp
示例12: supplementName
// static
DOMWindowQuota* DOMWindowQuota::from(DOMWindow* window)
{
DOMWindowQuota* supplement = static_cast<DOMWindowQuota*>(Supplement<DOMWindow>::from(window, supplementName()));
if (!supplement) {
supplement = new DOMWindowQuota(window);
provideTo(window, supplementName(), adoptPtr(supplement));
}
return supplement;
}
开发者ID:fatman2021,项目名称:webkitgtk,代码行数:10,代码来源:DOMWindowQuota.cpp
示例13: supplementName
NavigatorCredentials& NavigatorCredentials::from(Navigator& navigator)
{
NavigatorCredentials* supplement = static_cast<NavigatorCredentials*>(HeapSupplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new NavigatorCredentials(navigator);
provideTo(navigator, supplementName(), supplement);
}
return *supplement;
}
开发者ID:dstockwell,项目名称:blink,代码行数:9,代码来源:NavigatorCredentials.cpp
示例14: supplementName
NavigatorPushManager& NavigatorPushManager::from(Navigator& navigator)
{
NavigatorPushManager* supplement = static_cast<NavigatorPushManager*>(WillBeHeapSupplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new NavigatorPushManager();
provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}
开发者ID:ewilligers,项目名称:blink,代码行数:9,代码来源:NavigatorPushManager.cpp
示例15: supplementName
WorkerNavigatorGeofencing& WorkerNavigatorGeofencing::from(WorkerNavigator& navigator)
{
WorkerNavigatorGeofencing* supplement = static_cast<WorkerNavigatorGeofencing*>(WillBeHeapSupplement<WorkerNavigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new WorkerNavigatorGeofencing();
provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}
开发者ID:kingysu,项目名称:blink-crosswalk,代码行数:9,代码来源:WorkerNavigatorGeofencing.cpp
示例16: fromIfExists
HTMLMediaElementMediaSession& HTMLMediaElementMediaSession::from(HTMLMediaElement& element)
{
HTMLMediaElementMediaSession* supplement = fromIfExists(element);
if (!supplement) {
supplement = new HTMLMediaElementMediaSession();
provideTo(element, supplementName(), supplement);
}
return *supplement;
}
开发者ID:aobzhirov,项目名称:ChromiumGStreamerBackend,代码行数:9,代码来源:HTMLMediaElementMediaSession.cpp
示例17: supplementName
NavigatorDoNotTrack& NavigatorDoNotTrack::from(Navigator& navigator)
{
NavigatorDoNotTrack* supplement = static_cast<NavigatorDoNotTrack*>(HeapSupplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new NavigatorDoNotTrack(navigator.frame());
provideTo(navigator, supplementName(), supplement);
}
return *supplement;
}
开发者ID:dstockwell,项目名称:blink,代码行数:9,代码来源:NavigatorDoNotTrack.cpp
示例18: supplementName
WorkerNavigatorStorageQuota& WorkerNavigatorStorageQuota::from(WorkerNavigator& navigator)
{
WorkerNavigatorStorageQuota* supplement = static_cast<WorkerNavigatorStorageQuota*>(WillBeHeapSupplement<WorkerNavigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new WorkerNavigatorStorageQuota();
provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}
开发者ID:335969568,项目名称:Blink-1,代码行数:9,代码来源:WorkerNavigatorStorageQuota.cpp
示例19: supplementName
HTMLMediaElementEncryptedMedia& HTMLMediaElementEncryptedMedia::from(HTMLMediaElement& element)
{
HTMLMediaElementEncryptedMedia* supplement = static_cast<HTMLMediaElementEncryptedMedia*>(WillBeHeapSupplement<HTMLMediaElement>::from(element, supplementName()));
if (!supplement) {
supplement = new HTMLMediaElementEncryptedMedia();
provideTo(element, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}
开发者ID:RobinWuDev,项目名称:Qt,代码行数:9,代码来源:HTMLMediaElementEncryptedMedia.cpp
示例20: supplementName
// static
WindowAnimationWorklet& WindowAnimationWorklet::from(LocalDOMWindow& window) {
WindowAnimationWorklet* supplement = static_cast<WindowAnimationWorklet*>(
Supplement<LocalDOMWindow>::from(window, supplementName()));
if (!supplement) {
supplement = new WindowAnimationWorklet(window);
provideTo(window, supplementName(), supplement);
}
return *supplement;
}
开发者ID:mirror,项目名称:chromium,代码行数:10,代码来源:WindowAnimationWorklet.cpp
注:本文中的provideTo函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论