unresponsive_suppressor.h 553 B

1234567891011121314151617181920212223242526
  1. // Copyright (c) 2016 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ATOM_BROWSER_UNRESPONSIVE_SUPPRESSOR_H_
  5. #define ATOM_BROWSER_UNRESPONSIVE_SUPPRESSOR_H_
  6. #include "base/macros.h"
  7. namespace atom {
  8. bool IsUnresponsiveEventSuppressed();
  9. class UnresponsiveSuppressor {
  10. public:
  11. UnresponsiveSuppressor();
  12. ~UnresponsiveSuppressor();
  13. private:
  14. DISALLOW_COPY_AND_ASSIGN(UnresponsiveSuppressor);
  15. };
  16. } // namespace atom
  17. #endif // ATOM_BROWSER_UNRESPONSIVE_SUPPRESSOR_H_