| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_EXO_WM_HELPER_MUS_H_ | 5 #ifndef COMPONENTS_EXO_WM_HELPER_MUS_H_ |
| 6 #define COMPONENTS_EXO_WM_HELPER_MUS_H_ | 6 #define COMPONENTS_EXO_WM_HELPER_MUS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/exo/wm_helper.h" | 9 #include "components/exo/wm_helper.h" |
| 10 #include "ui/aura/client/focus_change_observer.h" | 10 #include "ui/aura/client/focus_change_observer.h" |
| 11 #include "ui/aura/mus/focus_synchronizer_observer.h" | 11 #include "ui/aura/mus/focus_synchronizer_observer.h" |
| 12 #include "ui/events/devices/input_device_event_observer.h" | 12 #include "ui/events/devices/input_device_event_observer.h" |
| 13 | 13 |
| 14 namespace aura { | 14 namespace aura { |
| 15 namespace client { | 15 namespace client { |
| 16 class ActivationClient; | 16 class ActivationClient; |
| 17 } | 17 } |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace exo { | 20 namespace exo { |
| 21 | 21 |
| 22 // A helper class for accessing WindowManager related features. | 22 // A helper class for accessing WindowManager related features. |
| 23 // This is only used for mash. Mushrome uses WMHelperAsh. |
| 23 class WMHelperMus : public WMHelper, | 24 class WMHelperMus : public WMHelper, |
| 24 public ui::InputDeviceEventObserver, | 25 public ui::InputDeviceEventObserver, |
| 25 public aura::FocusSynchronizerObserver, | 26 public aura::FocusSynchronizerObserver, |
| 26 public aura::client::FocusChangeObserver { | 27 public aura::client::FocusChangeObserver { |
| 27 public: | 28 public: |
| 28 WMHelperMus(); | 29 WMHelperMus(); |
| 29 ~WMHelperMus() override; | 30 ~WMHelperMus() override; |
| 30 | 31 |
| 31 // Overridden from WMHelper: | 32 // Overridden from WMHelper: |
| 32 const display::ManagedDisplayInfo GetDisplayInfo( | 33 const display::ManagedDisplayInfo GetDisplayInfo( |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 aura::Window* root_with_active_focus_client_ = nullptr; | 70 aura::Window* root_with_active_focus_client_ = nullptr; |
| 70 aura::Window* active_window_ = nullptr; | 71 aura::Window* active_window_ = nullptr; |
| 71 aura::Window* focused_window_ = nullptr; | 72 aura::Window* focused_window_ = nullptr; |
| 72 | 73 |
| 73 DISALLOW_COPY_AND_ASSIGN(WMHelperMus); | 74 DISALLOW_COPY_AND_ASSIGN(WMHelperMus); |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 } // namespace exo | 77 } // namespace exo |
| 77 | 78 |
| 78 #endif // COMPONENTS_EXO_WM_HELPER_H_ | 79 #endif // COMPONENTS_EXO_WM_HELPER_H_ |
| OLD | NEW |