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

Side by Side Diff: ash/wm/overview/window_selector_controller.h

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
« no previous file with comments | « ash/wm/overview/window_selector.cc ('k') | ash/wm/overview/window_selector_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ 5 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_
6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 30 matching lines...) Expand all
41 // or touch rather than keypresses. 41 // or touch rather than keypresses.
42 void ToggleOverview(); 42 void ToggleOverview();
43 43
44 // Returns true if window selection mode is active. 44 // Returns true if window selection mode is active.
45 bool IsSelecting(); 45 bool IsSelecting();
46 46
47 // Returns true if overview mode is restoring minimized windows so that they 47 // Returns true if overview mode is restoring minimized windows so that they
48 // are visible during overview mode. 48 // are visible during overview mode.
49 bool IsRestoringMinimizedWindows() const; 49 bool IsRestoringMinimizedWindows() const;
50 50
51 bool swipe_to_close_disabled() const { return swipe_to_close_disabled_; }
52
51 // WindowSelectorDelegate: 53 // WindowSelectorDelegate:
52 void OnSelectionEnded() override; 54 void OnSelectionEnded() override;
53 55
54 private: 56 private:
55 friend class WindowSelectorTest; 57 friend class WindowSelectorTest;
56 58
57 // Dispatched when window selection begins. 59 // Dispatched when window selection begins.
58 void OnSelectionStarted(); 60 void OnSelectionStarted();
59 61
60 scoped_ptr<WindowSelector> window_selector_; 62 scoped_ptr<WindowSelector> window_selector_;
61 base::Time last_selection_time_; 63 base::Time last_selection_time_;
62 64
65 // Tracks whether the "Swipe-to-close" feature is disabled.
66 bool swipe_to_close_disabled_;
67
63 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController); 68 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController);
64 }; 69 };
65 70
66 } // namespace ash 71 } // namespace ash
67 72
68 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ 73 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/overview/window_selector.cc ('k') | ash/wm/overview/window_selector_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698