本文整理汇总了C++中webcore::FrameView::isTransparent方法的典型用法代码示例。如果您正苦于以下问题:C++ FrameView::isTransparent方法的具体用法?C++ FrameView::isTransparent怎么用?C++ FrameView::isTransparent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类webcore::FrameView
的用法示例。
在下文中一共展示了FrameView::isTransparent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: transitionToCommittedForNewPage
void FrameLoaderClientAndroid::transitionToCommittedForNewPage() {
ASSERT(m_frame);
#ifdef ANDROID_META_SUPPORT
// reset metadata settings for the main frame as they are not preserved cross page
if (m_frame == m_frame->page()->mainFrame() && m_frame->settings())
m_frame->settings()->resetMetadataSettings();
#endif
// Save the old WebViewCore before creating a new FrameView. There is one
// WebViewCore per page. Each frame, including the main frame and sub frame,
// has a 1:1 FrameView and WebFrameView.
WebViewCore* webViewCore = WebViewCore::getWebViewCore(m_frame->view());
Retain(webViewCore);
// Save the old WebFrameView's bounds and apply them to the new WebFrameView
WebFrameView* oldWebFrameView = static_cast<WebFrameView*> (m_frame->view()->platformWidget());
IntRect bounds = oldWebFrameView->getBounds();
IntRect windowBounds = oldWebFrameView->getWindowBounds();
WebCore::FrameView* oldFrameView = oldWebFrameView->view();
m_frame->createView(bounds.size(), oldFrameView->baseBackgroundColor(), oldFrameView->isTransparent(), IntSize(), false);
// Create a new WebFrameView for the new FrameView
WebFrameView* newFrameView = new WebFrameView(m_frame->view(), webViewCore);
newFrameView->setLocation(bounds.x(), bounds.y());
newFrameView->setSize(bounds.width(), bounds.height());
newFrameView->setWindowBounds(windowBounds.x(), windowBounds.y(), windowBounds.width(), windowBounds.height());
// newFrameView attaches itself to FrameView which Retains the reference, so
// call Release for newFrameView
Release(newFrameView);
// WebFrameView Retains webViewCore, so call Release for webViewCore
Release(webViewCore);
m_webFrame->transitionToCommitted(m_frame);
}