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

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: Removed ET_SCROLL_FLING_CANCEL handling from TransparentButton and removed WindowSelector.MultiWind… Created 5 years, 11 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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698