This source file includes following definitions.
- show
- CreateWebWidget
- Init
#include "content/renderer/render_widget_fullscreen.h"
#include "content/common/view_messages.h"
#include "third_party/WebKit/public/web/WebWidget.h"
using blink::WebWidget;
namespace content {
void RenderWidgetFullscreen::show(blink::WebNavigationPolicy) {
DCHECK(!did_show_) << "received extraneous Show call";
DCHECK_NE(MSG_ROUTING_NONE, routing_id_);
DCHECK_NE(MSG_ROUTING_NONE, opener_id_);
if (!did_show_) {
did_show_ = true;
Send(new ViewHostMsg_ShowFullscreenWidget(opener_id_, routing_id_));
SetPendingWindowRect(initial_pos_);
}
}
RenderWidgetFullscreen::RenderWidgetFullscreen(
const blink::WebScreenInfo& screen_info)
: RenderWidget(blink::WebPopupTypeNone, screen_info, false, false) {
}
RenderWidgetFullscreen::~RenderWidgetFullscreen() {}
WebWidget* RenderWidgetFullscreen::CreateWebWidget() {
return RenderWidget::CreateWebWidget(this);
}
bool RenderWidgetFullscreen::Init(int32 opener_id) {
DCHECK(!webwidget_);
return RenderWidget::DoInit(
opener_id,
CreateWebWidget(),
new ViewHostMsg_CreateFullscreenWidget(
opener_id, &routing_id_, &surface_id_));
}
}