| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/renderer/render_widget_fullscreen.h" | 5 #include "content/renderer/render_widget_fullscreen.h" |
| 6 | 6 |
| 7 #include "content/common/view_messages.h" | 7 #include "content/common/view_messages.h" |
| 8 #include "third_party/WebKit/public/web/WebWidget.h" | 8 #include "third_party/WebKit/public/web/WebWidget.h" |
| 9 | 9 |
| 10 using blink::WebWidget; | 10 using blink::WebWidget; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 WebWidget* RenderWidgetFullscreen::CreateWebWidget() { | 38 WebWidget* RenderWidgetFullscreen::CreateWebWidget() { |
| 39 // TODO(boliu): Handle full screen render widgets here. | 39 // TODO(boliu): Handle full screen render widgets here. |
| 40 return RenderWidget::CreateWebWidget(this); | 40 return RenderWidget::CreateWebWidget(this); |
| 41 } | 41 } |
| 42 | 42 |
| 43 bool RenderWidgetFullscreen::Init(int32_t opener_id) { | 43 bool RenderWidgetFullscreen::Init(int32_t opener_id) { |
| 44 DCHECK(!webwidget_); | 44 DCHECK(!webwidget_); |
| 45 | 45 |
| 46 bool success = RenderWidget::DoInit( | 46 bool success = RenderWidget::DoInit( |
| 47 opener_id, CreateWebWidget(), | 47 opener_id, CreateWebWidget(), |
| 48 new ViewHostMsg_CreateFullscreenWidget(opener_id, &routing_id_)); | 48 new ViewHostMsg_CreateFullscreenWidget(opener_id, &routing_id_), true); |
| 49 if (success) { | 49 if (success) { |
| 50 // TODO(fsamuel): This is a bit ugly. The |create_widget_message| should | 50 // TODO(fsamuel): This is a bit ugly. The |create_widget_message| should |
| 51 // probably be factored out of RenderWidget::DoInit. | 51 // probably be factored out of RenderWidget::DoInit. |
| 52 SetRoutingID(routing_id_); | 52 SetRoutingID(routing_id_); |
| 53 return true; | 53 return true; |
| 54 } | 54 } |
| 55 return false; | 55 return false; |
| 56 } | 56 } |
| 57 | 57 |
| 58 } // namespace content | 58 } // namespace content |
| OLD | NEW |