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

Side by Side Diff: ash/mus/bridge/wm_shell_mus.h

Issue 2041233004: mash: Move //ash/session to //ash/common/session (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/mus/BUILD.gn ('k') | ash/mus/bridge/wm_shell_mus.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_MUS_BRIDGE_WM_SHELL_MUS_H_ 5 #ifndef ASH_MUS_BRIDGE_WM_SHELL_MUS_H_
6 #define ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ 6 #define ASH_MUS_BRIDGE_WM_SHELL_MUS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // WmShell: 44 // WmShell:
45 WmWindow* NewContainerWindow() override; 45 WmWindow* NewContainerWindow() override;
46 WmWindow* GetFocusedWindow() override; 46 WmWindow* GetFocusedWindow() override;
47 WmWindow* GetActiveWindow() override; 47 WmWindow* GetActiveWindow() override;
48 WmWindow* GetPrimaryRootWindow() override; 48 WmWindow* GetPrimaryRootWindow() override;
49 WmWindow* GetRootWindowForDisplayId(int64_t display_id) override; 49 WmWindow* GetRootWindowForDisplayId(int64_t display_id) override;
50 WmWindow* GetRootWindowForNewWindows() override; 50 WmWindow* GetRootWindowForNewWindows() override;
51 std::vector<WmWindow*> GetMruWindowList() override; 51 std::vector<WmWindow*> GetMruWindowList() override;
52 std::vector<WmWindow*> GetMruWindowListIgnoreModals() override; 52 std::vector<WmWindow*> GetMruWindowListIgnoreModals() override;
53 bool IsForceMaximizeOnFirstRun() override; 53 bool IsForceMaximizeOnFirstRun() override;
54 bool IsUserSessionBlocked() override;
55 bool IsScreenLocked() override;
56 bool CanShowWindowForUser(WmWindow* window) override; 54 bool CanShowWindowForUser(WmWindow* window) override;
57 void LockCursor() override; 55 void LockCursor() override;
58 void UnlockCursor() override; 56 void UnlockCursor() override;
59 std::vector<WmWindow*> GetAllRootWindows() override; 57 std::vector<WmWindow*> GetAllRootWindows() override;
60 void RecordUserMetricsAction(wm::WmUserMetricsAction action) override; 58 void RecordUserMetricsAction(wm::WmUserMetricsAction action) override;
61 std::unique_ptr<WindowResizer> CreateDragWindowResizer( 59 std::unique_ptr<WindowResizer> CreateDragWindowResizer(
62 std::unique_ptr<WindowResizer> next_window_resizer, 60 std::unique_ptr<WindowResizer> next_window_resizer,
63 wm::WindowState* window_state) override; 61 wm::WindowState* window_state) override;
64 bool IsOverviewModeSelecting() override; 62 bool IsOverviewModeSelecting() override;
65 bool IsOverviewModeRestoringMinimizedWindows() override; 63 bool IsOverviewModeRestoringMinimizedWindows() override;
64 SessionStateDelegate* GetSessionStateDelegate() override;
66 void AddActivationObserver(WmActivationObserver* observer) override; 65 void AddActivationObserver(WmActivationObserver* observer) override;
67 void RemoveActivationObserver(WmActivationObserver* observer) override; 66 void RemoveActivationObserver(WmActivationObserver* observer) override;
68 void AddDisplayObserver(WmDisplayObserver* observer) override; 67 void AddDisplayObserver(WmDisplayObserver* observer) override;
69 void RemoveDisplayObserver(WmDisplayObserver* observer) override; 68 void RemoveDisplayObserver(WmDisplayObserver* observer) override;
70 void AddOverviewModeObserver(WmOverviewModeObserver* observer) override; 69 void AddOverviewModeObserver(WmOverviewModeObserver* observer) override;
71 void RemoveOverviewModeObserver(WmOverviewModeObserver* observer) override; 70 void RemoveOverviewModeObserver(WmOverviewModeObserver* observer) override;
72 71
73 private: 72 private:
74 // Returns true if |window| is a window that can have active children. 73 // Returns true if |window| is a window that can have active children.
75 static bool IsActivationParent(::mus::Window* window); 74 static bool IsActivationParent(::mus::Window* window);
76 75
77 void RemoveClientObserver(); 76 void RemoveClientObserver();
78 77
79 // ::mus::WindowTreeClientObserver: 78 // ::mus::WindowTreeClientObserver:
80 void OnWindowTreeFocusChanged(::mus::Window* gained_focus, 79 void OnWindowTreeFocusChanged(::mus::Window* gained_focus,
81 ::mus::Window* lost_focus) override; 80 ::mus::Window* lost_focus) override;
82 void OnWillDestroyClient(::mus::WindowTreeClient* client) override; 81 void OnWillDestroyClient(::mus::WindowTreeClient* client) override;
83 82
84 ::mus::WindowTreeClient* client_; 83 ::mus::WindowTreeClient* client_;
85 84
86 std::vector<WmRootWindowControllerMus*> root_window_controllers_; 85 std::vector<WmRootWindowControllerMus*> root_window_controllers_;
87 86
87 std::unique_ptr<SessionStateDelegate> session_state_delegate_;
88
88 base::ObserverList<WmActivationObserver> activation_observers_; 89 base::ObserverList<WmActivationObserver> activation_observers_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(WmShellMus); 91 DISALLOW_COPY_AND_ASSIGN(WmShellMus);
91 }; 92 };
92 93
93 } // namespace mus 94 } // namespace mus
94 } // namespace ash 95 } // namespace ash
95 96
96 #endif // ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ 97 #endif // ASH_MUS_BRIDGE_WM_SHELL_MUS_H_
OLDNEW
« no previous file with comments | « ash/mus/BUILD.gn ('k') | ash/mus/bridge/wm_shell_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698