| // Copyright 2016 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef ASH_SHARED_IMMERSIVE_HANDLER_FACTORY_H_ |
| #define ASH_SHARED_IMMERSIVE_HANDLER_FACTORY_H_ |
| |
| #include <memory> |
| |
| #include "ash/ash_export.h" |
| |
| namespace ash { |
| |
| class ImmersiveFocusWatcher; |
| class ImmersiveFullscreenController; |
| class ImmersiveGestureHandler; |
| |
| // Used by ImmersiveFullscreenController to create event handlers/watchers. |
| class ASH_EXPORT ImmersiveHandlerFactory { |
| public: |
| static ImmersiveHandlerFactory* Get() { return instance_; } |
| |
| virtual std::unique_ptr<ImmersiveFocusWatcher> CreateFocusWatcher( |
| ImmersiveFullscreenController* controller) = 0; |
| |
| virtual std::unique_ptr<ImmersiveGestureHandler> CreateGestureHandler( |
| ImmersiveFullscreenController* controller) = 0; |
| |
| protected: |
| ImmersiveHandlerFactory(); |
| virtual ~ImmersiveHandlerFactory(); |
| |
| private: |
| static ImmersiveHandlerFactory* instance_; |
| }; |
| |
| } // namespace ash |
| |
| #endif // ASH_SHARED_IMMERSIVE_HANDLER_FACTORY_H_ |