| Index: Source/modules/presentation/PresentationSession.cpp
|
| diff --git a/Source/modules/presentation/PresentationSession.cpp b/Source/modules/presentation/PresentationSession.cpp
|
| index dc665e2de1d2b3cb544a6e93db4f90f33a80c907..0dfa0160360b2abb10e9af6e8d9eb0da93a6a15e 100644
|
| --- a/Source/modules/presentation/PresentationSession.cpp
|
| +++ b/Source/modules/presentation/PresentationSession.cpp
|
| @@ -86,11 +86,11 @@ private:
|
| FileReaderLoader m_loader;
|
| };
|
|
|
| -PresentationSession::PresentationSession(LocalFrame* frame, const String& id, const String& url)
|
| +PresentationSession::PresentationSession(LocalFrame* frame, const String& id, const String& url, WebPresentationSessionState state)
|
| : DOMWindowProperty(frame)
|
| , m_id(id)
|
| , m_url(url)
|
| - , m_state(WebPresentationSessionState::Disconnected)
|
| + , m_state(state)
|
| {
|
| }
|
|
|
| @@ -100,13 +100,13 @@ PresentationSession::~PresentationSession()
|
| }
|
|
|
| // static
|
| -PresentationSession* PresentationSession::take(WebPresentationSessionClient* clientRaw, Presentation* presentation)
|
| +PresentationSession* PresentationSession::take(WebPresentationSessionClient* clientRaw, Presentation* presentation, WebPresentationSessionState state)
|
| {
|
| ASSERT(clientRaw);
|
| ASSERT(presentation);
|
| OwnPtr<WebPresentationSessionClient> client = adoptPtr(clientRaw);
|
|
|
| - PresentationSession* session = new PresentationSession(presentation->frame(), client->getId(), client->getUrl());
|
| + PresentationSession* session = new PresentationSession(presentation->frame(), client->getId(), client->getUrl(), state);
|
| presentation->registerSession(session);
|
| return session;
|
| }
|
|
|