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 "public/platform/WebPresentationClient.h" | 9 #include "public/platform/modules/presentation/WebPresentationClient.h" |
10 #include "public/platform/WebPresentationController.h" | |
11 | 10 |
12 namespace blink { | 11 namespace blink { |
13 | 12 |
14 PresentationController::PresentationController(LocalFrame& frame, WebPresentatio
nClient* client) | 13 PresentationController::PresentationController(LocalFrame& frame, WebPresentatio
nClient* client) |
15 : FrameDestructionObserver(&frame) | 14 : FrameDestructionObserver(&frame) |
16 , m_client(client) | 15 , m_client(client) |
17 { | 16 { |
18 if (m_client) | 17 if (m_client) |
19 m_client->setController(this); | 18 m_client->setController(this); |
20 } | 19 } |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 81 |
83 void PresentationController::willDetachFrameHost() | 82 void PresentationController::willDetachFrameHost() |
84 { | 83 { |
85 if (m_client) { | 84 if (m_client) { |
86 m_client->setController(nullptr); | 85 m_client->setController(nullptr); |
87 m_client = nullptr; | 86 m_client = nullptr; |
88 } | 87 } |
89 } | 88 } |
90 | 89 |
91 } // namespace blink | 90 } // namespace blink |
OLD | NEW |