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

Unified Diff: ui/views/mus/native_widget_mus.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/mus/native_widget_mus.h ('k') | ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/native_widget_mus.cc
diff --git a/ui/views/mus/native_widget_mus.cc b/ui/views/mus/native_widget_mus.cc
index ff20192c20c969df0e8f63de2372f72dc0ca8f55..a732154a973ff05760daa5c5bc588a844bf4824a 100644
--- a/ui/views/mus/native_widget_mus.cc
+++ b/ui/views/mus/native_widget_mus.cc
@@ -1060,9 +1060,9 @@ bool NativeWidgetMus::IsFullscreen() const {
mus_window_observer_->show_state() == mus::mojom::ShowState::FULLSCREEN;
}
-void NativeWidgetMus::SetOpacity(unsigned char opacity) {
+void NativeWidgetMus::SetOpacity(float opacity) {
if (window_)
- window_->SetOpacity(opacity / 255.0);
+ window_->SetOpacity(opacity);
}
void NativeWidgetMus::FlashFrame(bool flash_frame) {
« no previous file with comments | « ui/views/mus/native_widget_mus.h ('k') | ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698