x11_idle_query.h 698 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_BASE_X_X11_IDLE_QUERY_H_
  5. #define UI_BASE_X_X11_IDLE_QUERY_H_
  6. #include "base/component_export.h"
  7. #include "base/memory/raw_ptr.h"
  8. namespace x11 {
  9. class Connection;
  10. }
  11. namespace ui {
  12. class COMPONENT_EXPORT(UI_BASE_X) IdleQueryX11 {
  13. public:
  14. IdleQueryX11();
  15. IdleQueryX11(const IdleQueryX11&) = delete;
  16. IdleQueryX11& operator=(const IdleQueryX11&) = delete;
  17. ~IdleQueryX11();
  18. int IdleTime();
  19. private:
  20. raw_ptr<x11::Connection> connection_;
  21. };
  22. } // namespace ui
  23. #endif // UI_BASE_X_X11_IDLE_QUERY_H_