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

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

Issue 2978273002: Revert of Cros Tablet Window management - Split Screen part II (Closed)
Patch Set: Created 3 years, 5 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 <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void IncrementSelection(int increment); 42 void IncrementSelection(int increment);
43 43
44 // Accepts current selection if any. Returns true if a selection was made, 44 // Accepts current selection if any. Returns true if a selection was made,
45 // false otherwise. 45 // false otherwise.
46 bool AcceptSelection(); 46 bool AcceptSelection();
47 47
48 // Returns true if overview mode is restoring minimized windows so that they 48 // Returns true if overview mode is restoring minimized windows so that they
49 // are visible during overview mode. 49 // are visible during overview mode.
50 bool IsRestoringMinimizedWindows() const; 50 bool IsRestoringMinimizedWindows() const;
51 51
52 // Gets the windows list that are shown in the overview windows grids if the
53 // overview mode is active for testing.
54 std::vector<aura::Window*> GetWindowsListInOverviewGridsForTesting();
55
56 // WindowSelectorDelegate: 52 // WindowSelectorDelegate:
57 void OnSelectionEnded() override; 53 void OnSelectionEnded() override;
58 void AddDelayedAnimationObserver( 54 void AddDelayedAnimationObserver(
59 std::unique_ptr<DelayedAnimationObserver> animation) override; 55 std::unique_ptr<DelayedAnimationObserver> animation) override;
60 void RemoveAndDestroyAnimationObserver( 56 void RemoveAndDestroyAnimationObserver(
61 DelayedAnimationObserver* animation) override; 57 DelayedAnimationObserver* animation) override;
62 58
63 private: 59 private:
64 friend class WindowSelectorTest; 60 friend class WindowSelectorTest;
65 61
66 // Dispatched when window selection begins. 62 // Dispatched when window selection begins.
67 void OnSelectionStarted(); 63 void OnSelectionStarted();
68 64
69 // Collection of DelayedAnimationObserver objects that own widgets that may be 65 // Collection of DelayedAnimationObserver objects that own widgets that may be
70 // still animating after overview mode ends. If shell needs to shut down while 66 // still animating after overview mode ends. If shell needs to shut down while
71 // those animations are in progress, the animations are shut down and the 67 // those animations are in progress, the animations are shut down and the
72 // widgets destroyed. 68 // widgets destroyed.
73 std::vector<std::unique_ptr<DelayedAnimationObserver>> delayed_animations_; 69 std::vector<std::unique_ptr<DelayedAnimationObserver>> delayed_animations_;
74 std::unique_ptr<WindowSelector> window_selector_; 70 std::unique_ptr<WindowSelector> window_selector_;
75 base::Time last_selection_time_; 71 base::Time last_selection_time_;
76 72
77 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController); 73 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController);
78 }; 74 };
79 75
80 } // namespace ash 76 } // namespace ash
81 77
82 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ 78 #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