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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 274453002: Remove RenderWidget::SetBackground, change IPC to pass a bool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-setbackground: nomac Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/browser/frame_host/render_widget_host_view_child_frame.h" 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
6 6
7 #include "content/browser/frame_host/cross_process_frame_connector.h" 7 #include "content/browser/frame_host/cross_process_frame_connector.h"
8 #include "content/browser/renderer_host/render_widget_host_impl.h" 8 #include "content/browser/renderer_host/render_widget_host_impl.h"
9 #include "content/common/gpu/gpu_messages.h" 9 #include "content/common/gpu/gpu_messages.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 NOTREACHED(); 79 NOTREACHED();
80 return 0; 80 return 0;
81 } 81 }
82 82
83 gfx::NativeViewAccessible 83 gfx::NativeViewAccessible
84 RenderWidgetHostViewChildFrame::GetNativeViewAccessible() { 84 RenderWidgetHostViewChildFrame::GetNativeViewAccessible() {
85 NOTREACHED(); 85 NOTREACHED();
86 return NULL; 86 return NULL;
87 } 87 }
88 88
89 void RenderWidgetHostViewChildFrame::SetBackground( 89 void RenderWidgetHostViewChildFrame::SetBackgroundOpaque(bool opaque) {
90 const SkBitmap& background) {
91 } 90 }
92 91
93 gfx::Size RenderWidgetHostViewChildFrame::GetPhysicalBackingSize() const { 92 gfx::Size RenderWidgetHostViewChildFrame::GetPhysicalBackingSize() const {
94 gfx::Size size; 93 gfx::Size size;
95 if (frame_connector_) 94 if (frame_connector_)
96 size = frame_connector_->ChildFrameRect().size(); 95 size = frame_connector_->ChildFrameRect().size();
97 return size; 96 return size;
98 } 97 }
99 98
100 void RenderWidgetHostViewChildFrame::InitAsPopup( 99 void RenderWidgetHostViewChildFrame::InitAsPopup(
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 const { 344 const {
346 return NULL; 345 return NULL;
347 } 346 }
348 #endif // defined(OS_WIN) 347 #endif // defined(OS_WIN)
349 348
350 SkBitmap::Config RenderWidgetHostViewChildFrame::PreferredReadbackFormat() { 349 SkBitmap::Config RenderWidgetHostViewChildFrame::PreferredReadbackFormat() {
351 return SkBitmap::kARGB_8888_Config; 350 return SkBitmap::kARGB_8888_Config;
352 } 351 }
353 352
354 } // namespace content 353 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698