blob: a60fc6cff68b65ea59f58e8a14f9d5edf594f564 [file] [log] [blame]
// Copyright 2012 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_SYSTEM_KEYBOARD_BRIGHTNESS_KEYBOARD_BRIGHTNESS_CONTROLLER_H_
#define ASH_SYSTEM_KEYBOARD_BRIGHTNESS_KEYBOARD_BRIGHTNESS_CONTROLLER_H_
#include "ash/ash_export.h"
#include "ash/system/keyboard_brightness_control_delegate.h"
namespace ash {
// A class which controls keyboard brightness when Alt+F6, Alt+F7 or a
// multimedia key for keyboard brightness is pressed.
class ASH_EXPORT KeyboardBrightnessController
: public KeyboardBrightnessControlDelegate {
public:
KeyboardBrightnessController() = default;
// Disallow copy and move.
KeyboardBrightnessController(const KeyboardBrightnessController&) = delete;
KeyboardBrightnessController& operator=(const KeyboardBrightnessController&) =
delete;
~KeyboardBrightnessController() override = default;
private:
// Overridden from KeyboardBrightnessControlDelegate:
void HandleKeyboardBrightnessDown() override;
void HandleKeyboardBrightnessUp() override;
void HandleToggleKeyboardBacklight() override;
};
} // namespace ash
#endif // ASH_SYSTEM_KEYBOARD_BRIGHTNESS_KEYBOARD_BRIGHTNESS_CONTROLLER_H_