OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WINDOW_CYCLE_LIST_H_ | 5 #ifndef ASH_COMMON_WM_WINDOW_CYCLE_LIST_H_ |
6 #define ASH_COMMON_WM_WINDOW_CYCLE_LIST_H_ | 6 #define ASH_COMMON_WM_WINDOW_CYCLE_LIST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // Wrapper for the window brought to the front. | 88 // Wrapper for the window brought to the front. |
89 // TODO(estade): remove ScopedShowWindow when we know we are happy launching | 89 // TODO(estade): remove ScopedShowWindow when we know we are happy launching |
90 // the |cycle_view_| version. | 90 // the |cycle_view_| version. |
91 std::unique_ptr<ScopedShowWindow> showing_window_; | 91 std::unique_ptr<ScopedShowWindow> showing_window_; |
92 | 92 |
93 // The top level View for the window cycle UI. May be null if the UI is not | 93 // The top level View for the window cycle UI. May be null if the UI is not |
94 // showing. | 94 // showing. |
95 WindowCycleView* cycle_view_; | 95 WindowCycleView* cycle_view_; |
96 | 96 |
97 // The widget that hosts the window cycle UI. | 97 // The widget that hosts the window cycle UI. |
98 std::unique_ptr<views::Widget> cycle_ui_widget_; | 98 views::Widget* cycle_ui_widget_; |
99 | 99 |
100 // The window list will dismiss if the display metrics change. | 100 // The window list will dismiss if the display metrics change. |
101 ScopedObserver<display::Screen, display::DisplayObserver> screen_observer_; | 101 ScopedObserver<display::Screen, display::DisplayObserver> screen_observer_; |
102 | 102 |
103 // A timer to delay showing the UI. Quick Alt+Tab should not flash a UI. | 103 // A timer to delay showing the UI. Quick Alt+Tab should not flash a UI. |
104 base::OneShotTimer show_ui_timer_; | 104 base::OneShotTimer show_ui_timer_; |
105 | 105 |
106 DISALLOW_COPY_AND_ASSIGN(WindowCycleList); | 106 DISALLOW_COPY_AND_ASSIGN(WindowCycleList); |
107 }; | 107 }; |
108 | 108 |
109 } // namespace ash | 109 } // namespace ash |
110 | 110 |
111 #endif // ASH_COMMON_WM_WINDOW_CYCLE_LIST_H_ | 111 #endif // ASH_COMMON_WM_WINDOW_CYCLE_LIST_H_ |
OLD | NEW |