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

Side by Side Diff: ash/wm/aura/wm_globals_aura.h

Issue 2012343002: Converts overview to use common ash types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback 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/shell_window_ids.h ('k') | ash/wm/aura/wm_globals_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_WM_AURA_WM_GLOBALS_AURA_H_ 5 #ifndef ASH_WM_AURA_WM_GLOBALS_AURA_H_
6 #define ASH_WM_AURA_WM_GLOBALS_AURA_H_ 6 #define ASH_WM_AURA_WM_GLOBALS_AURA_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 14 matching lines...) Expand all
25 public ShellObserver { 25 public ShellObserver {
26 public: 26 public:
27 WmGlobalsAura(); 27 WmGlobalsAura();
28 ~WmGlobalsAura() override; 28 ~WmGlobalsAura() override;
29 29
30 static WmGlobalsAura* Get(); 30 static WmGlobalsAura* Get();
31 31
32 // WmGlobals: 32 // WmGlobals:
33 WmWindow* GetFocusedWindow() override; 33 WmWindow* GetFocusedWindow() override;
34 WmWindow* GetActiveWindow() override; 34 WmWindow* GetActiveWindow() override;
35 WmWindow* GetPrimaryRootWindow() override;
35 WmWindow* GetRootWindowForDisplayId(int64_t display_id) override; 36 WmWindow* GetRootWindowForDisplayId(int64_t display_id) override;
36 WmWindow* GetRootWindowForNewWindows() override; 37 WmWindow* GetRootWindowForNewWindows() override;
38 std::vector<WmWindow*> GetMruWindowList() override;
37 std::vector<WmWindow*> GetMruWindowListIgnoreModals() override; 39 std::vector<WmWindow*> GetMruWindowListIgnoreModals() override;
38 bool IsForceMaximizeOnFirstRun() override; 40 bool IsForceMaximizeOnFirstRun() override;
39 bool IsUserSessionBlocked() override; 41 bool IsUserSessionBlocked() override;
40 bool IsScreenLocked() override; 42 bool IsScreenLocked() override;
41 void LockCursor() override; 43 void LockCursor() override;
42 void UnlockCursor() override; 44 void UnlockCursor() override;
43 std::vector<WmWindow*> GetAllRootWindows() override; 45 std::vector<WmWindow*> GetAllRootWindows() override;
44 void RecordUserMetricsAction(WmUserMetricsAction action) override; 46 void RecordUserMetricsAction(WmUserMetricsAction action) override;
45 std::unique_ptr<WindowResizer> CreateDragWindowResizer( 47 std::unique_ptr<WindowResizer> CreateDragWindowResizer(
46 std::unique_ptr<WindowResizer> next_window_resizer, 48 std::unique_ptr<WindowResizer> next_window_resizer,
47 wm::WindowState* window_state) override; 49 wm::WindowState* window_state) override;
48 bool IsOverviewModeSelecting() override; 50 bool IsOverviewModeSelecting() override;
49 bool IsOverviewModeRestoringMinimizedWindows() override; 51 bool IsOverviewModeRestoringMinimizedWindows() override;
50 void AddActivationObserver(WmActivationObserver* observer) override; 52 void AddActivationObserver(WmActivationObserver* observer) override;
51 void RemoveActivationObserver(WmActivationObserver* observer) override; 53 void RemoveActivationObserver(WmActivationObserver* observer) override;
52 void AddDisplayObserver(WmDisplayObserver* observer) override; 54 void AddDisplayObserver(WmDisplayObserver* observer) override;
53 void RemoveDisplayObserver(WmDisplayObserver* observer) override; 55 void RemoveDisplayObserver(WmDisplayObserver* observer) override;
54 void AddOverviewModeObserver(WmOverviewModeObserver* observer) override; 56 void AddOverviewModeObserver(WmOverviewModeObserver* observer) override;
55 void RemoveOverviewModeObserver(WmOverviewModeObserver* observer) override; 57 void RemoveOverviewModeObserver(WmOverviewModeObserver* observer) override;
56 58
57 private: 59 private:
58 // aura::client::ActivationChangeObserver: 60 // aura::client::ActivationChangeObserver:
59 void OnWindowActivated(ActivationReason reason, 61 void OnWindowActivated(ActivationReason reason,
60 aura::Window* gained_active, 62 aura::Window* gained_active,
61 aura::Window* lost_active) override; 63 aura::Window* lost_active) override;
64 void OnAttemptToReactivateWindow(aura::Window* request_active,
65 aura::Window* actual_active) override;
62 66
63 // WindowTreeHostManager::Observer: 67 // WindowTreeHostManager::Observer:
64 void OnDisplayConfigurationChanging() override; 68 void OnDisplayConfigurationChanging() override;
65 void OnDisplayConfigurationChanged() override; 69 void OnDisplayConfigurationChanged() override;
66 70
67 // ShellObserver: 71 // ShellObserver:
68 void OnOverviewModeEnded() override; 72 void OnOverviewModeEnded() override;
69 73
70 WmLookupAura wm_lookup_; 74 WmLookupAura wm_lookup_;
71 bool added_activation_observer_ = false; 75 bool added_activation_observer_ = false;
72 base::ObserverList<WmActivationObserver> activation_observers_; 76 base::ObserverList<WmActivationObserver> activation_observers_;
73 77
74 bool added_display_observer_ = false; 78 bool added_display_observer_ = false;
75 base::ObserverList<WmDisplayObserver> display_observers_; 79 base::ObserverList<WmDisplayObserver> display_observers_;
76 80
77 base::ObserverList<WmOverviewModeObserver> overview_mode_observers_; 81 base::ObserverList<WmOverviewModeObserver> overview_mode_observers_;
78 82
79 DISALLOW_COPY_AND_ASSIGN(WmGlobalsAura); 83 DISALLOW_COPY_AND_ASSIGN(WmGlobalsAura);
80 }; 84 };
81 85
82 } // namespace wm 86 } // namespace wm
83 } // namespace ash 87 } // namespace ash
84 88
85 #endif // ASH_WM_AURA_WM_GLOBALS_AURA_H_ 89 #endif // ASH_WM_AURA_WM_GLOBALS_AURA_H_
OLDNEW
« no previous file with comments | « ash/shell_window_ids.h ('k') | ash/wm/aura/wm_globals_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698