| OLD | NEW |
| 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_MRU_WINDOW_TRACKER_H_ | 5 #ifndef ASH_WM_MRU_WINDOW_TRACKER_H_ |
| 6 #define ASH_WM_MRU_WINDOW_TRACKER_H_ | 6 #define ASH_WM_MRU_WINDOW_TRACKER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 typedef std::vector<aura::Window*> WindowList; | 33 typedef std::vector<aura::Window*> WindowList; |
| 34 | 34 |
| 35 explicit MruWindowTracker( | 35 explicit MruWindowTracker( |
| 36 aura::client::ActivationClient* activation_client); | 36 aura::client::ActivationClient* activation_client); |
| 37 ~MruWindowTracker() override; | 37 ~MruWindowTracker() override; |
| 38 | 38 |
| 39 // Returns the set of windows which can be cycled through. This method creates | 39 // Returns the set of windows which can be cycled through. This method creates |
| 40 // the vector based on the current set of windows across all valid root | 40 // the vector based on the current set of windows across all valid root |
| 41 // windows. As a result it is not necessarily the same as the set of | 41 // windows. As a result it is not necessarily the same as the set of |
| 42 // windows being iterated over. | 42 // windows being iterated over. |
| 43 // If |top_most_at_end| the window list will return in ascending (lowest | 43 // The returned window list will be in descending (top most window first) |
| 44 // window in stacking order first) order instead of the default descending | 44 // order. |
| 45 // (top most window first) order. | 45 static WindowList BuildWindowList(); |
| 46 static WindowList BuildWindowList(bool top_most_at_end); | |
| 47 | 46 |
| 48 // Returns the set of windows which can be cycled through using the tracked | 47 // Returns the set of windows which can be cycled through using the tracked |
| 49 // list of most recently used windows. | 48 // list of most recently used windows. |
| 50 WindowList BuildMruWindowList(); | 49 WindowList BuildMruWindowList(); |
| 51 | 50 |
| 52 // Starts or stops ignoring window activations. If no longer ignoring | 51 // Starts or stops ignoring window activations. If no longer ignoring |
| 53 // activations the currently active window is moved to the front of the | 52 // activations the currently active window is moved to the front of the |
| 54 // MRU window list. Used by WindowCycleList to avoid adding all cycled | 53 // MRU window list. Used by WindowCycleList to avoid adding all cycled |
| 55 // windows to the front of the MRU window list. | 54 // windows to the front of the MRU window list. |
| 56 void SetIgnoreActivations(bool ignore); | 55 void SetIgnoreActivations(bool ignore); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 74 aura::client::ActivationClient* activation_client_; | 73 aura::client::ActivationClient* activation_client_; |
| 75 | 74 |
| 76 bool ignore_window_activations_; | 75 bool ignore_window_activations_; |
| 77 | 76 |
| 78 DISALLOW_COPY_AND_ASSIGN(MruWindowTracker); | 77 DISALLOW_COPY_AND_ASSIGN(MruWindowTracker); |
| 79 }; | 78 }; |
| 80 | 79 |
| 81 } // namespace ash | 80 } // namespace ash |
| 82 | 81 |
| 83 #endif // ASH_WM_MRU_WINDOW_TRACKER_H_ | 82 #endif // ASH_WM_MRU_WINDOW_TRACKER_H_ |
| OLD | NEW |