| 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.h" | 5 #include "ash/common/wm/overview/window_selector.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/common/accessibility_delegate.h" | 13 #include "ash/common/accessibility_delegate.h" |
| 14 #include "ash/common/accessibility_types.h" | 14 #include "ash/common/accessibility_types.h" |
| 15 #include "ash/common/metrics/user_metrics_action.h" | 15 #include "ash/common/metrics/user_metrics_action.h" |
| 16 #include "ash/common/shelf/wm_shelf.h" | 16 #include "ash/common/shelf/wm_shelf.h" |
| 17 #include "ash/common/wm/mru_window_tracker.h" | 17 #include "ash/common/wm/mru_window_tracker.h" |
| 18 #include "ash/common/wm/overview/window_grid.h" | 18 #include "ash/common/wm/overview/window_grid.h" |
| 19 #include "ash/common/wm/overview/window_selector_delegate.h" | 19 #include "ash/common/wm/overview/window_selector_delegate.h" |
| 20 #include "ash/common/wm/overview/window_selector_item.h" | 20 #include "ash/common/wm/overview/window_selector_item.h" |
| 21 #include "ash/common/wm/panels/panel_layout_manager.h" | 21 #include "ash/common/wm/panels/panel_layout_manager.h" |
| 22 #include "ash/common/wm/switchable_windows.h" | 22 #include "ash/common/wm/switchable_windows.h" |
| 23 #include "ash/common/wm/window_state.h" | 23 #include "ash/common/wm/window_state.h" |
| 24 #include "ash/common/wm/wm_screen_util.h" | 24 #include "ash/common/wm/wm_screen_util.h" |
| 25 #include "ash/common/wm_lookup.h" | 25 #include "ash/common/wm_lookup.h" |
| 26 #include "ash/common/wm_root_window_controller.h" | |
| 27 #include "ash/common/wm_shell.h" | 26 #include "ash/common/wm_shell.h" |
| 28 #include "ash/common/wm_window.h" | 27 #include "ash/common/wm_window.h" |
| 29 #include "ash/public/cpp/shell_window_ids.h" | 28 #include "ash/public/cpp/shell_window_ids.h" |
| 29 #include "ash/root_window_controller.h" |
| 30 #include "base/auto_reset.h" | 30 #include "base/auto_reset.h" |
| 31 #include "base/command_line.h" | 31 #include "base/command_line.h" |
| 32 #include "base/metrics/histogram.h" | 32 #include "base/metrics/histogram.h" |
| 33 #include "third_party/skia/include/core/SkPaint.h" | 33 #include "third_party/skia/include/core/SkPaint.h" |
| 34 #include "third_party/skia/include/core/SkPath.h" | 34 #include "third_party/skia/include/core/SkPath.h" |
| 35 #include "ui/base/resource/resource_bundle.h" | 35 #include "ui/base/resource/resource_bundle.h" |
| 36 #include "ui/compositor/scoped_layer_animation_settings.h" | 36 #include "ui/compositor/scoped_layer_animation_settings.h" |
| 37 #include "ui/display/screen.h" | 37 #include "ui/display/screen.h" |
| 38 #include "ui/events/event.h" | 38 #include "ui/events/event.h" |
| 39 #include "ui/gfx/canvas.h" | 39 #include "ui/gfx/canvas.h" |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 for (size_t i = 0; i <= grid_list_.size() && | 674 for (size_t i = 0; i <= grid_list_.size() && |
| 675 grid_list_[selected_grid_index_]->Move(direction, animate); | 675 grid_list_[selected_grid_index_]->Move(direction, animate); |
| 676 i++) { | 676 i++) { |
| 677 selected_grid_index_ = | 677 selected_grid_index_ = |
| 678 (selected_grid_index_ + display_direction + grid_list_.size()) % | 678 (selected_grid_index_ + display_direction + grid_list_.size()) % |
| 679 grid_list_.size(); | 679 grid_list_.size(); |
| 680 } | 680 } |
| 681 } | 681 } |
| 682 | 682 |
| 683 } // namespace ash | 683 } // namespace ash |
| OLD | NEW |