// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_VIEWS_INPUT_EVENT_ACTIVATION_PROTECTOR_H_ #define UI_VIEWS_INPUT_EVENT_ACTIVATION_PROTECTOR_H_ #include "base/time/time.h" #include "ui/views/views_export.h" #include "ui/views/windows_stationarity_monitor.h" namespace ui { class Event; } namespace views { // The goal of this class is to prevent potentially unintentional user // interaction with a UI element. // See switch kDisableInputEventActivationProtectionForTesting for disabling it. class VIEWS_EXPORT InputEventActivationProtector : WindowsStationarityMonitor::Observer { … }; } // namespace views #endif // UI_VIEWS_INPUT_EVENT_ACTIVATION_PROTECTOR_H_