| // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef UI_BASE_X_X11_IDLE_QUERY_H_ |
| #define UI_BASE_X_X11_IDLE_QUERY_H_ |
| |
| #include "base/component_export.h" |
| #include "base/macros.h" |
| |
| namespace x11 { |
| class Connection; |
| } |
| |
| namespace ui { |
| |
| class COMPONENT_EXPORT(UI_BASE_X) IdleQueryX11 { |
| public: |
| IdleQueryX11(); |
| ~IdleQueryX11(); |
| |
| int IdleTime(); |
| |
| private: |
| x11::Connection* connection_; |
| |
| DISALLOW_COPY_AND_ASSIGN(IdleQueryX11); |
| }; |
| |
| } // namespace ui |
| |
| #endif // UI_BASE_X_X11_IDLE_QUERY_H_ |