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

Unified Diff: ui/views/widget/native_widget_mac.mm

Issue 1533883002: MacViews: Implement BridgedNativeWidget::OnDeviceScaleFactorChanged function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/widget/native_widget_mac.mm
diff --git a/ui/views/widget/native_widget_mac.mm b/ui/views/widget/native_widget_mac.mm
index 812f730c92434641fcdc5a2b6acdbef70aaaf1c3..bcf2efc83fd6d25218239bdadafb32e9daebb5a9 100644
--- a/ui/views/widget/native_widget_mac.mm
+++ b/ui/views/widget/native_widget_mac.mm
@@ -480,7 +480,8 @@ bool NativeWidgetMac::IsFullscreen() const {
}
void NativeWidgetMac::SetOpacity(unsigned char opacity) {
- NOTIMPLEMENTED();
+ if (bridge_ && bridge_->layer())
+ bridge_->layer()->SetOpacity(opacity / 255.0);
tapted 2015/12/17 22:38:20 I don't know if this is correct. E.g. DesktopWindo
Andrey Kraynov 2015/12/18 13:51:59 OK, I reverted my changes in this file.
}
void NativeWidgetMac::SetUseDragFrame(bool use_drag_frame) {
« ui/views/cocoa/bridged_native_widget.mm ('K') | « ui/views/cocoa/bridged_native_widget.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698