| 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 "services/ui/public/cpp/window_tree_client_observer.h" | 10 #include "services/ui/public/cpp/window_tree_client_observer.h" |
| 11 #include "ui/aura/client/focus_change_observer.h" | 11 #include "ui/aura/client/focus_change_observer.h" |
| 12 #include "ui/aura/env_observer.h" | 12 #include "ui/aura/env_observer.h" |
| 13 #include "ui/events/event_handler.h" | 13 #include "ui/events/event_handler.h" |
| 14 | 14 |
| 15 namespace exo { | 15 namespace exo { |
| 16 | 16 |
| 17 // A helper class for accessing WindowManager related features. | 17 // A helper class for accessing WindowManager related features. |
| 18 class WMHelperMus : public WMHelper, | 18 class WMHelperMus : public WMHelper, |
| 19 public aura::EnvObserver, | 19 public aura::EnvObserver, |
| 20 public ui::EventHandler, | 20 public ui::EventHandler, |
| 21 public ui::WindowTreeClientObserver, | 21 public ui::WindowTreeClientObserver, |
| 22 public aura::client::FocusChangeObserver { | 22 public aura::client::FocusChangeObserver { |
| 23 public: | 23 public: |
| 24 WMHelperMus(); | 24 WMHelperMus(); |
| 25 ~WMHelperMus() override; | 25 ~WMHelperMus() override; |
| 26 | 26 |
| 27 // Overriden from WMHelper: | 27 // Overriden from WMHelper: |
| 28 const ash::DisplayInfo GetDisplayInfo(int64_t display_id) const override; | 28 const ui::DisplayInfo GetDisplayInfo(int64_t display_id) const override; |
| 29 aura::Window* GetContainer(int container_id) override; | 29 aura::Window* GetContainer(int container_id) override; |
| 30 aura::Window* GetActiveWindow() const override; | 30 aura::Window* GetActiveWindow() const override; |
| 31 aura::Window* GetFocusedWindow() const override; | 31 aura::Window* GetFocusedWindow() const override; |
| 32 ui::CursorSetType GetCursorSet() const override; | 32 ui::CursorSetType GetCursorSet() const override; |
| 33 void AddPreTargetHandler(ui::EventHandler* handler) override; | 33 void AddPreTargetHandler(ui::EventHandler* handler) override; |
| 34 void PrependPreTargetHandler(ui::EventHandler* handler) override; | 34 void PrependPreTargetHandler(ui::EventHandler* handler) override; |
| 35 void RemovePreTargetHandler(ui::EventHandler* handler) override; | 35 void RemovePreTargetHandler(ui::EventHandler* handler) override; |
| 36 void AddPostTargetHandler(ui::EventHandler* handler) override; | 36 void AddPostTargetHandler(ui::EventHandler* handler) override; |
| 37 void RemovePostTargetHandler(ui::EventHandler* handler) override; | 37 void RemovePostTargetHandler(ui::EventHandler* handler) override; |
| 38 bool IsMaximizeModeWindowManagerEnabled() const override; | 38 bool IsMaximizeModeWindowManagerEnabled() const override; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 60 | 60 |
| 61 aura::Window* active_window_; | 61 aura::Window* active_window_; |
| 62 aura::Window* focused_window_; | 62 aura::Window* focused_window_; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(WMHelperMus); | 64 DISALLOW_COPY_AND_ASSIGN(WMHelperMus); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace exo | 67 } // namespace exo |
| 68 | 68 |
| 69 #endif // COMPONENTS_EXO_WM_HELPER_H_ | 69 #endif // COMPONENTS_EXO_WM_HELPER_H_ |
| OLD | NEW |