OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/common/wm/overview/window_selector_item.h" | 5 #include "ash/common/wm/overview/window_selector_item.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/common/material_design/material_design_controller.h" | 10 #include "ash/common/material_design/material_design_controller.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 int corner_radius, | 185 int corner_radius, |
186 SkColor background) | 186 SkColor background) |
187 : item_(item), | 187 : item_(item), |
188 item_window_(item_window), | 188 item_window_(item_window), |
189 corner_radius_(corner_radius), | 189 corner_radius_(corner_radius), |
190 initial_color_(background), | 190 initial_color_(background), |
191 target_color_(background), | 191 target_color_(background), |
192 current_value_(0), | 192 current_value_(0), |
193 layer_(nullptr), | 193 layer_(nullptr), |
194 animation_(new gfx::SlideAnimation(this)) { | 194 animation_(new gfx::SlideAnimation(this)) { |
195 SetPaintToLayer(true); | 195 SetPaintToLayer(); |
196 layer()->SetFillsBoundsOpaquely(false); | 196 layer()->SetFillsBoundsOpaquely(false); |
197 } | 197 } |
198 | 198 |
199 ~RoundedContainerView() override { StopObservingLayerAnimations(); } | 199 ~RoundedContainerView() override { StopObservingLayerAnimations(); } |
200 | 200 |
201 void OnItemRestored() { | 201 void OnItemRestored() { |
202 item_ = nullptr; | 202 item_ = nullptr; |
203 item_window_ = nullptr; | 203 item_window_ = nullptr; |
204 } | 204 } |
205 | 205 |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 | 788 |
789 gfx::SlideAnimation* WindowSelectorItem::GetBackgroundViewAnimation() { | 789 gfx::SlideAnimation* WindowSelectorItem::GetBackgroundViewAnimation() { |
790 return background_view_ ? background_view_->animation() : nullptr; | 790 return background_view_ ? background_view_->animation() : nullptr; |
791 } | 791 } |
792 | 792 |
793 WmWindow* WindowSelectorItem::GetOverviewWindowForMinimizedStateForTest() { | 793 WmWindow* WindowSelectorItem::GetOverviewWindowForMinimizedStateForTest() { |
794 return transform_window_.GetOverviewWindowForMinimizedState(); | 794 return transform_window_.GetOverviewWindowForMinimizedState(); |
795 } | 795 } |
796 | 796 |
797 } // namespace ash | 797 } // namespace ash |
OLD | NEW |