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

Side by Side Diff: public/platform/modules/presentation/WebPresentationController.h

Issue 974993002: [Presentation API] Added the DefaultPresentationStart event and parsing of the default presentation… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Default implementation for the new WebPresentationClient method Created 5 years, 9 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 WebPresentationController_h 5 #ifndef WebPresentationController_h
6 #define WebPresentationController_h 6 #define WebPresentationController_h
7 7
8 namespace blink { 8 namespace blink {
9 9
10 class WebPresentationSessionClient;
11
10 // The delegate Blink provides to WebPresentationClient in order to get updates. 12 // The delegate Blink provides to WebPresentationClient in order to get updates.
11 class WebPresentationController { 13 class WebPresentationController {
12 public: 14 public:
13 virtual ~WebPresentationController() { } 15 virtual ~WebPresentationController() { }
14 16
15 // Called when the presentation screen availability changes. 17 // Called when the presentation screen availability changes.
16 // May not be called if there's no registered listener for the event. 18 // May not be called if there's no registered listener for the event.
17 virtual void didChangeAvailability(bool available) = 0; 19 virtual void didChangeAvailability(bool available) = 0;
18 20
19 // Indicates if the frame has listeners to the |availablechange| event. 21 // Indicates if the frame has listeners to the |availablechange| event.
20 virtual bool isAvailableChangeWatched() const = 0; 22 virtual bool isAvailableChangeWatched() const = 0;
23
24 // Called when the default presentation is started by the embedder.
25 // May not be called if there's no registered listener for the event.
26 virtual void didStartDefaultPresentation(WebPresentationSessionClient*) = 0;
27
28 // Indicates if the frame has listeners to the |defaultpresentationstart| ev ent.
29 virtual bool isDefaultPresentationStartWatched() const = 0;
21 }; 30 };
22 31
23 } // namespace blink 32 } // namespace blink
24 33
25 #endif // WebPresentationController_h 34 #endif // WebPresentationController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698