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 #include "chrome/browser/chromeos/screensaver/screensaver_controller.h" | 5 #include "chrome/browser/chromeos/screensaver/screensaver_controller.h" |
6 | 6 |
7 #include "ash/screensaver/screensaver_view.h" | 7 #include "ash/screensaver/screensaver_view.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "ash/wm/user_activity_detector.h" | 9 #include "ash/wm/user_activity_detector.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "chrome/browser/chrome_notification_types.h" |
13 #include "chrome/browser/extensions/extension_service.h" | 14 #include "chrome/browser/extensions/extension_service.h" |
14 #include "chrome/browser/extensions/extension_system.h" | 15 #include "chrome/browser/extensions/extension_system.h" |
15 #include "chrome/browser/profiles/profile_manager.h" | 16 #include "chrome/browser/profiles/profile_manager.h" |
16 #include "chrome/common/chrome_notification_types.h" | |
17 #include "chrome/common/extensions/extension.h" | 17 #include "chrome/common/extensions/extension.h" |
18 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" | 18 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" |
19 #include "chromeos/dbus/dbus_thread_manager.h" | 19 #include "chromeos/dbus/dbus_thread_manager.h" |
20 #include "chromeos/dbus/power_manager_client.h" | 20 #include "chromeos/dbus/power_manager_client.h" |
21 #include "content/public/browser/notification_service.h" | 21 #include "content/public/browser/notification_service.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 const int kScreensaverTimeoutMinutes = 2; | 25 const int kScreensaverTimeoutMinutes = 2; |
26 | 26 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 ash::CloseScreensaver(); | 178 ash::CloseScreensaver(); |
179 screensaver_extension_id_ = ""; | 179 screensaver_extension_id_ = ""; |
180 } | 180 } |
181 | 181 |
182 void ScreensaverController::RequestNextIdleNotification() { | 182 void ScreensaverController::RequestNextIdleNotification() { |
183 DBusThreadManager::Get()->GetPowerManagerClient()-> | 183 DBusThreadManager::Get()->GetPowerManagerClient()-> |
184 RequestIdleNotification(threshold_.InMilliseconds()); | 184 RequestIdleNotification(threshold_.InMilliseconds()); |
185 } | 185 } |
186 | 186 |
187 } // namespace chromeos | 187 } // namespace chromeos |
OLD | NEW |