| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_BASE_IDLE_IDLE_QUERY_X11_H_ | 5 #ifndef UI_BASE_IDLE_IDLE_QUERY_X11_H_ |
| 6 #define UI_BASE_IDLE_IDLE_QUERY_X11_H_ | 6 #define UI_BASE_IDLE_IDLE_QUERY_X11_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 | 11 |
| 11 namespace ui { | 12 namespace ui { |
| 12 | 13 |
| 13 class IdleData; | 14 class IdleData; |
| 14 | 15 |
| 15 class IdleQueryX11 { | 16 class IdleQueryX11 { |
| 16 public: | 17 public: |
| 17 IdleQueryX11(); | 18 IdleQueryX11(); |
| 18 ~IdleQueryX11(); | 19 ~IdleQueryX11(); |
| 19 | 20 |
| 20 int IdleTime(); | 21 int IdleTime(); |
| 21 | 22 |
| 22 private: | 23 private: |
| 23 scoped_ptr<IdleData> idle_data_; | 24 std::unique_ptr<IdleData> idle_data_; |
| 24 | 25 |
| 25 DISALLOW_COPY_AND_ASSIGN(IdleQueryX11); | 26 DISALLOW_COPY_AND_ASSIGN(IdleQueryX11); |
| 26 }; | 27 }; |
| 27 | 28 |
| 28 } // namespace ui | 29 } // namespace ui |
| 29 | 30 |
| 30 #endif // UI_BASE_IDLE_IDLE_QUERY_X11_H_ | 31 #endif // UI_BASE_IDLE_IDLE_QUERY_X11_H_ |
| OLD | NEW |