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

Unified Diff: ash/aura/wm_shell_aura.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/aura/DEPS ('k') | ash/aura/wm_shell_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_shell_aura.h
diff --git a/ash/aura/wm_shell_aura.h b/ash/aura/wm_shell_aura.h
index e0093b73745a3d3b67d5e83176a426dbabdd5135..32b256b5603f65db1c36a4b13dadbbceeddd1824 100644
--- a/ash/aura/wm_shell_aura.h
+++ b/ash/aura/wm_shell_aura.h
@@ -13,14 +13,12 @@
#include "ash/display/window_tree_host_manager.h"
#include "base/macros.h"
#include "base/observer_list.h"
-#include "ui/wm/public/activation_change_observer.h"
namespace ash {
class PointerWatcherAdapter;
class ASH_EXPORT WmShellAura : public WmShell,
- public aura::client::ActivationChangeObserver,
public WindowTreeHostManager::Observer {
public:
explicit WmShellAura(std::unique_ptr<ShellDelegate> shell_delegate);
@@ -28,7 +26,6 @@ class ASH_EXPORT WmShellAura : public WmShell,
static WmShellAura* Get();
- void CreatePointerWatcherAdapter();
// WmShell:
void Shutdown() override;
@@ -75,8 +72,6 @@ class ASH_EXPORT WmShellAura : 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,
@@ -86,15 +81,11 @@ class ASH_EXPORT WmShellAura : 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:
- // aura::client::ActivationChangeObserver:
- void OnWindowActivated(ActivationReason reason,
- aura::Window* gained_active,
- aura::Window* lost_active) override;
- void OnAttemptToReactivateWindow(aura::Window* request_active,
- aura::Window* actual_active) override;
-
// SessionStateObserver:
void SessionStateChanged(session_manager::SessionState state) override;
@@ -105,9 +96,6 @@ class ASH_EXPORT WmShellAura : public WmShell,
WmLookupAura wm_lookup_;
std::unique_ptr<PointerWatcherAdapter> pointer_watcher_adapter_;
- bool added_activation_observer_ = false;
- base::ObserverList<WmActivationObserver> activation_observers_;
-
bool added_display_observer_ = false;
base::ObserverList<WmDisplayObserver> display_observers_;
« no previous file with comments | « ash/aura/DEPS ('k') | ash/aura/wm_shell_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698