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

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

Issue 2009333002: Converts Widget::SetOpacity from char to float (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/widget/native_widget_mac.h ('k') | 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 fb7fef45007ab5754bf687c98e595ca717ee252b..9f3bea34f4d264a33c89d1624f6d691ec3822f54 100644
--- a/ui/views/widget/native_widget_mac.mm
+++ b/ui/views/widget/native_widget_mac.mm
@@ -494,8 +494,8 @@ bool NativeWidgetMac::IsFullscreen() const {
return bridge_ && bridge_->target_fullscreen_state();
}
-void NativeWidgetMac::SetOpacity(unsigned char opacity) {
- [GetNativeWindow() setAlphaValue:opacity / 255.0];
+void NativeWidgetMac::SetOpacity(float opacity) {
+ [GetNativeWindow() setAlphaValue:opacity];
}
void NativeWidgetMac::FlashFrame(bool flash_frame) {
« no previous file with comments | « ui/views/widget/native_widget_mac.h ('k') | ui/views/widget/native_widget_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698