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/wm/overview/window_selector_panels.h" | 5 #include "ash/wm/overview/window_selector_panels.h" |
6 | 6 |
7 #include "ash/screen_util.h" | 7 #include "ash/screen_util.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "ash/shell_window_ids.h" | 9 #include "ash/shell_window_ids.h" |
10 #include "ash/wm/overview/scoped_transform_overview_window.h" | 10 #include "ash/wm/overview/scoped_transform_overview_window.h" |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
192 gfx::Rect bounds = (*iter)->GetBoundsInScreen(); | 192 gfx::Rect bounds = (*iter)->GetBoundsInScreen(); |
193 transform.Translate(bounding_rect.x() - bounds.x(), | 193 transform.Translate(bounding_rect.x() - bounds.x(), |
194 bounding_rect.y() - bounds.y()); | 194 bounding_rect.y() - bounds.y()); |
195 transform.PreconcatTransform(bounding_transform); | 195 transform.PreconcatTransform(bounding_transform); |
196 transform.Translate(bounds.x() - bounding_rect.x(), | 196 transform.Translate(bounds.x() - bounding_rect.x(), |
197 bounds.y() - bounding_rect.y()); | 197 bounds.y() - bounding_rect.y()); |
198 (*iter)->SetTransform(root_window, transform, animate); | 198 (*iter)->SetTransform(root_window, transform, animate); |
199 } | 199 } |
200 } | 200 } |
201 | 201 |
202 void WindowSelectorPanels::ChangeItemVisibility(bool visible) { | |
203 for (WindowList::iterator iter = transform_windows_.begin(); | |
204 iter != transform_windows_.end(); iter++) { | |
205 (*iter)->window()->layer()->SetOpacity(visible ? 1 : 0.5); | |
flackr
2014/06/26 17:33:08
This may deserve a TODO as I think this will let y
Nina
2014/06/27 15:20:39
True, I've already seen that and I don't like how
| |
206 } | |
207 } | |
208 | |
202 } // namespace ash | 209 } // namespace ash |
OLD | NEW |