2016-07-11 06:29:03 +00:00
|
|
|
// Copyright (c) 2016 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_UNRESPONSIVE_SUPPRESSOR_H_
|
|
|
|
#define ELECTRON_SHELL_BROWSER_UNRESPONSIVE_SUPPRESSOR_H_
|
2016-07-11 06:29:03 +00:00
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2016-07-11 06:29:03 +00:00
|
|
|
|
|
|
|
bool IsUnresponsiveEventSuppressed();
|
|
|
|
|
|
|
|
class UnresponsiveSuppressor {
|
|
|
|
public:
|
|
|
|
UnresponsiveSuppressor();
|
|
|
|
~UnresponsiveSuppressor();
|
|
|
|
|
2021-11-03 11:41:45 +00:00
|
|
|
// disable copy
|
|
|
|
UnresponsiveSuppressor(const UnresponsiveSuppressor&) = delete;
|
|
|
|
UnresponsiveSuppressor& operator=(const UnresponsiveSuppressor&) = delete;
|
2016-07-11 06:29:03 +00:00
|
|
|
};
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|
2016-07-11 06:29:03 +00:00
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#endif // ELECTRON_SHELL_BROWSER_UNRESPONSIVE_SUPPRESSOR_H_
|