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

Unified Diff: ash/aura/wm_shell_aura.h

Issue 2752593008: Move AcceleratorController from WmShell to Shell (Closed)
Patch Set: cleanup Created 3 years, 9 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
Index: ash/aura/wm_shell_aura.h
diff --git a/ash/aura/wm_shell_aura.h b/ash/aura/wm_shell_aura.h
index 509b940f5fb41f56710dc9bae805dae5bc5f9037..6dcfaf0d9a0572b32bbd0a5227cf5457a5cf8be2 100644
--- a/ash/aura/wm_shell_aura.h
+++ b/ash/aura/wm_shell_aura.h
@@ -15,6 +15,7 @@
namespace ash {
+class AcceleratorControllerDelegateAura;
class PointerWatcherAdapter;
class ASH_EXPORT WmShellAura : public WmShell,
@@ -25,6 +26,9 @@ class ASH_EXPORT WmShellAura : public WmShell,
static WmShellAura* Get();
+ AcceleratorControllerDelegateAura* accelerator_controller_delegate() {
+ return accelerator_controller_delegate_.get();
+ }
// WmShell:
void Shutdown() override;
@@ -78,6 +82,7 @@ class ASH_EXPORT WmShellAura : public WmShell,
void CreatePointerWatcherAdapter() override;
void CreatePrimaryHost() override;
void InitHosts(const ShellInitParams& init_params) override;
+ std::unique_ptr<AcceleratorController> CreateAcceleratorController() override;
private:
// SessionStateObserver:
@@ -92,6 +97,9 @@ class ASH_EXPORT WmShellAura : public WmShell,
bool added_display_observer_ = false;
base::ObserverList<WmDisplayObserver> display_observers_;
+ std::unique_ptr<AcceleratorControllerDelegateAura>
+ accelerator_controller_delegate_;
+
DISALLOW_COPY_AND_ASSIGN(WmShellAura);
};

Powered by Google App Engine
This is Rietveld 408576698