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

Side by Side Diff: device/wake_lock/public/interfaces/wake_lock_context.mojom

Issue 2874013002: Add GetWakeLockWithoutContext() in WakeLockContextProvider mojo interface. (Closed)
Patch Set: Add GetWakeLockWithoutContext in WakeLockContextProvider mojo interface. Created 3 years, 7 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 module device.mojom; 5 module device.mojom;
6 6
7 import "device/wake_lock/public/interfaces/wake_lock_service.mojom"; 7 import "device/wake_lock/public/interfaces/wake_lock_service.mojom";
8 8
9 enum WakeLockType { 9 enum WakeLockType {
10 // Prevent the application from being suspended. On some platforms, apps may 10 // Prevent the application from being suspended. On some platforms, apps may
(...skipping 15 matching lines...) Expand all
26 ReasonAudioPlayback = 0, 26 ReasonAudioPlayback = 0,
27 // Video is being played. 27 // Video is being played.
28 ReasonVideoPlayback = 1, 28 ReasonVideoPlayback = 1,
29 // WakeLock for some other reason. 29 // WakeLock for some other reason.
30 ReasonOther = 2, 30 ReasonOther = 2,
31 }; 31 };
32 32
33 // Context in which WakeLockService instances operate. 33 // Context in which WakeLockService instances operate.
34 interface WakeLockContext { 34 interface WakeLockContext {
35 // Gets a WakeLockService within this context. 35 // Gets a WakeLockService within this context.
36 GetWakeLock(WakeLockType type, WakeLockReason reason, string description, Wake LockService& wake_lock); 36 GetWakeLock(WakeLockType type,
37 WakeLockReason reason,
38 string description,
39 WakeLockService& wake_lock);
37 }; 40 };
OLDNEW
« no previous file with comments | « device/wake_lock/public/interfaces/README.md ('k') | device/wake_lock/public/interfaces/wake_lock_context_provider.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698