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

Side by Side Diff: ash/wm/overview/window_grid.cc

Issue 1890713002: Adds WmWindow and converts WindowState to use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « ash/wm/overview/scoped_transform_overview_window.cc ('k') | ash/wm/overview/window_selector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_grid.h" 5 #include "ash/wm/overview/window_grid.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "ash/ash_switches.h" 13 #include "ash/ash_switches.h"
14 #include "ash/screen_util.h" 14 #include "ash/screen_util.h"
15 #include "ash/shell.h" 15 #include "ash/shell.h"
16 #include "ash/shell_window_ids.h" 16 #include "ash/shell_window_ids.h"
17 #include "ash/wm/overview/scoped_transform_overview_window.h" 17 #include "ash/wm/overview/scoped_transform_overview_window.h"
18 #include "ash/wm/overview/window_selector.h" 18 #include "ash/wm/overview/window_selector.h"
19 #include "ash/wm/overview/window_selector_item.h" 19 #include "ash/wm/overview/window_selector_item.h"
20 #include "ash/wm/window_state.h" 20 #include "ash/wm/window_state.h"
21 #include "ash/wm/window_state_aura.h"
21 #include "base/command_line.h" 22 #include "base/command_line.h"
22 #include "base/i18n/string_search.h" 23 #include "base/i18n/string_search.h"
23 #include "base/memory/scoped_vector.h" 24 #include "base/memory/scoped_vector.h"
24 #include "third_party/skia/include/core/SkColor.h" 25 #include "third_party/skia/include/core/SkColor.h"
25 #include "ui/aura/window.h" 26 #include "ui/aura/window.h"
26 #include "ui/compositor/layer_animation_observer.h" 27 #include "ui/compositor/layer_animation_observer.h"
27 #include "ui/compositor/scoped_layer_animation_settings.h" 28 #include "ui/compositor/scoped_layer_animation_settings.h"
28 #include "ui/gfx/animation/tween.h" 29 #include "ui/gfx/animation/tween.h"
29 #include "ui/gfx/geometry/vector2d.h" 30 #include "ui/gfx/geometry/vector2d.h"
30 #include "ui/views/background.h" 31 #include "ui/views/background.h"
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 ui::LayerAnimator::IMMEDIATELY_ANIMATE_TO_NEW_TARGET); 507 ui::LayerAnimator::IMMEDIATELY_ANIMATE_TO_NEW_TARGET);
507 selection_widget_->SetBounds(SelectedWindow()->target_bounds()); 508 selection_widget_->SetBounds(SelectedWindow()->target_bounds());
508 selection_widget_->SetOpacity(255); 509 selection_widget_->SetOpacity(255);
509 return; 510 return;
510 } 511 }
511 selection_widget_->SetBounds(SelectedWindow()->target_bounds()); 512 selection_widget_->SetBounds(SelectedWindow()->target_bounds());
512 selection_widget_->SetOpacity(255); 513 selection_widget_->SetOpacity(255);
513 } 514 }
514 515
515 } // namespace ash 516 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/overview/scoped_transform_overview_window.cc ('k') | ash/wm/overview/window_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698