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

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

Issue 1565893004: Sets a transparent background for out-of-process subframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile Created 4 years, 10 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
« no previous file with comments | « content/renderer/render_widget.h ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 // this function returns. 310 // this function returns.
311 if (widget->DoInit(MSG_ROUTING_NONE, 311 if (widget->DoInit(MSG_ROUTING_NONE,
312 RenderWidget::CreateWebFrameWidget(widget.get(), frame), 312 RenderWidget::CreateWebFrameWidget(widget.get(), frame),
313 nullptr)) { 313 nullptr)) {
314 return widget.get(); 314 return widget.get();
315 } 315 }
316 return nullptr; 316 return nullptr;
317 } 317 }
318 318
319 // static 319 // static
320 blink::WebWidget* RenderWidget::CreateWebFrameWidget( 320 blink::WebFrameWidget* RenderWidget::CreateWebFrameWidget(
321 RenderWidget* render_widget, 321 RenderWidget* render_widget,
322 blink::WebLocalFrame* frame) { 322 blink::WebLocalFrame* frame) {
323 if (!frame->parent()) { 323 if (!frame->parent()) {
324 // TODO(dcheng): The main frame widget currently has a special case. 324 // TODO(dcheng): The main frame widget currently has a special case.
325 // Eliminate this once WebView is no longer a WebWidget. 325 // Eliminate this once WebView is no longer a WebWidget.
326 return blink::WebFrameWidget::create(render_widget, frame->view(), frame); 326 return blink::WebFrameWidget::create(render_widget, frame->view(), frame);
327 } 327 }
328 return blink::WebFrameWidget::create(render_widget, frame); 328 return blink::WebFrameWidget::create(render_widget, frame);
329 } 329 }
330 330
(...skipping 1757 matching lines...) Expand 10 before | Expand all | Expand 10 after
2088 video_hole_frames_.RemoveObserver(frame); 2088 video_hole_frames_.RemoveObserver(frame);
2089 } 2089 }
2090 #endif // defined(VIDEO_HOLE) 2090 #endif // defined(VIDEO_HOLE)
2091 2091
2092 void RenderWidget::OnWaitNextFrameForTests(int routing_id) { 2092 void RenderWidget::OnWaitNextFrameForTests(int routing_id) {
2093 QueueMessage(new ViewHostMsg_WaitForNextFrameForTests_ACK(routing_id), 2093 QueueMessage(new ViewHostMsg_WaitForNextFrameForTests_ACK(routing_id),
2094 MESSAGE_DELIVERY_POLICY_WITH_VISUAL_STATE); 2094 MESSAGE_DELIVERY_POLICY_WITH_VISUAL_STATE);
2095 } 2095 }
2096 2096
2097 } // namespace content 2097 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget.h ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698