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

Unified Diff: ui/views/widget/native_widget_aura.cc

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_aura.h ('k') | ui/views/widget/native_widget_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_aura.cc
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index cbdf38294d49018518da29c634af66cba6de95fa..66022c0c6da18e1d9e493b653673dc18fdcb2c6b 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -604,9 +604,9 @@ bool NativeWidgetAura::IsFullscreen() const {
ui::SHOW_STATE_FULLSCREEN;
}
-void NativeWidgetAura::SetOpacity(unsigned char opacity) {
+void NativeWidgetAura::SetOpacity(float opacity) {
if (window_)
- window_->layer()->SetOpacity(opacity / 255.0);
+ window_->layer()->SetOpacity(opacity);
}
void NativeWidgetAura::FlashFrame(bool flash) {
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698