| Index: components/exo/wm_helper_ash.cc
|
| diff --git a/components/exo/wm_helper_ash.cc b/components/exo/wm_helper_ash.cc
|
| index f70155c7a562f8d7b5928e8424dceb7fab9d3a57..9026e20468c632ad6081a2b29980e4ec4dc7ce57 100644
|
| --- a/components/exo/wm_helper_ash.cc
|
| +++ b/components/exo/wm_helper_ash.cc
|
| @@ -11,6 +11,7 @@
|
| #include "base/memory/singleton.h"
|
| #include "ui/aura/client/focus_client.h"
|
| #include "ui/display/manager/display_manager.h"
|
| +#include "ui/events/devices/device_data_manager.h"
|
| #include "ui/wm/public/activation_client.h"
|
|
|
| namespace exo {
|
| @@ -24,6 +25,7 @@ WMHelperAsh::WMHelperAsh() {
|
| aura::client::FocusClient* focus_client =
|
| aura::client::GetFocusClient(ash::Shell::GetPrimaryRootWindow());
|
| focus_client->AddObserver(this);
|
| + ui::DeviceDataManager::GetInstance()->AddObserver(this);
|
| }
|
|
|
| WMHelperAsh::~WMHelperAsh() {
|
| @@ -34,6 +36,7 @@ WMHelperAsh::~WMHelperAsh() {
|
| focus_client->RemoveObserver(this);
|
| ash::Shell::GetInstance()->activation_client()->RemoveObserver(this);
|
| ash::WmShell::Get()->RemoveShellObserver(this);
|
| + ui::DeviceDataManager::GetInstance()->RemoveObserver(this);
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| @@ -133,4 +136,8 @@ void WMHelperAsh::OnMaximizeModeEnded() {
|
| NotifyMaximizeModeEnded();
|
| }
|
|
|
| +void WMHelperAsh::OnKeyboardDeviceConfigurationChanged() {
|
| + NotifyKeyboardDeviceConfigurationChanged();
|
| +}
|
| +
|
| } // namespace exo
|
|
|