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

Side by Side Diff: ash/common/wm/overview/window_selector.h

Issue 2667293002: [ash-md] Adds support for gesture to move selection in overview mode (Closed)
Patch Set: [ash-md] Adds support for gesture to move selection in overview mode (no skipping 1st) Created 3 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 | « no previous file | ash/common/wm/overview/window_selector.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_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_H_ 5 #ifndef ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_H_
6 #define ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_H_ 6 #define ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // Perform cleanup that cannot be done in the destructor. 55 // Perform cleanup that cannot be done in the destructor.
56 void Shutdown(); 56 void Shutdown();
57 57
58 // Cancels window selection. 58 // Cancels window selection.
59 void CancelSelection(); 59 void CancelSelection();
60 60
61 // Called when the last window selector item from a grid is deleted. 61 // Called when the last window selector item from a grid is deleted.
62 void OnGridEmpty(WindowGrid* grid); 62 void OnGridEmpty(WindowGrid* grid);
63 63
64 // Moves the current selection by |increment| items. Positive values of
65 // |increment| move the selection forward, negative values move it backward.
66 void IncrementSelection(int increment);
67
68 // Accepts current selection if any. Returns true if a selection was made,
69 // false otherwise.
70 bool AcceptSelection();
71
64 // Activates |item's| window. 72 // Activates |item's| window.
65 void SelectWindow(WindowSelectorItem* item); 73 void SelectWindow(WindowSelectorItem* item);
66 74
67 // Called when |window| is about to get closed. 75 // Called when |window| is about to get closed.
68 void WindowClosing(WindowSelectorItem* window); 76 void WindowClosing(WindowSelectorItem* window);
69 77
70 WindowSelectorDelegate* delegate() { return delegate_; } 78 WindowSelectorDelegate* delegate() { return delegate_; }
71 79
72 bool restoring_minimized_windows() const { 80 bool restoring_minimized_windows() const {
73 return restoring_minimized_windows_; 81 return restoring_minimized_windows_;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 int text_filter_bottom_; 192 int text_filter_bottom_;
185 193
186 bool is_shut_down_ = false; 194 bool is_shut_down_ = false;
187 195
188 DISALLOW_COPY_AND_ASSIGN(WindowSelector); 196 DISALLOW_COPY_AND_ASSIGN(WindowSelector);
189 }; 197 };
190 198
191 } // namespace ash 199 } // namespace ash
192 200
193 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_H_ 201 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_H_
OLDNEW
« no previous file with comments | « no previous file | ash/common/wm/overview/window_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698