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

Side by Side Diff: Source/modules/presentation/PresentationController.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
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 PresentationController_h 5 #ifndef PresentationController_h
6 #define PresentationController_h 6 #define PresentationController_h
7 7
8 #include "core/frame/LocalFrameLifecycleObserver.h" 8 #include "core/frame/LocalFrameLifecycleObserver.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "modules/presentation/Presentation.h" 10 #include "modules/presentation/Presentation.h"
(...skipping 28 matching lines...) Expand all
39 static void provideTo(LocalFrame&, WebPresentationClient*); 39 static void provideTo(LocalFrame&, WebPresentationClient*);
40 40
41 // Implementation of HeapSupplement. 41 // Implementation of HeapSupplement.
42 DECLARE_VIRTUAL_TRACE(); 42 DECLARE_VIRTUAL_TRACE();
43 43
44 // Implementation of WebPresentationController. 44 // Implementation of WebPresentationController.
45 virtual void didChangeAvailability(bool available) override; 45 virtual void didChangeAvailability(bool available) override;
46 virtual bool isAvailableChangeWatched() const override; 46 virtual bool isAvailableChangeWatched() const override;
47 virtual void didStartDefaultSession(WebPresentationSessionClient*) override; 47 virtual void didStartDefaultSession(WebPresentationSessionClient*) override;
48 virtual void didChangeSessionState(WebPresentationSessionClient*, WebPresent ationSessionState) override; 48 virtual void didChangeSessionState(WebPresentationSessionClient*, WebPresent ationSessionState) override;
49 virtual void didReceiveSessionTextMessage(WebPresentationSessionClient*, con st WebString&) override;
49 50
50 // Called when the first listener was added to or the last listener was remo ved from the 51 // Called when the first listener was added to or the last listener was remo ved from the
51 // |availablechange| event. 52 // |availablechange| event.
52 void updateAvailableChangeWatched(bool watched); 53 void updateAvailableChangeWatched(bool watched);
53 54
54 // Called when the frame wants to start a new presentation. 55 // Called when the frame wants to start a new presentation.
55 void startSession(const String& presentationUrl, const String& presentationI d, WebPresentationSessionClientCallbacks*); 56 void startSession(const String& presentationUrl, const String& presentationI d, WebPresentationSessionClientCallbacks*);
56 57
57 // Called when the frame wants to join an existing presentation. 58 // Called when the frame wants to join an existing presentation.
58 void joinSession(const String& presentationUrl, const String& presentationId , WebPresentationSessionClientCallbacks*); 59 void joinSession(const String& presentationUrl, const String& presentationId , WebPresentationSessionClientCallbacks*);
(...skipping 16 matching lines...) Expand all
75 // Implementation of LocalFrameLifecycleObserver. 76 // Implementation of LocalFrameLifecycleObserver.
76 virtual void willDetachFrameHost() override; 77 virtual void willDetachFrameHost() override;
77 78
78 WebPresentationClient* m_client; 79 WebPresentationClient* m_client;
79 PersistentWillBeMember<Presentation> m_presentation; 80 PersistentWillBeMember<Presentation> m_presentation;
80 }; 81 };
81 82
82 } // namespace blink 83 } // namespace blink
83 84
84 #endif // PresentationController_h 85 #endif // PresentationController_h
OLDNEW
« no previous file with comments | « Source/modules/presentation/Presentation.cpp ('k') | Source/modules/presentation/PresentationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698