OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ASH_MUS_BRIDGE_WORKSPACE_EVENT_HANDLER_MUS_H_ |
| 6 #define ASH_MUS_BRIDGE_WORKSPACE_EVENT_HANDLER_MUS_H_ |
| 7 |
| 8 #include "ash/common/wm/workspace/workspace_event_handler.h" |
| 9 #include "base/macros.h" |
| 10 |
| 11 namespace ui { |
| 12 class Window; |
| 13 } |
| 14 |
| 15 namespace ash { |
| 16 namespace mus { |
| 17 |
| 18 class WorkspaceEventHandlerMus : public WorkspaceEventHandler { |
| 19 public: |
| 20 WorkspaceEventHandlerMus(ui::Window* workspace_window); |
| 21 ~WorkspaceEventHandlerMus() override; |
| 22 |
| 23 // Returns the WorkspaceEventHandlerMus associated with |window|, or null |
| 24 // if |window| is not the workspace window. |
| 25 static WorkspaceEventHandlerMus* Get(ui::Window* window); |
| 26 |
| 27 // Returns the window associated with the workspace. |
| 28 ui::Window* workspace_window() { return workspace_window_; } |
| 29 |
| 30 private: |
| 31 ui::Window* workspace_window_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(WorkspaceEventHandlerMus); |
| 34 }; |
| 35 |
| 36 } // namespace mus |
| 37 } // namespace ash |
| 38 |
| 39 #endif // ASH_MUS_BRIDGE_WORKSPACE_EVENT_HANDLER_MUS_H_ |
OLD | NEW |