| 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 #include "config.h" | 5 #include "config.h" |
| 6 #include "modules/presentation/PresentationController.h" | 6 #include "modules/presentation/PresentationController.h" |
| 7 | 7 |
| 8 #include "core/frame/LocalFrame.h" | 8 #include "core/frame/LocalFrame.h" |
| 9 #include "modules/presentation/PresentationSession.h" | 9 #include "modules/presentation/PresentationSession.h" |
| 10 #include "public/platform/modules/presentation/WebPresentationClient.h" | 10 #include "public/platform/modules/presentation/WebPresentationClient.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 return m_client; | 54 return m_client; |
| 55 } | 55 } |
| 56 | 56 |
| 57 DEFINE_TRACE(PresentationController) | 57 DEFINE_TRACE(PresentationController) |
| 58 { | 58 { |
| 59 visitor->trace(m_presentation); | 59 visitor->trace(m_presentation); |
| 60 WillBeHeapSupplement<LocalFrame>::trace(visitor); | 60 WillBeHeapSupplement<LocalFrame>::trace(visitor); |
| 61 LocalFrameLifecycleObserver::trace(visitor); | 61 LocalFrameLifecycleObserver::trace(visitor); |
| 62 } | 62 } |
| 63 | 63 |
| 64 void PresentationController::didChangeAvailability(bool available) | |
| 65 { | |
| 66 } | |
| 67 | |
| 68 bool PresentationController::isAvailableChangeWatched() const | |
| 69 { | |
| 70 return false; | |
| 71 } | |
| 72 | |
| 73 void PresentationController::didStartDefaultSession(WebPresentationSessionClient
* sessionClient) | 64 void PresentationController::didStartDefaultSession(WebPresentationSessionClient
* sessionClient) |
| 74 { | 65 { |
| 75 if (!m_presentation) { | 66 if (!m_presentation) { |
| 76 PresentationSession::dispose(sessionClient); | 67 PresentationSession::dispose(sessionClient); |
| 77 return; | 68 return; |
| 78 } | 69 } |
| 79 | 70 |
| 80 PresentationSession* session = PresentationSession::take(sessionClient, m_pr
esentation); | 71 PresentationSession* session = PresentationSession::take(sessionClient, m_pr
esentation); |
| 81 m_presentation->didStartDefaultSession(session); | 72 m_presentation->didStartDefaultSession(session); |
| 82 } | 73 } |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 148 |
| 158 void PresentationController::willDetachFrameHost() | 149 void PresentationController::willDetachFrameHost() |
| 159 { | 150 { |
| 160 if (m_client) { | 151 if (m_client) { |
| 161 m_client->setController(nullptr); | 152 m_client->setController(nullptr); |
| 162 m_client = nullptr; | 153 m_client = nullptr; |
| 163 } | 154 } |
| 164 } | 155 } |
| 165 | 156 |
| 166 } // namespace blink | 157 } // namespace blink |
| OLD | NEW |