Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Side by Side Diff: third_party/WebKit/Source/modules/wake_lock/ScreenWakeLock.h

Issue 2921823002: Rationalize WakeLock naming conventions (Closed)
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/frame/LocalFrame.h"
10 #include "core/page/PageVisibilityObserver.h" 10 #include "core/page/PageVisibilityObserver.h"
11 #include "device/wake_lock/public/interfaces/wake_lock_service.mojom-blink.h" 11 #include "device/wake_lock/public/interfaces/wake_lock.mojom-blink.h"
12 #include "modules/ModulesExport.h" 12 #include "modules/ModulesExport.h"
13 #include "platform/wtf/Noncopyable.h" 13 #include "platform/wtf/Noncopyable.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class LocalFrame; 17 class LocalFrame;
18 class Screen; 18 class Screen;
19 19
20 class MODULES_EXPORT ScreenWakeLock final 20 class MODULES_EXPORT ScreenWakeLock final
21 : public GarbageCollectedFinalized<ScreenWakeLock>, 21 : public GarbageCollectedFinalized<ScreenWakeLock>,
(...skipping 22 matching lines...) Expand all
44 44
45 // Inherited from ContextLifecycleObserver. 45 // Inherited from ContextLifecycleObserver.
46 void ContextDestroyed(ExecutionContext*) override; 46 void ContextDestroyed(ExecutionContext*) override;
47 47
48 bool keepAwake() const; 48 bool keepAwake() const;
49 void setKeepAwake(bool); 49 void setKeepAwake(bool);
50 50
51 static ScreenWakeLock* FromScreen(Screen&); 51 static ScreenWakeLock* FromScreen(Screen&);
52 void NotifyService(); 52 void NotifyService();
53 53
54 device::mojom::blink::WakeLockServicePtr service_; 54 device::mojom::blink::WakeLockPtr service_;
55 bool keep_awake_; 55 bool keep_awake_;
56 }; 56 };
57 57
58 } // namespace blink 58 } // namespace blink
59 59
60 #endif // ScreenWakeLock_h 60 #endif // ScreenWakeLock_h
OLDNEW
« no previous file with comments | « services/device/wake_lock/wake_lock_unittest.cc ('k') | third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698