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

Unified Diff: ash/shell.h

Issue 2633293005: Converts mash to use Shell (Closed)
Patch Set: feedback Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index 401726f5a55ae4bae8f23c44b93d1c24f7b16a7b..66b0322f5d32419311bf95ca44095d9ea7224dae 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -105,7 +105,6 @@ class ScreenshotController;
class ScreenPinningController;
class ScreenPositionController;
class SessionStateDelegate;
-class ShellDelegate;
struct ShellInitParams;
class ShutdownObserver;
class StickyKeysController;
@@ -121,7 +120,7 @@ class VideoDetector;
class WebNotificationTray;
class WindowPositioner;
class WindowTreeHostManager;
-class WmShellAura;
+class WmShell;
class WmWindow;
namespace shell {
@@ -407,8 +406,7 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
friend class test::ShellTestApi;
friend class shell::WindowWatcher;
- // Takes ownership of |delegate|.
- explicit Shell(ShellDelegate* delegate);
+ explicit Shell(std::unique_ptr<WmShell> wm_shell);
~Shell() override;
void Init(const ShellInitParams& init_params);
@@ -419,6 +417,9 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
// Initializes the root window so that it can host browser windows.
void InitRootWindow(aura::Window* root_window);
+ // Destroys all child windows including widgets across all roots.
+ void CloseAllRootWindowChildWindows();
+
// SystemModalContainerEventFilterDelegate:
bool CanWindowReceiveEvents(aura::Window* window) override;
@@ -440,7 +441,7 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
std::unique_ptr<ScopedOverviewAnimationSettingsFactoryAura>
scoped_overview_animation_settings_factory_;
- std::unique_ptr<WmShellAura> wm_shell_;
+ std::unique_ptr<WmShell> wm_shell_;
// The CompoundEventFilter owned by aura::Env object.
std::unique_ptr<::wm::CompoundEventFilter> env_filter_;
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698