FIXME: Delete RenderWidgetHostViewMac::AcceleratedWidgetGetNSView

1121957

1037145
This commit is contained in:
Jeremy Apthorp 2018-10-02 14:03:47 -07:00
parent 95cec24387
commit ec1bd5375a

View file

@ -997,6 +997,8 @@ bool NativeWindowMac::IsKiosk() {
} }
void NativeWindowMac::SetBackgroundColor(SkColor color) { void NativeWindowMac::SetBackgroundColor(SkColor color) {
NOTIMPLEMENTED() << "TODO";
/*
base::ScopedCFTypeRef<CGColorRef> cgcolor( base::ScopedCFTypeRef<CGColorRef> cgcolor(
skia::CGColorCreateFromSkColor(color)); skia::CGColorCreateFromSkColor(color));
// views::Widget adds a layer for the content view. // views::Widget adds a layer for the content view.
@ -1008,6 +1010,7 @@ void NativeWindowMac::SetBackgroundColor(SkColor color) {
// When using WebContents as content view, the contentView also has layer. // When using WebContents as content view, the contentView also has layer.
if ([[window_ contentView] wantsLayer]) if ([[window_ contentView] wantsLayer])
[[[window_ contentView] layer] setBackgroundColor:cgcolor]; [[[window_ contentView] layer] setBackgroundColor:cgcolor];
*/
} }
void NativeWindowMac::SetHasShadow(bool has_shadow) { void NativeWindowMac::SetHasShadow(bool has_shadow) {