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

Side by Side Diff: ash/mus/root_window_controller.h

Issue 2302673002: mash: Avoid shelf crashes on display removal. (Closed)
Patch Set: minor cleanup. Created 4 years, 3 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
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_ROOT_WINDOW_CONTROLLER_H_ 5 #ifndef ASH_MUS_ROOT_WINDOW_CONTROLLER_H_
6 #define ASH_MUS_ROOT_WINDOW_CONTROLLER_H_ 6 #define ASH_MUS_ROOT_WINDOW_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/mus/disconnected_app_handler.h" 10 #include "ash/mus/disconnected_app_handler.h"
11 #include "ash/public/interfaces/container.mojom.h" 11 #include "ash/public/interfaces/container.mojom.h"
12 #include "services/ui/public/cpp/window_observer.h" 12 #include "services/ui/public/cpp/window_observer.h"
13 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" 13 #include "services/ui/public/interfaces/window_manager_constants.mojom.h"
14 #include "ui/display/display.h" 14 #include "ui/display/display.h"
15 #include "ui/display/display_observer.h"
15 16
16 namespace shell { 17 namespace shell {
17 class Connector; 18 class Connector;
18 } 19 }
19 20
20 namespace ash { 21 namespace ash {
21 22
22 class AlwaysOnTopController; 23 class AlwaysOnTopController;
23 class WorkspaceLayoutManager; 24 class WorkspaceLayoutManager;
24 25
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 WorkspaceLayoutManager* workspace_layout_manager() { 62 WorkspaceLayoutManager* workspace_layout_manager() {
62 return workspace_layout_manager_; 63 return workspace_layout_manager_;
63 } 64 }
64 65
65 AlwaysOnTopController* always_on_top_controller() { 66 AlwaysOnTopController* always_on_top_controller() {
66 return always_on_top_controller_.get(); 67 return always_on_top_controller_.get();
67 } 68 }
68 69
69 WmShelfMus* wm_shelf() { return wm_shelf_.get(); } 70 WmShelfMus* wm_shelf() { return wm_shelf_.get(); }
70 71
72 void Shutdown();
73
71 private: 74 private:
72 friend class WmTestBase; 75 friend class WmTestBase;
73 friend class WmTestHelper; 76 friend class WmTestHelper;
74 77
75 gfx::Rect CalculateDefaultBounds(ui::Window* window) const; 78 gfx::Rect CalculateDefaultBounds(ui::Window* window) const;
76 gfx::Rect GetMaximizedWindowBounds() const; 79 gfx::Rect GetMaximizedWindowBounds() const;
77 80
78 // Creates the necessary set of layout managers in the shell windows. 81 // Creates the necessary set of layout managers in the shell windows.
79 void CreateLayoutManagers(); 82 void CreateLayoutManagers();
80 83
(...skipping 14 matching lines...) Expand all
95 98
96 std::unique_ptr<DisconnectedAppHandler> disconnected_app_handler_; 99 std::unique_ptr<DisconnectedAppHandler> disconnected_app_handler_;
97 100
98 DISALLOW_COPY_AND_ASSIGN(RootWindowController); 101 DISALLOW_COPY_AND_ASSIGN(RootWindowController);
99 }; 102 };
100 103
101 } // namespace mus 104 } // namespace mus
102 } // namespace ash 105 } // namespace ash
103 106
104 #endif // ASH_MUS_ROOT_WINDOW_CONTROLLER_H_ 107 #endif // ASH_MUS_ROOT_WINDOW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698