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

Unified Diff: ash/mus/bridge/wm_shell_mus.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/mus/BUILD.gn ('k') | ash/mus/bridge/wm_shell_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/bridge/wm_shell_mus.h
diff --git a/ash/mus/bridge/wm_shell_mus.h b/ash/mus/bridge/wm_shell_mus.h
index 4b13ba484446ef767ee057e6ed27cd4a679b3680..f089ce749628c532a56e6c5976efac3f17627ece 100644
--- a/ash/mus/bridge/wm_shell_mus.h
+++ b/ash/mus/bridge/wm_shell_mus.h
@@ -12,8 +12,6 @@
#include "ash/common/wm_shell.h"
#include "base/macros.h"
-#include "base/observer_list.h"
-#include "ui/wm/public/activation_change_observer.h"
namespace aura {
class WindowTreeClient;
@@ -34,19 +32,16 @@ class WindowManager;
class WmShellMusTestApi;
// WmShell implementation for mus.
-class WmShellMus : public WmShell,
- public aura::client::ActivationChangeObserver {
+class WmShellMus : public WmShell {
public:
- WmShellMus(std::unique_ptr<ShellDelegate> shell_delegate,
+ WmShellMus(WmWindow* primary_root_window,
+ std::unique_ptr<ShellDelegate> shell_delegate,
WindowManager* window_manager,
views::PointerWatcherEventRouter* pointer_watcher_event_router);
~WmShellMus() override;
static WmShellMus* Get();
- void AddRootWindowController(RootWindowController* controller);
- void RemoveRootWindowController(RootWindowController* controller);
-
RootWindowController* GetRootWindowControllerWithDisplayId(int64_t id);
AcceleratorControllerDelegateMus* accelerator_controller_delegate() {
@@ -58,6 +53,9 @@ class WmShellMus : public WmShell,
WindowManager* window_manager() { return window_manager_; }
// WmShell:
+ void Initialize(
+ const scoped_refptr<base::SequencedWorkerPool>& pool) override;
+ void Shutdown() override;
bool IsRunningInMash() const override;
WmWindow* NewWindow(ui::wm::WindowType window_type,
ui::LayerType layer_type) override;
@@ -101,8 +99,6 @@ class WmShellMus : public WmShell,
void OnOverviewModeStarting() override;
void OnOverviewModeEnded() override;
SessionStateDelegate* GetSessionStateDelegate() override;
- void AddActivationObserver(WmActivationObserver* observer) override;
- void RemoveActivationObserver(WmActivationObserver* observer) override;
void AddDisplayObserver(WmDisplayObserver* observer) override;
void RemoveDisplayObserver(WmDisplayObserver* observer) override;
void AddPointerWatcher(views::PointerWatcher* watcher,
@@ -112,21 +108,18 @@ class WmShellMus : public WmShell,
bool IsTouchDown() override;
void ToggleIgnoreExternalKeyboard() override;
void SetLaserPointerEnabled(bool enabled) override;
+ void CreatePointerWatcherAdapter() override;
+ void CreatePrimaryHost() override;
+ void InitHosts(const ShellInitParams& init_params) override;
private:
friend class WmShellMusTestApi;
- // aura::client::ActivationChangeObserver:
- void OnWindowActivated(ActivationReason reason,
- aura::Window* gained_active,
- aura::Window* lost_active) override;
-
WindowManager* window_manager_;
+ WmWindow* primary_root_window_;
views::PointerWatcherEventRouter* pointer_watcher_event_router_;
- std::vector<RootWindowController*> root_window_controllers_;
-
std::unique_ptr<AcceleratorControllerDelegateMus>
accelerator_controller_delegate_;
std::unique_ptr<AcceleratorControllerRegistrar>
@@ -134,8 +127,6 @@ class WmShellMus : public WmShell,
std::unique_ptr<ImmersiveHandlerFactoryMus> immersive_handler_factory_;
std::unique_ptr<SessionStateDelegate> session_state_delegate_;
- base::ObserverList<WmActivationObserver> activation_observers_;
-
DISALLOW_COPY_AND_ASSIGN(WmShellMus);
};
« 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