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

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

Issue 690103008: Implemented swipe to close in overview mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed flackr's comments from Patch Set 7. Created 5 years, 10 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/wm/overview/scoped_overview_animation_settings.cc ('k') | ash/wm/overview/window_selector_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698