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

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

Issue 1092193003: [PresentationAPI] Added on-session-text-message handler. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Forward declare WebString in WebPresentationController.h Created 5 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
« no previous file with comments | « Source/modules/presentation/PresentationSession.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "public/platform/WebCommon.h" 8 #include "public/platform/WebCommon.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class WebPresentationSessionClient; 12 class WebPresentationSessionClient;
13 class WebString;
13 enum class WebPresentationSessionState; 14 enum class WebPresentationSessionState;
14 15
15 // The delegate Blink provides to WebPresentationClient in order to get updates. 16 // The delegate Blink provides to WebPresentationClient in order to get updates.
16 class BLINK_PLATFORM_EXPORT WebPresentationController { 17 class BLINK_PLATFORM_EXPORT WebPresentationController {
17 public: 18 public:
18 virtual ~WebPresentationController() { } 19 virtual ~WebPresentationController() { }
19 20
20 // Called when the presentation screen availability changes. 21 // Called when the presentation screen availability changes.
21 // May not be called if there's no registered listener for the event. 22 // May not be called if there's no registered listener for the event.
22 virtual void didChangeAvailability(bool available) = 0; 23 virtual void didChangeAvailability(bool available) = 0;
23 24
24 // Indicates if the frame has listeners to the |availablechange| event. 25 // Indicates if the frame has listeners to the |availablechange| event.
25 virtual bool isAvailableChangeWatched() const = 0; 26 virtual bool isAvailableChangeWatched() const = 0;
26 27
27 // Called when the presentation session is started by the embedder using 28 // Called when the presentation session is started by the embedder using
28 // the default presentation URL and id. 29 // the default presentation URL and id.
29 virtual void didStartDefaultSession(WebPresentationSessionClient*) = 0; 30 virtual void didStartDefaultSession(WebPresentationSessionClient*) = 0;
30 31
31 // Called when the state of a session changes. 32 // Called when the state of a session changes.
32 virtual void didChangeSessionState(WebPresentationSessionClient*, WebPresent ationSessionState) = 0; 33 virtual void didChangeSessionState(WebPresentationSessionClient*, WebPresent ationSessionState) = 0;
34
35 // Called when a text message of a session is received.
36 virtual void didReceiveSessionTextMessage(WebPresentationSessionClient*, con st WebString& message) = 0;
33 }; 37 };
34 38
35 } // namespace blink 39 } // namespace blink
36 40
37 #endif // WebPresentationController_h 41 #endif // WebPresentationController_h
OLDNEW
« no previous file with comments | « Source/modules/presentation/PresentationSession.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698