| 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_WM_IMMERSIVE_HANDLER_FACTORY_H_ | |
| 6 #define ASH_WM_IMMERSIVE_HANDLER_FACTORY_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "ash/ash_export.h" | |
| 11 | |
| 12 namespace ash { | |
| 13 | |
| 14 class ImmersiveFocusWatcher; | |
| 15 class ImmersiveFullscreenController; | |
| 16 class ImmersiveGestureHandler; | |
| 17 | |
| 18 // Used by ImmersiveFullscreenController to create event handlers/watchers. | |
| 19 class ASH_EXPORT ImmersiveHandlerFactory { | |
| 20 public: | |
| 21 static ImmersiveHandlerFactory* Get() { return instance_; } | |
| 22 | |
| 23 virtual std::unique_ptr<ImmersiveFocusWatcher> CreateFocusWatcher( | |
| 24 ImmersiveFullscreenController* controller) = 0; | |
| 25 | |
| 26 virtual std::unique_ptr<ImmersiveGestureHandler> CreateGestureHandler( | |
| 27 ImmersiveFullscreenController* controller) = 0; | |
| 28 | |
| 29 protected: | |
| 30 ImmersiveHandlerFactory(); | |
| 31 virtual ~ImmersiveHandlerFactory(); | |
| 32 | |
| 33 private: | |
| 34 static ImmersiveHandlerFactory* instance_; | |
| 35 }; | |
| 36 | |
| 37 } // namespace ash | |
| 38 | |
| 39 #endif // ASH_WM_IMMERSIVE_HANDLER_FACTORY_H_ | |
| OLD | NEW |