OLD | NEW |
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 29 matching lines...) Expand all Loading... |
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 virtual void didReceiveSessionTextMessage(WebPresentationSessionClient*, con
st WebString&) override; |
| 50 virtual void didReceiveSessionArrayBufferMessage(WebPresentationSessionClien
t*, const uint8_t* data, size_t length) override; |
| 51 virtual void didReceiveSessionBlobMessage(WebPresentationSessionClient*, con
st uint8_t* data, size_t length) override; |
50 | 52 |
51 // Called when the first listener was added to or the last listener was remo
ved from the | 53 // Called when the first listener was added to or the last listener was remo
ved from the |
52 // |availablechange| event. | 54 // |availablechange| event. |
53 void updateAvailableChangeWatched(bool watched); | 55 void updateAvailableChangeWatched(bool watched); |
54 | 56 |
55 // Called when the frame wants to start a new presentation. | 57 // Called when the frame wants to start a new presentation. |
56 void startSession(const String& presentationUrl, const String& presentationI
d, WebPresentationSessionClientCallbacks*); | 58 void startSession(const String& presentationUrl, const String& presentationI
d, WebPresentationSessionClientCallbacks*); |
57 | 59 |
58 // Called when the frame wants to join an existing presentation. | 60 // Called when the frame wants to join an existing presentation. |
59 void joinSession(const String& presentationUrl, const String& presentationId
, WebPresentationSessionClientCallbacks*); | 61 void joinSession(const String& presentationUrl, const String& presentationId
, WebPresentationSessionClientCallbacks*); |
(...skipping 19 matching lines...) Expand all Loading... |
79 // Implementation of LocalFrameLifecycleObserver. | 81 // Implementation of LocalFrameLifecycleObserver. |
80 virtual void willDetachFrameHost() override; | 82 virtual void willDetachFrameHost() override; |
81 | 83 |
82 WebPresentationClient* m_client; | 84 WebPresentationClient* m_client; |
83 PersistentWillBeMember<Presentation> m_presentation; | 85 PersistentWillBeMember<Presentation> m_presentation; |
84 }; | 86 }; |
85 | 87 |
86 } // namespace blink | 88 } // namespace blink |
87 | 89 |
88 #endif // PresentationController_h | 90 #endif // PresentationController_h |
OLD | NEW |