This source file includes following definitions.
- create
- setView
- createView
#include "config.h"
#include "core/frame/RemoteFrame.h"
#include "core/frame/RemoteFrameView.h"
#include "core/html/HTMLFrameOwnerElement.h"
namespace WebCore {
inline RemoteFrame::RemoteFrame(FrameHost* host, HTMLFrameOwnerElement* ownerElement)
: Frame(host, ownerElement)
{
}
PassRefPtr<RemoteFrame> RemoteFrame::create(FrameHost* host, HTMLFrameOwnerElement* ownerElement)
{
RefPtr<RemoteFrame> frame = adoptRef(new RemoteFrame(host, ownerElement));
return frame.release();
}
RemoteFrame::~RemoteFrame()
{
setView(nullptr);
}
void RemoteFrame::setView(PassRefPtr<RemoteFrameView> view)
{
m_view = view;
}
void RemoteFrame::createView()
{
RefPtr<RemoteFrameView> view = RemoteFrameView::create(this);
setView(view);
if (ownerRenderer()) {
ASSERT(ownerElement());
ownerElement()->setWidget(view);
}
}
}