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

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
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 ~WebWakeLockClient() { }
mlamouri (slow - plz ping) 2014/08/18 12:15:53 virtual
redchenko 2014/08/19 16:42:21 Done.
18
19 virtual void requestWakeLock(WebWakeLockType, int requestId, WebSecurityOrig in) = 0;
mlamouri (slow - plz ping) 2014/08/18 12:15:53 Couldn't you set this client in WebFrameClient and
20 virtual void requestWakeUnlock(WebWakeLockType, int requestId) = 0;
21
22 virtual void wakeLockDestroyed() = 0;
23 virtual void setRequestCallback(WebWakeLockRequestCallback*) = 0;
mlamouri (slow - plz ping) 2014/08/18 12:15:53 It's hard to review those without the WebWakeLockC
redchenko 2014/08/19 16:42:21 I'll send link to CL later.
24 };
25
26 } // namespace blink
27
28 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698