Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: Source/modules/presentation/PresentationController.cpp

Issue 883773004: Added a module for the Presentation API under public/platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698