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/Source/WebKit/chromium/public/WebWidget.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" |
9 | 9 |
10 using WebKit::WebWidget; | 10 using WebKit::WebWidget; |
(...skipping 28 matching lines...) Expand all Loading... |
39 DCHECK_NE(MSG_ROUTING_NONE, opener_id_); | 39 DCHECK_NE(MSG_ROUTING_NONE, opener_id_); |
40 | 40 |
41 if (!did_show_) { | 41 if (!did_show_) { |
42 did_show_ = true; | 42 did_show_ = true; |
43 Send(new ViewHostMsg_ShowFullscreenWidget(opener_id_, routing_id_)); | 43 Send(new ViewHostMsg_ShowFullscreenWidget(opener_id_, routing_id_)); |
44 SetPendingWindowRect(initial_pos_); | 44 SetPendingWindowRect(initial_pos_); |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 RenderWidgetFullscreen::RenderWidgetFullscreen() | 48 RenderWidgetFullscreen::RenderWidgetFullscreen() |
49 : RenderWidget(WebKit::WebPopupTypeNone, WebKit::WebScreenInfo()) { | 49 : RenderWidget(WebKit::WebPopupTypeNone, WebKit::WebScreenInfo(), false) { |
50 } | 50 } |
OLD | NEW |