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

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

Issue 1590803003: MacViews: Implement NativeWidgetMac::SetOpacity function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review remarks. Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/views/widget/native_widget_mac_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e34f61d29a401810224eab5a67c3bf6cf9689f99..07e834a51ec92c5235c3af072b4015e2e27a4530 100644
--- a/ui/views/widget/native_widget_mac.mm
+++ b/ui/views/widget/native_widget_mac.mm
@@ -482,7 +482,7 @@ bool NativeWidgetMac::IsFullscreen() const {
}
void NativeWidgetMac::SetOpacity(unsigned char opacity) {
- NOTIMPLEMENTED();
+ [GetNativeWindow() setAlphaValue:opacity / 255.0];
}
void NativeWidgetMac::SetUseDragFrame(bool use_drag_frame) {
« no previous file with comments | « no previous file | ui/views/widget/native_widget_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698