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.h" | 5 #include "ash/wm/overview/window_selector.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <functional> |
8 #include <set> | 9 #include <set> |
9 #include <vector> | 10 #include <vector> |
10 | 11 |
11 #include "ash/accessibility_delegate.h" | 12 #include "ash/accessibility_delegate.h" |
12 #include "ash/ash_switches.h" | 13 #include "ash/ash_switches.h" |
13 #include "ash/metrics/user_metrics_recorder.h" | 14 #include "ash/metrics/user_metrics_recorder.h" |
14 #include "ash/root_window_controller.h" | 15 #include "ash/root_window_controller.h" |
15 #include "ash/shell.h" | 16 #include "ash/shell.h" |
16 #include "ash/shell_window_ids.h" | 17 #include "ash/shell_window_ids.h" |
17 #include "ash/switchable_windows.h" | 18 #include "ash/switchable_windows.h" |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 for (size_t i = 0; | 614 for (size_t i = 0; |
614 i <= grid_list_.size() && | 615 i <= grid_list_.size() && |
615 grid_list_[selected_grid_index_]->Move(direction, animate); i++) { | 616 grid_list_[selected_grid_index_]->Move(direction, animate); i++) { |
616 // TODO(flackr): If there are more than two monitors, move between grids | 617 // TODO(flackr): If there are more than two monitors, move between grids |
617 // in the requested direction. | 618 // in the requested direction. |
618 selected_grid_index_ = (selected_grid_index_ + 1) % grid_list_.size(); | 619 selected_grid_index_ = (selected_grid_index_ + 1) % grid_list_.size(); |
619 } | 620 } |
620 } | 621 } |
621 | 622 |
622 } // namespace ash | 623 } // namespace ash |
OLD | NEW |