Chromium Code Reviews| 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/FrameDestructionObserver.h" | 8 #include "core/frame/FrameDestructionObserver.h" |
| 9 #include "modules/presentation/Presentation.h" | 9 #include "modules/presentation/Presentation.h" |
| 10 #include "platform/Supplementable.h" | 10 #include "platform/Supplementable.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 // Called when the first listener was added to or the last listener was remo ved from the | 47 // Called when the first listener was added to or the last listener was remo ved from the |
| 48 // |availablechange| event. | 48 // |availablechange| event. |
| 49 void updateAvailableChangeWatched(bool watched); | 49 void updateAvailableChangeWatched(bool watched); |
| 50 | 50 |
| 51 // Called when the frame wants to start a new presentation. | 51 // Called when the frame wants to start a new presentation. |
| 52 void startSession(const String& presentationUrl, const String& presentationI d, WebPresentationSessionClientCallbacks*); | 52 void startSession(const String& presentationUrl, const String& presentationI d, WebPresentationSessionClientCallbacks*); |
| 53 | 53 |
| 54 // Called when the frame wants to join an existing presentation. | 54 // Called when the frame wants to join an existing presentation. |
| 55 void joinSession(const String& presentationUrl, const String& presentationId , WebPresentationSessionClientCallbacks*); | 55 void joinSession(const String& presentationUrl, const String& presentationId , WebPresentationSessionClientCallbacks*); |
| 56 | 56 |
| 57 // Called when the frame wants to close an existing presentation. | |
| 58 void closeSession(const String& presentationId); | |
|
whywhat
2015/03/17 23:35:19
Shouldn't you pass the url too? I don't think we r
haibinlu
2015/03/18 00:58:22
Done. But I do not think URL+ID is unique in a bro
| |
| 59 | |
| 57 // Connects the |Presentation| object with this controller. | 60 // Connects the |Presentation| object with this controller. |
| 58 void setPresentation(Presentation*); | 61 void setPresentation(Presentation*); |
| 59 | 62 |
| 60 private: | 63 private: |
| 61 PresentationController(LocalFrame&, WebPresentationClient*); | 64 PresentationController(LocalFrame&, WebPresentationClient*); |
| 62 | 65 |
| 63 // Implementation of FrameDestructionObserver. | 66 // Implementation of FrameDestructionObserver. |
| 64 virtual void willDetachFrameHost() override; | 67 virtual void willDetachFrameHost() override; |
| 65 | 68 |
| 66 WebPresentationClient* m_client; | 69 WebPresentationClient* m_client; |
| 67 PersistentWillBeMember<Presentation> m_presentation; | 70 PersistentWillBeMember<Presentation> m_presentation; |
| 68 }; | 71 }; |
| 69 | 72 |
| 70 } // namespace blink | 73 } // namespace blink |
| 71 | 74 |
| 72 #endif // PresentationController_h | 75 #endif // PresentationController_h |
| OLD | NEW |