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

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

Issue 832263007: Added plumbing for the availablechange event from Blink to WebPresentationClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 2015 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 WebPresentationClient_h
6 #define WebPresentationClient_h
7
8 namespace blink {
9
10 class WebPresentationController;
11
12 // The implementation the embedder has to provide for navigator.presentation to work.
Peter Beverloo 2015/01/07 19:53:11 nit: s/navigator.presentation/the Presentation API
whywhat 2015/01/08 16:05:28 Done.
13 class WebPresentationClient {
14 public:
15 virtual ~WebPresentationClient() { }
16
17 // Passes the Blink-side delegate to the embedder.
18 virtual void setController(WebPresentationController*) = 0;
19
20 // Called when the frame attaches a new event listener to the |availablechan ge| event.
21 virtual void addDeviceAvailabilityListener() = 0;
22 // Called when the frame removes the event listener from the |availablechang e| event.
23 virtual void removeDeviceAvailabilityListener() = 0;
24 };
25
26 } // namespace blink
27
28 #endif // WebPresentationClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698