forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
immersive_handler_factory.h
39 lines (27 loc) · 1.05 KB
/
immersive_handler_factory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// 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_