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
ash / public / cpp / screen_backlight_observer.h [blame]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_PUBLIC_CPP_SCREEN_BACKLIGHT_OBSERVER_H_
#define ASH_PUBLIC_CPP_SCREEN_BACKLIGHT_OBSERVER_H_
#include "ash/public/cpp/ash_public_export.h"
#include "ash/public/cpp/screen_backlight_type.h"
namespace ash {
// Used to observe backlight related events inside ash.
class ASH_PUBLIC_EXPORT ScreenBacklightObserver {
public:
virtual ~ScreenBacklightObserver() = default;
// Called when the observed BacklightsForcedOffSetter instance stops or
// starts forcing backlights off.
virtual void OnBacklightsForcedOffChanged(bool backlights_forced_off) {}
// Called when the screen backlight state change is detected.
virtual void OnScreenBacklightStateChanged(
ScreenBacklightState screen_state) {}
};
} // namespace ash
#endif // ASH_PUBLIC_CPP_SCREEN_BACKLIGHT_OBSERVER_H_