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

Unified Diff: ash/wm/overview/window_grid.cc

Issue 2016203002: Widget opacity goes from 0 to 1, not 0 to 255. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync 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 | « ash/system/user/user_view.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overview/window_grid.cc
diff --git a/ash/wm/overview/window_grid.cc b/ash/wm/overview/window_grid.cc
index 72a6743911ec1c0cfb1a51cfe65c7e01b0c7d7b8..b04962c14c4ed764dc5d8b5e1904822d48d88983 100644
--- a/ash/wm/overview/window_grid.cc
+++ b/ash/wm/overview/window_grid.cc
@@ -435,7 +435,7 @@ void WindowGrid::InitSelectionWidget(WindowSelector::Direction direction) {
selection_widget_window);
selection_widget_->Show();
// New selection widget starts with 0 opacity and then fades in.
- selection_widget_window->SetOpacity(0);
+ selection_widget_window->SetOpacity(0.f);
const gfx::Rect target_bounds = SelectedWindow()->target_bounds();
gfx::Vector2d fade_out_direction =
@@ -472,7 +472,7 @@ void WindowGrid::MoveSelectionWidget(WindowSelector::Direction direction,
// widget) when the movement animation is complete.
animation_settings.AddObserver(
new CleanupWidgetAfterAnimationObserver(std::move(selection_widget_)));
- old_selection->SetOpacity(0);
+ old_selection->SetOpacity(0.f);
old_selection_window->SetBounds(old_selection_window->GetBounds() +
fade_out_direction);
old_selection->Hide();
« no previous file with comments | « ash/system/user/user_view.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698