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

Side by Side Diff: ash/common/wm_shell_common.h

Issue 2072853002: Implement "pinned" mode in ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 6 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/common/wm_shell.h ('k') | ash/mus/bridge/wm_shell_mus.h » ('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 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
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_
OLDNEW
« no previous file with comments | « ash/common/wm_shell.h ('k') | ash/mus/bridge/wm_shell_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698