| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ScreenWakeLock_h | 5 #ifndef ScreenWakeLock_h |
| 6 #define ScreenWakeLock_h | 6 #define ScreenWakeLock_h |
| 7 | 7 |
| 8 #include "core/dom/ContextLifecycleObserver.h" | 8 #include "core/dom/ContextLifecycleObserver.h" |
| 9 #include "core/frame/LocalFrame.h" |
| 9 #include "core/page/PageVisibilityObserver.h" | 10 #include "core/page/PageVisibilityObserver.h" |
| 10 #include "device/wake_lock/public/interfaces/wake_lock_service.mojom-blink.h" | 11 #include "device/wake_lock/public/interfaces/wake_lock_service.mojom-blink.h" |
| 11 #include "modules/ModulesExport.h" | 12 #include "modules/ModulesExport.h" |
| 12 #include "wtf/Noncopyable.h" | 13 #include "wtf/Noncopyable.h" |
| 13 | 14 |
| 14 namespace blink { | 15 namespace blink { |
| 15 | 16 |
| 16 class LocalFrame; | 17 class LocalFrame; |
| 17 class Screen; | 18 class Screen; |
| 18 | 19 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 48 static ScreenWakeLock* fromScreen(Screen&); | 49 static ScreenWakeLock* fromScreen(Screen&); |
| 49 void notifyService(); | 50 void notifyService(); |
| 50 | 51 |
| 51 device::mojom::blink::WakeLockServicePtr m_service; | 52 device::mojom::blink::WakeLockServicePtr m_service; |
| 52 bool m_keepAwake; | 53 bool m_keepAwake; |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace blink | 56 } // namespace blink |
| 56 | 57 |
| 57 #endif // ScreenWakeLock_h | 58 #endif // ScreenWakeLock_h |
| OLD | NEW |