本文整理汇总了C++中WebFrameProxy类的典型用法代码示例。如果您正苦于以下问题:C++ WebFrameProxy类的具体用法?C++ WebFrameProxy怎么用?C++ WebFrameProxy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WebFrameProxy类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: webPage
void WebProcessProxy::didUpdateHistoryTitle(uint64_t pageID, const String& title, const String& url, uint64_t frameID)
{
WebPageProxy* page = webPage(pageID);
if (!page)
return;
WebFrameProxy* frame = webFrame(frameID);
MESSAGE_CHECK(frame);
MESSAGE_CHECK(frame->page() == page);
MESSAGE_CHECK_URL(url);
m_context->historyClient().didUpdateHistoryTitle(&m_context.get(), page, title, url, frame);
}
开发者ID:,项目名称:,代码行数:13,代码来源:
示例2: WKFrameGetFrameLoadState
WKFrameLoadState WKFrameGetFrameLoadState(WKFrameRef frameRef)
{
WebFrameProxy* frame = toImpl(frameRef);
switch (frame->frameLoadState().m_state) {
case FrameLoadState::State::Provisional:
return kWKFrameLoadStateProvisional;
case FrameLoadState::State::Committed:
return kWKFrameLoadStateCommitted;
case FrameLoadState::State::Finished:
return kWKFrameLoadStateFinished;
}
ASSERT_NOT_REACHED();
return kWKFrameLoadStateFinished;
}
开发者ID:Wrichik1999,项目名称:webkit,代码行数:15,代码来源:WKFrame.cpp
示例3: WKFrameGetFrameLoadState
WKFrameLoadState WKFrameGetFrameLoadState(WKFrameRef frameRef)
{
WebFrameProxy* frame = toWK(frameRef);
switch (frame->loadState()) {
case WebFrameProxy::LoadStateProvisional:
return kWKFrameLoadStateProvisional;
case WebFrameProxy::LoadStateCommitted:
return kWKFrameLoadStateCommitted;
case WebFrameProxy::LoadStateFinished:
return kWKFrameLoadStateFinished;
}
ASSERT_NOT_REACHED();
return kWKFrameLoadStateFinished;
}
开发者ID:,项目名称:,代码行数:15,代码来源:
示例4: webPage
void WebProcessProxy::didPerformServerRedirect(uint64_t pageID, const String& sourceURLString, const String& destinationURLString, uint64_t frameID)
{
WebPageProxy* page = webPage(pageID);
if (!page)
return;
if (sourceURLString.isEmpty() || destinationURLString.isEmpty())
return;
WebFrameProxy* frame = webFrame(frameID);
MESSAGE_CHECK(frame);
MESSAGE_CHECK(frame->page() == page);
MESSAGE_CHECK_URL(sourceURLString);
MESSAGE_CHECK_URL(destinationURLString);
m_context->historyClient().didPerformServerRedirect(&m_context.get(), page, sourceURLString, destinationURLString, frame);
}
开发者ID:Happy-Ferret,项目名称:webkit.js,代码行数:17,代码来源:WebProcessProxy.cpp
示例5: WKFrameRelease
void WKFrameRelease(WKFrameRef frameRef)
{
WebFrameProxy* frame = toWK(frameRef);
frame->deref();
}
开发者ID:mikedougherty,项目名称:webkit,代码行数:5,代码来源:WKFrame.cpp
示例6: WKFrameRetain
WKFrameRef WKFrameRetain(WKFrameRef frameRef)
{
WebFrameProxy* frame = toWK(frameRef);
frame->ref();
return frameRef;
}
开发者ID:mikedougherty,项目名称:webkit,代码行数:6,代码来源:WKFrame.cpp
示例7: WKFrameGetPage
WKPageRef WKFrameGetPage(WKFrameRef frameRef)
{
WebFrameProxy* frame = toWK(frameRef);
return toRef(frame->page());
}
开发者ID:mikedougherty,项目名称:webkit,代码行数:5,代码来源:WKFrame.cpp
示例8: WKFrameGetURL
WKURLRef WKFrameGetURL(WKFrameRef frameRef)
{
WebFrameProxy* frame = toWK(frameRef);
return toURLRef(frame->url().impl());
}
开发者ID:mikedougherty,项目名称:webkit,代码行数:5,代码来源:WKFrame.cpp
示例9: WKFrameGetProvisionalURL
WKURLRef WKFrameGetProvisionalURL(WKFrameRef frameRef)
{
WebFrameProxy* frame = toWK(frameRef);
return toURLRef(frame->provisionalURL().impl());
}
开发者ID:mikedougherty,项目名称:webkit,代码行数:5,代码来源:WKFrame.cpp
示例10: WKFrameIsMainFrame
bool WKFrameIsMainFrame(WKFrameRef frameRef)
{
WebFrameProxy* frame = toWK(frameRef);
return frame->isMainFrame();
}
开发者ID:mikedougherty,项目名称:webkit,代码行数:5,代码来源:WKFrame.cpp
注:本文中的WebFrameProxy类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论