Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Side by Side Diff: content/renderer/render_widget_fullscreen.cc

Issue 2288313002: Return the WebViewFrameWidget in RenderWidget::webwidget() if there (Closed)
Patch Set: rename webwidget_ -> webwidget_internal_ Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 23 matching lines...) Expand all
34 false) {} 34 false) {}
35 35
36 RenderWidgetFullscreen::~RenderWidgetFullscreen() {} 36 RenderWidgetFullscreen::~RenderWidgetFullscreen() {}
37 37
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(!GetWebWidget());
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_));
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
OLDNEW
« no previous file with comments | « content/renderer/render_widget_browsertest.cc ('k') | content/renderer/render_widget_mouse_lock_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698