mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
FIXME: Delete RenderWidgetHostViewMac::AcceleratedWidgetGetNSView
https://chromium-review.googlesource.com/c/chromium/src/+/1121957 https://chromium-review.googlesource.com/c/chromium/src/+/1037145
This commit is contained in:
@@ -997,6 +997,8 @@ bool NativeWindowMac::IsKiosk() {
|
||||
}
|
||||
|
||||
void NativeWindowMac::SetBackgroundColor(SkColor color) {
|
||||
NOTIMPLEMENTED() << "TODO";
|
||||
/*
|
||||
base::ScopedCFTypeRef<CGColorRef> cgcolor(
|
||||
skia::CGColorCreateFromSkColor(color));
|
||||
// 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.
|
||||
if ([[window_ contentView] wantsLayer])
|
||||
[[[window_ contentView] layer] setBackgroundColor:cgcolor];
|
||||
*/
|
||||
}
|
||||
|
||||
void NativeWindowMac::SetHasShadow(bool has_shadow) {
|
||||
|
||||
Reference in New Issue
Block a user