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

Side by Side Diff: ash/aura/wm_shell_aura.h

Issue 2041423002: Moves MruWindowTracker to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_mru_window_tracker
Patch Set: merge 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 | « no previous file | ash/aura/wm_shell_aura.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 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_AURA_WM_SHELL_AURA_H_ 5 #ifndef ASH_AURA_WM_SHELL_AURA_H_
6 #define ASH_AURA_WM_SHELL_AURA_H_ 6 #define ASH_AURA_WM_SHELL_AURA_H_
7 7
8 #include <set>
9
10 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
11 #include "ash/aura/wm_lookup_aura.h" 9 #include "ash/aura/wm_lookup_aura.h"
12 #include "ash/common/wm_shell.h" 10 #include "ash/common/wm_shell.h"
13 #include "ash/display/window_tree_host_manager.h" 11 #include "ash/display/window_tree_host_manager.h"
14 #include "ash/shell_observer.h" 12 #include "ash/shell_observer.h"
15 #include "base/macros.h" 13 #include "base/macros.h"
16 #include "base/observer_list.h" 14 #include "base/observer_list.h"
17 #include "ui/wm/public/activation_change_observer.h" 15 #include "ui/wm/public/activation_change_observer.h"
18 16
19 namespace ash { 17 namespace ash {
20 18
21 class ASH_EXPORT WmShellAura : public WmShell, 19 class ASH_EXPORT WmShellAura : public WmShell,
22 public aura::client::ActivationChangeObserver, 20 public aura::client::ActivationChangeObserver,
23 public WindowTreeHostManager::Observer, 21 public WindowTreeHostManager::Observer,
24 public ShellObserver { 22 public ShellObserver {
25 public: 23 public:
26 WmShellAura(); 24 WmShellAura();
27 ~WmShellAura() override; 25 ~WmShellAura() override;
28 26
29 static WmShellAura* Get(); 27 static WmShellAura* Get();
30 28
31 // WmShell: 29 // WmShell:
32 WmWindow* NewContainerWindow() override; 30 WmWindow* NewContainerWindow() override;
33 WmWindow* GetFocusedWindow() override; 31 WmWindow* GetFocusedWindow() override;
34 WmWindow* GetActiveWindow() override; 32 WmWindow* GetActiveWindow() override;
35 WmWindow* GetPrimaryRootWindow() override; 33 WmWindow* GetPrimaryRootWindow() override;
36 WmWindow* GetRootWindowForDisplayId(int64_t display_id) override; 34 WmWindow* GetRootWindowForDisplayId(int64_t display_id) override;
37 WmWindow* GetRootWindowForNewWindows() override; 35 WmWindow* GetRootWindowForNewWindows() override;
38 std::vector<WmWindow*> GetMruWindowList() override;
39 std::vector<WmWindow*> GetMruWindowListIgnoreModals() override;
40 bool IsForceMaximizeOnFirstRun() override; 36 bool IsForceMaximizeOnFirstRun() override;
41 bool CanShowWindowForUser(WmWindow* window) override; 37 bool CanShowWindowForUser(WmWindow* window) override;
42 void LockCursor() override; 38 void LockCursor() override;
43 void UnlockCursor() override; 39 void UnlockCursor() override;
44 std::vector<WmWindow*> GetAllRootWindows() override; 40 std::vector<WmWindow*> GetAllRootWindows() override;
45 void RecordUserMetricsAction(wm::WmUserMetricsAction action) override; 41 void RecordUserMetricsAction(wm::WmUserMetricsAction action) override;
46 std::unique_ptr<WindowResizer> CreateDragWindowResizer( 42 std::unique_ptr<WindowResizer> CreateDragWindowResizer(
47 std::unique_ptr<WindowResizer> next_window_resizer, 43 std::unique_ptr<WindowResizer> next_window_resizer,
48 wm::WindowState* window_state) override; 44 wm::WindowState* window_state) override;
49 bool IsOverviewModeSelecting() override; 45 bool IsOverviewModeSelecting() override;
(...skipping 29 matching lines...) Expand all
79 base::ObserverList<WmDisplayObserver> display_observers_; 75 base::ObserverList<WmDisplayObserver> display_observers_;
80 76
81 base::ObserverList<WmOverviewModeObserver> overview_mode_observers_; 77 base::ObserverList<WmOverviewModeObserver> overview_mode_observers_;
82 78
83 DISALLOW_COPY_AND_ASSIGN(WmShellAura); 79 DISALLOW_COPY_AND_ASSIGN(WmShellAura);
84 }; 80 };
85 81
86 } // namespace ash 82 } // namespace ash
87 83
88 #endif // ASH_AURA_WM_SHELL_AURA_H_ 84 #endif // ASH_AURA_WM_SHELL_AURA_H_
OLDNEW
« no previous file with comments | « no previous file | ash/aura/wm_shell_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698