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