| 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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 for (size_t i = 0; | 596 for (size_t i = 0; |
| 596 i <= grid_list_.size() && | 597 i <= grid_list_.size() && |
| 597 grid_list_[selected_grid_index_]->Move(direction, animate); i++) { | 598 grid_list_[selected_grid_index_]->Move(direction, animate); i++) { |
| 598 // TODO(flackr): If there are more than two monitors, move between grids | 599 // TODO(flackr): If there are more than two monitors, move between grids |
| 599 // in the requested direction. | 600 // in the requested direction. |
| 600 selected_grid_index_ = (selected_grid_index_ + 1) % grid_list_.size(); | 601 selected_grid_index_ = (selected_grid_index_ + 1) % grid_list_.size(); |
| 601 } | 602 } |
| 602 } | 603 } |
| 603 | 604 |
| 604 } // namespace ash | 605 } // namespace ash |
| OLD | NEW |