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

Side by Side Diff: public/platform/WebWakeLockClient.h

Issue 399313003: Initial implementation of API WakeLock. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Implementation of WakeLock API on JavaScript side. Created 6 years, 4 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
« no previous file with comments | « Source/web/web.gypi ('k') | public/platform/WebWakeLockRequestCallback.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebWakeLockClient_h
6 #define WebWakeLockClient_h
7
8 #include "public/platform/WebWakeLockType.h"
9 #include "public/web/WebSecurityOrigin.h"
10
11 namespace blink {
12
13 class WebWakeLockRequestCallback;
14
15 class WebWakeLockClient {
16 public:
17 virtual ~WebWakeLockClient() { }
18
19 virtual void requestWakeLock(WebWakeLockType, int requestId, WebSecurityOrig in) = 0;
20 virtual void requestWakeUnlock(WebWakeLockType, int requestId) = 0;
21
22 virtual void wakeLockDestroyed() = 0;
23 virtual void setRequestCallback(WebWakeLockRequestCallback*) = 0;
24 };
25
26 } // namespace blink
27
28 #endif
OLDNEW
« no previous file with comments | « Source/web/web.gypi ('k') | public/platform/WebWakeLockRequestCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698