OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SHELL_COMMON_H_ | 5 #ifndef ASH_COMMON_WM_SHELL_COMMON_H_ |
6 #define ASH_COMMON_WM_SHELL_COMMON_H_ | 6 #define ASH_COMMON_WM_SHELL_COMMON_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 void CreateMruWindowTracker(); | 28 void CreateMruWindowTracker(); |
29 void DeleteMruWindowTracker(); | 29 void DeleteMruWindowTracker(); |
30 | 30 |
31 // ShellObserver related functions: | 31 // ShellObserver related functions: |
32 void AddShellObserver(ShellObserver* observer); | 32 void AddShellObserver(ShellObserver* observer); |
33 void RemoveShellObserver(ShellObserver* observer); | 33 void RemoveShellObserver(ShellObserver* observer); |
34 base::ObserverList<ShellObserver>* shell_observers() { | 34 base::ObserverList<ShellObserver>* shell_observers() { |
35 return &shell_observers_; | 35 return &shell_observers_; |
36 } | 36 } |
37 | 37 |
| 38 // Notifies |observers_| when entering or exiting pinned mode for |
| 39 // |pinned_window|. Entering or exiting can be checked by looking at |
| 40 // |pinned_window|'s window state. |
38 void NotifyPinnedStateChanged(WmWindow* pinned_window); | 41 void NotifyPinnedStateChanged(WmWindow* pinned_window); |
39 | 42 |
40 private: | 43 private: |
41 std::unique_ptr<MruWindowTracker> mru_window_tracker_; | 44 std::unique_ptr<MruWindowTracker> mru_window_tracker_; |
42 | 45 |
43 base::ObserverList<ShellObserver> shell_observers_; | 46 base::ObserverList<ShellObserver> shell_observers_; |
44 | 47 |
45 DISALLOW_COPY_AND_ASSIGN(WmShellCommon); | 48 DISALLOW_COPY_AND_ASSIGN(WmShellCommon); |
46 }; | 49 }; |
47 | 50 |
48 } // namespace ash | 51 } // namespace ash |
49 | 52 |
50 #endif // ASH_COMMON_WM_SHELL_COMMON_H_ | 53 #endif // ASH_COMMON_WM_SHELL_COMMON_H_ |
OLD | NEW |